1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Allow VideoStreamCopy for remote source fallback

During LiveTV playback, a fallback is usually needed because the first attempt would be try to direct play the remote url of that channel. If that failed we should still allow stream copy because the playback would still success in this case. The server side will enforce the most compatible format (h264+ts) and still do transcoding if that condition is not met.
This commit is contained in:
gnattu 2024-05-28 01:33:29 +08:00
parent ea1cadf4b6
commit a66e4d6d1a

View file

@ -3304,10 +3304,10 @@ class PlaybackManager {
const startTime = getCurrentTicks(player) || streamInfo.playerStartPositionTicks;
changeStream(player, startTime, {
// force transcoding
// force transcoding and only allow remuxing for remote source like liveTV
EnableDirectPlay: false,
EnableDirectStream: false,
AllowVideoStreamCopy: false,
AllowVideoStreamCopy: streamInfo.item.LocationType === 'Remote' ? true : false,
AllowAudioStreamCopy: currentlyPreventsAudioStreamCopy || currentlyPreventsVideoStreamCopy ? false : null
});