docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaChunkIterator.html
Package com.google.android.exoplayer2.testutil
All Implemented Interfaces:MediaChunkIterator
public final classFakeMediaChunkIteratorextends[BaseMediaChunkIterator](../source/chunk/BaseMediaChunkIterator.html "class in com.google.android.exoplayer2.source.chunk")
Fake MediaChunkIterator.
-
EMPTY
Constructors | Constructor | Description |
| --- | --- |
| FakeMediaChunkIterator(long[] chunkTimeBoundariesSec, long[] chunkLengths) |
Creates a fake MediaChunkIterator.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| long | getChunkEndTimeUs() |
Returns the media end time of the chunk, in microseconds.
|
| long | getChunkStartTimeUs() |
Returns the media start time of the chunk, in microseconds.
|
| DataSpec | getDataSpec() |
Returns the DataSpec used to load the media chunk.
|
-
checkInBounds, getCurrentIndex, isEnded, next, reset
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public FakeMediaChunkIterator(long[] chunkTimeBoundariesSec,
long[] chunkLengths)
Creates a fake MediaChunkIterator.
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).
-
public[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")getDataSpec()
Description copied from interface: MediaChunkIterator
Returns the DataSpec used to load the media chunk.
-
public long getChunkStartTimeUs()
Description copied from interface: MediaChunkIterator
Returns the media start time of the chunk, in microseconds.
-
public long getChunkEndTimeUs()
Description copied from interface: MediaChunkIterator
Returns the media end time of the chunk, in microseconds.