Media Devices Count

Back to Main

Total Media Devices Detected

Checking...

Note: Counts cameras, microphones, and speakers without accessing them. No permission required for device count.

1. Technical Classification

MediaDevices APIHardware EnumerationNo Permission RequiredFingerprinting Vector

The enumerateDevices() method returns a count and list of available media input/output devices (cameras, microphones, speakers) without requiring user permission. Only device labels require permission.

2. Background & Purpose

The MediaDevices API was created to give web applications access to cameras and microphones for video conferencing, photo capture, and audio recording. The enumerateDevices() method helps apps present device selection menus.

Legitimate Purpose

3. Possible Values & Detection

Typical Device Counts

Laptop

3-5 devices: Built-in webcam, mic, speakers

Desktop PC

0-2 devices: External webcam/mic (if connected)

Smartphone

4-6 devices: Front/rear cameras, mic, earpiece, speaker

Professional Setup

10+ devices: Multiple cameras, studio mics, audio interfaces

Detection Code

navigator.mediaDevices.enumerateDevices() .then(devices => { console.log('Total devices:', devices.length); console.log('Videoinput:', devices.filter(d => d.kind === 'videoinput').length); console.log('Audioinput:', devices.filter(d => d.kind === 'audioinput').length); console.log('Audiooutput:', devices.filter(d => d.kind === 'audiooutput').length); });

4. Common Legitimate Uses

Video Conferencing

Content Creation

5. Browser & Platform Differences

Device TypeTypical CountNotes
MacBook3-4FaceTime camera, mic, speakers
Windows Laptop3-5Webcam, mic, speakers (varies by model)
iPhone5-6Front/back cameras, mics, speakers
Android Phone4-7Varies greatly by model
Desktop PC (no peripherals)0-1Only speakers (if integrated audio)
Desktop PC (full setup)5+External webcam, mic, headset, speakers

6. Privacy Implications & Tracking Risks

Privacy Risk: HIGH

Media device enumeration is one of the strongest device fingerprinting techniques. The number and type of devices is highly distinctive and persistent across sessions.

Why It's Effective for Tracking

Unique Hardware Configuration

Most users have a specific combination of cameras, microphones, and speakers that's unique. For example, a laptop with built-in camera + USB mic + Bluetooth headphones creates a distinctive signature.

Persistent Device IDs

Each device has a unique ID that doesn't change. Even without device labels, the ID itself is fingerprintable and persists across browser sessions and even reinstalls.

No Permission Required

Unlike accessing camera/microphone streams, simply counting and listing devices requires no user permission, making it a silent fingerprinting vector.

What Trackers Learn

7. How to Limit Device Enumeration

Browser Settings (Limited Options)

Most browsers don't offer settings to block device enumeration because it would break legitimate websites. Some options:

Privacy-Focused Browsers

Browser Extensions

Manual Workarounds

Trade-off Warning

Blocking device enumeration will break video calling and many web apps that legitimately need to detect cameras and microphones.

8. Learn More