Member Junction
    Preparing search index...

    Function SniffFmp4Piece

    • What a piece of fragmented MP4 opens with, read from the type of its first box (bytes 4 to 8): 'init' for ftyp, or for moov (an init segment sent without its ftyp), 'fragment' for moof or styp, and null for anything else, such as raw PCM audio.

      Parameters

      • bytes: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

        The piece, as an ArrayBuffer or a view of one (a Uint8Array, a Node Buffer).

      Returns Fmp4PieceKind