docs/doc/reference/com/google/android/exoplayer2/extractor/ts/H264Reader.html
Package com.google.android.exoplayer2.extractor.ts
All Implemented Interfaces:ElementaryStreamReader
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classH264Readerextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ElementaryStreamReader](ElementaryStreamReader.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.
Parses a continuous H264 byte stream and extracts individual frames.
Constructors | Constructor | Description |
| --- | --- |
| H264Reader(SeiReader seiReader, boolean allowNonIdrKeyframes, boolean detectAccessUnits) |
Deprecated.
|
All Methods Instance Methods Concrete 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. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public H264Reader([SeiReader](SeiReader.html "class in com.google.android.exoplayer2.extractor.ts")seiReader,
boolean allowNonIdrKeyframes,
boolean detectAccessUnits)
Deprecated.
Parameters:seiReader - An SEI reader for consuming closed caption channels.allowNonIdrKeyframes - Whether to treat samples consisting of non-IDR I slices as synchronization samples (key-frames).detectAccessUnits - Whether to split the input stream into access units (samples) based on slice headers. Pass false if the stream contains access unit delimiters (AUDs).
-
public void seek()
Deprecated.
Description copied from interface: ElementaryStreamReader
Notifies the reader that a seek has occurred.
Specified by:seek in interface ElementaryStreamReader
-
public 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.
Description copied from interface: ElementaryStreamReader
Initializes the reader by providing outputs and ids for the tracks.
Specified by:createTracks in interface ElementaryStreamReaderParameters:extractorOutput - The ExtractorOutput that receives the extracted data.idGenerator - A TsPayloadReader.TrackIdGenerator that generates unique track ids for the TrackOutputs.
-
public void packetStarted(long pesTimeUs,
@com.google.android.exoplayer2.extractor.ts.TsPayloadReader.Flags int flags)
Deprecated.
Description copied from interface: ElementaryStreamReader
Called when a packet starts.
Specified by:packetStarted in interface ElementaryStreamReaderParameters:pesTimeUs - The timestamp associated with the packet.flags - See TsPayloadReader.Flags.
-
public void consume([ParsableByteArray](../../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")data)
Deprecated.
Description copied from interface: ElementaryStreamReader
Consumes (possibly partial) data from the current packet.
Specified by:consume in interface ElementaryStreamReaderParameters:data - The data to consume.
-
public void packetFinished()
Deprecated.
Description copied from interface: ElementaryStreamReader
Called when a packet ends.
Specified by:packetFinished in interface ElementaryStreamReader