From 0c10a6ed2e524d5232e1a5e6a1eeaccf1200e131 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Thu, 28 Oct 2021 12:31:42 +0530 Subject: [PATCH] add navigationUI: 'hide' to hide navigation UI on fullscreen on phones --- app/static/js/film.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/static/js/film.js b/app/static/js/film.js index 7107a59..d1f0058 100644 --- a/app/static/js/film.js +++ b/app/static/js/film.js @@ -73,9 +73,9 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => { video.play() video.style.display = 'block' if (video.webkitRequestFullscreen) { - video.webkitRequestFullscreen() + video.webkitRequestFullscreen({navigationUI: 'hide'}) } else { - video.requestFullscreen().catch(err => { + video.requestFullscreen({navigationUI: 'hide'}).catch(err => { console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`); video.remove() video = null