Class: SRT

GoBrain.Pdk.Parsers.Subtitle. SRT

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

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/srt.js, line 18

Parses 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>