1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-04 06:48:49 +02:00

Removed try catch from requestFullScreen

This commit is contained in:
Josh Pickett 2011-12-01 16:35:13 -08:00
parent 00a38f76a7
commit d90cee588a

View File

@ -439,14 +439,7 @@ _V_.Player.prototype.extend({
enterFullScreen: function(){
this.videoIsFullScreen = true;
if (typeof this.el.webkitRequestFullScreen == 'function') {
try {
this.el.webkitRequestFullScreen();
} catch (e) {
if (e.code == 11) {
// this.warning(VideoJS.warnings.videoNotReady);
_V_.log("VideoJS: Video not ready.")
}
}
this.el.webkitRequestFullScreen();
} else if (this.supportsFullScreen()) {
this.apiCall("enterFullScreen");
} else {