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

When serializing some WebCodecs objects with `forStorage=true`, throw `DataCloneError` instead of `TypeError` #590

Closed padenot closed 1 year ago

padenot commented 1 year ago

This applies to EncodedVideoChunk, EncodedAudioChunk, AudioData and VideoFrame, and fixes issue #589.


Preview | Diff

youennf commented 1 year ago

It would be good to add corresponding wpt tests

padenot commented 1 year ago

We have a series of tests coming (under review on our side at the moment) that check various things around postMessage of VideoFrames (cross origin, same origin, same agent cluster, different agent cluster, that kind of thing), we can probably add some about storage.