From 41fafa9ef9da233639092de43411c9acf3417dbb Mon Sep 17 00:00:00 2001 From: kimsible Date: Mon, 10 Aug 2020 10:40:31 +0200 Subject: Do not display videojs poster when video is starting --- client/src/sass/player/peertube-skin.scss | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client') diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss index 1b7275529..d8ce97c04 100644 --- a/client/src/sass/player/peertube-skin.scss +++ b/client/src/sass/player/peertube-skin.scss @@ -124,6 +124,14 @@ body { } } + // Do not display poster when video is starting + &.vjs-has-autoplay:not(.vjs-has-started) { + .vjs-poster { + opacity: 0; + visibility: hidden; + } + } + // Hide the big play button on autoplay &.vjs-has-autoplay { .vjs-big-play-button { -- cgit v1.2.3