nsIWebVTTListener

Listener for a JS WebVTT parser (vtt.js).

Methods

onCue(cue)

Is called when the WebVTTParser successfully parses a WebVTT cue.

Parameters

cue An object representing the data of a parsed WebVTT cue.

onRegion(region)

Is called when the WebVTT parser successfully parses a WebVTT region.

Parameters

region An object representing the data of a parsed WebVTT region.

onParsingError(errorCode)

Is called when the WebVTT parser encounters a parsing error.

Parameters

error The error code of the ParserError the occured.