PlaybackSpeedControl

Functions summary

Unit

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

Functions

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 content lambda, which has access to the PlaybackSpeedState.

Parameters
player: Player?

The Player to control.

content: @Composable PlaybackSpeedState.() -> Unit

A composable that receives the PlaybackSpeedState and defines the UI.