Class: shaka.text.TextEngine.TextParserWrapper_

Constructor

(private) new TextParserWrapper_(parser)

Parameters:
Name Type Description
parser Function
Implements:
Source:

Methods

parseInit(datanon-null)

Parse an initialization segment. Some formats do not have init segments so this won't always be called.
Parameters:
Name Type Description
data ArrayBuffer The data that makes up the init segment.
Implements:
Source:

parseMedia(datanon-null, timeContext) → (non-null) {Array.<!shaka.text.Cue>}

Parse a media segment and return the cues that make up the segment.
Parameters:
Name Type Description
data ArrayBuffer The next section of buffer.
timeContext shakaExtern.TextParser.TimeContext The time information that should be used to adjust the times values for each cue.
Implements:
Source:
Returns:
Type
Array.<!shaka.text.Cue>