Constructor
    
    
    new VttTextParser()
    
    
    
    
    
    
    
    
    - Implements:
 
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
 
    
     
    
    
    
    
    
    
    
        Members
        
            
(private, static, constant) MPEG_TIMESCALE_ :number
    Type:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
 
        
    
    
        Methods
        
            
    
    
    (private, static) parseCue_(textnon-null, timeOffset) → {shaka.text.Cue}
    
    
    Parses a text block into a Cue object.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                text | 
            
            
            
                
Array.<string>
            
             | 
            
            
             | 
        
    
        
            
                timeOffset | 
            
            
            
                
number
            
             | 
            
            
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
Returns:
        
    - 
        Type
    
 
    - 
        
shaka.text.Cue
    
 
    
 
        
            
    
    
    (private, static) parsedLineValueAndInterpretation_(cuenon-null, word) → {boolean}
    
    
    Parameters:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
Returns:
        
    - 
        Type
    
 
    - 
        
boolean
    
 
    
 
        
            
    
    
    (static) parseSetting(cuenon-null, word) → {boolean}
    
    
    Parses a WebVTT setting from the given word.
    Parameters:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
Returns:
        
    True on success.
    - 
        Type
    
 
    - 
        
boolean
    
 
    
 
        
            
    
    
    (private, static) parseTime_(parsernon-null) → (nullable) {number}
    
    
    Parses a WebVTT time from the given parser.
    Parameters:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
Returns:
        
    - 
        Type
    
 
    - 
        
number
    
 
    
 
        
            
    
    
    (private, static) setPositionAlign_(cuenon-null, align)
    
    
    Parameters:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
 
        
            
    
    
    (private, static) setTextAlign_(cuenon-null, align)
    
    
    Parameters:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
 
        
            
    
    
    (private, static) setVerticalWritingDirection_(cuenon-null, value)
    
    
    Parameters:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
 
        
            
    
    
    (export) 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 | 
            
            
            
                
Uint8Array
            
             | 
            
            
            The data that makes up the init segment. | 
        
    
    
    
    
    
    
    
    
    - Implements:
 
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
 
        
            
    
    
    
    
    
    Parse a media segment and return the cues that make up the segment.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                data | 
            
            
            
                
Uint8Array
            
             | 
            
            
            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:
 
    
    
    
    
    
Throws:
        
    
    
Returns:
        
    - 
        Type
    
 
    - 
        
Array.<!shakaExtern.Cue>