Reputation: 42374
I looked around on this topic, but couldn't find anything resent. My tests show that the latest version of Google Chrome (22+) on Mac and PC have a broken vide ended
event.
I created a sample page here with an HTML5 video and a event listener for ended
both using jQuery and regular addEventListener to call an alert on video end. It gets called correctly in Safari and Firefox but not Chrome:
http://sadbot.com/videotest.html
If anyone has any idea why it doesn't work or if I'm doing something wrong please let me know. Note that I have live production code setup similar to this that has been working for months and seems to have broken with Chrome's latest rollout.
Upvotes: 4
Views: 3360
Reputation: 42374
An an FYI, the issue has been verified as a bug in the Chromium tracker. I ended up "fixing" the issue by specifying .ogv file in the video source first instead of after the h.264 file. Apparently Chrome now support .ogv just fine without the same issue.
Upvotes: 0