muteLocalAudioStream abstract method
Stops or resumes publishing the local audio stream. A successful call of this method triggers the userMuteAudio callback on the remote client. This method does not affect any ongoing audio recording, because it does not disable the microphone. You can call this method either before or after joining a channel. If you call the setChannelProfile method after this method, the SDK resets whether or not to stop publishing the local audio according to the channel profile and user role. Therefore, Agora recommends calling this method after the setChannelProfile method.
Param muted
Whether to stop publishing the local audio stream.
true: Stop publishing the local audio stream.
false: (Default) Resumes publishing the local audio stream.
Implementation
Future<void> muteLocalAudioStream(bool muted);