diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index 8c151ee6c9..f77cd4902e 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -1204,7 +1204,10 @@ message: errorMsg }); - self.onPlaybackStopped.call(mediaRenderer); + var mediaRenderer = self.currentMediaRenderer; + if (mediaRenderer) { + self.onPlaybackStopped.call(mediaRenderer); + } self.nextTrack(); }