Class: shaka.cea.DummyCaptionDecoder

Constructor

new DummyCaptionDecoder()

Implements:
Source:

Methods

clear()

Clears the decoder state completely. Should be used when an action renders the decoder state invalid, e.g. unbuffered seeks.
Implements:
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).
Implements:
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.
Implements:
Source: