@UnstableApi
public final class SeiReader


Consumes SEI buffers, outputting contained CEA-608/708 messages to a TrackOutput.

Summary

Public constructors

SeiReader(List<Format> closedCaptionFormats)

Public methods

void
consume(long pesTimeUs, ParsableByteArray seiBuffer)
void
createTracks(
    ExtractorOutput extractorOutput,
    TsPayloadReader.TrackIdGenerator idGenerator
)
void

Immediately passes any 'buffered for re-ordering' messages to the outputs passed to the constructor, using consume.

void
setReorderingQueueSize(int reorderingQueueSize)

Sets the maximum number of SEI buffers that need to be kept in order to re-order from decode to presentation order.

Public constructors

SeiReader

public SeiReader(List<Format> closedCaptionFormats)
Parameters
List<Format> closedCaptionFormats

A list of formats for the closed caption channels to expose.

Public methods

consume

public void consume(long pesTimeUs, ParsableByteArray seiBuffer)

createTracks

public void createTracks(
    ExtractorOutput extractorOutput,
    TsPayloadReader.TrackIdGenerator idGenerator
)

flush

public void flush()

Immediately passes any 'buffered for re-ordering' messages to the outputs passed to the constructor, using consume.

setReorderingQueueSize

public void setReorderingQueueSize(int reorderingQueueSize)

Sets the maximum number of SEI buffers that need to be kept in order to re-order from decode to presentation order.