docs/doc/reference/com/google/android/exoplayer2/extractor/ts/PassthroughSectionPayloadReader.html
Package com.google.android.exoplayer2.extractor.ts
All Implemented Interfaces:SectionPayloadReader
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classPassthroughSectionPayloadReaderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[SectionPayloadReader](SectionPayloadReader.html "interface in com.google.android.exoplayer2.extractor.ts")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A SectionPayloadReader that directly outputs the section bytes as sample data.
Timestamp adjustment is provided through Format.subsampleOffsetUs.
Constructors | Constructor | Description |
| --- | --- |
| PassthroughSectionPayloadReader(String mimeType) |
Deprecated.
Create a new PassthroughSectionPayloadReader. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | consume(ParsableByteArray sectionData) |
Deprecated.
Called by a SectionReader when a full section is received.
|
| void | init(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator) |
Deprecated.
Initializes the section payload reader. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public PassthroughSectionPayloadReader([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")mimeType)
Deprecated.
Create a new PassthroughSectionPayloadReader.
Parameters:mimeType - The MIME type set as Format.sampleMimeType on the created output track.
-
public void init([TimestampAdjuster](../../util/TimestampAdjuster.html "class in com.google.android.exoplayer2.util")timestampAdjuster,[ExtractorOutput](../ExtractorOutput.html "interface in com.google.android.exoplayer2.extractor")extractorOutput,[TsPayloadReader.TrackIdGenerator](TsPayloadReader.TrackIdGenerator.html "class in com.google.android.exoplayer2.extractor.ts")idGenerator)
Deprecated.
Description copied from interface: SectionPayloadReader
Initializes the section payload reader.
Specified by:init in interface SectionPayloadReaderParameters:timestampAdjuster - A timestamp adjuster for offsetting and scaling sample timestamps.extractorOutput - The ExtractorOutput that receives the extracted data.idGenerator - A TsPayloadReader.TrackIdGenerator that generates unique track ids for the TrackOutputs.
-
public void consume([ParsableByteArray](../../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")sectionData)
Deprecated.
Description copied from interface: SectionPayloadReader
Called by a SectionReader when a full section is received.
Specified by:consume in interface SectionPayloadReaderParameters:sectionData - The data belonging to a section starting from the table_id. If section_syntax_indicator is set to '1', sectionData excludes the CRC_32 field. Otherwise, all bytes belonging to the table section are included.