您如何检测HTML5 <video>元素何时播放完毕?
<video>
您可以添加带有“ end”作为第一个参数的事件监听器
像这样 :
<video src="video.ogv" id="myVideo"> video not supported </video> <script type='text/javascript'> document.getElementById('myVideo').addEventListener('ended',myHandler,false); function myHandler(e) { // What you want to do after the event } </script>