Function: readVlab()
ts
function readVlab(cursor): WebVttSourceLabelBox;Defined in: readers/readVlab.ts:18
Read the vlab box (WebVttSourceLabelBox).
Parameters
cursor
The read cursor at the first byte after the box header
Returns
A parsed WebVttSourceLabelBox
Example
ts
// size (14), type (vlab), sourceLabel
const data = new Uint8Array([0, 0, 0, 14, 118, 108, 97, 98, 115, 111, 117, 114, 99, 101])
const boxes = readIsoBoxes(data, { readers: { vlab: readVlab } })