# 03 — browser webcam capture How to get JPEG frames out of `getUserMedia()` and onto the WebSocket the backend already serves. This part has zero unknowns; it's just plumbing. Documenting the exact code so future-you doesn't have to re-research it. ## End-to-end flow ``` ┌────────────────────────────────────┐ user webcam ─► │ MediaStream (getUserMedia) │ │ ▼ │ │