I have a video embedded using Vimeo. I want to hide the Vimeo player controls. The thing is when I do, the sound disappears.
I want to hide the Vimeo controls and have a play button overlaying the centre of the video. When you click the video it plays, when you click it again, it pauses, when you click it again it plays, etc.
When you hover over, a pause icon appears.
How can I achieve this?
This is my current code:
<div class="video-container">
<iframe src="https://player.vimeo.com/video/######?autoplay=1&controls=0&loop=1&muted=0" width="100%" height="960px" frameborder="0" allow="autoplay; fullscreen" title="Video Title"></iframe>
</div>
I tried ChatGPT but the code it’s giving me isn’t working. I have 2 div blocks named play-button and pause-button (may not need the pause-button) with each of their respective icons in it.