diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index b566e22bf5..5f8a20dcee 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -503,7 +503,7 @@ var h264Codec = 'h264'; var h264AudioCodec = 'aac'; - if (videoStream.Width && videoStream.Width <= baseParams.maxWidth) { + if (videoStream && videoStream.Width && videoStream.Width <= baseParams.maxWidth) { var videoCodec = (videoStream.Codec || '').toLowerCase();