Create a new WebVTT parser.
The options to use for the parser.
OptionaloncueA callback function that is called when a cue is parsed.
OptionalonflushA callback function that is called when the parser is flushed.
OptionalonparsingerrorA callback function that is called when a parsing error occurs.
OptionalonregionA callback function that is called when a region is parsed.
OptionalonstyleA callback function that is called when a style is parsed.
OptionalontimestampmapA callback function that is called when a timestamp map is parsed.
Parse the given data.
Optionaldata: stringThe data to parse.
Whether to reuse the cue.
The parser.
A WebVTT parser.
Example
See
WebVTT Specification