Skip to content

Commit d074afc

Browse files
authored
fix(ads): Fix VMAP ads stay muted on muted autoplay (#4995)
Fixes #4992
1 parent 2d0469f commit d074afc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ads/client_side_ad_manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ shaka.ads.ClientSideAdManager = class {
440440
if (this.ad_.isLinear()) {
441441
this.adContainer_.setAttribute('ad-active', 'true');
442442
this.video_.pause();
443+
this.ad_.setVolume(this.video_.muted ? 0 : 1);
443444
}
444445
}
445446

0 commit comments

Comments
 (0)