disableMic method

Future<void> disableMic()

Disables the participant’s microphone.

Calling this method stops the participant’s microphone stream. Once the microphone is disabled, all participants in the room will receive a Events.streamDisabled event with the corresponding audio RTCStream object.

Returns

  • A Future<void> that completes once the native SDK accepts the request, or throws a VideoSDKError carrying its code and name.

Example

// Disable the participant's microphone
await participant.disableMic();

Implementation

Future<void> disableMic() => _disablePeerMic(id);