Skip to content

Commit

Permalink
fix(big-play-button): component remains displayed after an error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amtins committed Nov 29, 2023
1 parent 7972c23 commit 7a6263a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css/components/_big-play.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 7a6263a

Please sign in to comment.