onPositionChanged property
Reports the playback progress of the media file.
When playing media files, the SDK triggers this callback every two second to report current playback progress.
positionMsThe playback position (ms) of media files.timeStampMsThe NTP timestamp (ms) of the current playback progress.
Implementation
final void Function(int positionMs, int timestampMs)? onPositionChanged;