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
(cherry picked from commit 76ca94094b
)
Signed-off-by: crobibero <cody@robibe.ro>
This commit is contained in:
parent
0b19f0d85e
commit
0db3472cc6
1 changed files with 1 additions and 1 deletions
|
@ -3040,7 +3040,7 @@ class PlaybackManager {
|
||||||
|
|
||||||
const streamInfo = error.streamInfo || getPlayerData(player).streamInfo;
|
const streamInfo = error.streamInfo || getPlayerData(player).streamInfo;
|
||||||
|
|
||||||
if (streamInfo) {
|
if (streamInfo?.url) {
|
||||||
const currentlyPreventsVideoStreamCopy = streamInfo.url.toLowerCase().indexOf('allowvideostreamcopy=false') !== -1;
|
const currentlyPreventsVideoStreamCopy = streamInfo.url.toLowerCase().indexOf('allowvideostreamcopy=false') !== -1;
|
||||||
const currentlyPreventsAudioStreamCopy = streamInfo.url.toLowerCase().indexOf('allowaudiostreamcopy=false') !== -1;
|
const currentlyPreventsAudioStreamCopy = streamInfo.url.toLowerCase().indexOf('allowaudiostreamcopy=false') !== -1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue