Manage participants during a call with actions like muting, pausing video, and pinning. These features help maintain order in group calls and highlight important speakers.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
By default, all participants who join a call have moderator access and can perform these actions. Implementing role-based moderation (e.g., restricting actions to hosts only) is the responsibility of the app developer based on their use case.
Mute a Participant
Mute a specific participant’s audio. This affects the participant for all users in the call.Pause Participant Video
Pause a specific participant’s video. This affects the participant for all users in the call.Pin a Participant
Pin a participant to keep them prominently displayed regardless of who is speaking. Useful for keeping focus on a presenter or important speaker.Pinning a participant only affects your local view. Other participants can pin different users independently.
Listen for Participant Events
Monitor participant state changes usingParticipantEventListener:
Flutter listeners are not lifecycle-aware. You must manually remove listeners in your widget’s
dispose() method to prevent memory leaks.Participant Object
TheParticipant object contains information about each call participant:
| Property | Type | Description |
|---|---|---|
uid | String | Unique identifier (CometChat user ID) |
name | String | Display name |
avatar | String | URL of avatar image |
pid | String | Participant ID for this call session |
role | String | Role in the call |
audioMuted | bool | Whether audio is muted |
videoPaused | bool | Whether video is paused |
isPinned | bool | Whether pinned in layout |
isPresenting | bool | Whether screen sharing |
raisedHandTimestamp | int | Timestamp when hand was raised (0 if not raised) |
Hide Participant List Button
To hide the participant list button in the call UI:Participant Actions
Mute, pause video, and pin participants programmatically
Participant Event Listener
Handle all participant events