mirror of
https://github.com/videojs/video.js.git
synced 2024-12-10 11:10:19 +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:
parent
1eda892c86
commit
4bc04c2e45
10
src/tech.js
10
src/tech.js
@ -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; },
|
src: function(src){ this.el.src = src; },
|
||||||
load: function(){ this.el.load(); },
|
load: function(){ this.el.load(); },
|
||||||
currentSrc: function(){ return this.el.currentSrc; },
|
currentSrc: function(){ return this.el.currentSrc; },
|
||||||
|
Loading…
Reference in New Issue
Block a user