spec checked

MDN: MediaDevices getUserMedia()

Documents requesting camera or microphone media streams, user permission prompts, constraints, returned MediaStream tracks, and error cases for denied or unavailable media.

Open source

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Camera capture Choose camera capture when the product must create new camera media and users need live preview, framing, capture, review, and retake behavior. The camera stream starts only after a deliberate user action and contextual permission rationale. Supports permission-gated media stream capture and camera access errors.
QR scan Choose QR scan when decoding a code and acting on the decoded payload is the central task. Scanning starts only after users choose a QR-dependent task and can see purpose, fallback, and privacy impact. Supports camera access states when web QR scanning uses live video.

Evidence Role

This source is treated as spec evidence. Use it to validate the decision rules above, not as a visual style reference.

Publisher: MDN Web Docs. Last checked: .