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:
parent
00a38f76a7
commit
d90cee588a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user