muteMic

suspend fun muteMic()

Stops sending audio and releases the microphone, so the OS recording indicator goes away rather than staying on with a silent track. Other participants see it through ParticipantEventListener.onStreamDisabled.

isMicEnabled turns false as soon as the call starts.

See also

Throws

code 3054 (ERROR_ALREADY_IN_REQUESTED_STATE) if the mic is already muted, code 3055 (ERROR_OPERATION_IN_PROGRESS) while another mic toggle or a changeMode is still running, or code 3066 (ERROR_ACTION_NOT_SUPPORTED_IN_MODE) outside Mode.SEND_AND_RECV.