onAudioMixingPositionChanged

Reports the playback progress of a music file.

public void onAudioMixingPositionChanged(long position) {}

Details

Since
v4.2.0

After you called the startAudioMixing [2/2] method to play a music file, the SDK triggers this callback every two seconds to report the playback progress.

Parameters

position
The playback progress (ms).

Returns

  • 0: Success.
  • < 0: Failure.