An event with HTML5 video content was not fired in Chrome 22.0+

I looked at this topic, but could not find anything offensive. My tests show that the latest version of Google Chrome (22+) on Mac and PC has broken video ended .

I created a sample page here with an HTML5 video and an event listener for ended , using jQuery and a regular addEventListener to trigger a warning at the end of the video. It is correctly called in Safari and Firefox, but not in Chrome:

http://sadbot.com/videotest.html

If anyone knows why this is not working, or if I am doing something wrong, let me know. Please note that I have valid production code like this, which has been running for several months and seems to have broken with the latest release of Chrome.

+4
source share
2 answers

If the cycle is on, the end of the event does not fire.

+4
source

In FYI, the problem was checked as an error in the Chromium tracker . I ended up "fixing" the problem by specifying the .ogv file in the video source first, and not after the h.264 file. Obviously, Chrome now supports .ogv just fine, without the same problem.

0
source

Source: https://habr.com/ru/post/1441742/


All Articles