Skip to content

Function: writeStyp() ​

ts
function writeStyp(cursor, box): void;

Defined in: writers/writeStyp.ts:21

Write the styp box (SegmentTypeBox).

ISO/IEC 14496-12:2015 - 8.16.2

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

SegmentTypeBox

The SegmentTypeBox fields to write

Returns ​

void

Throws ​

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

Throws ​

RangeError if majorBrand or a compatible brand does not have 4 characters.

A Streaming Video Technology Alliance project.