From 31b5027b1e4115a0266a28dfec73c96b31510f0b Mon Sep 17 00:00:00 2001 From: Elias Saalmann Date: Fri, 29 Jan 2021 12:38:26 +0100 Subject: =?UTF-8?q?Fix=20issue=20with=20not=20entering=20iosfullscreen=20o?= =?UTF-8?q?f=20vimeo=20videos=20with=20playsi=E2=80=A6=20(#2038)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix issue with not entering iosfullscreen of vimeo videos with playsinline=true * Use isVimeo-function instead of hardcoded value Co-authored-by: Julian Frosch --- src/js/fullscreen.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js index 7bb22391..90301f29 100644 --- a/src/js/fullscreen.js +++ b/src/js/fullscreen.js @@ -254,7 +254,11 @@ class Fullscreen { // iOS native fullscreen doesn't need the request step if (browser.isIos && this.player.config.fullscreen.iosNative) { - this.target.webkitEnterFullscreen(); + if (this.player.isVimeo) { + this.player.embed.requestFullscreen(); + } else { + this.target.webkitEnterFullscreen(); + } } else if (!Fullscreen.native || this.forceFallback) { this.toggleFallback(true); } else if (!this.prefix) { -- cgit v1.2.3