Methods
init(initSegmentnon-null)
    Initializes the parser with init segment data.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| initSegment | BufferSource | init segment to parse. | 
- Source:
parse(mediaSegmentnon-null) → {Array<!shaka.extern.ICeaParser.CaptionPacket>}
    Parses the stream and extracts closed captions packets.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| mediaSegment | BufferSource | media segment to parse. | 
- Source:
Returns:
- Type
- Array<!shaka.extern.ICeaParser.CaptionPacket>
Type Definitions
CaptionPacket
    Parsed Caption Packet.
    Type:
- {packet: !Uint8Array, pts: number}
Properties:
| Name | Type | Description | 
|---|---|---|
| packet | Uint8Array | Caption packet. More specifically, it contains a "User data registered by Recommendation ITU-T T.35 SEI message", from section D.1.6 and section D.2.6 of Rec. ITU-T H.264 (06/2019). | 
| pts | number | The presentation timestamp (pts) at which the ITU-T T.35 data shows up. in seconds. | 
- Source: