Skip to content

Commit

Permalink
fix(Ads): Don't allow play an overlay video ad using the base video (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Dec 11, 2024
1 parent 60c88eb commit 172e713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,10 @@ shaka.ads.InterstitialAdManager = class {
return;
}
}
if (this.usingBaseVideo_ && interstitial.overlay) {
shaka.log.alwaysWarn('Unsupported interstitial', interstitial);
return;
}
this.setupVideoAd_(interstitial, sequenceLength, adPosition, initialTime,
oncePlayed);
}
Expand Down

0 comments on commit 172e713

Please sign in to comment.