w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
939 stars 132 forks source link

Remove ambiguity around valid codec strings during support checks. #707

Closed dalecurtis closed 11 months ago

dalecurtis commented 11 months ago

User agents shouldn't throw a TypeError when an unrecognized codec string is encountered since this is harmful for interop (e.g., one UA may only recognize some versions of a codec string as valid according to its own codec specification).

This change removes the language around checking valid codec strings when determining if a config is valid. It instead adds that language explicitly to the "Check Configuration Support" algorithm so false or NotSupportedError can be triggered in isConfigSupported andconfigure respectively.

Fixes #686


Preview | Diff

dalecurtis commented 11 months ago

Bump @padenot -- can you take a look?