Camera (video capture)
Asks to turn on the camera and receive live video.
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
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 53 | 2016-08-31 | Unprefixed from 53; secure context from 47 |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 36 | 2015-02-24 | Unprefixed from 36 |
| Safari | Supported | 11 | 2017-09-19 | macOS Safari 11, secure context only |
| Safari on iPhone | Supported | 11 | 2017-09-19 | iOS 11, all iOS browsers |
| Chrome on Android | Supported | 53 | 2016-09-07 | None |
| Samsung Internet | Supported | 6.0 | 2017-08-23 | None |
How a site asks for it
| API | navigator.mediaDevices.getUserMedia({video: true|constraints}); ImageCapture; track.applyConstraints() |
| Permission name | camera |
| Permissions policy | camera |
| Browser compat keys | api.MediaDevices.getUserMediaapi.MediaStreamTrackapi.ImageCapture |
| How access is granted | prompt |
| What the user sees | Chrome: 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 gesture | No |
| How long it lasts | Chrome 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 back | Padlock icon, Site settings, OS camera privacy settings; track.stop() ends capture; Permissions API 'change' event. |
| Inside an iframe | Cross-origin iframes need allow="camera"; the grant is keyed to the top-level origin. |
Typical flow
- Call getUserMedia({video: true}) from a secure context
- Browser checks Permissions Policy then shows prompt
- OS camera opens and indicator turns on
- 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
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
width | integer | pixels | 1 to 7680 (device dependent) | 1 px |
height | integer | pixels | 1 to 4320 (device dependent) | 1 px |
frameRate | float | frames per second | 1 to 120 (typical 30) | 0.1 |
facingMode | enum | none | user, environment, left, right | exact if supported |
deviceId | string | opaque id | per-origin, reset on clearing cookies | 32 or 64 hex characters |
aspectRatio | float | ratio | 0.1 to 10 | 0.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
| Type | Example | Apps |
|---|---|---|
| video | You 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 |
| security | Opening 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 |
| games | A 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 |
| social | You 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 |
| shopping | A 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 |
| education | In an online exam, the proctoring page watches you through the camera to check that you are alone and not reading notes. | ProctorU, Examity |
| creative | You record a quick screen and face video message right in the browser to send a teammate instead of writing a long email. | Loom, Descript |
| live | A 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
- Mozilla: getUserMedia. Developer docs describe how a page asks permission, then gets a live camera stream for calls, photos and scanning.
- Google Chrome: One-time permissions. Chrome added Allow this time so people can give camera access for a single visit instead of forever.
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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 5 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough 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
Related capabilities
Related
- Microphone (audio capture). Can hear and record live audio from your microphone while the tab is open
- enumerateDevices label gating. Can count your cameras, mics and speakers, but names stay hidden until you allow access
- HTML <usermedia> element (camera and microphone). Can ask for camera or microphone through a button the browser draws itself
- Camera pan, tilt and zoom control. Can move or zoom a motorized camera, once the site already has camera access
Sources
How well checked: Based on official documentation.