2020-01-22 15:00:07 -05:00
|
|
|
#pragma warning disable CS1591
|
2019-01-13 14:54:44 -05:00
|
|
|
|
2018-09-12 13:26:21 -04:00
|
|
|
namespace Emby.Dlna.Configuration
|
2014-03-10 13:38:53 -04:00
|
|
|
{
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// The DlnaOptions class contains the user definable parameters for the dlna subsystems.
|
|
|
|
/// </summary>
|
2014-03-10 13:38:53 -04:00
|
|
|
public class DlnaOptions
|
|
|
|
{
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="DlnaOptions"/> class.
|
|
|
|
/// </summary>
|
2014-03-15 21:41:27 -04:00
|
|
|
public DlnaOptions()
|
|
|
|
{
|
|
|
|
EnablePlayTo = true;
|
2022-06-10 21:59:21 -04:00
|
|
|
EnableServer = false;
|
2014-04-20 01:21:08 -04:00
|
|
|
BlastAliveMessages = true;
|
2019-02-21 23:06:49 -05:00
|
|
|
SendOnlyMatchedHost = true;
|
2014-03-23 18:21:49 -04:00
|
|
|
ClientDiscoveryIntervalSeconds = 60;
|
2023-02-16 12:15:12 -05:00
|
|
|
AliveMessageIntervalSeconds = 180;
|
2014-03-15 21:41:27 -04:00
|
|
|
}
|
2020-01-22 15:00:07 -05:00
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna playTo subsystem.
|
|
|
|
/// </summary>
|
2020-01-22 15:00:07 -05:00
|
|
|
public bool EnablePlayTo { get; set; }
|
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna server subsystem.
|
|
|
|
/// </summary>
|
2020-01-22 15:00:07 -05:00
|
|
|
public bool EnableServer { get; set; }
|
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether detailed dlna server logs are sent to the console/log.
|
|
|
|
/// If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work.
|
|
|
|
/// </summary>
|
2020-01-22 15:00:07 -05:00
|
|
|
public bool EnableDebugLog { get; set; }
|
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether whether detailed playTo debug logs are sent to the console/log.
|
|
|
|
/// If the setting "Emby.Dlna.PlayTo": "Debug" msut be set in logging.default.json for this property to work.
|
|
|
|
/// </summary>
|
|
|
|
public bool EnablePlayToTracing { get; set; }
|
2020-01-22 15:00:07 -05:00
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the ssdp client discovery interval time (in seconds).
|
|
|
|
/// This is the time after which the server will send a ssdp search request.
|
|
|
|
/// </summary>
|
2020-01-22 15:00:07 -05:00
|
|
|
public int ClientDiscoveryIntervalSeconds { get; set; }
|
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the frequency at which ssdp alive notifications are transmitted.
|
|
|
|
/// </summary>
|
|
|
|
public int AliveMessageIntervalSeconds { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the frequency at which ssdp alive notifications are transmitted. MIGRATING - TO BE REMOVED ONCE WEB HAS BEEN ALTERED.
|
|
|
|
/// </summary>
|
|
|
|
public int BlastAliveMessageIntervalSeconds
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return AliveMessageIntervalSeconds;
|
|
|
|
}
|
|
|
|
|
|
|
|
set
|
|
|
|
{
|
|
|
|
AliveMessageIntervalSeconds = value;
|
|
|
|
}
|
|
|
|
}
|
2020-01-22 15:00:07 -05:00
|
|
|
|
2020-09-13 09:18:15 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the default user account that the dlna server uses.
|
|
|
|
/// </summary>
|
2021-07-26 17:02:32 -04:00
|
|
|
public string? DefaultUserId { get; set; }
|
2020-09-13 09:18:15 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether playTo device profiles should be created.
|
|
|
|
/// </summary>
|
|
|
|
public bool AutoCreatePlayToProfiles { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-09-28 02:49:08 -04:00
|
|
|
/// Gets or sets a value indicating whether to blast alive messages.
|
2020-09-13 09:18:15 -04:00
|
|
|
/// </summary>
|
|
|
|
public bool BlastAliveMessages { get; set; } = true;
|
|
|
|
|
|
|
|
/// <summary>
|
2020-09-28 02:49:36 -04:00
|
|
|
/// gets or sets a value indicating whether to send only matched host.
|
2020-09-13 09:18:15 -04:00
|
|
|
/// </summary>
|
|
|
|
public bool SendOnlyMatchedHost { get; set; } = true;
|
2014-03-10 13:38:53 -04:00
|
|
|
}
|
|
|
|
}
|