Skip to Content
Platform.Ontology

HTML <usermedia> element (camera and microphone)

A browser-drawn button that asks for camera or microphone; the click is the request.

Asks you firstCamera, mic and screenCaptureWeb browsersWhile you use it

In one line

Can ask for camera or microphone through a button the browser draws itself

A browser-drawn button that asks for camera or microphone; the click is the request.

Same power as getUserMedia, but the request starts from a button the site cannot disguise. Aims to cut prompt spam and make recovery after a block possible.

What it can and can't do

What the user does: You click the browser made Use camera or Use microphone button on the page

It can

  • Show a browser drawn button that starts the camera or microphone request
  • Let you retry after you blocked access earlier, since the click is a clear request
  • Open the normal camera or microphone prompt

It cannot

  • Change the button's label or icon to look like something else
  • Turn the camera or microphone on without your click and approval
  • Skip the normal prompt
  • Work in Firefox, Safari or iPhone browsers

How it differs between platforms: Only Chrome, Edge and Chrome on Android support it for now.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported1512026-07-28Origin trial from 144, announced available 2026-06
EdgeSupported1512026-07-31None
FirefoxNot supportedNot availableNot listedNone
SafariNot supportedNot availableNot listedNone
Safari on iPhoneNot supportedNot availableNot listedNone
Chrome on AndroidSupported1512026-07-28None
Samsung InternetNot supportedNot availableNot listedNone

How a site asks for it

API<usermedia type="camera microphone" onstream=...>; element.stream; setConstraints()
Permission namecamera, microphone
Permissions policycamera; microphone
Browser compat keysapi.HTMLUserMediaElement
How access is grantedprompt
What the user seesBrowser-drawn button with fixed label and icon; click opens the normal camera or microphone prompt.
Needs a secure context (HTTPS)Yes
Needs a user gestureYes
How long it lastsSame stored permissions as getUserMedia
How to take it backSame as camera and microphone
Inside an iframeNeeds allow="camera; microphone" in cross-origin iframes

Typical flow

  1. Add <usermedia> to the page
  2. Person clicks the browser-drawn button
  3. Browser prompts
  4. stream event delivers a MediaStream

Data you get

What comes back: MediaStream delivered through an element
Shape: stream
How often: continuous

No individual data fields. The signal is the access itself.

Technical limits

  • Cannot be hidden, resized or restyled to deceive
  • Chrome only for now

The story

What it is

A browser drawn button that a site cannot fake; clicking it asks for camera or microphone.

For you

You see a normal looking button that says something like Use camera. It is drawn by the browser, so the site cannot change what it says. Clicking it starts the permission request, which is clearer than a surprise pop up.

For makers

Makers get a cleaner way to ask, and fewer people who block by mistake because the pop up appeared too early. If someone has blocked the camera, the button lets them change that in one place. It also reduces spam prompts that hurt trust in all sites.

Where you see it

TypeExampleApps
videoA call site shows a Use camera button in the pre join screen, and a click is the request, so you know exactly why it is asking.Google Meet, Zoom web
securityAn ID check page shows a browser drawn camera button so a phisher cannot fake the request to look like your bank.Onfido, Persona
gamesA browser game with face control shows a clear Enable camera button on the title screen, and not a prompt at page load.None named
socialA web camera effect page shows a button for the camera and another for the microphone, so you pick one without a pile of pop ups.Snapchat web, Instagram web
shoppingA try on page makes you click Use camera to start the live view, which feels like your choice.Warby Parker, Sephora
enterpriseA telehealth waiting room shows the button, so a patient who blocked the camera before can fix it in one click.Doxy.me, Teladoc

Risks

  • Still new and not in every browser
  • People may click without reading

What the platform says

Good uses and abuse

Legitimate uses

  • Clearer consent for calls
  • Recovery from earlier block

Known abuse

  • None beyond getUserMedia

Scores

ScoreValueMeaning
Sensitivity5 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction1 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2025-12, Chrome 144: <permission> style elements, including <usermedia>, enter origin trial
  • 2026-06, Chrome 151: <usermedia> announced available (an earlier M149 launch was cancelled)

Sources

How well checked: Inferred from related behavior.

On this page