mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
Make Live TV compatibility profiles customizable (#12529)
This commit is contained in:
@@ -331,6 +331,8 @@ namespace Jellyfin.LiveTv.TunerHosts.HdHomerun
|
||||
SupportsTranscoding = true,
|
||||
IsInfiniteStream = true,
|
||||
IgnoreDts = true,
|
||||
UseMostCompatibleTranscodingProfile = true, // All HDHR tuners require this
|
||||
FallbackMaxStreamingBitrate = info.FallbackMaxStreamingBitrate,
|
||||
// IgnoreIndex = true,
|
||||
// ReadAtNativeFramerate = true
|
||||
};
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Jellyfin.LiveTv.TunerHosts
|
||||
|
||||
var mediaSource = sources[0];
|
||||
|
||||
if (mediaSource.Protocol == MediaProtocol.Http && !mediaSource.RequiresLooping)
|
||||
if (tunerHost.AllowStreamSharing && mediaSource.Protocol == MediaProtocol.Http && !mediaSource.RequiresLooping)
|
||||
{
|
||||
var extension = Path.GetExtension(new UriBuilder(mediaSource.Path).Path);
|
||||
|
||||
@@ -200,7 +200,9 @@ namespace Jellyfin.LiveTv.TunerHosts
|
||||
SupportsDirectPlay = supportsDirectPlay,
|
||||
SupportsDirectStream = supportsDirectStream,
|
||||
|
||||
RequiredHttpHeaders = httpHeaders
|
||||
RequiredHttpHeaders = httpHeaders,
|
||||
UseMostCompatibleTranscodingProfile = !info.AllowFmp4TranscodingContainer,
|
||||
FallbackMaxStreamingBitrate = info.FallbackMaxStreamingBitrate
|
||||
};
|
||||
|
||||
mediaSource.InferTotalBitrate();
|
||||
|
||||
Reference in New Issue
Block a user