updatePosition

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

Updates the position and duration display.

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)