Skip to content

Function: writeLabl() ​

ts
function writeLabl(cursor, box): void;

Defined in: writers/writeLabl.ts:21

Write the labl box (LabelBox).

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

LabelBox

The LabelBox fields to write

Returns ​

void

Throws ​

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

Example ​

ts
const box: LabelBox = {
	type: 'labl',
	version: 0,
	flags: 0,
	labelId: 1,
	language: 'en',
	label: 'English',
}

const writer = writeIsoBox(box, { writers: { labl: writeLabl } })

A Streaming Video Technology Alliance project.