MuteButton

fun MuteButton(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), mute: @Composable () -> Unit = { Icon( Icons.AutoMirrored.Rounded.VolumeUp, contentDescription = "Mute" ) }, unmute: @Composable () -> Unit = { Icon( Icons.AutoMirrored.Rounded.VolumeOff, contentDescription = "Unmute" ) })

A button that toggles whether audio is muted or not.

Parameters

modifier

the Modifier to be applied to this button

contentPadding

the spacing values to apply internally between the container and the content

mute

button content when the player is unmuted, typically a "mute" icon

unmute

button content when the player is muted, typically an "unmute" icon