Member Junction
    Preparing search index...

    Interface Fmp4Track

    One track an init segment declares.

    interface Fmp4Track {
        Aac?: Fmp4AacConfig;
        Avc?: Fmp4AvcConfig;
        Codec?: string;
        DefaultSampleDuration?: number;
        DefaultSampleFlags?: number;
        DefaultSampleSize?: number;
        Handler: string;
        Height?: number;
        Timescale?: number;
        TrackID: number;
        Width?: number;
    }
    Index

    Properties

    An AAC track's AudioSpecificConfig, read.

    An H.264 track's parameter sets and NAL length size.

    Codec?: string

    The track's codec as RFC 6381 writes it, such as 'avc1.42c01f' (from avcC) or 'mp4a.40.2' (from esds). undefined for a sample entry this reader does not know.

    DefaultSampleDuration?: number

    The sample duration the init's trex box gives the track's fragments, in its timescale, used when a fragment gives none of its own. undefined when the init gives none (or gives 0).

    DefaultSampleFlags?: number

    The sample flags (sample_flags) the init's trex box gives the track's fragments; undefined when none (or 0).

    DefaultSampleSize?: number

    The sample size (bytes) the init's trex box gives the track's fragments; undefined when it gives none (or 0).

    Handler: string

    The track's handler (hdlr): 'vide' for video, 'soun' for audio, or another four-character code.

    Height?: number

    A video track's height in pixels, from its sample entry.

    Timescale?: number

    The track's timescale (mdhd): how many units of the track's media time make a second. Its fragments' sample durations count in these units. undefined when the mdhd box is missing or says 0.

    TrackID: number

    The track's id (tkhd), which its fragments refer to.

    Width?: number

    A video track's width in pixels, from its sample entry.