-
Notifications
You must be signed in to change notification settings - Fork 113
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
[Audio] isMicrophoneEnabled is false, but Microphone still recording #140
Comments
Oh, I'm very stupid :D I call duplicate some function so It's break code, but I need a solution to disable Microphone module when I mute micro
|
Hi, thats odd. You called |
I'm sorry, it's my fail I want to ask: when we turn off micro, why is Recorder still working? |
@baveku Please unpublish the track to turn off the mic recording indicator. |
I mean I use localParticipant.setMicrophone(enabled: false), so I need unpublish track to stop recording, right? |
I will try this solution. |
It works, but why don't we disable audio if the microphone is turnoff? |
You have a good point, initially that was the default behavior. But we need to switch AVAudioSession.category when mic switches on / off which also causes the volume to change which was confusing. Therefore we decided not to switch category when cc: @davidzhao |
I think we need to disable audio recorder module, I used Messenger or Google Meet and they disable the recorder when micro turn off. |
You are right, this is actually a design flaw in the WebRTC's iOS SDK. |
okey, thank for your support, I solve my problem by your solution. |
@baveku @hiroshihorie |
the issue is funny
I turn off micro but the received still hear me,
console log:
there is the result:
isMicrophoneEnabled = false
audioLevel = 0.125
Why don't we disable the micro module after the microphone is set off?
Livekit still recording when microphone is off
The text was updated successfully, but these errors were encountered: