PositionAndDurationText

Functions summary

Unit
@UnstableApi
@Composable
PositionAndDurationText(
    player: Player?,
    modifier: Modifier,
    separator: String,
    color: Color,
    scope: CoroutineScope
)

A composable that displays the duration of the media.

Functions

PositionAndDurationText

@UnstableApi
@Composable
fun PositionAndDurationText(
    player: Player?,
    modifier: Modifier = Modifier,
    separator: String = " / ",
    color: Color = Color.Unspecified,
    scope: CoroutineScope = rememberCoroutineScope()
): Unit

A composable that displays the duration of the media.

Parameters
player: Player?

The Player to get the duration from.

modifier: Modifier = Modifier

The Modifier to be applied to the text.

separator: String = " / "

The separator string to be used between the current position and duration.

color: Color = Color.Unspecified

The Color to be applied to the text. If Color.Unspecified, the color will be inherited from the theme.

scope: CoroutineScope = rememberCoroutineScope()

The CoroutineScope to use for listening to player progress updates.