question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Muting incoming audio doesn't work - 0.8.0

See original GitHub issue

As I understand this code should mute incoming audio:

var config = this.props.mixertest.webrtcStuff
      if(config.remoteStream){
             var pc = config.pc
             var streams = pc._remoteStreams
        streams[0].getTracks().forEach(track => track.enabled = !track.enabled)
      }}}

It does change track.enabled value but audio doesn’t get muted. What did I miss? Is there other way to mute incoming audio?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ippacommented, Jul 5, 2018

@szymonzmyslony @atyenoria did you ever manage to find a workaround?

@zxcpoiu you seemed knowledgeable with the details 😃 … do you know a good work-around to this issue?

Toggling enabled (and muted)-properties on local and remote stream audio tracks won’t work.

1reaction
atyenoriacommented, Dec 28, 2016

@szymonzmyslony I tried streams[0].getTracks().forEach(track => track.enabled = !track.enabled) . But nothing changed. Have you succeeded in muting remote audio??

Read more comments on GitHub >

github_iconTop Results From Across the Web

Audio doesn't works after I mute and unmute it - Super User
Right-click on volume icon >> Open Volume Mixer >> drag the speaker volume down to zero and then ...
Read more >
Audio Monitor | OBS Forums
Awesome plugin! You can choose different speakers to monitor each audio! I'm just rating it 4 starts because 0.8.1 doesn't work with OBS...
Read more >
0% Volume does not mute sound. - Microsoft Community
The speaker volume slider is at 0% and there's still sound coming out of it. The mute button works like it's supposed to....
Read more >
Audio Not Working in Windows 10? 9 Ways to Fix Sound ...
If you have no sound on your computer, double-check to make sure that you haven't muted the audio. Click the Volume icon at...
Read more >
Troubleshooting audio issues - Zoom Support
How to troubleshoot audio issues. Check your device. Check if the microphone, speakers, or headphones are plugged in and not muted.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found