stopEchoTest method
@detail api
@author qipengxiang
@brief Stop the current call test.
After calling startEchoTest{@link #RTCEngine#startEchoTest}, you must call this API to stop the test.
@return API call result:
- 0: Success.
- -3: Failure, no test is in progress.
@note After stopping the test with this API, all the system devices and streams are restored to the state they were in before the test.
Implementation
Future<int?> stopEchoTest() async {
$a() => ($instance as $p_a.RTCEngine).stopEchoTest();
$i() => ($instance as $p_i.ByteRTCEngine).stopEchoTest();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}