- Implementations:
 - Source:
 
Methods
getStreams() → {Array.<string>}
    Returns the streams that the CEA decoder found.
Returns:
- Type
 - Array.<string>
 
init(initSegment, adaptationopt)
    Initialize the caption parser. This should be called whenever new init
segment arrives.
    Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
initSegment | 
            
            BufferSource | |||
adaptation | 
            
            boolean | 
                
                    <optional> | 
            
            
                false | True if we just automatically switched active variant(s). | 
parseFrom(mediaFragment) → {Array.<!shaka.extern.ICaptionDecoder.ClosedCaption>}
    Parses embedded CEA closed captions and interacts with the underlying
CaptionStream, and calls the callback function when there are closed
captions.
    Parameters:
| Name | Type | Description | 
|---|---|---|
mediaFragment | 
            
            BufferSource | 
Returns:
    An array of parsed closed captions.
- Type
 - Array.<!shaka.extern.ICaptionDecoder.ClosedCaption>