|
|
@ -33,7 +33,7 @@ namespace Emby.Dlna.Main
|
|
|
|
public class DlnaEntryPoint : IServerEntryPoint, IRunBeforeStartup
|
|
|
|
public class DlnaEntryPoint : IServerEntryPoint, IRunBeforeStartup
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly IServerConfigurationManager _config;
|
|
|
|
private readonly IServerConfigurationManager _config;
|
|
|
|
private readonly ILogger _logger;
|
|
|
|
private readonly ILogger<DlnaEntryPoint> _logger;
|
|
|
|
private readonly IServerApplicationHost _appHost;
|
|
|
|
private readonly IServerApplicationHost _appHost;
|
|
|
|
|
|
|
|
|
|
|
|
private PlayToManager _manager;
|
|
|
|
private PlayToManager _manager;
|
|
|
@ -65,7 +65,8 @@ namespace Emby.Dlna.Main
|
|
|
|
|
|
|
|
|
|
|
|
public static DlnaEntryPoint Current;
|
|
|
|
public static DlnaEntryPoint Current;
|
|
|
|
|
|
|
|
|
|
|
|
public DlnaEntryPoint(IServerConfigurationManager config,
|
|
|
|
public DlnaEntryPoint(
|
|
|
|
|
|
|
|
IServerConfigurationManager config,
|
|
|
|
ILoggerFactory loggerFactory,
|
|
|
|
ILoggerFactory loggerFactory,
|
|
|
|
IServerApplicationHost appHost,
|
|
|
|
IServerApplicationHost appHost,
|
|
|
|
ISessionManager sessionManager,
|
|
|
|
ISessionManager sessionManager,
|
|
|
@ -99,7 +100,7 @@ namespace Emby.Dlna.Main
|
|
|
|
_mediaEncoder = mediaEncoder;
|
|
|
|
_mediaEncoder = mediaEncoder;
|
|
|
|
_socketFactory = socketFactory;
|
|
|
|
_socketFactory = socketFactory;
|
|
|
|
_networkManager = networkManager;
|
|
|
|
_networkManager = networkManager;
|
|
|
|
_logger = loggerFactory.CreateLogger("Dlna");
|
|
|
|
_logger = loggerFactory.CreateLogger<DlnaEntryPoint>();
|
|
|
|
|
|
|
|
|
|
|
|
ContentDirectory = new ContentDirectory.ContentDirectory(
|
|
|
|
ContentDirectory = new ContentDirectory.ContentDirectory(
|
|
|
|
dlnaManager,
|
|
|
|
dlnaManager,
|
|
|
@ -347,7 +348,8 @@ namespace Emby.Dlna.Main
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_manager = new PlayToManager(_logger,
|
|
|
|
_manager = new PlayToManager(
|
|
|
|
|
|
|
|
_logger,
|
|
|
|
_sessionManager,
|
|
|
|
_sessionManager,
|
|
|
|
_libraryManager,
|
|
|
|
_libraryManager,
|
|
|
|
_userManager,
|
|
|
|
_userManager,
|
|
|
|