Skip to content

Type Alias: TrackFragmentHeaderBox<V> ​

ts
type TrackFragmentHeaderBox<V> = FullBox & object;

Defined in: boxes/TrackFragmentHeaderBox.ts:13

Track Fragment Header Box (tfhd).

ISO/IEC 14496-12:2015 - 8.8.7

The flags field marks the optional fields. The writer writes an optional field only when its flag is set.

Type Parameters ​

V ​

V extends IsoInt64 = number

Type Declaration ​

baseDataOffset? ​

ts
baseDataOffset?: V;

The base offset for the data offsets of the track fragment. Flag 0x000001 marks the field.

defaultSampleDuration? ​

ts
defaultSampleDuration?: number;

The default duration of a sample. Flag 0x000008 marks the field.

defaultSampleFlags? ​

ts
defaultSampleFlags?: number;

The default flags of a sample. Flag 0x000020 marks the field.

defaultSampleSize? ​

ts
defaultSampleSize?: number;

The default size of a sample. Flag 0x000010 marks the field.

sampleDescriptionIndex? ​

ts
sampleDescriptionIndex?: number;

The index of the sample description in the stsd box. Flag 0x000002 marks the field.

trackId ​

ts
trackId: number;

type ​

ts
type: "tfhd";

A Streaming Video Technology Alliance project.