CallSession singleton instance during an active call session.
Get CallSession Instance
TheCallSession is a singleton that manages the active call. All actions are accessed through this instance.
- Kotlin
- Java
Always check
isSessionActive() before calling actions to ensure there’s an active call.Actions
Mute Audio
Mutes your local microphone, stopping audio transmission to other participants.- Kotlin
- Java
Unmute Audio
Unmutes your local microphone, resuming audio transmission.- Kotlin
- Java
Set Audio Mode
Changes the audio output device during a call.- Kotlin
- Java
AudioMode Values
AudioMode Values
Pause Video
Turns off your local camera, stopping video transmission. Other participants see your avatar.- Kotlin
- Java
Resume Video
Turns on your local camera, resuming video transmission.- Kotlin
- Java
Switch Camera
Toggles between front and back cameras without interrupting the video stream.- Kotlin
- Java
Start Recording
Begins server-side recording of the call. All participants are notified.- Kotlin
- Java
Stop Recording
Stops the current recording. The recording is saved and accessible via the dashboard.- Kotlin
- Java
Mute Participant
Mutes a specific participant’s audio. This is a moderator action.- Kotlin
- Java
Pause Participant Video
Pauses a specific participant’s video. This is a moderator action.- Kotlin
- Java
Pin Participant
Pins a participant to keep them prominently displayed regardless of who is speaking.- Kotlin
- Java
Unpin Participant
Removes the pin, returning to automatic speaker highlighting.- Kotlin
- Java
Set Layout
Changes the call layout. Each participant can choose their own layout independently.- Kotlin
- Java
LayoutType Values
LayoutType Values
Enable Picture In Picture Layout
Enables PiP mode, allowing the call to continue in a floating window.- Kotlin
- Java
Disable Picture In Picture Layout
Disables PiP mode, returning to full-screen call interface.- Kotlin
- Java
Set Chat Button Unread Count
Updates the badge count on the chat button. Pass 0 to hide the badge.- Kotlin
- Java
Is Session Active
Returnstrue if a call session is active, false otherwise.
- Kotlin
- Java
Leave Session
Ends your participation and disconnects gracefully. The call continues for other participants.- Kotlin
- Java
Raise Hand
Shows a hand-raised indicator to get attention from other participants.- Kotlin
- Java
Lower Hand
Removes the hand-raised indicator.- Kotlin
- Java
Participant Object Reference
Participant Object Reference