public final class BaseMediaChunkOutput extends java.lang.Object implements ChunkExtractorWrapper.TrackOutputProvider
BaseMediaChunks.| Constructor and Description |
|---|
BaseMediaChunkOutput(int[] trackTypes,
SampleQueue[] sampleQueues) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getWriteIndices()
Returns the current absolute write indices of the individual sample queues.
|
void |
setSampleOffsetUs(long sampleOffsetUs)
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,
int type)
Called to get the
TrackOutput for a specific track. |
public BaseMediaChunkOutput(int[] trackTypes,
SampleQueue[] sampleQueues)
trackTypes - The track types of the individual track outputs.sampleQueues - The individual sample queues.public TrackOutput track(int id, int type)
ChunkExtractorWrapper.TrackOutputProviderTrackOutput for a specific track.
The same TrackOutput is returned if multiple calls are made with the same id.
track in interface ChunkExtractorWrapper.TrackOutputProviderid - A track identifier.type - The type of the track. Typically one of the
C TRACK_TYPE_* constants.TrackOutput for the given track identifier.public int[] getWriteIndices()
public void setSampleOffsetUs(long sampleOffsetUs)