Skip to content

MP4File

Package: @erinjs/voice

Properties

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

Released under the Apache-2.0 License.