Media Device Types

Back to Main

Media Device Breakdown by Type

Detecting...

Note: Shows how many cameras, microphones, and speakers are detected. No permission needed.

1. Technical Classification

MediaDevices APIDevice ClassificationHardware FingerprintingNo Permission Needed

The MediaDevices API categorizes devices into three types: videoinput (cameras), audioinput (microphones), and audiooutput (speakers/headphones). The distribution of these types creates a unique device fingerprint.

2. Background & Purpose

Device type classification helps applications present appropriate UI for device selection. Different device types have different use cases and capabilities.

Device Type Definitions

videoinput

Cameras: webcams, phone cameras (front/rear), capture cards

audioinput

Microphones: built-in mics, USB mics, headset mics, line-in

audiooutput

Speakers/headphones: built-in speakers, external speakers, headphones, Bluetooth audio

3. Possible Values & Detection

Common Device Type Distributions

Laptop (Typical)

1 videoinput, 1 audioinput, 2 audiooutput

Built-in webcam, mic, speakers, and headphone jack

Desktop (No Webcam)

0 videoinput, 0-1 audioinput, 1-2 audiooutput

Often no camera/mic, just speakers

Smartphone

2 videoinput, 2-3 audioinput, 2-3 audiooutput

Front/rear cameras, multiple mics, earpiece + speaker

Professional Setup

3+ videoinput, 5+ audioinput, 3+ audiooutput

Multiple cameras, studio mics, audio interface

Detection Code

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

4. Common Legitimate Uses

Appropriate Device Selection UI

Video Conferencing Applications

5. Browser & Platform Differences

DeviceVideoAudio InAudio OutTotal
MacBook Pro1124
Windows Laptop11-22-34-6
iPhone2327
Android Phone22-42-36-9
Desktop PC (basic)0011
Desktop + Webcam11-22-34-6
Streaming Setup2-43-63-58-15

6. Privacy Implications & Tracking Risks

Privacy Risk: HIGH

Device type distribution is one of the most effective fingerprinting techniques. The combination of how many cameras, mics, and speakers you have is highly unique and persistent.

Why This Is So Effective for Fingerprinting

Unique Distributions

Very few users have identical device type distributions. For example, "2 cameras, 3 mics, 4 speakers" is rare and identifies you uniquely.

Device Category Identification

Trackers can immediately identify:

  • iPhone (2 video, 3 audio in, 2 audio out)
  • MacBook (1 video, 1 audio in, 2 audio out)
  • Desktop without webcam (0 video, 1 audio in, 1 audio out)
  • Professional streamer (4+ video, 6+ audio in)

User Profiling

Device types reveal user characteristics:

  • No webcam: Desktop user, privacy-conscious, or older system
  • Multiple cameras: Content creator, streamer, or professional
  • Many audio devices: Musician, podcaster, or audio professional
  • Standard phone pattern: Mobile user

Persistence and Tracking

Device fingerprints are extremely stable:

7. How to Protect Against Device Type Fingerprinting

Limited Browser Protections

Standard browsers don't offer protection because blocking would break legitimate sites:

Privacy Browsers

Practical Measures

Reality Check

Effectively preventing device type fingerprinting requires breaking video calling and many web applications. For most users, the trade-off isn't worth it. Consider this a "accept and be aware" privacy leak rather than something you can easily prevent.

8. Learn More