Skip to content

Commit

Permalink
fix(Ads): Disable interstitials when playing an interstitials (#7621)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Nov 19, 2024
1 parent 7f88879 commit 7401adf
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 @@ -1000,6 +1000,8 @@ shaka.ads.InterstitialAdManager = class {
goog.asserts.assert(this.player_, 'Must have player');
goog.asserts.assert(this.basePlayer_, 'Must have base player');
this.player_.configure(this.basePlayer_.getNonDefaultConfiguration());
this.player_.configure('ads.disableHLSInterstitial', true);
this.player_.configure('ads.disableDASHInterstitial', true);
const netEngine = this.player_.getNetworkingEngine();
goog.asserts.assert(netEngine, 'Need networking engine');
netEngine.clearAllRequestFilters();
Expand Down

0 comments on commit 7401adf

Please sign in to comment.