diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 61ee1aed31..6aae77d834 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;