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:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user