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