tickerWhilePlayingAsFlow

fun Player.tickerWhilePlayingAsFlow(interval: Duration = DefaultUpdateInterval): Flow<Unit>

Emits an event every interval while the Player is playing.

Return

A Flow that emits at the specified interval while the player is playing.

Parameters

interval

The time interval between emissions.