Type Alias: TrackRunBox
ts
type TrackRunBox = FullBox & object & (
| {
sampleCount?: undefined;
samples: TrackRunSample[];
}
| {
sampleCount: number;
samples?: undefined;
});Defined in: boxes/TrackRunBox.ts:20
Track Run Box (trun).
ISO/IEC 14496-12:2015 - 8.8.8
Note: the 'trun' box has a direct relation to the 'tfhd' box for defaults. These defaults are not set explicitly here, but are left to resolve for the user. resolveTrunSamples resolves the defaults for each sample.
The flags 0x000100 to 0x000800 select the fields of each sample record. A box with none of these flags has records of 0 bytes, as ISO/IEC 14496-12, clause 8.8.8.3 allows. That box has sampleCount and no samples. Any other box has samples and no sampleCount. The count of either form is samples ? samples.length : sampleCount.
Type Declaration
dataOffset?
ts
dataOffset?: number;firstSampleFlags?
ts
firstSampleFlags?: number;type
ts
type: "trun";