initAudioCaptureDeviceForTest method

FutureOr<int> initAudioCaptureDeviceForTest(
  1. NSString deviceID
)

@detail api @author dixing @brief Try to initialize the audio capture device for device test. @param deviceID device ID @return Device status error code:
- 0: Status normal. - -1: Test not executed. - -2: Init failed due to lack of permission. - -3: The device does not exist. No device or device removed. - -4: The audio format is not supported. - -5: Error for other reasons @note - Call this API before joining the room; - You may still fail to enable the device even you passed the test. Occupation by other application or shortage of CPU / memory may cause the failure.

Implementation

FutureOr<int> initAudioCaptureDeviceForTest(NSString deviceID) async {
  return await nativeCall('initAudioCaptureDeviceForTest:', [deviceID]);
}