Introducing the <usermedia> HTML element | Blog | Chrome for Developers

Yes, it’s Chrome only.

Feature support can be detected with:

'HTMLUserMediaElement' in window

and shimmed with:

const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true }); 

document.querySelector('video').srcObject = stream;

I believe this new HTML element will allow developers to avoid calling getUserMedia() which may have an impact on Permissions (for camera, microphone, etc.) during video calls. Perhaps Google is trying to streamline the video call experience (Meet, Zoom) in Chrome.

Seems to expand on concepts related to <geolocation> (which is not Chrome specific).

1 Like