enableAudio method
Enables the audio module.
The audio module is enabled by default.
Note
- This method affects the internal engine and can be called after calling the RtcEngine.leaveChannel method. You can call this method either before or after joining a channel.
- This method resets the internal engine and takes some time to take effect. We recommend using the following API methods to control the audio engine modules 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> enableAudio() {
return _invokeMethod('enableAudio');
}