camera-streaming
Skill by facebook
Explains how Android developers use a DeviceSession and an attached Camera to receive video frames and capture photos from glasses. It covers stream quality, frame rate, state handling and cleanup.
Install camera-streaming
Built from the published package, never by AI.
git clone --depth 1 https://github.com/facebook/meta-wearables-dat-android /tmp/meta-wearables-dat-android && mkdir -p ~/.claude/skills && cp -r /tmp/meta-wearables-dat-android/plugins/mwdat-android/skills/camera-streaming ~/.claude/skills/camera-streamingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/facebook/meta-wearables-dat-android /tmp/meta-wearables-dat-android && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/meta-wearables-dat-android/plugins/mwdat-android/skills/camera-streaming ~/.gemini/antigravity-cli/skills/camera-streamingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The camera-streaming skill shows how an Android app uses a DeviceSession and an attached Camera to receive video frames and capture photos through camera.stream. It covers creating a session with Wearables.createSession, attaching a camera with session.addCamera, and setting a StreamConfiguration with video quality and frame rate. The source lists HIGH, MEDIUM and LOW resolutions and frame rates of 2, 7, 15, 24 and 30 FPS.
The skill also covers observing StreamState and stream errors, receiving YUV or compressed HEVC frames, capturing in-stream photos as PhotoData, and cleaning up the camera and session. It is written for Android developers building apps that work with Meta wearable glasses. It refers readers to the audio-streaming, camera-capture and permissions-registration skills for related tasks.
Written from the project's SKILL.md and checked against it.
What it can do
- Session setupCreates a DeviceSession with Wearables.createSession and waits for the STARTED state.
- Camera attachmentAdds a Camera to a session with session.addCamera using a StreamConfiguration.
- Quality and frame rateSets video quality (HIGH, MEDIUM, LOW) and frame rate from 2, 7, 15, 24 or 30 FPS.
- Stream state observationTracks StreamState transitions, including PAUSED when the device pauses the stream.
- Stream error handlingCollects errorStream events and distinguishes informational and critical stream errors.
- Frame receivingCollects VideoFrame data from camera.stream.videoStream, as YUV or compressed HEVC.
- In-stream photo captureCalls capturePhoto while streaming and branches on PhotoData.Bitmap or PhotoData.HEIC.
- CleanupStops the camera and session, and removes a camera so a new one can be added.
What you need
- Android development environment
- Meta wearable device with camera
- Camera permission through the permissions-registration skill
Try asking
- Set up a Kotlin session and attach a camera at MEDIUM quality and 24 FPS
- Show me how to collect video frames from camera.stream in Android
- Capture an in-stream photo and handle the Bitmap or HEIC result
Good to know
- Valid frame rates are 2, 7, 15, 24 and 30 FPS only.
- capturePhoto succeeds only while the stream is active.
- Only one photo capture can be in flight at a time.
- Camera.stop and Stream.stop invalidate the instance and cannot be restarted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/mwdat-android/skills/camera-streaming/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to camera-streaming
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
camera-streaming: common questions
How do I start a camera stream on Android with this skill?
Create a session with Wearables.createSession, then add the camera from the session state collector once the state is STARTED. The skill shows the full Kotlin example.
Can I receive compressed video instead of YUV frames?
Yes. Setting StreamConfiguration with compressVideo set to true delivers compressed HEVC buffers, and you must feed them to your own decoder.
Is in-stream photo capture the same as standalone capture?
No. The source says in-stream capture runs while video streaming remains active, and standalone high-quality capture is covered by the camera-capture skill.
How do I install camera-streaming?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is camera-streaming free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is camera-streaming safe to use?
It scores 70 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to camera-streaming?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
