getPeriodicallyCurrentMetricsAsState
fun PillarboxPlayer.getPeriodicallyCurrentMetricsAsState(updateInterval: Duration = DefaultUpdateInterval): State<PlaybackMetrics?>
Observe the PillarboxPlayer.getCurrentMetrics property as a State.
Return
A State that represents the current metrics of the PillarboxPlayer, or null
if none.
Parameters
updateInterval
The interval at which this value is updated.