getAudioMixingCurrentPosition abstract method

Future<int> getAudioMixingCurrentPosition()

Gets the playback progress of the music file.

This method gets the current playback progress of the music file, in milliseconds. You need to call this method after calling startAudioMixing and receiving the onAudioMixingStateChanged(audioMixingStatePlaying) callback. If you need to call getAudioMixingCurrentPosition multiple times, ensure the interval between calls is greater than 500 ms.

Returns ≥ 0: The method call succeeds and returns the current playback progress of the music file (ms). 0 indicates the music file has not started playing. < 0: The method call fails. See Error Codes for details and resolution suggestions.

Implementation

Future<int> getAudioMixingCurrentPosition();