Skip to Content
Platform.Ontology

enumerateDevices (camera, mic, speakers count)

Lists the kinds and counts of cameras, microphones and speakers (labels only after permission).

Gets silentlyHardware and accessoriesMedia devicesWeb browsersWhen the page loadsWhile you use it

In one line

Can count your cameras, microphones and speakers, but names stay hidden until you allow

Lists the kinds and counts of cameras, microphones and speakers (labels only after permission).

Counts of cameras and microphones separate laptops from desktops and show headset use. Without permission labels and IDs are empty.

What it can and can't do

What the user does: Nothing. It happens when the page loads, like a video call lobby.

It can

  • Count how many cameras, microphones and speakers you have
  • Tell which kinds of devices are plugged in
  • Show device names once you allow camera or microphone access

It cannot

  • See device names before you allow camera or microphone access
  • Turn on your camera or microphone by itself
  • See other gadgets such as printers or USB devices
  • Record anything

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 (no browser prompt)
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Script reads the value
  2. Value joins the fingerprint payload

Data you get

What comes back: enumerateDevices (camera, mic, speakers count)
Shape: list
How often: on device change

FieldTypeUnitRangePrecision
kindenumNoneaudioinput, audiooutput, videoinputNot listed
deviceIdstringNoneempty without permissionNot listed

Technical limits

  • No labels without a media permission
  • IDs reset when site data is cleared

The story

What it is

A page can list how many cameras, mics and speakers you have.

For you

You never see it. A call app uses it to show a list of your mics and cameras. A page can also see how many you have without asking.

For makers

Makers need it to offer 'pick your camera' menus. Fraud and tracking tools use the count as one more detail that sets your device apart.

Where you see it

TypeExampleApps
videoA call app shows a menu of your microphones and cameras.Google Meet, Zoom web, Microsoft Teams
gamesA browser game checks if you have a mic before offering voice chat.Discord web
liveA streaming site lists your webcams so you pick one.Twitch
securityA fraud tool sees that a visitor has no camera or mic, typical of a bot server.None named
educationAn online exam tool checks that a camera and mic exist.None named
adsAn ad system adds device counts to its fingerprint of you.None named

Risks

  • Fingerprinting
  • Names after permission

What the platform says

Good uses and abuse

Legitimate uses

  • Show device pickers

Known abuse

  • Fingerprint input

Scores

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

A real example: LinkedIn

Collector key(s): enumerateDevices. dataLimit 22.

Sources

How well checked: Based on official documentation.

On this page