cometchat/calls-sdk-android/video-controls

Claude Code and agent skill by cometchat/calls-sdk-android

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Control video during calls — pause/resume camera, switch front/back camera. Use when implementing camera toggle, camera switch, or custom video buttons. Triggers on "pause video", "resume video", "switch camera", "camera toggle", "video controls".

Install

npx vskill@latest install cometchat/calls-sdk-android/video-controls

SKILL.md

The same SKILL.md was published earlier as cometchat/calls-sdk-android/video-controls.

CometChat Calls SDK v5 — Video Controls

Overview

Programmatically control the local camera (pause/resume) and switch between front/back cameras during an active call.

Key Imports

kotlin
import com.cometchat.calls.core.CallSession
import com.cometchat.calls.model.CameraFacing
import com.cometchat.calls.listeners.MediaEventsListener

Implementation

Pause / Resume Video
kotlin
val callSession = CallSession.getInstance()
callSession.pauseVideo() // turn off camera
callSession.resumeVideo() // turn on camera
Switch Camera
kotlin
callSession.switchCamera() // toggle front ↔ back
Listen for Video Events
kotlin
callSession.addMediaEventsListener(this, object : MediaEventsListener() {
override fun onVideoPaused() {
// Update video button to "off" state, show avatar
}
override fun onVideoResumed() {
// Update video button to "on" state, show video
}
override fun onCameraFacingChanged(facing: CameraFacing) {
when (facing) {
CameraFacing.FRONT -> { /* front camera active */ }
CameraFacing.REAR -> { /* rear camera active */ }
}
}
// ... other required overrides
override fun onAudioMuted() {}
override fun onAudioUnMuted() {}
override fun onRecordingStarted() {}
override fun onRecordingStopped() {}
override fun onAudioModeChanged(audioMode: AudioMode) {}
})
Initial Video Settings (Pre-Session)
kotlin
val sessionSettings = CometChatCalls.SessionSettingsBuilder()
.setSessionType(SessionType.VIDEO)
.startVideoPaused(false) // start with camera on
.setInitialCameraFacing(CameraFacing.FRONT) // start with front camera
.hideToggleVideoButton(false) // show video toggle
.hideSwitchCameraButton(false) // show camera switch
.build()

Gotchas

  • pauseVideo() / resumeVideo() only work during an active session
  • switchCamera() toggles between front and back — no parameter needed
  • CameraFacing enum: FRONT, REAR
  • For voice calls (SessionType.VOICE), set .startVideoPaused(true)
  • Camera permissions must be granted at runtime before joining

Sample App Reference

  • CallActivity.kt — Sets startVideoPaused(true) for voice calls

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
21
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cometchat/calls-sdk-android/video-controls/badge)](https://verified-skill.com/skills/cometchat/calls-sdk-android/video-controls)

Something wrong with this skill or its page? Tell us.