Skip to content

How to hide media control bar initially when video is not played. ? #985

Answered by luwes
kevalrathod asked this question in Q&A
Discussion options

You must be logged in to vote

not all controls receive all the media attributes. try using

media-controller:not([mediahasplayed]) media-control-bar {
  display: none;
}

inspiration at https://github.com/muxinc/elements/blob/main/packages/mux-player/src/themes/gerwig/gerwig.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevalrathod
Comment options

Answer selected by kevalrathod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants