muteLocalAudioStream abstract method
Stops or resumes publishing the local audio stream.
This method controls whether to publish the locally captured audio stream. Not publishing the local audio stream does not disable the audio capture device, so it does not affect the audio capture status.
muteWhether to stop publishing the local audio stream. true : Stop publishing. false : (Default) Publish.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> muteLocalAudioStream(bool mute);