stopAudioDevicePlayTest method
@detail api
@brief Stop the capture and playback test for local audio devices which is started by calling startAudioDeviceRecordTest{@link #IRTCAudioDeviceManager#startAudioDeviceRecordTest}.
Before the test ends by itself, you can call this API to stop the recording or playing.
@return
- 0: Success
- < 0: Failure
Implementation
Future<int?> stopAudioDevicePlayTest() async {
$a() =>
($instance as $p_a.IRTCAudioDeviceManager).stopAudioDevicePlayTest();
$i() =>
($instance as $p_i.ByteRTCAudioDeviceManager).stopAudioDevicePlayTest();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}