rememberTrackSelectionParametersState

Functions summary

TrackSelectionParametersState

Remembers the value of TrackSelectionParametersState created based on the passed Player and launches a coroutine to listen to Player changes.

Functions

rememberTrackSelectionParametersState

@UnstableApi
@Composable
fun rememberTrackSelectionParametersState(player: Player?): TrackSelectionParametersState

Remembers the value of TrackSelectionParametersState created based on the passed Player and launches a coroutine to listen to Player changes. If the Player instance changes between compositions, a new value is produced and remembered.

Parameters
player: Player?

The Player to observe, or null.

Returns
TrackSelectionParametersState

A TrackSelectionParametersState instance holding the current state.