Skip to content

Commit 172e713

Browse files
authored
fix(Ads): Don't allow play an overlay video ad using the base video (#7740)
1 parent 60c88eb commit 172e713

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ads/interstitial_ad_manager.js

+4
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ shaka.ads.InterstitialAdManager = class {
710710
return;
711711
}
712712
}
713+
if (this.usingBaseVideo_ && interstitial.overlay) {
714+
shaka.log.alwaysWarn('Unsupported interstitial', interstitial);
715+
return;
716+
}
713717
this.setupVideoAd_(interstitial, sequenceLength, adPosition, initialTime,
714718
oncePlayed);
715719
}

0 commit comments

Comments
 (0)