Back to Exoplayer

ElementaryStreamReader (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/extractor/ts/ElementaryStreamReader.html

latest3.6 KB
Original Source

Package com.google.android.exoplayer2.extractor.ts

Interface ElementaryStreamReader

  • All Known Implementing Classes: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.

Method Summary

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. |

Method Detail

- 

seek

void seek()

Deprecated.

Notifies the reader that a seek has occurred.

- 

createTracks

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.

- 

packetStarted

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.

- 

consume

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.

- 

packetFinished

void packetFinished()

Deprecated.

Called when a packet ends.