Update Jellyfin.Api/Controllers/VideoHlsController.cs

pull/5836/head
Cody Robibero 3 years ago committed by GitHub
parent 634ce40c2f
commit 17f43c8e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -366,8 +366,7 @@ namespace Jellyfin.Api.Controllers
else 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 configured
outputFmp4HeaderArg = " -hls_fmp4_init_filename \"" + outputPrefix + "-1" + outputExtension + "\"";

Loading…
Cancel
Save