From 118f9e19209ca577a203ecded2acbed7036b4754 Mon Sep 17 00:00:00 2001 From: Kay Simons Date: Thu, 16 Sep 2021 17:59:37 +0200 Subject: [PATCH] fix: do not repeat fullscreen hack if already set --- src/plugins/htmlVideoPlayer/plugin.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 9161ffb562..d95cfccf69 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1389,6 +1389,13 @@ function tryRemoveElement(elem) { // we need to hide scrollbar when starting playback from page with animated background if (options.fullscreen) { document.body.classList.add('hide-scroll'); + + // Enter fullscreen in the webOS browser to hide the top bar + if (!this.forcedFullscreen && !window.NativeShell && browser.web0s && Screenfull.isEnabled) { + Screenfull.request().then(() => { + this.forcedFullscreen = true; + }); + } } return Promise.resolve(dlg.querySelector('video'));