Prerequisites
- An active call session
- Access to the
CallSessioninstance - Appropriate permissions (typically host/moderator privileges)
Get CallSession Instance
Participant action methods are called on theCallSession singleton:
- Kotlin
- Java
Mute Participant
Mute a specific participant’s audio. This prevents other participants from hearing them.- Kotlin
- Java
When a participant is muted, all participants receive the
onParticipantAudioMuted(Participant) callback on their ParticipantEventListener.Pause Participant Video
Pause a specific participant’s video feed. Other participants will see a placeholder instead of their video.- Kotlin
- Java
When a participant’s video is paused, all participants receive the
onParticipantVideoPaused(Participant) callback on their ParticipantEventListener.Pin Participant
Pin a participant to keep them prominently displayed in the call layout, regardless of who is speaking.- Kotlin
- Java
Pinning is particularly useful in Spotlight layout mode where you want to keep a specific participant in focus.
Unpin Participant
Remove the pin from a participant, returning to the default layout behavior.- Kotlin
- Java
Listen for Participant Events
Register aParticipantEventListener to receive callbacks when participant states change:
- Kotlin
- Java
Participant Object
TheParticipant object contains information about a call participant:
Show/Hide Participant List Button
Control the visibility of the participant list button in the call UI:- Kotlin
- Java
Participant List Button Click Listener
Listen for when users tap the participant list button:- Kotlin
- Java
Next Steps
Layout & UI
Control call layout and UI elements
Participant Event Listener
Handle all participant events