Skip to content

Commit

Permalink
fix(Ads): Fix usage of EventManager on CS (#5017)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Mar 1, 2023
1 parent c6e1315 commit 7c408ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ads/client_side_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ shaka.ads.ClientSideAdManager = class {
});

// Notify the SDK when the video has ended, so it can play post-roll ads.
this.video_.onended = () => {
this.eventManager_.listen(this.video_, 'ended', () => {
this.adsLoader_.contentComplete();
};
});
}

/**
Expand Down

0 comments on commit 7c408ed

Please sign in to comment.