我正在寻找一种在html5视频结束后放置php功能的方法,下面的代码似乎不起作用。
当页面加载时,视频会以视频为中心,我希望图像在视频结束后立即重新显示。
<video src="video.ogv" id="myVideo">
</video>
<script type='text/javascript'>
document.getElementById('myVideo').addEventListener('ended',myHandler,false);
function myHandler(e) {
// What you want to do after the event
//I would like to put a php function here, but it doesn't work
}
</script>