CometChatCalls. These methods allow you to manage audio, video, and other call features.
Audio Controls
Mute Audio
Mute the local user’s microphone:Unmute Audio
Unmute the local user’s microphone:Video Controls
Pause Video
Stop sending the local user’s video:Resume Video
Resume sending the local user’s video:Switch Camera
Toggle between front and rear cameras:Session Control
Leave Session
End the call and leave the session:The
leaveSession() method ends the call for the local user. Other participants will remain in the call unless they also leave.leaveSession() takes no session ID. CometChatCalls is a singleton that tracks one active session at a time, so this leaves whichever session is currently in progress. The same applies to every action on this page. See Single Active Session.Transcription
Available since v5.0.5Start Transcription
Begin server-side transcription of the call. This also enables the live closed captions overlay:Stop Transcription
Stop the current transcription and clear any captions currently on screen. The transcript is saved and can be retrieved withTranscriptRequestBuilder:
Raise Hand
Raise Hand
Signal to other participants that you want attention:Lower Hand
Lower your raised hand:Layout Control
Set Layout
Change the call layout programmatically:Picture-in-Picture
Enable Picture-in-Picture
Enable PiP mode to continue the call in a floating window:Disable Picture-in-Picture
Exit PiP mode and return to full-screen:Participant Management
Pin Participant
Pin a participant to the main view:Unpin Participant
Remove the pinned participant:Mute Participant
Mute another participant’s audio (requires moderator permissions):Pause Participant Video
Pause another participant’s video (requires moderator permissions):Participant List Panel
Show, hide, or toggle the built-in participant list panel programmatically:Chat Integration
Set Chat Button Unread Count
Update the unread message count on the chat button:Complete Example
Legacy Methods
These methods are deprecated but still available for backward compatibility:Related Documentation
- Events - Listen for call events
- Participant Management - Manage participants
- Call Layouts - Layout options
- Transcription - Transcription and closed captions