startPlaybackDeviceTest abstract method
Starts the audio playback device test.
This method tests whether the local audio playback device is working properly. After starting the test, the SDK plays the specified audio file. If you can hear the sound, it indicates that the playback device is functioning correctly. After calling this method, the SDK triggers the onAudioVolumeIndication callback every 100 ms to report the volume information of uid = 1 and the playback device. The difference between this method and startEchoTest is that this method checks whether the local audio playback device works properly, while the latter checks whether the audio/video devices and network are functioning correctly. You must call this method before joining a channel. After the test is complete, if you want to join a channel, make sure to call stopPlaybackDeviceTest to stop the device test first.
testAudioFilePathThe absolute path of the audio file. The path string must be encoded in UTF-8. Supported file formats: wav, mp3, m4a, aac. Supported sample rates: 8000, 16000, 32000, 44100, 48000.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> startPlaybackDeviceTest(String testAudioFilePath);