SimpleProgressTrackerState
class SimpleProgressTrackerState(player: PillarboxPlayer, coroutineScope: CoroutineScope, useScrubbingMode: Boolean = false, updateInterval: Duration = DefaultUpdateInterval) : ProgressTrackerState(source)
A ProgressTrackerState implementation that updates the Player progress.
Parameters
player
The Player whose progress needs to be tracked.
coroutineScope
The CoroutineScope used for managing StateFlows.
useScrubbingMode
Set to true to seek on each onChanged otherwise it seek only when onFinished is called.
updateInterval
The time interval between progress update from the player.
Constructors
Link copied to clipboard
constructor(player: PillarboxPlayer, coroutineScope: CoroutineScope, useScrubbingMode: Boolean = false, updateInterval: Duration = DefaultUpdateInterval)