Class BaseMediaChunkOutput
- java.lang.Object
-
- com.google.android.exoplayer2.source.chunk.BaseMediaChunkOutput
-
- All Implemented Interfaces:
ChunkExtractor.TrackOutputProvider
@Deprecated public final class BaseMediaChunkOutput extends Object implements ChunkExtractor.TrackOutputProvider
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.AChunkExtractor.TrackOutputProviderthat providesTrackOutputsbased on a predefined mapping from track type to output.
-
-
Constructor Summary
Constructors Constructor Description BaseMediaChunkOutput(int[] trackTypes, SampleQueue[] sampleQueues)Deprecated.
-
Method Summary
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.voidsetSampleOffsetUs(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.TrackOutputtrack(int id, @com.google.android.exoplayer2.C.TrackType int type)Deprecated.Called to get theTrackOutputfor a specific track.
-
-
-
Constructor Detail
-
BaseMediaChunkOutput
public BaseMediaChunkOutput(int[] trackTypes, SampleQueue[] sampleQueues)Deprecated.- Parameters:
trackTypes- The track types of the individual track outputs.sampleQueues- The individual sample queues.
-
-
Method Detail
-
track
public TrackOutput track(int id, @com.google.android.exoplayer2.C.TrackType int type)
Deprecated.Description copied from interface:ChunkExtractor.TrackOutputProviderCalled to get theTrackOutputfor a specific track.The same
TrackOutputis returned if multiple calls are made with the sameid.- Specified by:
trackin interfaceChunkExtractor.TrackOutputProvider- Parameters:
id- A track identifier.type- Thetypeof the track.- Returns:
- The
TrackOutputfor the given track identifier.
-
getWriteIndices
public int[] getWriteIndices()
Deprecated.Returns the current absolute write indices of the individual sample queues.
-
setSampleOffsetUs
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.
-
-