Replies: 1 comment 1 reply
-
this is definitely possible! have a look at this example for a center play button. that will give you a good start. then it's a matter of hiding the media-control-bar on page load so maybe give that a default opacity of 0. the media-controller media-control-bar {
opacity: 0;
transition: opacity 200ms ease-in-out;
}
media-controller[mediahasplayed] media-control-bar {
opacity: 1;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the initial state, I want to show a big Play button in the Center of video frame with no other controls.
Once clicked, the video should start playing, and henceforth the control bar with small play/pause button should appear. The big Play button should not appear again even if the video is paused or scrubbed to the beginning.
Is this possible? The docs are sparse when it comes to this kind of custom functionality.
Beta Was this translation helpful? Give feedback.
All reactions