When I use video JS, the "ended" event in Firefox is triggered both at the end and beginning of the video playback.
Check out this example in FF: http://jsfiddle.net/planadecu/a3Chu/
All other browsers seem to work fine with this.
The code snippet called at the start of the video is as follows:
var videoPlayer = _V_("video", {}, function(){
this.addEvent("ended", function(){
this.posterImage.el.style.display = 'block';
});
});
I am looking for a way to trigger an event only at the end of the video, not at the start. Do you have any suggestions on how to fix this issue (which seems like a bug to me)?
You can replicate this problem using the provided fiddle.
Thank you for your assistance.