new GoBrain.Pdk.Parsers.Subtitle.SRT()
GoBrain.Pdk/src/parsers/subtitle/srt.js, line 1
Subtitle parser for the SRT format.
Subtitle parser for the SRT format.
Properties:
Name | Type | Description |
---|---|---|
Utils |
GoBrain.Pdk.Parsers.Subtitle.Base~Utils |
Extends
Methods
-
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/srt.js, line 18Parses SRT subtitle data into a sorted array of VTTCues.
-
Parses SRT subtitle data into a sorted array of VTTCues.
Name Type Description data
String The data to parse.
Returns:
Type Description Array.<VTTCue>