disableAudio method
Disables the audio module.
Note
- This method affects the audio module and can be called after calling the RtcEngine.leaveChannel method. You can call this method either before or after joining a channel.
- This method disables the audio module and takes some time to take effect. Agora recommends using the following API methods to control the audio engine module separately:
- RtcEngine.enableLocalAudio: Whether to enable the microphone to create the local audio stream.
- RtcEngine.muteLocalAudioStream: Whether to publish the local audio stream.
- RtcEngine.muteRemoteAudioStream: Whether to subscribe to and play the remote audio stream.
- RtcEngine.muteAllRemoteAudioStreams: Whether to subscribe to and play all remote audio streams.
Implementation
@override
Future<void> disableAudio() {
return _invokeMethod('disableAudio');
}