From a2336fb26ce56100d7dad37f3bfc7676eacbe341 Mon Sep 17 00:00:00 2001 From: Tim Hobbs Date: Tue, 11 Mar 2014 00:54:10 +0000 Subject: [PATCH] Fix for video playback error cleanup Also added a little logging - trying to determine why certain videos just won't work in IE --- dashboard-ui/scripts/mediaplayer-video.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index 55f833939b..729be638c0 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -993,12 +993,14 @@ self.setCurrentTime(self.getCurrentTicks(this), item, true); } - }).on("error", function () { + }).on("error", function (e) { $("html").css("cursor", "default"); + $(".ui-loader").hide(); + self.resetEnhancements(); var errorCode = this.error ? this.error.code : ''; - console.log('Html5 Video error code: ' + errorCode, this.error); + console.log('Html5 Video error code: ' + errorCode, JSON.stringify(e)); var errorMsg = 'There was an error playing the video.';