Interface ElementaryStreamReader
-
- All Known Implementing Classes:
Ac3Reader,Ac4Reader,AdtsReader,DtsReader,DvbSubtitleReader,H262Reader,H263Reader,H264Reader,H265Reader,Id3Reader,LatmReader,MpegAudioReader
@Deprecated public interface ElementaryStreamReader
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 voidconsume(ParsableByteArray data)Deprecated.Consumes (possibly partial) data from the current packet.voidcreateTracks(ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator)Deprecated.Initializes the reader by providing outputs and ids for the tracks.voidpacketFinished()Deprecated.Called when a packet ends.voidpacketStarted(long pesTimeUs, @com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int flags)Deprecated.Called when a packet starts.voidseek()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, TsPayloadReader.TrackIdGenerator idGenerator)
Deprecated.Initializes the reader by providing outputs and ids for the tracks.- Parameters:
extractorOutput- TheExtractorOutputthat receives the extracted data.idGenerator- ATsPayloadReader.TrackIdGeneratorthat generates unique track ids for theTrackOutputs.
-
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- SeeTsPayloadReader.Flags.
-
consume
void consume(ParsableByteArray data) throws ParserException
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.
-
-