Member Junction
    Preparing search index...

    Interface Fmp4Sample

    One sample of a media fragment.

    interface Fmp4Sample {
        CompositionOffset: number;
        Data: Uint8Array<ArrayBufferLike>;
        DecodeTime: number;
        Duration: number;
        IsSync: boolean;
        Size: number;
        TrackID: number;
    }
    Index

    Properties

    CompositionOffset: number

    Presentation time minus decode time, in the track's timescale (0 when the run writes no offsets).

    Data: Uint8Array<ArrayBufferLike>

    Its bytes, a view into the piece; null when the piece does not hold them (a moof without its mdat).

    DecodeTime: number

    When it is decoded, in its track's timescale: the fragment's tfdt plus the durations of the samples before it.

    Duration: number

    Its duration, in the track's timescale.

    IsSync: boolean

    Whether it is a sync sample (a key frame): its flags do not mark it as a non-sync sample.

    Size: number

    Its size, in bytes.

    TrackID: number

    The track the sample belongs to.