From 7a6263acadeb0ce7a651b076083af3782d536116 Mon Sep 17 00:00:00 2001 From: amtins Date: Sat, 4 Nov 2023 18:30:10 +0100 Subject: [PATCH] fix(big-play-button): component remains displayed after an error 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 d6b3e382ef..7af937ad1c 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; }