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.
positionMs
The playback position (ms) of media files.timeStampMs
The NTP timestamp (ms) of the current playback progress.
Implementation
final void Function(int positionMs, int timestampMs)? onPositionChanged;