new GoBrain.Pdk.Parsers.Subtitle.TTML()
GoBrain.Pdk/src/parsers/subtitle/ttml.js, line 1
Subtitle parser for the TTML/DFXP format.
Subtitle parser for the TTML/DFXP format.
Properties:
| Name | Type | Description |
|---|---|---|
Utils |
GoBrain.Pdk.Parsers.Subtitle.Base~Utils |
Extends
Methods
-
Name Type Description startNumber Cue start time.
endNumber Cue end time.
textNumber Cue text.
Returns:
Type Description VTTCue -
parse(data){Array.<VTTCue>}
GoBrain.Pdk/src/parsers/subtitle/ttml.js, line 44Parses TTML/DFXP subtitle data into a sorted array of VTTCues.
-
Parses TTML/DFXP subtitle data into a sorted array of VTTCues.
Name Type Description dataString The data to parse.
Returns:
Type Description Array.<VTTCue>