Skip to Content
Platform.Ontology

Media device kinds and counts

Counts of cameras, microphones and speakers, without names, before any permission.

Gets silentlyDevice detailsPeripheralsWeb browsersWhen the page loadsWhile you use it

In one line

Can count your cameras, mics, and speakers without names before you allow access

Counts of cameras, microphones and speakers, without names, before any permission.

Tells a site whether the device has a camera and mic and how many outputs. Without permission labels and device IDs are empty, but kinds and counts leak a hardware profile (laptop vs headset vs desktop).

What it can and can't do

What the user does: Nothing. It happens when a page checks for a camera or mic

It can

  • See whether you have a camera or microphone
  • Count cameras, mics, and speakers
  • Guess a laptop, headset, or desktop setup from the counts
  • See full device names after you allow camera or mic

It cannot

  • See device names or IDs before you allow camera or mic
  • Turn on your camera or microphone
  • See pictures or sound
  • See which device is in use

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported472015-12-01None
EdgeSupported122015-07-29None
FirefoxSupported1162023-08-01None
SafariSupported112017-09-19None
Safari on iPhoneSupported112017-09-19None
Chrome on AndroidSupported472015-12-02None
Samsung InternetSupported5.02016-12-15None

How a site asks for it

APInavigator.mediaDevices.enumerateDevices()
Browser compat keysapi.MediaDevices.enumerateDevices
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
kindenumNoneaudioinput, audiooutput, videoinputNot listed
count per kindintegerNone0 to about 10exact
deviceId, labelstringNoneempty until getUserMedia grantedNot listed

Technical limits

  • No labels or hardware IDs until permission
  • Safari hides count until permission

The story

What it is

Tells a page how many cameras, microphones and speakers you have, without names, before you give permission.

For you

You never see it. Before you allow anything, a video call page can still tell that you have one camera and two microphones, so it can show the right buttons. It cannot see your name labels yet.

For makers

Video call and recording sites need to know whether to offer camera and microphone options. The counts also say something about your setup, such as a headset or a studio mic. Fingerprinters use it for that reason.

Where you see it

TypeExampleApps
videoA video call page shows a camera button only when it sees a camera, before the permission pop-up.Google Meet, Zoom
gamesA browser party game with voice chat shows a mic option only for devices that have one.None named
educationAn online class platform checks you have a camera and mic before a live lesson starts.Google Classroom
liveA web streaming studio shows a list of inputs after you press start and offers extras if you have two cameras.None named
healthA telehealth visit checks that you can be seen and heard before the doctor joins.None named
securityA fraud tool sees a device with no audio outputs and treats it as a server or bot.None named
enterpriseAn IT help page tests meeting room devices from the browser before a big call.None named

Risks

  • Hardware clue before permission
  • Reveals headsets and studio gear

What the platform says

Good uses and abuse

Legitimate uses

  • Hide camera button if none

Known abuse

  • Peripheral fingerprint
  • Detect headset use

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2Rough identifying entropy, when known

A real example: LinkedIn

Media devices (cameras, mics, speakers) enumerated. Read by the LinkedIn APFC fingerprint script (48 features, alleged by BrowserGate, partly confirmed by BleepingComputer).

History

  • 2017-06, Chrome: Labels blank without permission; deviceId per-origin partitioned

Sources

How well checked: Based on official documentation.

On this page