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:
parent
ea1cadf4b6
commit
a66e4d6d1a
1 changed files with 2 additions and 2 deletions
|
@ -3304,10 +3304,10 @@ class PlaybackManager {
|
||||||
const startTime = getCurrentTicks(player) || streamInfo.playerStartPositionTicks;
|
const startTime = getCurrentTicks(player) || streamInfo.playerStartPositionTicks;
|
||||||
|
|
||||||
changeStream(player, startTime, {
|
changeStream(player, startTime, {
|
||||||
// force transcoding
|
// force transcoding and only allow remuxing for remote source like liveTV
|
||||||
EnableDirectPlay: false,
|
EnableDirectPlay: false,
|
||||||
EnableDirectStream: false,
|
EnableDirectStream: false,
|
||||||
AllowVideoStreamCopy: false,
|
AllowVideoStreamCopy: streamInfo.item.LocationType === 'Remote' ? true : false,
|
||||||
AllowAudioStreamCopy: currentlyPreventsAudioStreamCopy || currentlyPreventsVideoStreamCopy ? false : null
|
AllowAudioStreamCopy: currentlyPreventsAudioStreamCopy || currentlyPreventsVideoStreamCopy ? false : null
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue