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:
commit
b01ca8e805
10
src/tech.js
10
src/tech.js
@ -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; },
|
||||
|
Loading…
Reference in New Issue
Block a user