public interface TsPayloadReader
| Modifier and Type | Interface and Description |
|---|---|
static class |
TsPayloadReader.DvbSubtitleInfo
Holds information about a DVB subtitle, as defined in ETSI EN 300 468 V1.11.1 section 6.2.41.
|
static class |
TsPayloadReader.EsInfo
Holds information associated with a PMT entry.
|
static interface |
TsPayloadReader.Factory
Factory of
TsPayloadReader instances. |
static class |
TsPayloadReader.TrackIdGenerator
Generates track ids for initializing
TsPayloadReaders' TrackOutputs. |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(ParsableByteArray data,
boolean payloadUnitStartIndicator)
Consumes the payload of a TS packet.
|
void |
init(TimestampAdjuster timestampAdjuster,
ExtractorOutput extractorOutput,
TsPayloadReader.TrackIdGenerator idGenerator)
Initializes the payload reader.
|
void |
seek()
Notifies the reader that a seek has occurred.
|
void init(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)
timestampAdjuster - A timestamp adjuster for offsetting and scaling sample timestamps.extractorOutput - The ExtractorOutput that receives the extracted data.idGenerator - A PesReader.TrackIdGenerator that generates unique track ids for the
TrackOutputs.void seek()
Following a call to this method, the data passed to the next invocation of
consume(ParsableByteArray, boolean) will not be a continuation of the data that was
previously passed. Hence the reader should reset any internal state.
void consume(ParsableByteArray data, boolean payloadUnitStartIndicator) throws ParserException
data - The TS packet. The position will be set to the start of the payload.payloadUnitStartIndicator - Whether payloadUnitStartIndicator was set on the TS packet.ParserException - If the payload could not be parsed.