检测HTML 5视频何时完成如何检测HTML 5<video>元素玩完了吗?
3 回答
婷婷同学_
TA贡献1844条经验 获得超8个赞
<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>
慕妹3146593
TA贡献1820条经验 获得超9个赞
<video src="video.ogv"> video not supported</video>
<script> var video = document.getElementsByTagName('video')[0]; video.onended = function(e) { /*Do things here!*/ };</script>
onended
- 3 回答
- 0 关注
- 421 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消