public static class SsManifest.StreamElement extends Object
Modifier and Type | Field and Description |
---|---|
int |
chunkCount |
int |
displayHeight |
int |
displayWidth |
Format[] |
formats |
String |
language |
int |
maxHeight |
int |
maxWidth |
String |
name |
String |
subType |
long |
timescale |
int |
type |
Constructor and Description |
---|
StreamElement(String baseUri,
String chunkTemplate,
int type,
String subType,
long timescale,
String name,
int maxWidth,
int maxHeight,
int displayWidth,
int displayHeight,
String language,
Format[] formats,
List<Long> chunkStartTimes,
long lastChunkDuration) |
Modifier and Type | Method and Description |
---|---|
Uri |
buildRequestUri(int track,
int chunkIndex)
Builds a uri for requesting the specified chunk of the specified track.
|
long |
getChunkDurationUs(int chunkIndex)
Returns the duration of the specified chunk.
|
int |
getChunkIndex(long timeUs)
Returns the index of the chunk that contains the specified time.
|
long |
getStartTimeUs(int chunkIndex)
Returns the start time of the specified chunk.
|
public final int type
public final String subType
public final long timescale
public final String name
public final int maxWidth
public final int maxHeight
public final int displayWidth
public final int displayHeight
public final String language
public final Format[] formats
public final int chunkCount
public int getChunkIndex(long timeUs)
timeUs
- The time in microseconds.public long getStartTimeUs(int chunkIndex)
chunkIndex
- The index of the chunk.public long getChunkDurationUs(int chunkIndex)
chunkIndex
- The index of the chunk.public Uri buildRequestUri(int track, int chunkIndex)
track
- The index of the track for which to build the URL.chunkIndex
- The index of the chunk for which to build the URL.