@UnstableApi
class SeiReader


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

Summary

Public constructors

SeiReader(closedCaptionFormats: (Mutable)List<Format!>!)

Public functions

Unit
consume(pesTimeUs: Long, seiBuffer: ParsableByteArray!)
Unit
createTracks(
    extractorOutput: ExtractorOutput!,
    idGenerator: TsPayloadReader.TrackIdGenerator!
)
Unit

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

Unit
setReorderingQueueSize(reorderingQueueSize: Int)

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

SeiReader(closedCaptionFormats: (Mutable)List<Format!>!)
Parameters
closedCaptionFormats: (Mutable)List<Format!>!

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

Public functions

consume

fun consume(pesTimeUs: Long, seiBuffer: ParsableByteArray!): Unit

createTracks

fun createTracks(
    extractorOutput: ExtractorOutput!,
    idGenerator: TsPayloadReader.TrackIdGenerator!
): Unit

flush

fun flush(): Unit

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

setReorderingQueueSize

fun setReorderingQueueSize(reorderingQueueSize: Int): Unit

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