Skip to content

Optional camera module: phone as shot camera#33

Merged
AlexNly merged 1 commit into
mainfrom
feat/camera-module
Jul 16, 2026
Merged

Optional camera module: phone as shot camera#33
AlexNly merged 1 commit into
mainfrom
feat/camera-module

Conversation

@AlexNly

@AlexNly AlexNly commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Second half of the Discord video request. MATEBOT_CAMERA=1 starts an aiohttp server (no new deps) serving a self-contained phone page: getUserMedia rear camera, screen wake-lock, live preview, armed/recording states, auto-reconnecting WebSocket. The bot detects shot start/end on the live status stream and commands the page to record; MediaRecorder chunks stream up the socket, get a 5s tail, and land in the video pipeline from #32 (ffmpeg transcode, sidecar offset, prune, journal sync playback). Clip/shot-id arrival order is racy, so a rendezvous attaches whichever side completes second. Best-effort: no page connected means no recording and no errors. HTTPS requirement (getUserMedia) documented with reverse-proxy and tailscale-serve recipes.

@AlexNly
AlexNly merged commit 5638a0c into main Jul 16, 2026
3 checks passed
@AlexNly
AlexNly deleted the feat/camera-module branch July 16, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant