Rework checks for description for Flac and Vorbis
Categories
(Core :: Audio/Video: Web Codecs, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: padenot, Assigned: padenot)
Details
Attachments
(2 files)
| Assignee | ||
Comment 1•1 year ago
|
||
This is unfortunately incorrect, it means that:
AudioDecoder.isConfigSupport({codec: "flac", numberOfChannels: 1, sampleRate: 48000});
resolves to a promise that says that it isn't supported (and it should say yes).
Unfortunately, audioDecoder-codec-specific.https.any.js lacked tests for those
two codecs, and the tests added are incorrect. The spec for this is:
https://w3c.github.io/webcodecs/#check-configuration-support, and the check is
intentionally not very thorough: this method is meant to know if this
implementation generally supports a codec, not to check if configure(...) will
success with very specific parameters. In general, isConfigSupported is done
ahead of downloading any media content, so we don't have a description here.
| Assignee | ||
Comment 2•1 year ago
|
||
We'll need this on beta as well. New checks incoming.
| Assignee | ||
Comment 3•1 year ago
|
||
Configure need to error out if there's no description, but isConfigSupported
should say true.
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6d6a00c29a87
https://hg.mozilla.org/mozilla-central/rev/a6af9793cee6
Updated•1 year ago
|
Description
•