android-video-capture

Community

Capture video and photos in CameraX

Authordrewid74
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Building a reliable camera screen is hard because lifecycles, permissions, and recording/capture flows easily break across devices, orientations, and UI recompositions.

Core Features & Use Cases

  • Lifecycle-aware CameraX setup in Android apps using ProcessCameraProvider so preview and capture start/stop safely with the UI lifecycle.
  • Video recording to MediaStore with VideoCapture and MediaStoreOutputOptions, including optional audio support for MP4 gallery-ready videos.
  • Photo capture to MediaStore with ImageCapture and correct ContentValues for gallery placement.
  • Simultaneous preview + video + photo, with runtime capability checks via CameraInfo.isUseCaseCombinationSupported() for older devices.
  • Camera controls including dynamic front/back selection and torch/flashlight control with state observation.
  • Safety and quality guardrails like explicit QualitySelector, strong references to active recordings, and anti-pattern fixes for common IllegalStateException and finalize issues.

Quick Start

Use the android-video-capture skill to implement a Compose camera preview that records an audio-enabled video to the gallery and captures photos with torch support.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: android-video-capture
Download link: https://github.com/drewid74/ai_skills/archive/main.zip#android-video-capture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.