x
 
<!DOCTYPE html> 
<html> 
<body> 
<button onclick="getFirstSeekableRange()" type="button">获得首个可寻址范围</button>
<br />
<br />
<video id="video1" controls="controls">
  <source src="/example/html5/mov_bbb.mp4" type="video/mp4">
  <source src="/example/html5/mov_bbb.ogg" type="video/ogg">
  Your browser does not support HTML5 video.
</video>
<script>
myVid=document.getElementById("video1");
function getFirstSeekableRange()
  { 
  alert("Start: " + myVid.seekable.start(0) + " End: "  + myVid.seekable.end(0));
  } 
</script> 
</body> 
</html>