Skip to content

Commit

Permalink
fix(wrapper): Resets contentComplete correctly (#641)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Cosrnos authored and shawnbuso committed Jun 7, 2018
1 parent 5e622a7 commit 2255a11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/player-wrapper.js
Expand Up @@ -595,6 +595,7 @@ PlayerWrapper.prototype.reset = function() {
// the first playthrough of the video passed the second response's
// mid-roll time.
this.contentPlayheadTracker.currentTime = 0;
this.contentComplete = false;
};

export default PlayerWrapper;

0 comments on commit 2255a11

Please sign in to comment.