Interface

MP4File

Properties

NameTypeDescription
onError?(e: Error) => void
onReady?(info: { tracks?: Array<{ id: number; type: string; codec: string; video?: { width: number; height: number; }; timescale?: number; }>; }) => void
onSamples?(trackId: number, user: unknown, samples: Array<{ data: ArrayBuffer; is_sync?: boolean; is_rap?: boolean; timescale: number; dts: number; duration: number; }>) => void

Methods