🎥 Make videos programmatically with React
Merge branch 'main' into av1-mp4
Jonny Burger13b38240454c
diff --cc packages/media-parser/src/boxes/iso-base-media/mdat/mdat.tsindex f064af3bbf,7d35974575..bd03b2208b--- a/packages/media-parser/src/boxes/iso-base-media/mdat/mdat.ts+++ b/packages/media-parser/src/boxes/iso-base-media/mdat/mdat.ts@@@ -7,29 -7,8 +7,9 @@@ export interface MdatBoxtype: 'mdat-box';samplesProcessed: boolean;boxSize: number;+ fileOffset: number;}- export type AudioSample = {- bytes: Uint8Array;- timestamp: number;- offset: number;- trackId: number;- };-- export type VideoSample = {- bytes: Uint8Array;- timestamp: number;- duration: number | undefined;- trackId: number;- type: 'key' | 'delta';- cts: number | null;- dts: number | null;- };-- export type OnAudioSample = (sample: AudioSample) => void;- export type OnVideoSample = (sample: VideoSample) => void;-// TODO: Parse mdat only gets called when all of the atom is downloadedexport const parseMdat = ({data,