Chrome finally ships the <usermedia> element for camera and mic access
Chrome has landed the <usermedia> element — a native, declarative way to grab camera and microphone streams without JavaScript. Instead of the old navigator.mediaDevices.getUserMedia() boilerplate, you write a single tag and the browser handles the permission prompt, the stream, and the cleanup. It's the kind of thing that sounds small but saves developers a lot of fiddly code.
The element lets you set mediaType to 'video' or 'audio', point it at a specific device, and even restrict which track to use. Permission is requested once and cached, so the user doesn't get pummeled by prompts on every page load. If the camera is unplugged or permission is denied, the element stays in a sensible degraded state rather than breaking the layout.
Why this matters for us: la gente's phones have cameras — now websites can use them without the old JS mess, and that means cheaper, simpler tools for our communities.
“A single tag, one permission prompt, and the browser does the rest.”