x
 
<!DOCTYPE html>
<html>
<body>
<video id="myVideo" width="640" height="360" controls onseeking="myFunction()" onseeked="myFunction()">
  <source src="/i/video/shanghai.mp4" type="video/mp4">
  <source src="/i/video/shanghai.ogg" type="video/ogg">
  您的浏览器不支持 video 标签。
</video>
<p>请尝试在视频中拖动进度条:<span id="mySpan"></span></p>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("myVideo");
  document.getElementById("mySpan").innerHTML = ("Seeking: " + x.seeking);
}
</script>
</body>
</html>