Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contentComplete not reset in player wrapper #639

Closed
Cosrnos opened this issue Jun 6, 2018 · 0 comments
Closed

contentComplete not reset in player wrapper #639

Cosrnos opened this issue Jun 6, 2018 · 0 comments
Assignees

Comments

@Cosrnos
Copy link
Contributor

Cosrnos commented Jun 6, 2018

We're doing some work with autoplaying related content once our video has ended, and we've run into a bug that pops up when the second video completes. We're listening to the ended event to change the content of the player & request an ad break by using the setContentWithAdTag method.

I would expect the SDK to call the onCompleted event internally to signal to contrib-ads that no post roll will run, but since contentComplete isn't reset, the onNoPostroll method isn't called

I'd be more than happy to PR a fix for this assuming there's no unintended side effects of setting contentComplete = false on reset calls. We'd love to get a fix for this ASAP so we don't have to wait for a timeout between videos

@Cosrnos Cosrnos changed the title contentComplete not reset in player wrapper contentComplete not reset in player wrapper Jun 6, 2018
Cosrnos added a commit to Cosrnos/videojs-ima that referenced this issue Jun 6, 2018
Fixes a bug that would prevent the nopostroll event from being triggered, causing a delay before contrib-ads would fire the ended event on the player

Fixes googleads#639
shawnbuso pushed a commit that referenced this issue Jun 7, 2018
Fixes a bug that would prevent the nopostroll event from being triggered, causing a delay before contrib-ads would fire the ended event on the player

Fixes #639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants