Skip to Content
Platform.Ontology

Camera (video capture)

Asks to turn on the camera and receive live video.

Asks you firstCamera, mic and screenCaptureWeb browsersWhile you use it

In one line

Can see and record live video from your camera while the tab is open

Asks to turn on the camera and receive live video.

Gives the site a live view of the person's face, room and surroundings. Used for calls and photos, but also for identity capture, biometrics and covert recording if the tab stays open.

What it can and can't do

What the user does: You click Start video, Join call, or Scan, then choose Allow in the browser pop up

It can

  • Show live video from your camera on the page
  • Send that video to other people on a call or to the site's servers
  • Take still photos or record clips from the video
  • List your cameras and switch between them once you allow access

It cannot

  • Turn the camera on the first time without your Allow tap
  • Keep recording after you close the tab; the browser shows a recording indicator while it runs
  • Use the camera if it is blocked in your device settings
  • See photos or videos already saved on your device

How it differs between platforms: Chrome offers Allow this time, Firefox lets you pick a camera in the pop up, and Safari asks per site.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported532016-08-31Unprefixed from 53; secure context from 47
EdgeSupported122015-07-29None
FirefoxSupported362015-02-24Unprefixed from 36
SafariSupported112017-09-19macOS Safari 11, secure context only
Safari on iPhoneSupported112017-09-19iOS 11, all iOS browsers
Chrome on AndroidSupported532016-09-07None
Samsung InternetSupported6.02017-08-23None

How a site asks for it

APInavigator.mediaDevices.getUserMedia({video: true|constraints}); ImageCapture; track.applyConstraints()
Permission namecamera
Permissions policycamera
Browser compat keysapi.MediaDevices.getUserMedia
api.MediaStreamTrack
api.ImageCapture
How access is grantedprompt
What the user seesChrome: bubble with Allow while visiting, Allow this time, Don't allow. Firefox: dropdown to choose a camera with Remember this decision. Safari: Allow or Don't Allow, per-site Ask/Deny/Allow. An OS camera indicator (green dot, menu bar icon) shows while active.
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
How long it lastsChrome and Edge: persistent per origin once allowed; one-time grants end when the tab closes. Firefox: remembered only if ticked. Safari: per session by default, reasks after the page is left.
How to take it backPadlock icon, Site settings, OS camera privacy settings; track.stop() ends capture; Permissions API 'change' event.
Inside an iframeCross-origin iframes need allow="camera"; the grant is keyed to the top-level origin.

Typical flow

  1. Call getUserMedia({video: true}) from a secure context
  2. Browser checks Permissions Policy then shows prompt
  3. OS camera opens and indicator turns on
  4. Promise resolves with a MediaStream of one video track; or rejects NotAllowedError, NotFoundError, NotReadableError, OverconstrainedError

Data you get

What comes back: Live video track (MediaStreamTrack)
Shape: stream
How often: continuous at the camera frame rate

FieldTypeUnitRangePrecision
widthintegerpixels1 to 7680 (device dependent)1 px
heightintegerpixels1 to 4320 (device dependent)1 px
frameRatefloatframes per second1 to 120 (typical 30)0.1
facingModeenumnoneuser, environment, left, rightexact if supported
deviceIdstringopaque idper-origin, reset on clearing cookies32 or 64 hex characters
aspectRatiofloatratio0.1 to 100.001

Technical limits

  • Needs a secure context and (Chrome) a visible tab for ongoing capture
  • Cannot pick a specific camera silently: labels hidden until permission
  • OS shows an active indicator
  • No capture of raw sensor data: browser applies processing

The story

What it is

Lets a website turn on your camera and see live video of you and your room.

For you

A small box pops up asking to use your camera. You pick Allow or Block, and a camera dot or icon shows in the tab while it is on. If you allow it, the site sees you live until you close the tab or turn it off.

For makers

Camera access turns a plain web page into a video call room, a scanner or a photo booth with no app install. It is what makes web video products possible, and it powers identity checks that cut fraud and sign-up cost. The maker also gets sharper support, since they can see the problem when a customer shows it.

Where you see it

TypeExampleApps
videoYou click a Google Meet link in the browser, allow the camera, and your face appears in the call tile in seconds with nothing to install.Google Meet, Zoom web client, Microsoft Teams
securityOpening a bank account online, the site asks you to hold up a driver license and then take a selfie so it can match your face.Onfido, Persona, Stripe Identity
gamesA browser game reads your hand or face through the webcam so you steer a character by tilting your head or waving your hand, and the video never leaves your computer.Google MediaPipe demos, Chrome Experiments
socialYou open a web camera effects page, the site puts virtual glasses and animal ears on your live video, and you snap a photo to share.Snapchat web Lenses, Instagram web
shoppingA glasses or makeup shop uses your live video to show frames or lipstick on your face so you can try before you buy.Warby Parker virtual try on, Sephora Virtual Artist
educationIn an online exam, the proctoring page watches you through the camera to check that you are alone and not reading notes.ProctorU, Examity
creativeYou record a quick screen and face video message right in the browser to send a teammate instead of writing a long email.Loom, Descript
liveA streaming studio in the browser lets you invite a guest by link, and their webcam shows up in your show.StreamYard, Riverside

Risks

  • Covert recording from a forgotten open tab
  • Face scans used for tracking or identity

What the platform says

Good uses and abuse

Legitimate uses

  • Video calls
  • Document and ID capture
  • QR and barcode scanning
  • Photo booths and AR

Known abuse

  • Covert recording from a forgotten tab
  • Facial recognition and biometric capture
  • Deepfake training samples

Scores

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

History

  • 2016-10, Chrome 53: navigator.mediaDevices.getUserMedia unprefixed
  • 2017-09, Safari on iPhone 11: Safari on iOS 11 adds getUserMedia
  • 2018-01, Chrome 60: getUserMedia restricted to secure contexts (HTTPS or localhost)
  • 2023-08, Chrome 116: Allow this time one-time permission added
  • 2026-06, Chrome 151: <usermedia> element announced as available

Sources

How well checked: Based on official documentation.

On this page