From 9fd349ab31396ccf17435b6f95a038cb864e70ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Tue, 26 Nov 2024 07:30:36 +0100 Subject: [PATCH] fix(Ads): Fix post-roll playback (#7663) --- lib/ads/interstitial_ad_manager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ads/interstitial_ad_manager.js b/lib/ads/interstitial_ad_manager.js index 012cc301a7..ca92aacab1 100644 --- a/lib/ads/interstitial_ad_manager.js +++ b/lib/ads/interstitial_ad_manager.js @@ -129,6 +129,10 @@ shaka.ads.InterstitialAdManager = class { } }; + this.eventManager_.listen(this.baseVideo_, 'ended', () => { + checkForInterstitials(); + }); + /** @private {shaka.util.Timer} */ this.timeUpdateTimer_ = new shaka.util.Timer(checkForInterstitials);