Interface: shaka.extern.ICaptionDecoder

Methods

clear()

Clears the decoder state completely. Should be used when an action renders the decoder state invalid, e.g. unbuffered seeks.
Source:

decode() → {Array.<!shaka.extern.ICaptionDecoder.ClosedCaption>}

Decodes all currently extracted packets and then clears them. This should be called once for a set of extracts (see comment on extract).
Source:
Returns:
Type
Array.<!shaka.extern.ICaptionDecoder.ClosedCaption>

extract(userDataSeiMessagenon-null, pts)

Extracts packets and prepares them for decoding. In a given media fragment, all the caption packets found in its SEI messages should be extracted by successive calls to extract(), followed by a single call to decode().
Parameters:
Name Type Description
userDataSeiMessage Uint8Array This is a User Data registered by Rec.ITU-T T.35 SEI message. It is described in sections D.1.6 and D.2.6 of Rec. ITU-T H.264 (06/2019).
pts number PTS when this packet was received, in seconds.
Source:

getStreams() → {Array.<string>}

Returns the streams that the CEA decoder found.
Source:
Returns:
Type
Array.<string>

Type Definitions

ClosedCaption

Parsed Cue.
Type:
Source: