onTimeUpdate

fun onTimeUpdate(currentTime: Float, duration: Float, forceUpdate: Boolean = false)

Callback for time update events from the media player.

Parameters

currentTime

The current playback position in seconds

duration

The total duration of the media in seconds

forceUpdate

If true, bypasses the rate limiting check (useful for tests)