# Bug with muting audio channels in Chrome?

**URL:** <https://mediasoup.discourse.group/t/bug-with-muting-audio-channels-in-chrome/1274>\
**Category:** mediasoup libraries\
**Created:** [June 18, 2020, 12:23am UTC](https://mediasoup.discourse.group/t/bug-with-muting-audio-channels-in-chrome/1274 "2020-06-18T00:23:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/max/32/468_2.png) [@max](https://mediasoup.discourse.group/u/max)\
**Post date:** [June 18, 2020, 12:23am UTC](https://mediasoup.discourse.group/t/bug-with-muting-audio-channels-in-chrome/1274/1 "2020-06-18T00:23:21Z")

</div>

Heyo,

I’ve been using mediasoup for a few weeks and it’s been wonderful! I’m trying to do something that seems fairly simple, but I’m running into wildly different behavior between Chrome and Chrome Embedded Framework.

In short, I’ve recreated the mediasoup v3 demo from scratch. I’m using protoo and all of the same frameworks. I have all of the demo functionality working perfectly, but I’m trying to add one small feature. As a client, I’d like to mute/unmute any participant, but only for my computer. I do not want to mute them globally.

I implemented this by just setting the srcObject on the tag for that peer to null, which in the latest version of Chrome, works great. However, when I run the page in Chrome Embedded Framework, it has no effect. In fact, I tried adding a check to never set the srcObject on the tag in the first place, and audio still comes through. Finally, I decided to only set the srcObject on a single tag for a single peer, and everyone’s audio seems to come through this one audio tag.

For a second, I thought maybe mediasoup was doing server-side mixing, but I can’t hear my own audio. So either mediasoup is server-side mixing all audio into a single stream for each client, or Chrome Embedded Framework seems to play all incoming webrtc audio streams as soon as you set even one of them on an tag.

Anyway, I’d love some insight into this. I don’t really know how I can debug this one much further. Is this something you’ve all seen previously?

Max

---

<div class="post-metadata">

**Author:** ![max](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/max/32/468_2.png) [@max](https://mediasoup.discourse.group/u/max)\
**Post date:** [June 18, 2020, 12:33am UTC](https://mediasoup.discourse.group/t/bug-with-muting-audio-channels-in-chrome/1274/2 "2020-06-18T00:33:10Z")

</div>

Just to add some notes to this. The Chrome version I’m using is 83.0.4103.106 where the Chromium Embedded Framework version is 59.0.3071.15. Unfortunately, I have no control over the CEF version here : (

I’m guessing if it’s a bug in the CEF version, my best fix would be to use protoo to signal to the server to mute the producer on the server side?

Max

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [June 18, 2020, 12:44am UTC](https://mediasoup.discourse.group/t/bug-with-muting-audio-channels-in-chrome/1274/3 "2020-06-18T00:44:11Z")

</div>

Mute the Consumer in server side (consumer.pause()) so you don’t receive audio RTP and save bandwidth. Also call pause() in the client side Consumer to avoid comfort noise generated by Chrome.

---

<div class="post-metadata">

**Author:** ![max](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/max/32/468_2.png) [@max](https://mediasoup.discourse.group/u/max)\
**Post date:** [June 18, 2020, 12:59am UTC](https://mediasoup.discourse.group/t/bug-with-muting-audio-channels-in-chrome/1274/4 "2020-06-18T00:59:18Z")

</div>

Wonderful! Will give that a shot. Thank you.

Max
