startAudioDeviceRecordTest method
@hidden(iOS)
@detail api
@author dixing
@brief Start the capture and playback test for local audio devices.
@param interval During the test, you'll receive rtcEngine:onLocalAudioPropertiesReport: periodically. Set the period in ms with this parameter. Recommended value is 200 ms; the minimal value is 10 ms.
@return result
- 0: success
- < 0: failure
@note
- The audio capturing stops in 30s after calling this API and begins to play the recording audio. Before that, you can call stopAudioDeviceRecordAndPlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDeviceRecordAndPlayTest} to stop audio capturing and start playing the recording audio.
- Call stopAudioDevicePlayTest{@link #ByteRTCAudioDeviceManager#stopAudioDevicePlayTest} to stop the test, including capturing and playing the recording.
- You must stop the test before starting another test for audio devices.
- You must stop the test before calling enableAudioPropertiesReport:.
- This test performs locally and does not involve network connection testing.
Implementation
FutureOr<int> startAudioDeviceRecordTest(int interval) async {
return await nativeCall('startAudioDeviceRecordTest:', [interval]);
}