mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-29 20:24:47 +03:00
restore ForceLiveStream param
This commit is contained in:
@@ -282,19 +282,12 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||
{
|
||||
var isLiveStream = (state.RunTimeTicks ?? 0) == 0;
|
||||
|
||||
return isLiveStream;
|
||||
}
|
||||
|
||||
protected override bool CanStreamCopyAudio(StreamState state, List<string> supportedAudioCodecs)
|
||||
{
|
||||
var isLiveStream = IsLiveStream(state);
|
||||
|
||||
if (!isLiveStream)
|
||||
if (state.VideoRequest.ForceLiveStream)
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.CanStreamCopyAudio(state, supportedAudioCodecs);
|
||||
return isLiveStream;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user