stopAudioDeviceRecordAndPlayTest method

Future<int?> stopAudioDeviceRecordAndPlayTest()

@detail api @brief Call this API to stop recording in the test and start to play the recording in 30 s after calling startAudioDeviceRecordTest{@link #IRTCAudioDeviceManager#startAudioDeviceRecordTest}. @return Result
- 0: Success - < 0: Failure @note After calling this API, the recording starts playing during which you can call stopAudioDevicePlayTest{@link #IRTCAudioDeviceManager#stopAudioDevicePlayTest} to stop playing.

Implementation

Future<int?> stopAudioDeviceRecordAndPlayTest() async {
  $a() => ($instance as $p_a.IRTCAudioDeviceManager)
      .stopAudioDeviceRecordAndPlayTest();
  $i() => ($instance as $p_i.ByteRTCAudioDeviceManager)
      .stopAudioDeviceRecordAndPlayTest();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}