Merge pull request #1147 from jamesoflol/fix-ios-fullscreen-while-stopped

Remove 'video is playing' requirement for iosNative fullscreen
This commit is contained in:
Sam Potts 2018-08-05 22:46:58 +10:00 committed by GitHub
commit 75374eb154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,9 +177,7 @@ class Fullscreen {
// iOS native fullscreen doesn't need the request step
if (browser.isIos && this.player.config.fullscreen.iosNative) {
if (this.player.playing) {
this.target.webkitEnterFullscreen();
}
this.target.webkitEnterFullscreen();
} else if (!Fullscreen.native) {
toggleFallback.call(this, true);
} else if (!this.prefix) {