1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-03 00:57:02 +02:00

Always unpatch canPlayType.

Fix up tests to not ignore some if canPlayType is not available since
unpatch is no longer broken.
This commit is contained in:
Gary Katsevman
2014-03-26 16:59:04 -04:00
parent e2a1cac136
commit e39557e790
2 changed files with 5 additions and 9 deletions

View File

@ -304,11 +304,9 @@ vjs.Html5.canControlVolume = function(){
vjs.Html5.unpatchCanPlayType = function() {
var r = vjs.TEST_VID.constructor.prototype.canPlayType;
if (canPlayType) {
vjs.TEST_VID.constructor.prototype.canPlayType = canPlayType;
canPlayType = null;
return r;
}
vjs.TEST_VID.constructor.prototype.canPlayType = canPlayType;
canPlayType = null;
return r;
};
// by default, patch the video element