currentBufferedPercentageAsFlow

fun Player.currentBufferedPercentageAsFlow(updateInterval: Duration = DefaultUpdateInterval): Flow<Float>

Collects the buffered percentage as a Flow.

Return

A Flow emitting the buffered percentage.

Parameters

updateInterval

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