From 6d8af0c892ed2382b3e78d6dd1dba3065fd48343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <34163393+amtins@users.noreply.github.com> Date: Wed, 29 Nov 2023 10:29:22 +0100 Subject: [PATCH] fix(big-play-button): component remains displayed after an error (#8483) This issue occurs when the `player` has the class `vjs-show-big-play-button-on-pause` and playback has started and then been set to `pause` and an `error` occurs. - Avoids displaying `big-play-button` on error --- src/css/components/_big-play.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/components/_big-play.scss b/src/css/components/_big-play.scss index d6b3e382e..7af937ad1 100644 --- a/src/css/components/_big-play.scss +++ b/src/css/components/_big-play.scss @@ -57,6 +57,6 @@ } // Show big play button if video is paused and .vjs-show-big-play-button-on-pause is set on video element -.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause:not(.vjs-seeking, .vjs-scrubbing) .vjs-big-play-button { +.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause:not(.vjs-seeking, .vjs-scrubbing, .vjs-error) .vjs-big-play-button { display: block; }