currentPositionAsFlow

fun Player.currentPositionAsFlow(updateInterval: Duration = DefaultUpdateInterval): Flow<Long>

Collects the current position of the player as a Flow.

Return

A Flow emitting the current position of the player, in milliseconds.

Parameters

updateInterval

The time interval between emissions, if the player is playing.