facebook/meta-wearables-dat-ios/camera-streaming
Claude Code and agent skill by facebook/meta-wearables-dat-ios
- community
Checking that the SKILL.md file is still in the repository.
Stream, video frames, photo capture, resolution/frame rate configuration
Install
npx vskill@latest install facebook/meta-wearables-dat-ios/camera-streamingSKILL.md
The same SKILL.md was published earlier as facebook/meta-wearables-dat-ios/camera-streaming.
Camera Streaming (iOS)
Guide for implementing camera streaming and photo capture with the DAT SDK.
For PCM audio delivered with this stream, use the audio-streaming skill.
Key concepts
- DeviceSession: The connection to the glasses. Create and start it first; it can stay connected with no camera attached.
- Camera: The capability you attach to a started
DeviceSessionwithaddCamera(config:). It owns theStream. - Stream:
camera.stream— start/stop streaming, capture photos, observe frames, state, and errors. - VideoFrame: Individual video frames. Use
.makeUIImage()to render, or.sampleBufferwhen you need the rawCMSampleBuffer(for example to write compressed frames to a file). - StreamConfiguration: Configure video codec, resolution, and frame rate.
- PhotoData: Still image captured from glasses (
.dataplus.format).
Treat "start a session" and "start the preview" as two separate user-visible steps, as the CameraAccess sample does. That keeps the session reusable when the user stops and restarts the preview.
Creating a DeviceSession
Adding a Camera
Camera streaming runs over Wi-Fi, so the app needs the Hotspot Configuration capability and these Info.plist entries: a non-empty NSLocalNetworkUsageDescription and _bonjour._tcp in NSBonjourServices. Without the entries, the stream fails with StreamError.deviceNotConnected.
Once the DeviceSession is started, add the Camera capability and stream through camera.stream.
Check camera permission first. checkPermissionStatus(.camera) is a silent query, while requestPermission(.camera) switches to the Meta AI app. CameraAccess only calls requestPermission after the user confirms the app switch, so the redirect is never a surprise:
Then attach the camera:
Resolution options
| Resolution | Size | |
|---|---|---|
.high | 720 x 1280 | |
.medium | 504 x 896 | |
.low | 360 x 640 |
Frame rate options
frameRate is a UInt. Valid values: 2, 7, 15, 24, 30 FPS.
Codec options
VideoCodec has two cases:
.raw— decoded frames. Render them directly withframe.makeUIImage()..hvc1— compressed HEVC frames. Use this when you want to write frames to a file in passthrough mode; you must decodeframe.sampleBufferyourself for on-screen preview, asCameraAccessdoes.
StreamConfiguration() with no arguments defaults to .raw, .medium, and 30 FPS.
Observing stream state
StreamState transitions: stopping → stopped → waitingForDevice → starting → streaming → paused
Receiving video frames
Observing stream errors
stream.errorPublisher emits typed StreamError values such as .permissionDenied, .deviceNotConnected, .hingesClosed, .thermalHot, .batteryLow, and .photoCaptureFailed. Surface error.localizedDescription rather than maintaining your own error-message map.
Keep listener tokens alive for as long as you need callbacks. MWDATCore provides ListenerTokenBag and AnyListenerToken.store(in:) for that:
Starting and stopping
In-stream photo capture
This is the lightweight capture path used while video is streaming. For standalone high-quality capture with resolution, quality, transfer progress, and its own lifecycle, use the camera-capture skill.
Capture a still photo while streaming. capturePhoto(format:) returns Bool: false means the capture was not started (for example another capture is already in flight), so no photoDataPublisher event will arrive.
Bandwidth and quality
Resolution and frame rate are constrained by the bandwidth between the phone and the glasses. The SDK automatically reduces quality when bandwidth is limited:
- First lowers resolution (e.g., High → Medium)
- Then reduces frame rate (e.g., 30 → 24), never below 15 FPS
Request lower settings for higher visual quality per frame.
Links
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
- SKILL.md in the repositoryCheckingplugins/mwdat-ios/skills/camera-streaming/SKILL.md
Popularity
- Repository stars
- 555
- Repository forks
- 123
- 7-day trend score
- 32
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
[](https://verified-skill.com/skills/facebook/meta-wearables-dat-ios/camera-streaming)