docs/doc/reference/com/google/android/exoplayer2/source/chunk/BaseMediaChunkOutput.html
Package com.google.android.exoplayer2.source.chunk
All Implemented Interfaces:ChunkExtractor.TrackOutputProvider
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classBaseMediaChunkOutputextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ChunkExtractor.TrackOutputProvider](ChunkExtractor.TrackOutputProvider.html "interface in com.google.android.exoplayer2.source.chunk")
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.
A ChunkExtractor.TrackOutputProvider that provides TrackOutputs based on a predefined mapping from track type to output.
Constructors | Constructor | Description |
| --- | --- |
| BaseMediaChunkOutput(int[] trackTypes, SampleQueue[] sampleQueues) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int[] | getWriteIndices() |
Deprecated.
Returns the current absolute write indices of the individual sample queues.
|
| void | setSampleOffsetUs(long sampleOffsetUs) |
Deprecated.
Sets an offset that will be added to the timestamps (and sub-sample timestamps) of samples subsequently written to the sample queues.
|
| TrackOutput | track(int id, @com.google.android.exoplayer2.C.TrackType int type) |
Deprecated.
Called to get the TrackOutput for a specific track.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public BaseMediaChunkOutput(int[] trackTypes,[SampleQueue](../SampleQueue.html "class in com.google.android.exoplayer2.source")[] sampleQueues)
Deprecated.
Parameters:trackTypes - The track types of the individual track outputs.sampleQueues - The individual sample queues.
-
public[TrackOutput](../../extractor/TrackOutput.html "interface in com.google.android.exoplayer2.extractor")track(int id,
@com.google.android.exoplayer2.C.TrackType int type)
Deprecated.
Description copied from interface: ChunkExtractor.TrackOutputProvider
Called to get the TrackOutput for a specific track.
The same TrackOutput is returned if multiple calls are made with the same id.
Specified by:track in interface ChunkExtractor.TrackOutputProviderParameters:id - A track identifier.type - The type of the track.Returns:The TrackOutput for the given track identifier.
-
public int[] getWriteIndices()
Deprecated.
Returns the current absolute write indices of the individual sample queues.
-
public void setSampleOffsetUs(long sampleOffsetUs)
Deprecated.
Sets an offset that will be added to the timestamps (and sub-sample timestamps) of samples subsequently written to the sample queues.