Skip to content

Commit

Permalink
Rename to determineIfUsingBaseVideo_
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Nov 6, 2024
1 parent 33b9daa commit 4124639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ads/interstitial_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ shaka.ads.InterstitialAdManager = class {
/**
* @private
*/
checkSupportForMultipleMediaElements_() {
determineIfUsingBaseVideo_() {
if (!this.adContainer_ || !this.config_ || this.playingAd_) {
return;
}
Expand Down Expand Up @@ -509,7 +509,7 @@ shaka.ads.InterstitialAdManager = class {
*/
async setupAd_(interstitial, sequenceLength, adPosition, initialTime,
oncePlayed = 0) {
this.checkSupportForMultipleMediaElements_();
this.determineIfUsingBaseVideo_();
goog.asserts.assert(this.video_, 'Must have video');

this.lastPlayedAd_ = interstitial;
Expand Down Expand Up @@ -637,7 +637,7 @@ shaka.ads.InterstitialAdManager = class {
this.baseVideo_.play();
}
}
this.checkSupportForMultipleMediaElements_();
this.determineIfUsingBaseVideo_();
}
};
const error = async (e) => {
Expand Down

0 comments on commit 4124639

Please sign in to comment.