docs/doc/reference/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.RepresentationSegmentIterator.html
Package com.google.android.exoplayer2.source.dash
All Implemented Interfaces:MediaChunkIteratorEnclosing class:DefaultDashChunkSource
protected static final classDefaultDashChunkSource.RepresentationSegmentIteratorextends[BaseMediaChunkIterator](../chunk/BaseMediaChunkIterator.html "class in com.google.android.exoplayer2.source.chunk")
MediaChunkIterator wrapping a DefaultDashChunkSource.RepresentationHolder.
-
EMPTY
Constructors | Constructor | Description |
| --- | --- |
| RepresentationSegmentIterator(DefaultDashChunkSource.RepresentationHolder representation, long firstAvailableSegmentNum, long lastAvailableSegmentNum, long nowPeriodTimeUs) |
Creates 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 RepresentationSegmentIterator([DefaultDashChunkSource.RepresentationHolder](DefaultDashChunkSource.RepresentationHolder.html "class in com.google.android.exoplayer2.source.dash")representation,
long firstAvailableSegmentNum,
long lastAvailableSegmentNum,
long nowPeriodTimeUs)
Creates iterator.
Parameters:representation - The DefaultDashChunkSource.RepresentationHolder to wrap.firstAvailableSegmentNum - The number of the first available segment.lastAvailableSegmentNum - The number of the last available segment.nowPeriodTimeUs - The current time in microseconds since the start of the period used for calculating if segments are available at full network speed.
-
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.