BufferingIndicator

Functions summary

Unit
@UnstableApi
@Composable
BufferingIndicator(
    player: Player?,
    modifier: Modifier,
    displayMode: @DisplayMode Int,
    delay: Duration,
    content: @Composable () -> Unit
)

A circular progress indicator that displays an animated spinner when the Player is buffering.

Functions

@UnstableApi
@Composable
fun BufferingIndicator(
    player: Player?,
    modifier: Modifier = Modifier,
    displayMode: @DisplayMode Int = SHOW_BUFFERING_ALWAYS,
    delay: Duration = 500.milliseconds,
    content: @Composable () -> Unit = { CircularProgressIndicator() }
): Unit

A circular progress indicator that displays an animated spinner when the Player is buffering.

Parameters
player: Player?

The Player to observe.

modifier: Modifier = Modifier

The Modifier to be applied to the buffering indicator.

displayMode: @DisplayMode Int = SHOW_BUFFERING_ALWAYS

The DisplayMode specifying when to show buffering. Defaults to SHOW_BUFFERING_ALWAYS.

delay: Duration = 500.milliseconds

The delay duration before the buffering indicator is shown.