w3c / webcodecs

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

Should serialisation steps throw DataCloneError instead of TypeError in case forStorage is true #589

Closed youennf closed 1 year ago

youennf commented 1 year ago

Chrome and Safari are throwing DataCloneError in that case (see https://github.com/web-platform-tests/wpt/pull/36567 and https://github.com/WebKit/WebKit/pull/5576). Should we align spec to the implementations? This might be applicable to EncodedVideoChunk, EncodedAudioChunk, AudioData and VideoFrame.

padenot commented 1 year ago

Yes, it seems better semantically. We're currently implementing this, and we'll throw a DataCloneError instead, so everybody is aligned.

dalecurtis commented 1 year ago

Thanks for fixing!