I'm trying to hide the default play button in the center of my video. I have a custom play button but the native play button is displaying underneath it on tablet and mobile. I can't access the CSS for it with either::--webkit-media-controls-play-button
or ::-webkit-media-controls-start-playback-button
.
I'm having the same issue as https://stackoverflow.com/questions/39602852/disable-download-button-for-google-chrome#= but I'm stuck on finding a similar solution.
Hiding the controls completely with the CSS below will work but I only want to hide the play button in this case.
video::-webkit-media-controls{
display: none;
-webkit-appearance: none;
}
Any ideas?
We can hide the controls by not adding the controls attribute to the video element. Even without controls attribute on the elements the user can view the controls section by right-clicking on the video and enabling the show controls .
Press Ctrl+M to hide or show the YouTube video player controls.
You can add controlsList="nodownload" to the video tag as show in the example below and it will turn off the download button.
Took a bit of searching, but found it in the comments here and confirmed it works on Chrome for Android.
video::-webkit-media-controls-overlay-play-button {
display: none;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With