mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
This will be the right way for multiple interfaces, or the client will receive all devices message with different IP addresses and could not detect which one could access. And provide one option DlnaOptions.SendOnlyMatchedHost to fallback to old behaviour if this commit missed something.
25 lines
807 B
C#
25 lines
807 B
C#
|
|
namespace Emby.Dlna.Configuration
|
|
{
|
|
public class DlnaOptions
|
|
{
|
|
public bool EnablePlayTo { get; set; }
|
|
public bool EnableServer { get; set; }
|
|
public bool EnableDebugLog { get; set; }
|
|
public bool BlastAliveMessages { get; set; }
|
|
public bool SendOnlyMatchedHost { get; set; }
|
|
public int ClientDiscoveryIntervalSeconds { get; set; }
|
|
public int BlastAliveMessageIntervalSeconds { get; set; }
|
|
public string DefaultUserId { get; set; }
|
|
|
|
public DlnaOptions()
|
|
{
|
|
EnablePlayTo = true;
|
|
EnableServer = true;
|
|
BlastAliveMessages = true;
|
|
SendOnlyMatchedHost = true;
|
|
ClientDiscoveryIntervalSeconds = 60;
|
|
BlastAliveMessageIntervalSeconds = 1800;
|
|
}
|
|
}
|
|
}
|