Browse Source

Fix missing service registration for MediaSegments (#12392)

JPVenson 11 tháng trước cách đây
mục cha
commit
d5fdb9c3a7
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Emby.Server.Implementations/ApplicationHost.cs

+ 3 - 0
Emby.Server.Implementations/ApplicationHost.cs

@@ -40,6 +40,7 @@ using Jellyfin.MediaEncoding.Hls.Playlist;
 using Jellyfin.Networking.Manager;
 using Jellyfin.Networking.Udp;
 using Jellyfin.Server.Implementations;
+using Jellyfin.Server.Implementations.MediaSegments;
 using MediaBrowser.Common;
 using MediaBrowser.Common.Configuration;
 using MediaBrowser.Common.Events;
@@ -552,6 +553,8 @@ namespace Emby.Server.Implementations
             serviceCollection.AddScoped<DynamicHlsHelper>();
             serviceCollection.AddScoped<IClientEventLogger, ClientEventLogger>();
             serviceCollection.AddSingleton<IDirectoryService, DirectoryService>();
+
+            serviceCollection.AddSingleton<IMediaSegmentManager, MediaSegmentManager>();
         }
 
         /// <summary>