Camera/Mic Element

<usermedia> is the same idea as the geolocation demo, applied to getUserMedia(): the browser owns the button and the prompt, this page just listens for a stream event and attaches the resulting MediaStream to a preview <video>. Needs a camera/mic, a secure context (https:// or http://localhost), and you'll have to actually grant the permission to see the preview.

Checking for <usermedia> support…