Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

muting local stream seems to stop events from being generated #10

Open
fippo opened this issue May 6, 2014 · 4 comments
Open

muting local stream seems to stop events from being generated #10

fippo opened this issue May 6, 2014 · 4 comments

Comments

@fippo
Copy link
Member

fippo commented May 6, 2014

at least on chrome/linux. on windows, speaking / not speaking events are still generated.
Firefox doesnt seem to generate those events either.

@fippo fippo self-assigned this May 6, 2014
@fippo fippo removed their assignment Jun 11, 2014
@kashifshamaz21
Copy link

@fippo I believe this is a known limitation with webrtc today, i.e, when a media stream is audio or video muted, the local rendering of audio/video from that stream is also stopped.
So, muting the local stream would result in the observation you had: speaking events, volume change etc won't get triggered.
I had asked a similar question around video-mute of local stream on StackOverflow: http://stackoverflow.com/questions/29903265/webrtc-view-self-view-while-muting-outgoing-video-in-a-call/29908474?iemail=1&noredirect=1#29908474

@fippo
Copy link
Member Author

fippo commented May 6, 2015

If I recall correctly the problem here was that this was very inconsistent between browsers.

@legastero do you remember more than I do?

@chadfurman
Copy link

A nice 2 year old ticket. When you mute the local stream, your browser should stop encoding your local audio. Otherwise, it would exist in the browser even after you think it's muted. Most likely a security thing, would be my guess.

@ibc
Copy link
Contributor

ibc commented Nov 24, 2017

I think there is nothing to do here. If you mute a track (track.enabled = false) it produces nothing no signal. However, if you check the dBs value in "volume_change" event, you'll get interesting things:

Once the track is muted, It starts decreasing from ~ -100 to -Infinity, but it takes some seconds before it reaches -Infinity (well, this depends on the browser: #32).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants