onAudioMixingPositionChanged
Reports the playback progress of a music file.
final void Function(int position)? onAudioMixingPositionChanged;
Details
After you called the startAudioMixing 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).
Exceptions
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.