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:
@ -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
|
||||
|
Reference in New Issue
Block a user