onPositionChanged property
Reports the current playback position of the media resource.
While playing media files, the SDK automatically triggers this callback every second to report the current playback position.
positionMsCurrent playback position in milliseconds.timestampMsNTP timestamp of the current playback position in milliseconds.
Implementation
final void Function(int positionMs, int timestampMs)? onPositionChanged;