Prerequisites
- An active call session
- Access to the
CallSessioninstance - Camera permissions granted
Get CallSession Instance
All video control methods are called on theCallSession singleton:
- Kotlin
- Java
Pause Video
Turn off the local camera. Other participants will see a placeholder instead of your video feed.- Kotlin
- Java
When you pause your video, the
onVideoPaused() callback is triggered on your MediaEventsListener.Resume Video
Turn on the local camera to resume transmitting video.- Kotlin
- Java
When you resume your video, the
onVideoResumed() callback is triggered on your MediaEventsListener.Switch Camera
Toggle between the front-facing and rear cameras.- Kotlin
- Java
When the camera is switched, the
onCameraFacingChanged(CameraFacing) callback is triggered on your MediaEventsListener.CameraFacing Enum
Listen for Video Events
Register aMediaEventsListener to receive callbacks when video state changes:
- Kotlin
- Java
Initial Video Settings
You can configure the initial video state when joining a session usingSessionSettings:
- Kotlin
- Java
Hide Video Controls in UI
You can hide the built-in video control buttons usingSessionSettings:
- Kotlin
- Java
Next Steps
Recording
Record call sessions
Media Events Listener
Handle all media events