onPositionChanged
Callback when playback progress changes.
virtual void onPositionChanged(int64_t positionMs, int64_t timestampMs) = 0;
This callback is triggered every two seconds during media playback to report the current playback progress.
Parameters
- positionMs
- The playback position of the media file in milliseconds.
- timestampMs
- The NTP timestamp corresponding to the current playback progress, in milliseconds.