Interface
MP4File
Properties
onError
?: (e: Error) => voidonReady
?: (info: { tracks?: Array<{ id: number; type: string; codec: string; video?: { width: number; height: number; }; timescale?: number; }>; }) => voidonSamples
?: (trackId: number, user: unknown, samples: Array<{ data: ArrayBuffer; is_sync?: boolean; is_rap?: boolean; timescale: number; dts: number; duration: number; }>) => voidMethods
appendBuffer
(data: ArrayBuffer): number| Param | Type | Description |
|---|---|---|
| data | ArrayBuffer |
flush
(): voidsetExtractionOptions
(trackId: number, user: unknown, options: { nbSamples?: number; }): void| Param | Type | Description |
|---|---|---|
| trackId | number | |
| user | unknown | |
| options | { nbSamples?: number; } |
start
(): void