docs/doc/reference/com/google/android/exoplayer2/testutil/FakeAdaptiveDataSet.Iterator.html
Package com.google.android.exoplayer2.testutil
All Implemented Interfaces:MediaChunkIteratorEnclosing class:FakeAdaptiveDataSet
public static final classFakeAdaptiveDataSet.Iteratorextends[BaseMediaChunkIterator](../source/chunk/BaseMediaChunkIterator.html "class in com.google.android.exoplayer2.source.chunk")
MediaChunkIterator for the chunks defined by a fake adaptive data set.
-
EMPTY
Constructors | Constructor | Description |
| --- | --- |
| Iterator(FakeAdaptiveDataSet dataSet, int trackGroupIndex, int chunkIndex) |
Create iterator.
|
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 Iterator([FakeAdaptiveDataSet](FakeAdaptiveDataSet.html "class in com.google.android.exoplayer2.testutil")dataSet,
int trackGroupIndex,
int chunkIndex)
Create iterator.
Parameters:dataSet - The data set to iterate over.trackGroupIndex - The index of the track group to iterate over.chunkIndex - The chunk index to which the iterator points initially.
-
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.