- Implementations:
 - Source:
 
Methods
init(initSegment)
    Initialize the caption parser. This should be called only once.
    Parameters:
| Name | Type | Description | 
|---|---|---|
initSegment | 
            
            BufferSource | 
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>