1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<title>Matt's video player</title>
<script>
  function startPlay()
   {
 var v = document.getElementById("vid");
 v.play();

   }

  function pauseIt()
  {
    var v = document.getElementById("vid");
    v.pause();
  }


</script>
</head>
<body>

 <video id="vid" src="octopus.ogv"
              width="360" height="240"></video>

 <p><button onclick="startPlay();">Start Playing!</button><p>
 <p><button onclick="pauseIt();">Pause it!</button><p>

</body>
</html>