From c699455b580e676cd6e1c056f22cbb7cc5004f75 Mon Sep 17 00:00:00 2001 From: Sergey Stepanov Date: Sun, 25 Feb 2024 12:51:37 +0300 Subject: [PATCH] Hide video element controls in fullscreen --- web/css/main.css | 6 ++++++ web/index.html | 4 ++-- web/js/stream/stream.js | 23 ++++++++++++++++------- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/web/css/main.css b/web/css/main.css index b47047fbc..10d98e2eb 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -3,6 +3,12 @@ src: url('/fonts/6809-Chargen.woff2'); } + +.no-media-controls::-webkit-media-controls { + display: none !important; +} + + html { /* force full size for Firefox */ width: 100%; diff --git a/web/index.html b/web/index.html index bc673e5e2..a760c3fc2 100644 --- a/web/index.html +++ b/web/index.html @@ -37,7 +37,7 @@ There is still audio because current audio flow is not from media but it is manually encoded (technical webRTC challenge). Later, when we can integrate audio to media, we can face the issue with mute again . https://developers.google.com/web/updates/2017/09/autoplay-policy-changes --> - +