audio-streaming
Receive synchronized PCM audio frames through a Camera stream on Android
Common issues, Developer Mode, version compatibility, and session and stream diagnosis
$ npx -y skills add facebook/meta-wearables-dat-android --skill debugging --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/debuggingContext preview
The summary Claude sees to decide when to auto-load this skill.
Common issues, Developer Mode, version compatibility, and session and stream diagnosis
name: debugging description: Common issues, Developer Mode, version compatibility, and session and stream diagnosis
Diagnose common setup, session, and stream issues in DAT SDK integrations.
If local DAT Inspector MCP tools are available, use the `live-debugging-mcp` skill before changing app code. Prefer `get_dat_readiness`, `get_companion_boundary_diagnosis`, and `get_device_path` to separate app bugs from Meta AI app/device boundary issues using read-only DAT evidence.
No eligible device or session won't start? | +-- Did you call Wearables.initialize(context)? -> Must happen before SDK usage | +-- Did registration complete? -> Observe Wearables.registrationState | +-- Is Developer Mode enabled? -> Enable it in the Meta AI app for dev builds | +-- Does Wearables.devices contain a linked device? -> Check Bluetooth and range | +-- Did createSession() or addCamera() return a DatResult failure? -> Surface the typed error
Developer Mode must be enabled for local development builds that use `mwdat_application_id = 0` and `mwdat_client_token = 0`.
Ensure compatible versions of the SDK, Meta AI app, and glasses firmware. See [version dependencies](https://wearables.developer.meta.com/docs/version-dependencies) for the current compatibility matrix.
private const val TAG = "DATWearables"
camera.stream.start()
.onFailure { error, _ -> Log.e(TAG, "Failed to start stream: ${error.description}") }Prefer logging typed `DatResult` failures and observed state transitions over generic exceptions.
When the developer has a local DAT debug server connected to the agent:
capability, device-selection, deeplink-return, and DAM/DWA-visible blockers
device selection/link -> session -> stream
narrowest category or source that matches the flow
Do not treat this as companion app introspection. It is diagnosis from app-visible DAT debug events.
The Meta Wearables Device Access Toolkit enables developers to utilize Meta's AI glasses to build hands-free wearable experiences into their mobile applications.
Receive synchronized PCM audio frames through a Camera stream on Android
Capture standalone high-quality photos from connected glasses on Android
Session and Stream capability setup, video frames, photo capture, resolution and frame rate configuration
Kotlin patterns, DatResult, session and capability conventions for DAT SDK Android development
Use the Wearables DAT MCP server for live DAT documentation search with `search_dat_docs`, Muse Code, Claude Code, Codex, Cursor,…
Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback