Skip to content

Commit

Permalink
fix(Ads): Fix initial ads configuration (#6176)
Browse files Browse the repository at this point in the history
Related to #6169
  • Loading branch information
avelad authored Jan 29, 2024
1 parent 33b40cf commit 5b141eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {

if (shaka.Player.adManagerFactory_) {
this.adManager_ = shaka.Player.adManagerFactory_();
this.adManager_.configure(this.config_.ads);
}

// If the browser comes back online after being offline, then try to play
Expand Down

0 comments on commit 5b141eb

Please sign in to comment.