Closed Bug 1917629 Opened 1 year ago Closed 1 year ago

Rework checks for description for Flac and Vorbis

Categories

(Core :: Audio/Video: Web Codecs, defect)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: padenot, Assigned: padenot)

Details

Attachments

(2 files)

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.

We'll need this on beta as well. New checks incoming.

Configure need to error out if there's no description, but isConfigSupported
should say true.

Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d6a00c29a87 Back out changeset 6ff3f1fba36f because it is incorrect per spec. r=chunmin https://hg.mozilla.org/integration/autoland/rev/a6af9793cee6 Properly check for description presence for flac and vorbis. r=chunmin
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/48305 for changes under testing/web-platform/tests
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: