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

fix: Check undefined streamInfo.url

When remuxing and transcoding are disabled and the media
cannot be played direct, `streamInfo.url` is not set.
This commit is contained in:
Dmitry Lyzo 2022-05-03 21:45:12 +03:00
parent 4792631f06
commit a5163d0be4

View file

@ -3034,7 +3034,7 @@ class PlaybackManager {
const streamInfo = error.streamInfo || getPlayerData(player).streamInfo;
if (streamInfo) {
if (streamInfo?.url) {
const currentlyPreventsVideoStreamCopy = streamInfo.url.toLowerCase().indexOf('allowvideostreamcopy=false') !== -1;
const currentlyPreventsAudioStreamCopy = streamInfo.url.toLowerCase().indexOf('allowaudiostreamcopy=false') !== -1;