stopAudioDeviceRecordAndPlayTest method
@hidden(iOS)
@detail api
@author dixing
@brief 停止采集本地音频,并开始播放采集到的声音。录音播放完毕后,设备测试流程结束。
调用 startAudioDeviceRecordTest:{@link #ByteRTCAudioDeviceManager#startAudioDeviceRecordTest} 30s 内调用本接口来停止采集并开始播放此前采集到的声音。
@return 方法调用结果
- 0:方法调用成功
- < 0:方法调用失败
@note
- 该方法依赖 rtc 引擎,只有通过成员方法 getAudioDeviceManager{@link #ByteRTCEngine#getAudioDeviceManager} 创建的 ByteRTCAudioDeviceManager,该方法才是有效的
- 调用本接口开始播放录音后,可以在播放过程中调用 stopAudioDevicePlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDevicePlayTest} 停止播放。
Implementation
FutureOr<int> stopAudioDeviceRecordAndPlayTest() async {
return await nativeCall('stopAudioDeviceRecordAndPlayTest', []);
}