Skip to content

Commit

Permalink
fix(Ads): Always fire CUEPOINTS_CHANGED when not using multi video el…
Browse files Browse the repository at this point in the history
…ements (#7584)

This is necessary because in our UI when reusing the same video element
the unloading event is launched and we clear the cuepoints with that
event.
  • Loading branch information
avelad committed Nov 15, 2024
1 parent cfc4769 commit e25400c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,8 @@ shaka.ads.InterstitialAdManager = class {
if (!this.baseVideo_.ended) {
this.baseVideo_.play();
}
} else {
this.cuepointsChanged_();
}
this.determineIfUsingBaseVideo_();
}
Expand Down

0 comments on commit e25400c

Please sign in to comment.