Merge pull request #15926 from abitofevrything/feat/accurate_hls_seeking

Refactor HLS transcode seeking
This commit is contained in:
Abitofevrything
2026-01-18 12:17:06 +01:00
committed by GitHub
parent b9abf590c5
commit 8d052a6cb1
31 changed files with 61 additions and 188 deletions

View File

@@ -515,21 +515,6 @@ namespace MediaBrowser.Controller.MediaEncoding
public int HlsListSize => 0;
public bool EnableBreakOnNonKeyFrames(string videoCodec)
{
if (TranscodingType != TranscodingJobType.Progressive)
{
if (IsSegmentedLiveStream)
{
return false;
}
return BaseRequest.BreakOnNonKeyFrames && EncodingHelper.IsCopyCodec(videoCodec);
}
return false;
}
private int? GetMediaStreamCount(MediaStreamType type, int limit)
{
var count = MediaSource.GetStreamCount(type);