This doesn't seem to work in chrome, it works in firefox. Is there a fix for it? Could I instead say when it reaches 20 seconds which is the length of the video that it should execute something somehow?
v.onended = function(e) {
alert('video ended');
$("video").animate({'opacity':0});
$('#play').removeClass('pause');
}