Beta
Optional
createA factory for creating WebVttCue objects.
By default the parser will create DOM VTTCue objects for each cue. In some environments, like node or a web worker, this class does not exist. In this case, you can provide a custom factory function that creates a custom cue object.
Optional
createA factory for creating WebVttRegion objects.
By default the parser will create DOM VTTRegion objects for each region. In some environments, like node or a web worker, this class does not exist. In this case, you can provide a custom factory function that creates a custom region object.
Optional
useWhether to use DOM VTTCue and VTTRegion or generic objects. If createCue
or createRegion
are provided, they will be used instead of the default
factory functions.
Options for the WebVtt parser.