Skip to content

Function: writeAudioSampleEntry() ​

ts
function writeAudioSampleEntry<T>(cursor, box): void;

Defined in: writers/writeAudioSampleEntry.ts:27

Write an audio sample entry box (AudioSampleEntry) of the type in its type field.

ISO/IEC 14496-12:2015 - 12.2.3

The writer writes the child boxes with the writers of the cursor.

Type Parameters ​

T ​

T extends string = AudioSampleEntryType

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

AudioSampleEntry<T, IsoInt64>

The AudioSampleEntry fields to write

Returns ​

void

Throws ​

RangeError if a value of the box does not fit its field.

A Streaming Video Technology Alliance project.