1<video width="320" height="240" controls>
2 <source src="movie.mp4" type="video/mp4">
3 <source src="movie.ogg" type="video/ogg">
4Your browser does not support the video tag. <!-- Text to be shown incase browser doesnt support html5 -->
5</video>
1
2<video width="320" height="240" controls autoplay muted>
3
4 <source src="movie.mp4" type="video/mp4">
5
6 <source src="movie.ogg" type="video/ogg">
7
8Your browser does not support the video tag.
9
10</video>
11
1var vid = document.getElementById("myVideo");
2
3function playVid() {
4 vid.play();
5}
6
7function pauseVid() {
8 vid.pause();
9}