Creates a reader function for AudioSampleEntryBox with a custom type.
AudioSampleEntryBox
This utility allows reading audio sample entry boxes with types that aren't in the standard AudioSampleEntryType union (e.g., 'mp4a', 'enca').
AudioSampleEntryType
'mp4a'
'enca'
The 4-character box type
A reader function that can be passed to readIsoBoxes
readIsoBoxes
const boxes = readIsoBoxes(data, { readers: { 'ac-3': createAudioSampleEntryReader('ac-3'), 'ec-3': createAudioSampleEntryReader('ec-3'), }}) Copy
const boxes = readIsoBoxes(data, { readers: { 'ac-3': createAudioSampleEntryReader('ac-3'), 'ec-3': createAudioSampleEntryReader('ec-3'), }})
Creates a reader function for
AudioSampleEntryBoxwith a custom type.This utility allows reading audio sample entry boxes with types that aren't in the standard
AudioSampleEntryTypeunion (e.g.,'mp4a','enca').