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

Merge pull request #143 from andchen/master

Added "exitFullScreen" in tech.js. For those browsers that have "supportsFullScreen"
This commit is contained in:
Steve Heffernan 2012-03-22 15:00:43 -07:00
commit b01ca8e805

View File

@ -173,6 +173,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; },