ios_startAudioDeviceLoopbackTest method
@platform ios
@detail api
@author dixing
@brief Begins audio device loop testing.
This method tests whether the audio capture device and the audio playback device can work normally. Once the test starts, the audio capture device will capture the local sound
And play it out through the audio playback device, and the user App will receive the volume information reported by the OnLocalAudioPropertiesReport callback.
@param indicationInterval The time interval of receiving callbacks in ms. 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 equipment test functions.
- You need to call stopAudioDeviceLoopbackTest{@link #ByteRTCAudioDeviceManager#stopAudioDeviceLoopbackTest} to stop the test.
- This method only tests audio equipment locally and does not involve network connection.
Implementation
Future<int?> ios_startAudioDeviceLoopbackTest(int indicationInterval) async {
$() => ($instance as $p_i.ByteRTCAudioDeviceManager)
.startAudioDeviceLoopbackTest(indicationInterval);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}