async getConfig() {
let info = await this.source.getInfo();
this.track = info.videoTracks[0];
var extradata = this.getExtradata(this.source.getAvccBox());
let config = {
codec: this.track.codec,
codedHeight: this.track.track_height,
codedWidth: this.track.track_width,
description: extradata,
}
return Promise.resolve(config);
}
In this demo - https://w3c.github.io/webcodecs/samples/mp4-decode - inside the mp4_demuxer.js file:
this.track.track_heightandthis.track.track_widthapparently have the DAR already applied, so they're not actually the correct codedWidth/codedHeight which can cause issues withisConfigSupportedSee here for some additional background - https://bugs.chromium.org/p/chromium/issues/detail?id=1325659