From b0bb23c493d69d88de87b7789e867223fd2919ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Tue, 21 Feb 2023 17:20:36 +0100 Subject: [PATCH] fix(Ads): Fix CS volume ad (#5016) --- lib/ads/client_side_ad_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ads/client_side_ad_manager.js b/lib/ads/client_side_ad_manager.js index 6287a9b8fd..4dc723be6f 100644 --- a/lib/ads/client_side_ad_manager.js +++ b/lib/ads/client_side_ad_manager.js @@ -402,7 +402,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); } }