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 does not fire first time after an ad

See original GitHub issue

We have discovered an issue where the ended event does not fire the first time a video ends after an ad is played. Currently, if an ad plays, and the video finishes, the ended event is not fired. If you then rewind a few seconds and hit play, this time, when the video finishes, an ended even is fired.

If the ima plugin is not initialized, the ended events fire as expected on video end the first time.

There are no errors listed in the console. If there is additional information that would be useful, please let me know.

VideoJS version 6.7.3 IMA Plugin version 1.3.0 VideoJS Contrib Ads version 6.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ypavlotskycommented, Apr 30, 2018

Thanks for the info. I think we’ll put in a change to contrib-ads 6.2.0 as soon as we can.

0reactions
Kiro705commented, Oct 15, 2019

Closing the issue. It looks like it was discovered to be an issue with the contrib-ads plugin and not the videojs-ima plugin

Read more comments on GitHub >

github_iconTop Results From Across the Web

html5 video "ended" event not working in chrome and IE
The first time the page loads, the "ended" event doesn't seem work. It works fine if you refresh the site (or if you...
Read more >
video 'ended' event seems broken with latest release of chrome
HTML5 video element does not trigger 'ended' event in latest version of Chrome. ... This is messing some of the ads for YouTube....
Read more >
Document: DOMContentLoaded event - Web APIs | MDN
The DOMContentLoaded event fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, ...
Read more >
Handling Events :: Eloquent JavaScript
Despite its name, "keydown" fires not only when the key is physically pushed down. When a key is pressed and held, the event...
Read more >
JavaScript Player API — Support - Wistia
We do not formally support using it for audio files, either in projects ... times on the page, Wistia.api("hashedid") will only return the...
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