Skip to content

Commit

Permalink
fix(ads): Fix VMAP ads stay muted on muted autoplay (#4995)
Browse files Browse the repository at this point in the history
Fixes #4992
  • Loading branch information
avelad authored and joeyparrish committed Mar 1, 2023
1 parent 1194d74 commit 2b9ead2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ads/client_side_ad_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,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);
}
}

Expand Down

0 comments on commit 2b9ead2

Please sign in to comment.