Function: writeSttg()
ts
function writeSttg(cursor, box): void;Defined in: writers/writeSttg.ts:20
Write the sttg box (WebVttSettingsBox).
Parameters
cursor
The write cursor
box
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 } })