question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ended event is not fired for our video

See original GitHub issue

Hello there!

Thank you for this new API, it looks much better than Froogaloop.

However, we have some issues with ended / finished event. It’s not called for our video. But, if we use some other public video from Vimeo it works OK. Maybe there is some issue with privacy or embed settings? It was working some time ago and was broken recently. We are experiencing this problem for both API versions of Vimeo.

For now I have to use:

timeupdate: function (event) {
  if (event.percent >= 0.95) {
    // Video finished...
  }
}

Also, the last called timeupdate event has percentage around 0.99, it’s never called with 1.0, maybe it’s somehow related to ended problem.

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:43 (9 by maintainers)

github_iconTop GitHub Comments

9reactions
abhinayarcommented, Nov 11, 2018

Same issue here. And it’s been YEARS. We also pay for a premium Vimeo account, and I’m mind blown that you guys can’t solve something like this with this much time. “seeked” and “timeupdate” not firing or firing RANDOMLY at times… I can’t deliver a product where the UI depends on timeupdates and seeked events with it only working SOME of the time.

Will this even be addressed?

5reactions
landituscommented, Aug 1, 2016

Ok, I should have looked first, but found this issue that solves this problem by removing the api=1 from the API call. Maybe this is something I had from the previous Froogaloop implementation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

html5 video "ended" event not working in chrome and IE
Once I removed the loop attribute, the "ended" event fired in both browsers. HTML (with loop attribute, which will prevent the 'ended' event...
Read more >
HTMLMediaElement: ended event - Web APIs | MDN
The ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further...
Read more >
"ended" Event not firing in Safari - Google Groups
to jPlayer: HTML5 Audio & Video for jQuery. I'm having a weird issue with the "ended" event not firing in safari, but only...
Read more >
video 'ended' event seems broken with latest release of chrome
It seems that setting up the callback with the .onended property fails, while using addEventListener works. // does not fire: player.onended = ...
Read more >
HTML5 audio video ended event not working for me - MSDN
I am trying to do something in javascript as soon as an mp3 or mp4 file reaches the end of a single play....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found