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