Skip to content

Function: writeIden() ​

ts
function writeIden(cursor, box): void;

Defined in: writers/writeIden.ts:20

Write the iden box (WebVttCueIdBox).

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

WebVttCueIdBox

The WebVttCueIdBox fields to write

Returns ​

void

Throws ​

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

Example ​

ts
const box: WebVttCueIdBox = {
	type: 'iden',
	cueId: 'cue-1',
}

const writer = writeIsoBox(box, { writers: { iden: writeIden } })

A Streaming Video Technology Alliance project.