Class: VTT

GoBrain.Pdk.Parsers.Subtitle. VTT

new GoBrain.Pdk.Parsers.Subtitle.VTT()

GoBrain.Pdk/src/parsers/subtitle/vtt.js, line 1

Subtitle parser for the VTT format.

Subtitle parser for the VTT format.

Properties:
Name Type Description
Utils GoBrain.Pdk.Parsers.Subtitle.Base~Utils

Extends

Methods

inherited createCue(start, end, text){VTTCue}

GoBrain.Pdk/src/parsers/subtitle/base.js, line 73
Name Type Description
start Number

Cue start time.

end Number

Cue end time.

text Number

Cue text.

Returns:
Type Description
VTTCue

parse(data){Array.<VTTCue>}

GoBrain.Pdk/src/parsers/subtitle/vtt.js, line 79

Parses VTT subtitle data into a sorted array of VTTCues.

Parses VTT subtitle data into a sorted array of VTTCues.

Name Type Description
data String

The data to parse.

Returns:
Type Description
Array.<VTTCue>