Skip to content

Type Alias: ResolvedTrackRunSample ​

ts
type ResolvedTrackRunSample = object;

Defined in: utils/resolveTrunSamples.ts:32

One sample of a trun box with the values that the tfhd and trex defaults supply.

A field is undefined when the trun box, the tfhd box, and the trex box have no value for it. With a trex box, resolveTrunSamples returns Required<ResolvedTrackRunSample>, and every field is a number.

Properties ​

sampleCompositionTimeOffset ​

ts
sampleCompositionTimeOffset: number;

Defined in: utils/resolveTrunSamples.ts:40

The composition time offset of the sample. A box with no offsets has 0.


sampleDuration? ​

ts
sampleDuration?: number;

Defined in: utils/resolveTrunSamples.ts:34

The duration of the sample, in the timescale of the track.


sampleFlags? ​

ts
sampleFlags?: number;

Defined in: utils/resolveTrunSamples.ts:38

The flags of the sample, as the sample_flags field of ISO/IEC 14496-12, clause 8.8.3.1.


sampleSize? ​

ts
sampleSize?: number;

Defined in: utils/resolveTrunSamples.ts:36

The size of the sample in bytes.

A Streaming Video Technology Alliance project.