Skip to content

Commit

Permalink
fix(Ads): Fix usage of EventManager on CS (shaka-project#5017)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Feb 21, 2023
1 parent 492b5f3 commit 541badc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ads/client_side_ad_manager.js
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 541badc

Please sign in to comment.