docs/doc/reference/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.html
Package com.google.android.exoplayer2.extractor.ts
Ac3Reader, Ac4Reader, AdtsReader, DtsReader, DvbSubtitleReader, H262Reader, H263Reader, H264Reader, H265Reader, Id3Reader, LatmReader, MpegAudioReader[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceElementaryStreamReader
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.
Extracts individual samples from an elementary media stream, preserving original order.
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | consume(ParsableByteArray data) |
Deprecated.
Consumes (possibly partial) data from the current packet.
|
| void | createTracks(ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator) |
Deprecated.
Initializes the reader by providing outputs and ids for the tracks.
|
| void | packetFinished() |
Deprecated.
Called when a packet ends.
|
| void | packetStarted(long pesTimeUs, @com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int flags) |
Deprecated.
Called when a packet starts.
|
| void | seek() |
Deprecated.
Notifies the reader that a seek has occurred. |
-
void seek()
Deprecated.
Notifies the reader that a seek has occurred.
-
void createTracks([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.
Initializes the reader by providing outputs and ids for the tracks.
Parameters:extractorOutput - The ExtractorOutput that receives the extracted data.idGenerator - A TsPayloadReader.TrackIdGenerator that generates unique track ids for the TrackOutputs.
-
void packetStarted(long pesTimeUs,
@com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int flags)
Deprecated.
Called when a packet starts.
Parameters:pesTimeUs - The timestamp associated with the packet.flags - See TsPayloadReader.Flags.
-
void consume([ParsableByteArray](../../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")data)
throws[ParserException](../../ParserException.html "class in com.google.android.exoplayer2")
Deprecated.
Consumes (possibly partial) data from the current packet.
Parameters:data - The data to consume.Throws:ParserException - If the data could not be parsed.
-
void packetFinished()
Deprecated.
Called when a packet ends.