RemainingDurationText

Functions summary

Unit
@UnstableApi
@Composable
RemainingDurationText(
    player: Player?,
    modifier: Modifier,
    showNegative: Boolean,
    color: Color,
    scope: CoroutineScope
)

A composable that displays the duration of the media.

Functions

@UnstableApi
@Composable
fun RemainingDurationText(
    player: Player?,
    modifier: Modifier = Modifier,
    showNegative: Boolean = false,
    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.

showNegative: Boolean = false

Whether to display the remaining time with a minus sign.

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.