My learning 0 of 20 lessons complete
Start lesson 1 →
spec 2 linked patterns 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.

Read with a purpose

What this source can teach

Use this source to check a technical or accessibility requirement against its exact wording and scope.

  1. Start with the original. Open the source and find the guidance or example relevant to your task.
  2. Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
  3. Check the setting. Compare the source's platform, people, and constraints with your own decision.

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. Its value comes from the specific claims and setting described above.

Publisher: MDN Web Docs. Last checked: .

Saved items