Media codec support set

Codec support is read by asking the browser directly: `HTMLVideoElement.canPlayType` for seven video formats, `HTMLAudioElement.canPlayType` for four audio ones, and `navigator.mediaCapabilities.decodingInfo` for the H.264 and AAC baselines. `canPlayType` answers `probably`, `maybe` or the empty string, and the empty string is read as unsupported because it is the browser's own answer rather than an inference drawn from something else.

Code
S14
Axis label
CODEC SET
Class
observed
Group
capability
Rules
5

What this value is, before anyone changes it

A codec set is a property of the build. Which decoders are compiled in is decided by whoever produced the binary, constrained by patent licensing as much as by engineering: Safari carries HEVC on every platform it ships on, Google's Chromium distributions carry H.264 and AAC, and the WebM pair — VP8 and VP9 — is compiled into every Chromium build Google ships and cannot be turned off from configuration.

This makes the codec set an unusually good check on a claimed browser family. It is not a string that can be edited to taste; it is a set of capabilities that either exist in the binary or do not, and it is expensive to fake coherently because the eleven answers have to be mutually consistent as well as consistent with the name.

Read procedure

In this order. The first call that answers wins; the sheet records which one did.

  1. HTMLVideoElement.canPlayType for theora, avc1, hev1, hvc1, vp8, vp9, av1
  2. HTMLAudioElement.canPlayType for vorbis, opus, mp4a.40.2, wav
  3. navigator.mediaCapabilities.decodingInfo for the h.264 and aac baselines

Fallback

`canPlayType` returns one of `probably`, `maybe` or the empty string. The empty string is read as unsupported, and it is the browser's own answer rather than an inference.

When nothing answers, the signal is recorded as not read and its entire row and column are drawn with hidden lines. That is a different fact from consistency and the sheet never collapses the two: a rule that could not run has not passed.

Why two honest browsers disagree about it

Honest variation is entirely about builds, and the registry is careful to name it in each rule's weight. Chromium built without proprietary codecs — as several Linux distributions and open-source rebuilds do — reports no H.264, honestly, which is why UACH-CODEC-01 is weighted 2. Stock Linux builds do not ship HEVC for licensing reasons rather than technical ones, which is why UA-CODEC-04 is weighted 1 and phrased as a note.

Hardware matters too. HEVC decoding on Safari depends on hardware support, so a very old Mac can honestly answer no — the reason UA-CODEC-01 stops at weight 4 rather than claiming an impossibility.

What a contradiction involving Codec Set means

Five rules read this axis and four of them pair it with the declared browser family. They are engine-identity checks rather than capability checks: a Safari declaration that cannot play HEVC is a different engine wearing Safari's name; a Chromium declaration missing the WebM pair is a build Google did not produce; a declared family that reports no playable format at all has either a stripped build or a stubbed `canPlayType`.

The fifth pairs it with the client-hint platform. UACH-CODEC-01 is narrow by design — client hints only exist on Chromium, and Google's Windows and macOS builds carry H.264 — and it is weighted 2 because rebuilds without the codec exist for both platforms and are honest about being rebuilds.

How it is spoofed, and what the spoof leaves behind

This axis is almost never spoofed, and that is the interesting fact about it. Faking a codec set coherently means answering eleven questions the way a specific build would answer them, in the right combination, including the `probably` versus `maybe` distinction that `canPlayType` draws — much more work than editing a string, and with no visible benefit until someone cross-checks it.

Which is exactly why the registry reads it. The cheapest way to notice that a User-Agent is wearing the wrong engine's name is to ask the engine something only that engine can answer, and codec support is the least-defended question of that kind on the sheet.

Documented misreports

  • Almost never spoofed, because it is expensive to fake coherently — which is what makes it a good check on a forged browser family.
  • Genuinely varies with the build: Chromium built without proprietary codecs reports no H.264, and that is a real machine, not a lie.

What a truthful reading looks like

