I am searching for a definitive list of valid strings that can be passed as the `codec` parameter in `VideoEncoder.isConfigSupported({ codec, width, height })`, but I have been unable to find a clear answer so far:
- The TS declaration file states that it must be a string (source)
- A Google webcodec article mentions that `vp8` is a valid codec string
- Navigating through the specs has proven to be challenging
- The description provides insight into what a codec string should do but lacks an extensive list (source)
- It specifies that the codec string must match certain patterns like `av01.*`, `avc1.*`, `vp8`, or `vp09.*`. Further exploration leads to additional links without clear information on these codec strings
- An MDN page explains the rules for creating codec strings within mime types but experimentation yielded mixed results
Since only chromium-based browsers currently support this feature, I delved into the chromium source code and found more codec strings listed:
- Tests in the webcodecs directory reveal additional codec strings such as `avc1.42001E`, `vp09.00.10.08`, etc.
- Other codec strings are mentioned alongside different elements in various contexts
- A test file also lists several codecs used with the `canPlayType` method
This array of information presents a challenge in determining the complete set of valid codecs for use with web codecs. What other resources could provide clarity on this matter?
(JavaScript code sample provided)