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.
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.
I've noticed that the
data
of aEncodedVideoChunkInit
object is of typeAllowSharedBufferSource
while the data of aEncodedAudioChunkInit
object can only be of typeBufferSource
.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 aSharedArrayBuffer
also exists forEncodedAudioChunkInit
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