camera-streaming
Installation
SKILL.md
Camera Streaming (Android)
Use a DeviceSession and an attached Camera to receive frames and capture photos through camera.stream.
For PCM audio delivered with this stream, use the audio-streaming skill.
Key concepts
- DeviceSession: Device connection lifecycle created through
Wearables.createSession(...) - Camera: Camera capability attached to a session with
session.addCamera(...) - Stream: Video stream accessed through
camera.stream - StreamConfiguration: Video quality, frame rate, and compression configuration for the stream
- PhotoData: Still image captured from glasses while streaming
Create a session and attach a stream
DeviceSession.start() is fire-and-forget: it returns Unit and the connection completes in the background. A capability can only be added once the session reports DeviceSessionState.STARTED — calling addCamera(...) right after start() fails with DeviceSessionError.SESSION_IDLE. Add the camera from the session-state collector.