EncodedAudioChunkInit should probably also support AllowSharedBufferSource
chrisguttandin opened this issue · comments
I've noticed that the data
of a EncodedVideoChunkInit
object is of type AllowSharedBufferSource
while the data of a EncodedAudioChunkInit
object can only be of type BufferSource
.
https://w3c.github.io/webcodecs/#dictdef-encodedvideochunkinit
https://w3c.github.io/webcodecs/#dictdef-encodedaudiochunkinit
It looks like EncodedVideoChunkInit
was changed to align it with a WPT in #575 / #576. But a similar WPT with a SharedArrayBuffer
also exists for EncodedAudioChunkInit
and all browsers seem to pass it.
https://wpt.fyi/results/webcodecs/encoded-video-chunk.crossOriginIsolated.https.any.html?label=experimental&label=master&aligned
https://wpt.fyi/results/webcodecs/encoded-audio-chunk.crossOriginIsolated.https.any.html?label=master&label=experimental&aligned
Fixed, closing.