Skip to content

Commit

Permalink
fix(Ads): Fix CS volume ad (#5016)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Mar 1, 2023
1 parent 36061d8 commit 70406d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ads/client_side_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ shaka.ads.ClientSideAdManager = class {
if (this.ad_.isLinear()) {
this.adContainer_.setAttribute('ad-active', 'true');
this.video_.pause();
this.ad_.setVolume(this.video_.muted ? 0 : 1);
this.ad_.setVolume(this.video_.muted ? 0 : this.video_.volume);
}
}

Expand Down

0 comments on commit 70406d0

Please sign in to comment.