startAudioPlaybackDeviceTest method
@detail api
@author dixing
@brief Start the audio playback device test.
This method tests whether the playback device works properly. The SDK plays the specified audio file. If the tester can hear the sound, the playback device can work normally.
@param testAudioFilePath The absolute path of the audio file. The path string uses UTF-8 encoding format and supports the following audio formats: mp3, aac, m4a, 3gp, wav.
@param interval playback device test volume callback interval
@return Method call result
- 0: Success.
- < 0: failure
@note
- This method must be called before joining the room and cannot be applied at the same time as other audio device testing functions.
- Call stopAudioPlaybackDeviceTest{@link #ByteRTCAudioDeviceManager#stopAudioPlaybackDeviceTest} to stop the test.
Implementation
FutureOr<int> startAudioPlaybackDeviceTest(
NSString testAudioFilePath, int interval) async {
return await nativeCall('startAudioPlaybackDeviceTest:interval:',
[testAudioFilePath, interval]);
}