stopAudioDevicePlayTest method

Future<int?> stopAudioDevicePlayTest()

@detail api @brief 停止由调用 startAudioDeviceRecordTest{@link #IRTCAudioDeviceManager#startAudioDeviceRecordTest} 开始的音频播放设备测试。
在音频播放设备测试自动结束前,可调用本接口停止音频采集与播放测试。 @return 方法调用结果
- 0:方法调用成功 - < 0:方法调用失败

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}');
  }
}