Edit This Code:
<!DOCTYPE html>
<html>
<body>

<video id="myVideo" width="320" height="240">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

<p>Click the button to add video controls.</p>

<p><strong>Note:</strong> In Internet Explorer, you must move the mouse pointer over the video to see the controls.</p>

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    document.getElementById("myVideo").controls = true;
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy