1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-02 09:11:54 +02:00

Added "exitFullScreen" in tech.js. For those browsers that have "supportsFullScreen"

false, it would throw "undefined" error when calling "exitFullScreen".
This commit is contained in:
Andy Chen 2012-02-02 09:42:56 -05:00
parent 1eda892c86
commit 4bc04c2e45

View File

@ -171,6 +171,16 @@ _V_.html5 = _V_.PlaybackTech.extend({
}
}
},
exitFullScreen: function(){
try {
this.el.webkitExitFullScreen();
} catch (e) {
if (e.code == 11) {
// this.warning(VideoJS.warnings.videoNotReady);
_V_.log("VideoJS: Video not ready.")
}
}
},
src: function(src){ this.el.src = src; },
load: function(){ this.el.load(); },
currentSrc: function(){ return this.el.currentSrc; },