fun SpeakingWhileMutedWarning(call: Call) {
val speakingWhileMuted by call.state.speakingWhileMuted.collectAsState()
if (speakingWhileMuted) {
Snackbar {
Text(text = "You're talking while muting the microphone!")
}
}
}
Speaking While Muted
It’s a UI best practice to show some visual feedback when the user is speaking while muted.
You can observe the state for this in call.state.speakingWhileMuted
.
Custom Snackbar
This example shows how to render a snackbar when the user is speaking while muted:
After building the code above, you’ll see the snackbar like the result below:
- I'm working with the Stream Video Android SDK and would like to ask questions about this documentation page: https://getstream.io/video/docs/android/ui-cookbook/speaking-while-muted.md
- View as markdown
- Open in ChatGPT
- Open in Claude
On this page: