Media codec and capability probing
Asks which audio and video codecs, containers and DRM systems the browser supports.
In one line
Can ask which video, audio and copy protection formats your device supports
Asks which audio and video codecs, containers and DRM systems the browser supports.
Hardware decoders for HEVC, AV1 and DRM (Widevine, FairPlay, PlayReady) differ by OS and chip, so the map reveals device class and licensing.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- Ask if your device plays formats such as HEVC and AV1
- Check for copy protection systems such as Widevine, FairPlay and PlayReady
- Guess your system, chip and device type from the answers
It cannot
- Play or record anything
- Ask permission first
- See what you watch on other sites
- Know who you are by itself
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 23 | 2012-11-06 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 42 | 2015-11-03 | None |
| Safari | Supported | 8 | 2014-10-16 | macOS first, iPhone MSE from 17.1 via ManagedMediaSource |
| Safari on iPhone | Supported | 13 | 2019-09-19 | None |
| Chrome on Android | Supported | 25 | 2013-02-27 | None |
| Samsung Internet | Supported | 1.5 | 2013-09-25 | None |
How a site asks for it
| API | MediaSource.isTypeSupported(); canPlayType(); navigator.mediaCapabilities.decodingInfo(); requestMediaKeySystemAccess(); RTCRtpSender.getCapabilities() |
| Browser compat keys | api.MediaSource.isTypeSupported_staticapi.MediaCapabilities.decodingInfo |
| How access is granted | none |
| What the user sees | Not listed |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Test 50 to 200 MIME and codec strings
- Query MediaCapabilities for smooth and powerEfficient flags
- Probe key systems
Data you get
What comes back: Bit vector plus power efficiency flags
Shape: list
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
supported | boolean | None | true or false | exact |
powerEfficient | boolean | None | true or false | hardware decode hint |
Technical limits
- No codec data for media the person plays
- Entropy is mostly browser and OS
The story
What it is
A page asks which audio and video formats and copy protection systems your browser can play.
For you
You never see it. When you press play, the site first asks your browser which formats it can handle, then picks the best one. You get smoother video and fewer stalls.
For makers
Streaming and cloud gaming services need it to send the right stream, such as H.264, HEVC or AV1, without wasting data or battery. The same answers also work as a device clue for fraud and tracking tools.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | Netflix checks which video formats and copy protection your browser supports, then streams you the best picture it can. | Netflix, Disney+ |
| games | Xbox Cloud Gaming and GeForce NOW in a browser check which video formats your device can decode, so the game stream is sharp and has low delay. | Xbox Cloud Gaming, GeForce NOW, Amazon Luna |
| live | A live sports or concert stream picks a format your phone decodes in hardware, to save battery. | Twitch, YouTube Live |
| video | A video call site checks codecs before it starts, to use the one your device runs best. | Google Meet, Zoom web client |
| security | A fraud tool compares the format list to the device's claimed model, to catch emulators. | None named |
| ads | A tracker adds the format list to a device ID, since it differs by browser, chip and system. | None named |
| education | A web class platform picks smaller video for older laptops so lessons still play. | Khan Academy |
Risks
- Reveals your hardware and OS
- Adds to a device ID
What the platform says
- MDN: Media Capabilities API. Lets a site ask whether the device can decode a video smoothly and efficiently before it picks a stream.
Good uses and abuse
Legitimate uses
- Pick best stream format
Known abuse
- Device and hardware decoder inference
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 3 | Rough identifying entropy, when known |
History
- 2018-04, Chrome 66: MediaCapabilities decodingInfo ships; exposes hardware decode hints
- 2023-10, Safari 17.1: ManagedMediaSource on iPhone
Related capabilities
Related
- WebGL parameters and extensions. Can see your graphics card model, limits and which 3D features it supports
Sources
How well checked: Based on official documentation.