rememberMuteButtonState

Functions summary

MuteButtonState

Remembers the value of MuteButtonState created based on the passed Player and launch a coroutine to listen to Player's changes.

Functions

rememberMuteButtonState

@UnstableApi
@Composable
fun rememberMuteButtonState(player: Player?): MuteButtonState

Remembers the value of MuteButtonState created based on the passed Player and launch a coroutine to listen to Player's changes. If the Player instance changes between compositions, produce and remember a new value.