/mwdat-android:camera-streamingfrom mwdat-android
Sets up camera streaming sessions on Android wearable devices, handling video frames, photo capture, and resolution/frame rate configuration.
Ships in mwdat-android. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use a Session and attached Stream to receive frames and capture photos.
Wearables.createSession(...)camera.stream after attaching the camera with session.addCamera(...)import com.meta.wearable.dat.camera.Camera
import com.meta.wearable.dat.camera.addCamera
import com.meta.wearable.dat.camera.types.StreamConfiguration
import com.meta.wearable.dat.camera.types.VideoQuality
import com.meta.wearable.dat.core.Wearables
import com.meta.wearable.dat.core.selectors.AutoDeviceSelector
val session = Wearables.createSession(AutoDeviceSelector()).getOrElse { error ->
throw IllegalStateException(error.description)
}
session.start()
val camera: Camera = session.addCamera(
StreamConfiguration(
videoQuality = VideoQuality.MEDIUM,
frameRate = 24,
),
).getOrElse { error ->
throw IllegalStateException(error.description)
}
camera.stream.start().getOrElse { error ->
throw IllegalStateException(error.description)
}
| Quality | Size |
|---|---|
VideoQuality.HIGH | 720 x 1280 |
VideoQuality.MEDIUM | 504 x 896 |
VideoQuality.LOW | 360 x 640 |
Valid values: 2, 7, 15, 24, 30 FPS.
Lower resolution and frame rate usually produce better visual quality per frame over Bluetooth.
StreamState transitions: STOPPED -> STARTING -> STARTED -> STREAMING -> STOPPING -> STOPPED -> CLOSED
lifecycleScope.launch {
camera.stream.state.collect { state ->
when (state) {
StreamState.STREAMING -> {
// Frames are flowing
}
StreamState.STOPPED -> {
// Streaming ended
}
StreamState.CLOSED -> {
// Stream fully closed
}
else -> Unit
}
}
}
lifecycleScope.launch {
camera.stream.videoStream.collect { frame ->
updatePreview(frame)
}
}
lifecycleScope.launch {
camera.stream.capturePhoto()
.onSuccess { photoData ->
val imageBytes = photoData.data
savePhoto(imageBytes)
}
.onFailure { error, _ ->
showCaptureError(error.description)
}
}
Stop the stream when you no longer need camera data, then stop the parent session if the device interaction is finished.
camera.stop()
session.stop()
If you want to remove the capability entirely before re-adding it, call session.removeCamera().
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/dat-conventionsKotlin patterns, DatResult, session and capability conventions for DAT SDK Android development/debuggingCommon issues, Developer Mode, version compatibility, and session and stream diagnosis/display-accessDisplay capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback/getting-startedSDK setup, Gradle integration, AndroidManifest configuration, and first connection to Meta glasses/live-debugging-mcpUse this whenever debugging an Android DAT app with local DAT Inspector MCP tools, live device events, Meta AI app/device boundary issues, permissions, registration, sessions, streaming, or user reports that the app cannot communicate with glasses./mockdevice-testingMockDeviceKit for testing without physical glasses hardwarenpx claudepluginhub farodamemoria/android --plugin mwdat-androidOther plugins' skills for the same job