Skip to content

Function: writeSthd() ​

ts
function writeSthd(cursor, box): void;

Defined in: writers/writeSthd.ts:18

Write the sthd box (SubtitleMediaHeaderBox).

ISO/IEC 14496-12:2015 - 12.6.2

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

SubtitleMediaHeaderBox

The SubtitleMediaHeaderBox fields to write

Returns ​

void

Throws ​

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

A Streaming Video Technology Alliance project.