JavaScript Detect Video End

 document.getElementById('myVideoID').addEventListener('ended',function(e){
 	console.log("video has ended");
 },false);
Friendly Hawk