onPositionChanged

Playback progress callback.

void onPositionChanged(long positionMs, long timestampMs)

This callback is used to report the playback progress of the media file.

Trigger Timing

This callback is triggered every two seconds during media file playback.

Parameters

positionMs
Playback position of the media file in milliseconds.
timestampMs
NTP timestamp corresponding to the current playback progress, in milliseconds.