Skip to main content
Manage other participants during an active call session. These methods allow you to mute participants, pause their video, and pin/unpin them in the call layout.

Prerequisites

  • An active call session
  • Access to the CallSession instance
  • Appropriate permissions (typically host/moderator privileges)

Get CallSession Instance

Participant action methods are called on the CallSession singleton:
CallSession.getInstance() returns null if no active session exists. Always use the null-aware ?. operator when calling methods.

Mute Participant

Mute a specific participant’s audio. This prevents other participants from hearing them.
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.
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.
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.

Listen for Participant Events

Register a ParticipantEventListener to receive callbacks when participant states change:
Flutter listeners are not lifecycle-aware. You must manually remove listeners in your widget’s dispose() method to prevent memory leaks.

Participant Object

The Participant object contains information about a call participant:

Show/Hide Participant List Button

Control the visibility of the participant list button in the call UI:

Participant List Button Click Listener

Listen for when users tap the participant list button:

Next Steps

Layout & UI

Control call layout and UI elements

Participant Event Listener

Handle all participant events