stopAudioPlaybackDeviceTest method

Future<int?> stopAudioPlaybackDeviceTest()

@detail api @author dixing @brief Stop the playback test for the local audio device. @return Result
- 0: Success - < 0: Failure @note Call this API to stop the playback test started by calling startAudioPlaybackDeviceTest{@link #IRTCAudioDeviceManager#startAudioPlaybackDeviceTest} before moving on to the other device tests.

Implementation

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

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