1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix for video playback error cleanup

Also added a little logging - trying to determine why certain videos
just won't work in IE
This commit is contained in:
Tim Hobbs 2014-03-11 00:54:10 +00:00
parent 451686bb82
commit a2336fb26c

View file

@ -993,12 +993,14 @@
self.setCurrentTime(self.getCurrentTicks(this), item, true); self.setCurrentTime(self.getCurrentTicks(this), item, true);
} }
}).on("error", function () { }).on("error", function (e) {
$("html").css("cursor", "default"); $("html").css("cursor", "default");
$(".ui-loader").hide();
self.resetEnhancements();
var errorCode = this.error ? this.error.code : ''; 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.'; var errorMsg = 'There was an error playing the video.';