From d34e8ee5c7a456b536ffdae00b4b0435546b9842 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Tue, 30 Sep 2025 10:04:25 +0300 Subject: [PATCH] fix: Hide seekbar and controls when poster is displayed (before first play) in embed mode --- frontend-tools/video-js/src/styles/embed.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend-tools/video-js/src/styles/embed.css b/frontend-tools/video-js/src/styles/embed.css index ca9cee03..d43174d6 100644 --- a/frontend-tools/video-js/src/styles/embed.css +++ b/frontend-tools/video-js/src/styles/embed.css @@ -176,3 +176,17 @@ margin: 0 !important; padding: 0 !important; } + +/* ===== EMBED-SPECIFIC CONTROLS HIDING FOR INITIAL STATE ===== */ +/* Hide seekbar and controls when poster is displayed (before first play) in embed mode */ +#page-embed .video-js-root-embed .video-js:not(.vjs-has-started) .vjs-control-bar { + display: none !important; + opacity: 0 !important; + visibility: hidden !important; +} + +#page-embed .video-js-root-embed .video-js:not(.vjs-has-started) .vjs-progress-control { + display: none !important; + opacity: 0 !important; + visibility: hidden !important; +}