I'm using video JS and in firefox the event "ended" gets fired at the end and at the beginning of the video play.
Take a look to that fiddle in FF: http://jsfiddle.net/planadecu/a3Chu/
In all the other browsers work correctly.
The piece of code called at the video start is the following:
var videoPlayer = _V_("video", {}, function(){
this.addEvent("ended", function(){
this.posterImage.el.style.display = 'block';
});
});
I need to trigger an event just at the end of the video, not at the start. Do you know a way to workaround this issue (to me its a bug) ?
You can reproduce it on the fiddle provided.
Thanks for your help.