w3c / webcodecs

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

`VideoFrame.copyTo` doesn't resolve its `Promise` with a value #510

Closed padenot closed 10 months ago

padenot commented 2 years ago

We want to resolve with the sequence<PlaneLayout>: we compute the underlying values but we don't use them.

Djuffin commented 10 months ago

For consistency it's probably worth doing something similar for AudioData.copyTo()? For example return a computed version of AudioDataCopyToOptions

padenot commented 10 months ago

This PR is about the fact that the prose wasn't matching the interface, intent and implementation. AudioData.copyTo has never returned anything because it would return something that's trivial.