Each question on explain how to remove HTML5 video element controls.
videoElement.removeAttribute('controls');
But browsers, Firefox, and Chrome have a way to simply hide the controls that make them disappear when the cursor does not move and the video plays. And makes them appear again if you move the cursor or when the video stops playing.
<video controls><source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"></video>
Video test file: http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
If you play the above video and leave it alone without moving the cursor, the controls disappear. If you move the cursor again, they will appear again. They will also appear when the video is paused or completed.
I really like popular native or desktop video players.
This is what I want. I want to hide the controls in the same way that they will be automatically hidden if the video was playing and the cursor did not move for a while.
Is there a way to achieve this without completely removing controls?
javascript html5 video
laggingreflex
source share