The Free Software Media System - Server Backend & API
Update Jellyfin.Api/Controllers/VideoHlsController.cs
Cody Robibero17f43c8e01a7
diff --git a/Jellyfin.Api/Controllers/VideoHlsController.cs b/Jellyfin.Api/Controllers/VideoHlsController.csindex bdd2612d1e..36643e464c 100644--- a/Jellyfin.Api/Controllers/VideoHlsController.cs+++ b/Jellyfin.Api/Controllers/VideoHlsController.cs@@ -366,8 +366,7 @@ namespace Jellyfin.Api.Controllerselse if (string.Equals(segmentFormat, "mp4", StringComparison.OrdinalIgnoreCase)){string outputFmp4HeaderArg;- var isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);- if (isWindows)+ if (OperatingSystem.IsWindows()){// on Windows, the path of fmp4 header file needs to be configuredoutputFmp4HeaderArg = " -hls_fmp4_init_filename \"" + outputPrefix + "-1" + outputExtension + "\"";