mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fix regressions introduced by #3098
This commit is contained in:
@@ -75,9 +75,11 @@ namespace MediaBrowser.Api.Playback
|
||||
public class UniversalAudioService : BaseApiService
|
||||
{
|
||||
private readonly EncodingHelper _encodingHelper;
|
||||
private readonly ILoggerFactory _loggerFactory;
|
||||
|
||||
public UniversalAudioService(
|
||||
ILogger<UniversalAudioService> logger,
|
||||
ILoggerFactory loggerFactory,
|
||||
IServerConfigurationManager serverConfigurationManager,
|
||||
IHttpResultFactory httpResultFactory,
|
||||
IHttpClient httpClient,
|
||||
@@ -108,6 +110,7 @@ namespace MediaBrowser.Api.Playback
|
||||
AuthorizationContext = authorizationContext;
|
||||
NetworkManager = networkManager;
|
||||
_encodingHelper = encodingHelper;
|
||||
_loggerFactory = loggerFactory;
|
||||
}
|
||||
|
||||
protected IHttpClient HttpClient { get; private set; }
|
||||
@@ -233,7 +236,7 @@ namespace MediaBrowser.Api.Playback
|
||||
AuthorizationContext.GetAuthorizationInfo(Request).DeviceId = request.DeviceId;
|
||||
|
||||
var mediaInfoService = new MediaInfoService(
|
||||
Logger,
|
||||
_loggerFactory.CreateLogger<MediaInfoService>(),
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
MediaSourceManager,
|
||||
@@ -277,7 +280,7 @@ namespace MediaBrowser.Api.Playback
|
||||
if (!isStatic && string.Equals(mediaSource.TranscodingSubProtocol, "hls", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var service = new DynamicHlsService(
|
||||
Logger,
|
||||
_loggerFactory.CreateLogger<DynamicHlsService>(),
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
UserManager,
|
||||
@@ -331,7 +334,7 @@ namespace MediaBrowser.Api.Playback
|
||||
else
|
||||
{
|
||||
var service = new AudioService(
|
||||
Logger,
|
||||
_loggerFactory.CreateLogger<AudioService>(),
|
||||
ServerConfigurationManager,
|
||||
ResultFactory,
|
||||
HttpClient,
|
||||
|
||||
Reference in New Issue
Block a user