Class PesReader
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.ts.PesReader
-
- All Implemented Interfaces:
TsPayloadReader
@Deprecated public final class PesReader extends Object implements TsPayloadReader
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.Parses PES packet data and extracts samples.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.extractor.ts.TsPayloadReader
TsPayloadReader.DvbSubtitleInfo, TsPayloadReader.EsInfo, TsPayloadReader.Factory, TsPayloadReader.Flags, TsPayloadReader.TrackIdGenerator
-
-
Field Summary
-
Fields inherited from interface com.google.android.exoplayer2.extractor.ts.TsPayloadReader
FLAG_DATA_ALIGNMENT_INDICATOR, FLAG_PAYLOAD_UNIT_START_INDICATOR, FLAG_RANDOM_ACCESS_INDICATOR
-
-
Constructor Summary
Constructors Constructor Description PesReader(ElementaryStreamReader reader)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
consume(ParsableByteArray data, @com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int flags)
Deprecated.Consumes the payload of a TS packet.void
init(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)
Deprecated.Initializes the payload reader.void
seek()
Deprecated.Notifies the reader that a seek has occurred.
-
-
-
Constructor Detail
-
PesReader
public PesReader(ElementaryStreamReader reader)
Deprecated.
-
-
Method Detail
-
init
public void init(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)
Deprecated.Description copied from interface:TsPayloadReader
Initializes the payload reader.- Specified by:
init
in interfaceTsPayloadReader
- Parameters:
timestampAdjuster
- A timestamp adjuster for offsetting and scaling sample timestamps.extractorOutput
- TheExtractorOutput
that receives the extracted data.idGenerator
- ATsPayloadReader.TrackIdGenerator
that generates unique track ids for theTrackOutput
s.
-
seek
public final void seek()
Deprecated.Description copied from interface:TsPayloadReader
Notifies the reader that a seek has occurred.Following a call to this method, the data passed to the next invocation of
TsPayloadReader.consume(com.google.android.exoplayer2.util.ParsableByteArray, @com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int)
will not be a continuation of the data that was previously passed. Hence the reader should reset any internal state.- Specified by:
seek
in interfaceTsPayloadReader
-
consume
public final void consume(ParsableByteArray data, @com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int flags) throws ParserException
Deprecated.Description copied from interface:TsPayloadReader
Consumes the payload of a TS packet.- Specified by:
consume
in interfaceTsPayloadReader
- Parameters:
data
- The TS packet. The position will be set to the start of the payload.flags
- SeeTsPayloadReader.Flags
.- Throws:
ParserException
- If the payload could not be parsed.
-
-