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

Merge pull request #3614 from dmitrylyzo/fix-undefined-streaminfo-url

Check undefined streamInfo.url
This commit is contained in:
Bill Thornton 2022-05-05 01:51:08 -04:00 committed by GitHub
commit 76ca94094b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;