# RemainingDurationText

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/RemainingDurationText.composable#RemainingDurationText(androidx.media3.common.Player,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.ui.graphics.Color,kotlinx.coroutines.CoroutineScope)( player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, showNegative: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html )` A composable that displays the duration of the media. |

## Functions

### RemainingDurationText

Artifact: [androidx.media3:media3-ui-compose-material3](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/ui/compose/material3/indicator/TimeText.kt+function:RemainingDurationText)

```
@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: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` to get the duration from. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the text. |
| `showNegative: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | Whether to display the remaining time with a minus sign. |
| `color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` to be applied to the text. If `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`, the color will be inherited from the theme. |
| `scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html = rememberCoroutineScope()` | The `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html` to use for listening to player progress updates. |