Class FakeMediaChunkIterator
- java.lang.Object
- 
- com.google.android.exoplayer2.source.chunk.BaseMediaChunkIterator
- 
- com.google.android.exoplayer2.testutil.FakeMediaChunkIterator
 
 
- 
- All Implemented Interfaces:
- MediaChunkIterator
 
 public final class FakeMediaChunkIterator extends BaseMediaChunkIterator FakeMediaChunkIterator.
- 
- 
Field Summary- 
Fields inherited from interface com.google.android.exoplayer2.source.chunk.MediaChunkIteratorEMPTY
 
- 
 - 
Constructor SummaryConstructors Constructor Description FakeMediaChunkIterator(long[] chunkTimeBoundariesSec, long[] chunkLengths)Creates a fakeMediaChunkIterator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChunkEndTimeUs()Returns the media end time of the chunk, in microseconds.longgetChunkStartTimeUs()Returns the media start time of the chunk, in microseconds.DataSpecgetDataSpec()Returns theDataSpecused to load the media chunk.- 
Methods inherited from class com.google.android.exoplayer2.source.chunk.BaseMediaChunkIteratorcheckInBounds, getCurrentIndex, isEnded, next, reset
 
- 
 
- 
- 
- 
Constructor Detail- 
FakeMediaChunkIteratorpublic FakeMediaChunkIterator(long[] chunkTimeBoundariesSec, long[] chunkLengths)Creates a fakeMediaChunkIterator.- Parameters:
- chunkTimeBoundariesSec- An array containing the time boundaries where one chunk ends and the next one starts. The first value is the start time of the first chunk and the last value is the end time of the last chunk. The array should be of length (chunk-count + 1).
- chunkLengths- An array which contains the length of each chunk, should be of length (chunk-count).
 
 
- 
 - 
Method Detail- 
getDataSpecpublic DataSpec getDataSpec() Description copied from interface:MediaChunkIteratorReturns theDataSpecused to load the media chunk.
 - 
getChunkStartTimeUspublic long getChunkStartTimeUs() Description copied from interface:MediaChunkIteratorReturns the media start time of the chunk, in microseconds.
 - 
getChunkEndTimeUspublic long getChunkEndTimeUs() Description copied from interface:MediaChunkIteratorReturns the media end time of the chunk, in microseconds.
 
- 
 
-