Interface SectionPayloadReader
-
- All Known Implementing Classes:
PassthroughSectionPayloadReader
public interface SectionPayloadReaderReads section data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconsume(ParsableByteArray sectionData)Called by aSectionReaderwhen a full section is received.voidinit(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)Initializes the section payload reader.
-
-
-
Method Detail
-
init
void init(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)
Initializes the section payload reader.- Parameters:
timestampAdjuster- A timestamp adjuster for offsetting and scaling sample timestamps.extractorOutput- TheExtractorOutputthat receives the extracted data.idGenerator- ATsPayloadReader.TrackIdGeneratorthat generates unique track ids for theTrackOutputs.
-
consume
void consume(ParsableByteArray sectionData)
Called by aSectionReaderwhen a full section is received.- Parameters:
sectionData- The data belonging to a section starting from the table_id. If section_syntax_indicator is set to '1',sectionDataexcludes the CRC_32 field. Otherwise, all bytes belonging to the table section are included.
-
-