Constructor
new VttTextParser()
- Implements:
- Source:
Members
- 
    (private, static, constant) MPEG_TIMESCALE_ :number
- 
    
    
        Type:- number
 - Source:
 
Methods
- 
    
        
            
            (private, static) parseCue_(textnon-null, timeOffset) → (nullable) {TextTrackCue}
- 
    
    Parses a text block into a Cue object.Parameters:Name Type Description textArray.<string> timeOffsetnumber - Source:
 Returns:- Type
- TextTrackCue
 
- 
    
        
            
            (static) parseSetting(cuenon-null, word) → {boolean}
- 
    
    Parses a WebVTT setting from the given word.Parameters:Name Type Description cueTextTrackCue wordstring - Source:
 Returns:True on success.- Type
- boolean
 
- 
    
        
            
            (private, static) parseTime_(parsernon-null) → (nullable) {number}
- 
    
    Parses a WebVTT time from the given parser.Parameters:Name Type Description parsershaka.util.TextParser - Source:
 Returns:- Type
- number
 
- 
    
        
            
            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 dataArrayBuffer The data that makes up the init segment. - Implements:
- Source:
 
- 
    
        
            
            parseMedia(datanon-null, timeContext) → (non-null) {Array.<!TextTrackCue>}
- 
    
    Parse a media segment and return the cues that make up the segment.Parameters:Name Type Description dataArrayBuffer The next section of buffer. timeContextshakaExtern.TextParser.TimeContext The time information that should be used to adjust the times values for each cue. - Implements:
- Source:
 Throws:Returns:- Type
- Array.<!TextTrackCue>