startEchoTest method
Starts an audio call test.
In the audio call test, you record your voice. If the recording plays back within the set time interval, the audio devices and the network connection are working properly.
Note
- Call this method before joining a channel.
- After calling this method, call the RtcEngine.stopEchoTest method to end the test. Otherwise, the app cannot run the next echo test, or call the RtcEngine.joinChannel method.
- In the ChannelProfile.LiveBroadcasting profile, only a host can call this method.
Parameter intervalInSeconds
The time interval (s) between when you speak and when the recording plays back.
Implementation
@override
Future<void> startEchoTest(int intervalInSeconds) {
return _invokeMethod(
'startEchoTest', {'intervalInSeconds': intervalInSeconds});
}