diff options
author | Elias Saalmann <lordon@users.noreply.github.com> | 2021-01-29 12:38:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 22:38:26 +1100 |
commit | 31b5027b1e4115a0266a28dfec73c96b31510f0b (patch) | |
tree | b3d36947beea5e0d70ce28f41d85ee2c359fc0ed /src/js | |
parent | 77503140580aa3028ce12aab072fd596a45ad2ef (diff) | |
download | plyr-31b5027b1e4115a0266a28dfec73c96b31510f0b.tar.lz plyr-31b5027b1e4115a0266a28dfec73c96b31510f0b.tar.xz plyr-31b5027b1e4115a0266a28dfec73c96b31510f0b.zip |
Fix issue with not entering iosfullscreen of vimeo videos with playsi… (#2038)
* Fix issue with not entering iosfullscreen of vimeo videos with playsinline=true
* Use isVimeo-function instead of hardcoded value
Co-authored-by: Julian Frosch <julian.frosch@gmail.com>
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/fullscreen.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |