Re: [mediacapture-record] Deprecate MediaRecorder.isTypeSupported() by limiting it to vp8, vp9, h264 aka avc1, av1 aka av01, and opus (#226)

Good news is this [updated fiddle](https://jsfiddle.net/jib1/3g1a807L/) shows browsers *for the most part* ignore profile levels. I.e. both Chrome (mostly) and Safari accept anything after the period. E.g.:
```js
  "video/webm;codecs=av01",
  "video/webm;codecs=av01.",
  "video/webm;codecs=av01.*",
  "video/webm;codecs=av01,opus",
  "video/webm;codecs=av01,opus.",
  "video/webm;codecs=av01,opus.*",
  ...
```
Safari is even more flexible, not even requiring the period (except for hvc1 and hev1). E.g.:
```js
  "video/mp4;codecs=avc1*",
  "video/mp4;codecs=avc1,mp4a*",
  "video/mp4;codecs=hvc1.",
  "video/mp4;codecs=hvc1.*",
  "video/mp4;codecs=hev1.",
  "video/mp4;codecs=hev1.*"
```

But there are notable exceptions in Chrome (note lack of wildcard):
```js
  "video/mp4",
  "video/mp4;codecs=vp9",
  "video/mp4;codecs=vp9,opus",
  "video/mp4;codecs=vp9,mp4a.40.2",
  "video/mp4;codecs=av01",
  "video/mp4;codecs=av01.0.19M.08",
  "video/mp4;codecs=av01,opus",
  "video/mp4;codecs=av01,mp4a.40.2",
  "video/mp4;codecs=avc1",
  "video/mp4;codecs=avc1.64003E",
  "video/mp4;codecs=avc1,opus",
  "video/mp4;codecs=avc1,mp4a.40.2",
  "video/mp4;codecs=avc3",
  "video/mp4;codecs=avc3.64003E",
  "video/mp4;codecs=avc3,opus",
  "video/mp4;codecs=avc3,mp4a.40.2",
  "video/mp4;codecs=hvc1.1.6.L186.B0",
  "video/mp4;codecs=hev1.1.6.L186.B0",
```
But updating these to a wildcard should be largely backwards compatible (insofar as it won't break any recording that used to work — and there doesn't appear to be significant choice between profiles here *yet*)

So we should be able to standardize on the wildcard version (with or without a period — slight preference for requiring the period).

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/pull/226#issuecomment-3141576316 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 31 July 2025 22:56:37 UTC