The Free Software Media System - Server Backend & API
change HLS endpoint defaults to false
cvium7dedeb6c795c
diff --git a/Emby.Dlna/PlayTo/PlayToController.cs b/Emby.Dlna/PlayTo/PlayToController.csindex 5abc1bc134..6021da51db 100644--- a/Emby.Dlna/PlayTo/PlayToController.cs+++ b/Emby.Dlna/PlayTo/PlayToController.cs@@ -945,7 +945,7 @@ namespace Emby.Dlna.PlayTorequest.LiveStreamId = values.GetValueOrDefault("LiveStreamId");// Be careful, IsDirectStream==true by default (Static != false or not in query).- // See initialization of StreamingRequestDto in AudioController.GetAudioStream() method : Static = @static ?? true.+ // See initialization of StreamingRequestDto in AudioController.GetAudioStream() method : Static = @static ?? false.request.IsDirectStream = !string.Equals("false", values.GetValueOrDefault("Static"), StringComparison.OrdinalIgnoreCase);request.AudioStreamIndex = GetIntValue(values, "AudioStreamIndex");diff --git a/Jellyfin.Api/Controllers/AudioController.cs b/Jellyfin.Api/Controllers/AudioController.csindex 8b1813b200..a6e70e72d3 100644--- a/Jellyfin.Api/Controllers/AudioController.cs+++ b/Jellyfin.Api/Controllers/AudioController.cs@@ -144,7 +144,7 @@ namespace Jellyfin.Api.Controllers{Id = itemId,Container = container,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -168,7 +168,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -177,13 +177,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,@@ -309,7 +309,7 @@ namespace Jellyfin.Api.Controllers{Id = itemId,Container = container,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -333,7 +333,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -342,13 +342,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.csindex f6c23c5aad..c4e75fe859 100644--- a/Jellyfin.Api/Controllers/DynamicHlsController.cs+++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs@@ -225,7 +225,7 @@ namespace Jellyfin.Api.Controllersvar streamingRequest = new HlsVideoRequestDto{Id = itemId,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -249,7 +249,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -258,13 +258,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,@@ -392,7 +392,7 @@ namespace Jellyfin.Api.Controllersvar streamingRequest = new HlsAudioRequestDto{Id = itemId,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -416,7 +416,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -425,13 +425,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,@@ -555,7 +555,7 @@ namespace Jellyfin.Api.Controllersvar streamingRequest = new VideoRequestDto{Id = itemId,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -579,7 +579,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -588,13 +588,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,@@ -720,7 +720,7 @@ namespace Jellyfin.Api.Controllersvar streamingRequest = new StreamingRequestDto{Id = itemId,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -744,7 +744,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -753,13 +753,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,@@ -890,7 +890,7 @@ namespace Jellyfin.Api.Controllers{Id = itemId,Container = container,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -914,7 +914,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -923,13 +923,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,@@ -1062,7 +1062,7 @@ namespace Jellyfin.Api.Controllers{Id = itemId,Container = container,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -1086,7 +1086,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -1095,13 +1095,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,diff --git a/Jellyfin.Api/Controllers/UniversalAudioController.cs b/Jellyfin.Api/Controllers/UniversalAudioController.csindex 0c2e6f19f1..dcdd8b3677 100644--- a/Jellyfin.Api/Controllers/UniversalAudioController.cs+++ b/Jellyfin.Api/Controllers/UniversalAudioController.cs@@ -219,10 +219,10 @@ namespace Jellyfin.Api.ControllersAudioBitRate = audioBitRate ?? maxStreamingBitrate,StartTimeTicks = startTimeTicks,SubtitleMethod = SubtitleDeliveryMethod.Hls,- RequireAvc = true,- DeInterlace = true,- RequireNonAnamorphic = true,- EnableMpegtsM2TsMode = true,+ RequireAvc = false,+ DeInterlace = false,+ RequireNonAnamorphic = false,+ EnableMpegtsM2TsMode = false,TranscodeReasons = mediaSource.TranscodeReasons == null ? null : string.Join(',', mediaSource.TranscodeReasons.Select(i => i.ToString()).ToArray()),Context = EncodingContext.Static,StreamOptions = new Dictionary<string, string>(),diff --git a/Jellyfin.Api/Controllers/VideoHlsController.cs b/Jellyfin.Api/Controllers/VideoHlsController.csindex 620eef5680..e95410d024 100644--- a/Jellyfin.Api/Controllers/VideoHlsController.cs+++ b/Jellyfin.Api/Controllers/VideoHlsController.cs@@ -223,7 +223,7 @@ namespace Jellyfin.Api.Controllers{Id = itemId,Container = container,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -247,7 +247,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -256,13 +256,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,diff --git a/Jellyfin.Api/Controllers/VideosController.cs b/Jellyfin.Api/Controllers/VideosController.csindex 99654e7b0d..699ca53278 100644--- a/Jellyfin.Api/Controllers/VideosController.cs+++ b/Jellyfin.Api/Controllers/VideosController.cs@@ -386,7 +386,7 @@ namespace Jellyfin.Api.Controllers{Id = itemId,Container = container,- Static = @static ?? true,+ Static = @static ?? false,Params = @params,Tag = tag,DeviceProfileId = deviceProfileId,@@ -410,7 +410,7 @@ namespace Jellyfin.Api.ControllersLevel = level,Framerate = framerate,MaxFramerate = maxFramerate,- CopyTimestamps = copyTimestamps ?? true,+ CopyTimestamps = copyTimestamps ?? false,StartTimeTicks = startTimeTicks,Width = width,Height = height,@@ -419,13 +419,13 @@ namespace Jellyfin.Api.ControllersSubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,MaxRefFrames = maxRefFrames,MaxVideoBitDepth = maxVideoBitDepth,- RequireAvc = requireAvc ?? true,- DeInterlace = deInterlace ?? true,- RequireNonAnamorphic = requireNonAnamorphic ?? true,+ RequireAvc = requireAvc ?? false,+ DeInterlace = deInterlace ?? false,+ RequireNonAnamorphic = requireNonAnamorphic ?? false,TranscodingMaxAudioChannels = transcodingMaxAudioChannels,CpuCoreLimit = cpuCoreLimit,LiveStreamId = liveStreamId,- EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? true,+ EnableMpegtsM2TsMode = enableMpegtsM2TsMode ?? false,VideoCodec = videoCodec,SubtitleCodec = subtitleCodec,TranscodeReasons = transcodeReasons,diff --git a/MediaBrowser.Model/Dlna/StreamInfo.cs b/MediaBrowser.Model/Dlna/StreamInfo.csindex 29da5d9e7f..475bea4cdb 100644--- a/MediaBrowser.Model/Dlna/StreamInfo.cs+++ b/MediaBrowser.Model/Dlna/StreamInfo.cs@@ -631,7 +631,7 @@ namespace MediaBrowser.Model.Dlna}// Be careful, IsDirectStream==true by default (Static != false or not in query).- // See initialization of StreamingRequestDto in AudioController.GetAudioStream() method : Static = @static ?? true.+ // See initialization of StreamingRequestDto in AudioController.GetAudioStream() method : Static = @static ?? false.if (string.Equals(pair.Name, "Static", StringComparison.OrdinalIgnoreCase) &&string.Equals(pair.Value, "true", StringComparison.OrdinalIgnoreCase)){