CurrentTimeDisplay

fun CurrentTimeDisplay(modifier: Modifier = Modifier, showRemaining: Boolean = false, showDuration: Boolean = false)(source)

A text display that shows the player's current time.

Parameters

modifier

the Modifier to be applied to this text

showRemaining

if set, shows the remaining time of the stream as a negative value (e.g. "-01:23")

showDuration

if set, also shows the duration of the stream (e.g. "01:23 / 10:00")


fun CurrentTimeDisplay(state: PlaybackTimeState, modifier: Modifier = Modifier, showRemaining: Boolean = false, showDuration: Boolean = false)(source)

A text display that shows the player's current time.

Parameters

state

the PlaybackTimeState to read

modifier

the Modifier to be applied to this text

showRemaining

if set, shows the remaining time of the stream as a negative value (e.g. "-01:23")

showDuration

if set, also shows the duration of the stream (e.g. "01:23 / 10:00")