Back to Exoplayer

OutputConsumerAdapterV30 (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/mediaparser/OutputConsumerAdapterV30.html

latest13.8 KB
Original Source

Package com.google.android.exoplayer2.source.mediaparser

Class OutputConsumerAdapterV30

  • java.lang.Object

    • com.google.android.exoplayer2.source.mediaparser.OutputConsumerAdapterV30
  • All Implemented Interfaces:MediaParser.OutputConsumer


@RequiresApi(30)[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classOutputConsumerAdapterV30extends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[MediaParser.OutputConsumer](https://developer.android.com/reference/android/media/MediaParser.OutputConsumer.html "class or interface in android.media")

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

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | OutputConsumerAdapterV30() | Deprecated.

Equivalent to OutputConsumerAdapterV30(primaryTrackManifestFormat= null, primaryTrackType= C.TRACK_TYPE_NONE, expectDummySeekMap= false) | | 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 received SeekMaps with non-seekable instances. | | ChunkIndex | getChunkIndex() | Deprecated.

Returns the most recently output ChunkIndex, or null if none has been output. | | MediaParser.SeekMap | getDummySeekMap() | Deprecated.

Returns a dummy MediaParser.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 the MediaParser.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 the ExtractorOutput to which MediaParser's output is directed. | | void | setMuxedCaptionFormats​(List<Format> muxedCaptionFormats) | Deprecated.

Sets Format 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 through TrackOutput.format(com.google.android.exoplayer2.Format). | | void | setTimestampAdjuster​(TimestampAdjuster timestampAdjuster) | Deprecated.

Sets a TimestampAdjuster for adjusting the timestamps of the output samples. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

OutputConsumerAdapterV30

public OutputConsumerAdapterV30()

Deprecated.

Equivalent to OutputConsumerAdapterV30(primaryTrackManifestFormat= null, primaryTrackType= C.TRACK_TYPE_NONE, expectDummySeekMap= false)

- 

OutputConsumerAdapterV30

public OutputConsumerAdapterV30​(@Nullable[Format](../../Format.html "class in com.google.android.exoplayer2")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 - The type 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 through getDummySeekMap().

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, or C.TIME_UNSET to remove filtering.

- 

setTimestampAdjuster

public void setTimestampAdjuster​([TimestampAdjuster](../../util/TimestampAdjuster.html "class in com.google.android.exoplayer2.util")timestampAdjuster)

Deprecated.

Sets a TimestampAdjuster for adjusting the timestamps of the output samples.

- 

setExtractorOutput

public void setExtractorOutput​([ExtractorOutput](../../extractor/ExtractorOutput.html "interface in com.google.android.exoplayer2.extractor")extractorOutput)

Deprecated.

Sets the ExtractorOutput to which MediaParser's output is directed.

- 

setMuxedCaptionFormats

public void setMuxedCaptionFormats​([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Format](../../Format.html "class in com.google.android.exoplayer2")> muxedCaptionFormats)

Deprecated.

Sets Format information associated to the caption tracks multiplexed in the media.

- 

disableSeeking

public void disableSeeking()

Deprecated.

Overrides future received SeekMaps with non-seekable instances.

- 

getDummySeekMap

@Nullable
public[MediaParser.SeekMap](https://developer.android.com/reference/android/media/MediaParser.SeekMap.html "class or interface in android.media")getDummySeekMap()

Deprecated.

Returns a dummy MediaParser.SeekMap, or null if not available.

the dummy MediaParser.SeekMap returns a single MediaParser.SeekPoint whose MediaParser.SeekPoint.timeMicros matches the requested timestamp, and MediaParser.SeekPoint.position is 0.

- 

getChunkIndex

@Nullable
public[ChunkIndex](../../extractor/ChunkIndex.html "class in com.google.android.exoplayer2.extractor")getChunkIndex()

Deprecated.

Returns the most recently output ChunkIndex, or null if none has been output.

- 

getSeekPoints

public[Pair](https://developer.android.com/reference/android/util/Pair.html "class or interface in android.util")<[MediaParser.SeekPoint](https://developer.android.com/reference/android/media/MediaParser.SeekPoint.html?is-external=true "class or interface in android.media"),​[MediaParser.SeekPoint](https://developer.android.com/reference/android/media/MediaParser.SeekPoint.html?is-external=true "class or interface in android.media")> getSeekPoints​(long seekTimeUs)

Deprecated.

Returns the MediaParser.SeekPoint instances corresponding to the given timestamp. Parameters:seekTimeUs - The timestamp in microseconds to retrieve MediaParser.SeekPoint instances for.Returns:The MediaParser.SeekPoint instances corresponding to the given timestamp.

- 

setSelectedParserName

public void setSelectedParserName​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")parserName)

Deprecated.

Defines the container MIME type to propagate through TrackOutput.format(com.google.android.exoplayer2.Format). Parameters:parserName - The name of the selected parser.

- 

getSampleFormats

@Nullable
public[Format](../../Format.html "class in com.google.android.exoplayer2")[] 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 interface MediaParser.OutputConsumer

- 

onSeekMapFound

public void onSeekMapFound​([MediaParser.SeekMap](https://developer.android.com/reference/android/media/MediaParser.SeekMap.html "class or interface in android.media")seekMap)

Deprecated. Specified by:onSeekMapFound in interface MediaParser.OutputConsumer

- 

onTrackDataFound

public void onTrackDataFound​(int trackIndex,[MediaParser.TrackData](https://developer.android.com/reference/android/media/MediaParser.TrackData.html "class or interface in android.media")trackData)

Deprecated. Specified by:onTrackDataFound in interface MediaParser.OutputConsumer

- 

onSampleDataFound

public void onSampleDataFound​(int trackIndex,[MediaParser.InputReader](https://developer.android.com/reference/android/media/MediaParser.InputReader.html "class or interface in android.media")sampleData)
                       throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Deprecated. Specified by:onSampleDataFound in interface MediaParser.OutputConsumerThrows:IOException

- 

onSampleCompleted

public void onSampleCompleted​(int trackIndex,
                              long timeUs,
                              int flags,
                              int size,
                              int offset,
                              @Nullable[MediaCodec.CryptoInfo](https://developer.android.com/reference/android/media/MediaCodec.CryptoInfo.html "class or interface in android.media")cryptoInfo)

Deprecated. Specified by:onSampleCompleted in interface MediaParser.OutputConsumer