# PlaybackSpeedControl

## 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/buttons/PlaybackSpeedControl.composable#PlaybackSpeedControl(androidx.media3.common.Player,kotlin.Function1)(player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PlaybackSpeedState.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` A state container for building custom UI for playback speed control. |

## Functions

### PlaybackSpeedControl

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

```
@UnstableApi
@Composable
fun PlaybackSpeedControl(player: Player?, content: @Composable PlaybackSpeedState.() -> Unit): Unit
```

A state container for building custom UI for playback speed control.

This composable manages the state of a playback speed control, including the current speed and whether the control is enabled. The UI is provided by the `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/buttons/package-summary#PlaybackSpeedControl(androidx.media3.common.Player,kotlin.Function1)` lambda, which has access to the `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PlaybackSpeedState`.

| Parameters |
|---|---|
| `player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` to control. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PlaybackSpeedState.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | A composable that receives the `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PlaybackSpeedState` and defines the UI. |