CML
    Preparing search index...

    Function createVisualSampleEntryReader

    • Creates a reader function for VisualSampleEntryBox with a custom type.

      This utility allows reading visual sample entry boxes with types that aren't in the standard VisualSampleEntryType union (e.g., 'avc1', 'hvc1').

      Type Parameters

      • T extends string

      Parameters

      • type: T

        The 4-character box type

      Returns (view: IsoBoxReadView) => VisualSampleEntryBox<T>

      A reader function that can be passed to readIsoBoxes

      const boxes = readIsoBoxes(data, {
      readers: {
      'vp09': createVisualSampleEntryReader('vp09'),
      'av01': createVisualSampleEntryReader('av01'),
      }
      })