Creates a reader function for VisualSampleEntryBox with a custom type.
VisualSampleEntryBox
This utility allows reading visual sample entry boxes with types that aren't in the standard VisualSampleEntryType union (e.g., 'avc1', 'hvc1').
VisualSampleEntryType
'avc1'
'hvc1'
The 4-character box type
A reader function that can be passed to readIsoBoxes
readIsoBoxes
const boxes = readIsoBoxes(data, { readers: { 'vp09': createVisualSampleEntryReader('vp09'), 'av01': createVisualSampleEntryReader('av01'), }}) Copy
const boxes = readIsoBoxes(data, { readers: { 'vp09': createVisualSampleEntryReader('vp09'), 'av01': createVisualSampleEntryReader('av01'), }})
Creates a reader function for
VisualSampleEntryBoxwith a custom type.This utility allows reading visual sample entry boxes with types that aren't in the standard
VisualSampleEntryTypeunion (e.g.,'avc1','hvc1').