I'm looking for a way to place a php function after an html5 video ends, the code below doesn't seem to work.
There's an image centered on the video when the page is loaded, I'd like the image to reappear right after the video ends.
<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>