Skip to content

Function: writeVisualSampleEntry() ​

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

Defined in: writers/writeVisualSampleEntry.ts:29

Write a visual sample entry box (VisualSampleEntry) of the type in its type field.

ISO/IEC 14496-12:2015 - 12.1.3

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

Type Parameters ​

T ​

T extends string = VisualSampleEntryType

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

VisualSampleEntry<T, IsoInt64>

The VisualSampleEntry fields to write

Returns ​

void

Throws ​

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

A Streaming Video Technology Alliance project.