Beta
Beta
Create a new WebVTT parser.
The options to use for the parser.
Optional
Beta
oncueA callback function that is called when a cue is parsed.
Optional
Beta
onflushA callback function that is called when the parser is flushed.
Optional
Beta
onparsingerrorA callback function that is called when a parsing error occurs.
Optional
Beta
onregionA callback function that is called when a region is parsed.
Optional
Beta
onstyleA callback function that is called when a style is parsed.
Optional
Beta
ontimestampmapA callback function that is called when a timestamp map is parsed.
Beta
Parse the given data.
Optional
data: stringThe data to parse.
Whether to reuse the cue.
The parser.
A WebVTT parser.
Example
See
WebVTT Specification