Skip to content

Function: writeVlab() ​

ts
function writeVlab(cursor, box): void;

Defined in: writers/writeVlab.ts:20

Write the vlab box (WebVttSourceLabelBox).

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

WebVttSourceLabelBox

The WebVttSourceLabelBox fields to write

Returns ​

void

Throws ​

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

Example ​

ts
const box: WebVttSourceLabelBox = {
	type: 'vlab',
	sourceLabel: 'source',
}

const writer = writeIsoBox(box, { writers: { vlab: writeVlab } })

A Streaming Video Technology Alliance project.