Skip to content

Function: writeVtte() ​

ts
function writeVtte(cursor, _box): void;

Defined in: writers/writeVtte.ts:19

Write the vtte box (WebVttEmptySampleBox).

The box has no fields, so the function writes only the box header.

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

_box ​

WebVttEmptySampleBox

The WebVttEmptySampleBox fields to write

Returns ​

void

Throws ​

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

A Streaming Video Technology Alliance project.