|
|
@ -77,6 +77,7 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
public class UniversalAudioService : BaseApiService
|
|
|
|
public class UniversalAudioService : BaseApiService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public UniversalAudioService(
|
|
|
|
public UniversalAudioService(
|
|
|
|
|
|
|
|
IHttpClient httpClient,
|
|
|
|
IServerConfigurationManager serverConfigurationManager,
|
|
|
|
IServerConfigurationManager serverConfigurationManager,
|
|
|
|
IUserManager userManager,
|
|
|
|
IUserManager userManager,
|
|
|
|
ILibraryManager libraryManager,
|
|
|
|
ILibraryManager libraryManager,
|
|
|
@ -95,6 +96,7 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
IEnvironmentInfo environmentInfo,
|
|
|
|
IEnvironmentInfo environmentInfo,
|
|
|
|
ILoggerFactory loggerFactory)
|
|
|
|
ILoggerFactory loggerFactory)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
HttpClient = httpClient;
|
|
|
|
ServerConfigurationManager = serverConfigurationManager;
|
|
|
|
ServerConfigurationManager = serverConfigurationManager;
|
|
|
|
UserManager = userManager;
|
|
|
|
UserManager = userManager;
|
|
|
|
LibraryManager = libraryManager;
|
|
|
|
LibraryManager = libraryManager;
|
|
|
@ -115,6 +117,7 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
_logger = loggerFactory.CreateLogger(nameof(UniversalAudioService));
|
|
|
|
_logger = loggerFactory.CreateLogger(nameof(UniversalAudioService));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected IHttpClient HttpClient { get; private set; }
|
|
|
|
protected IServerConfigurationManager ServerConfigurationManager { get; private set; }
|
|
|
|
protected IServerConfigurationManager ServerConfigurationManager { get; private set; }
|
|
|
|
protected IUserManager UserManager { get; private set; }
|
|
|
|
protected IUserManager UserManager { get; private set; }
|
|
|
|
protected ILibraryManager LibraryManager { get; private set; }
|
|
|
|
protected ILibraryManager LibraryManager { get; private set; }
|
|
|
@ -323,7 +326,8 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var service = new AudioService(ServerConfigurationManager,
|
|
|
|
var service = new AudioService(HttpClient,
|
|
|
|
|
|
|
|
ServerConfigurationManager,
|
|
|
|
UserManager,
|
|
|
|
UserManager,
|
|
|
|
LibraryManager,
|
|
|
|
LibraryManager,
|
|
|
|
IsoManager,
|
|
|
|
IsoManager,
|
|
|
|