A support set that matches the declared engine's shipping build — HEVC on Safari, VP9 and WebM everywhere Chromium ships, AV1 on current Firefox and Chromium.

Rules referencing this signal · 5
Mark Rule Against Predicate
UA-CODEC-01
Safari without HEVC
UA BROWSER A browser family declared as Safari reports support for HEVC (hev1 or hvc1).
UA-CODEC-02
Chromium without WebM
UA BROWSER A browser family declared as Chrome, Edge or Opera reports support for both VP8 and VP9.
UA-CODEC-03
No media support of any kind
UA BROWSER A declared browser family reports support for at least one media format.
UA-CODEC-04
HEVC on a declared Linux desktop
UA PLATFORM A User-Agent declaring Linux reports no HEVC support.
UACH-CODEC-01
Desktop Chromium without H.264
UA-CH PLATFORM A client-hint platform of Windows or macOS implies H.264 (avc1) support, because Google's Chromium distributions on those platforms carry it.

What this axis is dimensioned against

CODEC SET is paired with 3 other signals by the registry, and the pairing is where the meaning is: on its own this reading is a value, and a value cannot contradict anything. The heaviest rule touching it is UA-CODEC-01 at weight 4 — safari without hevc.

Where this sits on the sheet

Row and column S14 of the matrix. Clicking that label — or pressing D with it focused — declares this signal as the datum, which means assume this reading is truthful and re-resolve every deviation on the sheet against that assumption. If declaring it leaves few deviations open, this signal is a cheap explanation for what the sheet found. That is a hypothesis you chose, not a fact the sheet established — what a datum is.

Nothing here is a score. S14 is an observed signal in the capability group, and the most the registry will say about it is that one of its 5 rules found two readings that cannot both be true — the weighting scale states what evidence each weight is allowed to claim before a rule may claim it. Run the audit to see which of those rules can be evaluated on your browser at all, or read every signal in the index.

Clause notes
How is codec support tested in a browser fingerprint?
With `canPlayType` on a video and an audio element for each format, plus `mediaCapabilities.decodingInfo` for the H.264 and AAC baselines. `canPlayType` returns `probably`, `maybe` or an empty string, and the empty string is the browser's own statement that it cannot play the format.
Why does a Safari User-Agent without HEVC get marked?
Because Safari has decoded HEVC on every platform it ships on for years and no other engine's stock build claims it. UA-CODEC-01 is weighted 4 rather than 5 because HEVC on Safari depends on hardware support and a very old Mac can honestly answer no.
Does a missing H.264 mean the browser is fake?
No. Chromium rebuilt without proprietary codecs is a real and honest thing on Windows, macOS and Linux alike, which is why the rule that reads it is weighted 2 — worth a second look, never a contradiction.
Why is the codec set useful if nobody spoofs it?
Because that is precisely what makes it a good check on a forged browser family. A name can be edited in a second; a set of eleven mutually consistent capability answers belongs to the binary — see how the browser family is read for the other half of those pairs.

Preventing this class of mark

A codec set belongs to the binary, so it is the part of a fingerprint that cannot be talked into agreement — a profile that declares one engine while running another is discoverable in one call. That is the case for changing the browser rather than the browser's answers: Donut Browser ships the Wayfern Chromium fork and spoofs at the engine level, and the whole thing is AGPL-3.0, so what the binary carries is a matter of record.

Donut Browser is AGPL-3.0 and desktop only, for macOS, Windows and Linux; there is no mobile build and there are no detection-test results anywhere in its repository, so none are quoted here. Download Donut Browser · what a pre-launch consistency gate does and does not cover.

FPA-CM-01 · REV D Cross-signal consistency matrix
Method ver1.5.0
Collector ver2
Rules50
Signals18
Datum—
Result—
Sheet1/1
Scale1:1
Pairs153
Governed38
Drawn—
Date—
Remedy

Contradictions of this class are prevented before launch, not repaired after. Donut Browser refuses to start a profile whose proxy exit geography, timezone and language contradict its fingerprint — the pre-launch consistency gate.