turnMicrophoneOn method
turn on/off microphone
When the muteMode
is set to true, it means that the device is not actually turned off, but muted.
The default value is false, which means the device is turned off.
When either the camera or the microphone is muted, the audio and video views will still be visible.
Implementation
void turnMicrophoneOn(bool isOn, {String? userID, bool muteMode = false}) {
ZegoUIKitCore.shared.turnMicrophoneOn(
userID?.isEmpty ?? true
? ZegoUIKitCore.shared.coreData.localUser.id
: userID!,
isOn,
muteMode: muteMode,
);
}