From 0db3472cc610694a6e9291c6dc8fca38818eabb4 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 5 May 2022 01:51:08 -0400 Subject: [PATCH] Merge pull request #3614 from dmitrylyzo/fix-undefined-streaminfo-url Check undefined streamInfo.url (cherry picked from commit 76ca94094bc440838624bea6af104a2c75905d21) Signed-off-by: crobibero --- src/components/playback/playbackmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 61ee1aed3..6aae77d83 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -3040,7 +3040,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;