Closed xlf1024 closed 2 years ago
Hmmm, I indeed seemed to have missed something around decoder configuration. Probably a case of "just get it working" since this argument wasn't important for any of the codecs I was concerned with at the time :) . Will fix.
according to spec, the second argument of the
EncodedAudioChunkOutputCallback
receives an optionalEncodedAudioChunkMetadata
which in turn contains an optionalAudioDecoderConfig
decoderConfig
, which is the same type as supplied toAudioDecoder
::
configure
(
AudioDecoderConfig
config)
.This polyfill passes a
Uint8Array
instead, which from the stacktrace looks like it directly the codec extradata that seems like it should be indecoderConfig.description
.Also, if I understood the spec correctly,
decoderConfig
should be passed toAudioDecoder::configure
, but this polyfill's implementation doesn't seem to read the description property at all.