startAudioRecordingDeviceTest method

FutureOr<int> startAudioRecordingDeviceTest(
  1. int indicationInterval
)

@detail api @author dixing @brief Start the audio capture device test.
This method tests whether the audio capture device can work properly. After starting the test, you will receive the volume information reported by rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport}. @param indicationInterval The interval of receiving callbacks. It is recommended to set to no less than 200 ms. The minimum is 10 ms. @return Method call result
- 0: Success. - < 0: failure @note - This method do not rely on rtcEngine - This method must be called before joining the room and cannot be applied at the same time as other audio device testing functions. - You need to call stopAudioRecordingDeviceTest{@link #ByteRTCAudioDeviceManager#stopAudioRecordingDeviceTest} to stop the test.

Implementation

FutureOr<int> startAudioRecordingDeviceTest(int indicationInterval) async {
  return await nativeCall(
      'startAudioRecordingDeviceTest:', [indicationInterval]);
}