Class OutputConsumerAdapterV30
- java.lang.Object
-
- com.google.android.exoplayer2.source.mediaparser.OutputConsumerAdapterV30
-
- All Implemented Interfaces:
MediaParser.OutputConsumer
@RequiresApi(30) @Deprecated public final class OutputConsumerAdapterV30 extends Object implements MediaParser.OutputConsumer
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.MediaParser.OutputConsumer
implementation that redirects output to anExtractorOutput
.
-
-
Constructor Summary
Constructors Constructor Description OutputConsumerAdapterV30()
Deprecated.OutputConsumerAdapterV30(Format primaryTrackManifestFormat, @com.google.android.exoplayer2.C.TrackType int primaryTrackType, boolean expectDummySeekMap)
Deprecated.Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
disableSeeking()
Deprecated.Overrides future receivedSeekMaps
with non-seekable instances.ChunkIndex
getChunkIndex()
Deprecated.Returns the most recently outputChunkIndex
, or null if none has been output.MediaParser.SeekMap
getDummySeekMap()
Deprecated.Returns a dummyMediaParser.SeekMap
, or null if not available.Format[]
getSampleFormats()
Deprecated.Returns the last output format for each track, or null if not all the tracks have been identified.Pair<MediaParser.SeekPoint,MediaParser.SeekPoint>
getSeekPoints(long seekTimeUs)
Deprecated.Returns theMediaParser.SeekPoint
instances corresponding to the given timestamp.void
onSampleCompleted(int trackIndex, long timeUs, int flags, int size, int offset, MediaCodec.CryptoInfo cryptoInfo)
Deprecated.void
onSampleDataFound(int trackIndex, MediaParser.InputReader sampleData)
Deprecated.void
onSeekMapFound(MediaParser.SeekMap seekMap)
Deprecated.void
onTrackCountFound(int numberOfTracks)
Deprecated.void
onTrackDataFound(int trackIndex, MediaParser.TrackData trackData)
Deprecated.void
setExtractorOutput(ExtractorOutput extractorOutput)
Deprecated.Sets theExtractorOutput
to whichMediaParser's
output is directed.void
setMuxedCaptionFormats(List<Format> muxedCaptionFormats)
Deprecated.SetsFormat
information associated to the caption tracks multiplexed in the media.void
setSampleTimestampUpperLimitFilterUs(long sampleTimestampUpperLimitFilterUs)
Deprecated.Sets an upper limit for sample timestamp filtering.void
setSelectedParserName(String parserName)
Deprecated.Defines the container MIME type to propagate throughTrackOutput.format(com.google.android.exoplayer2.Format)
.void
setTimestampAdjuster(TimestampAdjuster timestampAdjuster)
Deprecated.Sets aTimestampAdjuster
for adjusting the timestamps of the output samples.
-
-
-
Constructor Detail
-
OutputConsumerAdapterV30
public OutputConsumerAdapterV30()
Deprecated.
-
OutputConsumerAdapterV30
public OutputConsumerAdapterV30(@Nullable Format primaryTrackManifestFormat, @com.google.android.exoplayer2.C.TrackType int primaryTrackType, boolean expectDummySeekMap)
Deprecated.Creates a new instance.- Parameters:
primaryTrackManifestFormat
- The manifest-obtained format of the primary track, or null if not applicable.primaryTrackType
- Thetype
of the primary track.C.TRACK_TYPE_NONE
if there is no primary track.expectDummySeekMap
- Whether the output consumer should expect an initial dummy seek map which should be exposed throughgetDummySeekMap()
.
-
-
Method Detail
-
setSampleTimestampUpperLimitFilterUs
public void setSampleTimestampUpperLimitFilterUs(long sampleTimestampUpperLimitFilterUs)
Deprecated.Sets an upper limit for sample timestamp filtering.When set, samples with timestamps greater than
sampleTimestampUpperLimitFilterUs
will be discarded.- Parameters:
sampleTimestampUpperLimitFilterUs
- The maximum allowed sample timestamp, orC.TIME_UNSET
to remove filtering.
-
setTimestampAdjuster
public void setTimestampAdjuster(TimestampAdjuster timestampAdjuster)
Deprecated.Sets aTimestampAdjuster
for adjusting the timestamps of the output samples.
-
setExtractorOutput
public void setExtractorOutput(ExtractorOutput extractorOutput)
Deprecated.Sets theExtractorOutput
to whichMediaParser's
output is directed.
-
setMuxedCaptionFormats
public void setMuxedCaptionFormats(List<Format> muxedCaptionFormats)
Deprecated.SetsFormat
information associated to the caption tracks multiplexed in the media.
-
disableSeeking
public void disableSeeking()
Deprecated.Overrides future receivedSeekMaps
with non-seekable instances.
-
getDummySeekMap
@Nullable public MediaParser.SeekMap getDummySeekMap()
Deprecated.Returns a dummyMediaParser.SeekMap
, or null if not available.the dummy
MediaParser.SeekMap
returns a singleMediaParser.SeekPoint
whoseMediaParser.SeekPoint.timeMicros
matches the requested timestamp, andMediaParser.SeekPoint.position
is 0.
-
getChunkIndex
@Nullable public ChunkIndex getChunkIndex()
Deprecated.Returns the most recently outputChunkIndex
, or null if none has been output.
-
getSeekPoints
public Pair<MediaParser.SeekPoint,MediaParser.SeekPoint> getSeekPoints(long seekTimeUs)
Deprecated.Returns theMediaParser.SeekPoint
instances corresponding to the given timestamp.- Parameters:
seekTimeUs
- The timestamp in microseconds to retrieveMediaParser.SeekPoint
instances for.- Returns:
- The
MediaParser.SeekPoint
instances corresponding to the given timestamp.
-
setSelectedParserName
public void setSelectedParserName(String parserName)
Deprecated.Defines the container MIME type to propagate throughTrackOutput.format(com.google.android.exoplayer2.Format)
.- Parameters:
parserName
- The name of the selected parser.
-
getSampleFormats
@Nullable public Format[] getSampleFormats()
Deprecated.Returns the last output format for each track, or null if not all the tracks have been identified.
-
onTrackCountFound
public void onTrackCountFound(int numberOfTracks)
Deprecated.- Specified by:
onTrackCountFound
in interfaceMediaParser.OutputConsumer
-
onSeekMapFound
public void onSeekMapFound(MediaParser.SeekMap seekMap)
Deprecated.- Specified by:
onSeekMapFound
in interfaceMediaParser.OutputConsumer
-
onTrackDataFound
public void onTrackDataFound(int trackIndex, MediaParser.TrackData trackData)
Deprecated.- Specified by:
onTrackDataFound
in interfaceMediaParser.OutputConsumer
-
onSampleDataFound
public void onSampleDataFound(int trackIndex, MediaParser.InputReader sampleData) throws IOException
Deprecated.- Specified by:
onSampleDataFound
in interfaceMediaParser.OutputConsumer
- Throws:
IOException
-
onSampleCompleted
public void onSampleCompleted(int trackIndex, long timeUs, int flags, int size, int offset, @Nullable MediaCodec.CryptoInfo cryptoInfo)
Deprecated.- Specified by:
onSampleCompleted
in interfaceMediaParser.OutputConsumer
-
-