diff --git a/Decorators/MediaSourceManagerDecorator.cs b/Decorators/MediaSourceManagerDecorator.cs index 870fa19..a0c0343 100644 --- a/Decorators/MediaSourceManagerDecorator.cs +++ b/Decorators/MediaSourceManagerDecorator.cs @@ -1,3 +1,4 @@ +using System.Collections.Concurrent; using System.Globalization; using System.IO; using Gelato.Providers; @@ -18,12 +19,15 @@ using MediaBrowser.Controller.Persistence; using MediaBrowser.Controller.Providers; using MediaBrowser.Controller.Subtitles; +using MediaBrowser.Controller.Session; +using MediaBrowser.Controller.SyncPlay; using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Dlna; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using MediaBrowser.Model.MediaInfo; using MediaBrowser.Model.Providers; +using MediaBrowser.Model.Session; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; @@ -41,7 +45,9 @@ public sealed class MediaSourceManagerDecorator( Lazy manager, Lazy subtitleProvider, IMediaSegmentManager mediaSegmentManager, - IEnumerable> videoProbeProviders + IEnumerable> videoProbeProviders, + Lazy syncPlayManager, + Lazy sessionManager ) : IMediaSourceManager { private readonly IMediaSourceManager _inner = @@ -61,9 +67,14 @@ IEnumerable> videoProbeProviders private readonly Lazy _subtitleProvider = subtitleProvider; // private readonly Lazy _subtitleManager = subtitleManager ?? throw new ArgumentNullException(nameof(subtitleManager)); + private readonly Lazy _syncPlayManager = syncPlayManager; + private readonly Lazy _sessionManager = sessionManager; private readonly ICustomMetadataProvider