getAudioMixingCurrentPosition abstract method

Future<int> getAudioMixingCurrentPosition()

Retrieves the playback position (ms) of the music file.

Retrieves the playback position (ms) of the audio. You need to call this method after calling startAudioMixing and receiving the onAudioMixingStateChanged (audioMixingStatePlaying) callback. If you need to call getAudioMixingCurrentPosition multiple times, ensure that the time interval between calling this method is more than 500 ms.

Returns ≥ 0: The current playback position (ms) of the audio mixing, if this method call succeeds. 0 represents that the current music file does not start playing. < 0: Failure.

Implementation

Future<int> getAudioMixingCurrentPosition();