public interface MediaChunkIterator
| Modifier and Type | Field and Description |
|---|---|
static MediaChunkIterator |
EMPTY
An empty media chunk iterator without available data.
|
| Modifier and Type | Method and 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. |
boolean |
isEnded()
Returns whether the iteration has reached the end of the available data.
|
boolean |
next()
Moves the iterator to the next media chunk.
|
static final MediaChunkIterator EMPTY
boolean isEnded()
boolean next()
Check the return value or isEnded() to determine whether the iterator reached the
end of the available data.
long getChunkStartTimeUs()