x
 
<!DOCTYPE html>
<html>
<body>
<video id="myVideo" width="640" height="360">
  <source id="mp4_src" src="/i/video/shanghai.mp4" type="video/mp4">
  <source id="ogg_src" src="/i/video/shanghai.ogg" type="video/ogg">
  您的浏览器不支持 video 标签。
</video>
<p>单击按钮可播放或暂停视频。</p>
<button onclick="playVid()" type="button">播放视频</button>
<button onclick="pauseVid()" type="button">暂停视频</button> 
<script>
var x = document.getElementById("myVideo"); 
function playVid() { 
  x.play(); 
} 
function pauseVid() { 
  x.pause(); 
} 
</script>
</body>
</html>