Skip to content

Type Alias: TrackRunSampleDefaults ​

ts
type TrackRunSampleDefaults = object;

Defined in: utils/resolveTrunSamples.ts:15

The sample defaults that resolveTrunSamples reads from a tfhd box or a trex box. The fields are the defaults for the fields of a TrackRunSample.

A TrackFragmentHeaderBox and a TrackExtendsBox are assignable to the type. An object with only these fields is also valid, for defaults that do not come from a parsed box.

Example ​

ts
const samples = resolveTrunSamples(
	TRUN,
	{ defaultSampleDuration: 500 },
	{ defaultSampleDuration: 1000, defaultSampleSize: 2000, defaultSampleFlags: 0 },
)

Properties ​

defaultSampleDuration? ​

ts
readonly defaultSampleDuration?: number;

Defined in: utils/resolveTrunSamples.ts:17

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


defaultSampleFlags? ​

ts
readonly defaultSampleFlags?: number;

Defined in: utils/resolveTrunSamples.ts:21

The default flags of a sample.


defaultSampleSize? ​

ts
readonly defaultSampleSize?: number;

Defined in: utils/resolveTrunSamples.ts:19

The default size of a sample in bytes.

A Streaming Video Technology Alliance project.