Skip to content

Function: writeSttg() ​

ts
function writeSttg(cursor, box): void;

Defined in: writers/writeSttg.ts:20

Write the sttg box (WebVttSettingsBox).

Parameters ​

cursor ​

IsoBoxWriteCursor

The write cursor

box ​

WebVttSettingsBox

The WebVttSettingsBox fields to write

Returns ​

void

Throws ​

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

Example ​

ts
const box: WebVttSettingsBox = {
	type: 'sttg',
	settings: 'align:start',
}

const writer = writeIsoBox(box, { writers: { sttg: writeSttg } })

A Streaming Video Technology Alliance project.