w3c / webcodecs

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

Fix usage of {Audio/Video}Decoder.isConfigSupported() in example #651

Closed chrisguttandin closed 1 year ago

chrisguttandin commented 1 year ago

I've noticed that the usage of isConfigSupported() in the example is probably not as intended. So far the assertion only checks if isConfigSupported() returns a truthy value which is always the case.

I've changed the code to match the usage here: https://github.com/w3c/webcodecs/blob/34e21cb731360339b249ceeb6234129a011b92c9/samples/capture-to-file/encode-worker.js#L38-L39

Please let me know if there is anything I should change.

w3cbot commented 1 year ago

tidoust marked as non substantive for IPR from ash-nazg.