Skip to content

Type Alias: TrackRunTotals ​

ts
type TrackRunTotals = object;

Defined in: readers/readTrunTotals.ts:13

The number of samples of a trun box and the total of its sample durations.

The type is not a box type. It has no type field, so readTrunTotals is not a reader of the readers map.

Properties ​

sampleCount ​

ts
sampleCount: number;

Defined in: readers/readTrunTotals.ts:15

The number of samples, from sample_count.


totalSampleDuration ​

ts
totalSampleDuration: number | undefined;

Defined in: readers/readTrunTotals.ts:20

The sum of the sample_duration field of every sample record. The field is undefined for a box with no flag 0x000100. The duration of each sample is then the default of the tfhd box. If the tfhd box has no default, the duration is the default of the trex box.

A Streaming Video Technology Alliance project.