From 697e94315310c2d04885a913e44b31020d9a9b89 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 34aaa7f67f..7d0e667f8f 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);