currentPositionAsFlow
fun Player.currentPositionAsFlow(updateInterval: Duration = DefaultUpdateInterval): Flow<Long>(source)
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.