FakeAdaptiveDataSet.Iterator
public final class FakeAdaptiveDataSet.Iterator extends BaseMediaChunkIterator
| java.lang.Object | ||
| ↳ | androidx.media3.exoplayer.source.chunk.BaseMediaChunkIterator | |
| ↳ | androidx.media3.test.utils.FakeAdaptiveDataSet.Iterator |
MediaChunkIterator for the chunks defined by a fake adaptive data set.
Summary
Public constructors |
|---|
Iterator(Create iterator. |
Public methods |
|
|---|---|
long |
Returns the media end time of the chunk, in microseconds. |
long |
Returns the media start time of the chunk, in microseconds. |
DataSpec |
Returns the |
Inherited Constants |
||
|---|---|---|
|
Inherited fields |
||
|---|---|---|
|
Inherited methods |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
Iterator
public Iterator(
FakeAdaptiveDataSet dataSet,
int trackGroupIndex,
int chunkIndex
)
Create iterator.
| Parameters | |
|---|---|
FakeAdaptiveDataSet dataSet |
The data set to iterate over. |
int trackGroupIndex |
The index of the track group to iterate over. |
int chunkIndex |
The chunk index to which the iterator points initially. |
Public methods
getChunkEndTimeUs
public long getChunkEndTimeUs()
Returns the media end time of the chunk, in microseconds.
| Throws | |
|---|---|
java.util.NoSuchElementException |
If the method is called before the first call to |
getChunkStartTimeUs
public long getChunkStartTimeUs()
Returns the media start time of the chunk, in microseconds.
| Throws | |
|---|---|
java.util.NoSuchElementException |
If the method is called before the first call to |
getDataSpec
public DataSpec getDataSpec()
Returns the DataSpec used to load the media chunk.
| Throws | |
|---|---|
java.util.NoSuchElementException |
If the method is called before the first call to |