What problem does it solve?
Calls apps often need responsive camera controls during an active video session, such as pausing/resuming the camera and switching between front and rear lenses without disrupting the call flow.
Core Features & Use Cases
- Pause/Resume Camera: Programmatically turn local video off and back on during an ongoing call.
- Switch Camera Facing: Toggle between front and rear cameras to support different user scenarios.
- Event-Driven UI Updates: Listen to media events so custom buttons accurately reflect the current camera state.
- Pre-Session Configuration: Set initial video state and whether built-in UI toggles for video and camera switching should be shown.
Use case: You are building a custom call screen where the user taps a button to mute their video by turning the camera off, then later re-enables video and switches cameras, with the UI reflecting each state change automatically.
Quick Start
Use the video-controls skill to pause and resume the local camera during an active call, switch between front and back cameras, and keep your UI in sync using media event callbacks.