onAudioMixingPositionChanged property
Reports the playback progress of the music file.
After calling startAudioMixing to play a music file, the SDK triggers this callback once every second to report the current playback progress.
positionThe current playback progress of the music file, in ms.
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
final void Function(int position)? onAudioMixingPositionChanged;