public static class SsManifest.StreamElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
chunkCount |
int |
displayHeight |
int |
displayWidth |
com.google.android.exoplayer2.Format[] |
formats |
java.lang.String |
language |
int |
maxHeight |
int |
maxWidth |
java.lang.String |
name |
java.lang.String |
subType |
long |
timescale |
int |
type |
| Constructor and Description |
|---|
StreamElement(java.lang.String baseUri,
java.lang.String chunkTemplate,
int type,
java.lang.String subType,
long timescale,
java.lang.String name,
int maxWidth,
int maxHeight,
int displayWidth,
int displayHeight,
java.lang.String language,
com.google.android.exoplayer2.Format[] formats,
java.util.List<java.lang.Long> chunkStartTimes,
long lastChunkDuration) |
| Modifier and Type | Method and Description |
|---|---|
android.net.Uri |
buildRequestUri(int track,
int chunkIndex)
Builds a uri for requesting the specified chunk of the specified track.
|
SsManifest.StreamElement |
copy(com.google.android.exoplayer2.Format[] formats)
Creates a copy of this stream element with the formats replaced with those specified.
|
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 java.lang.String subType
public final long timescale
public final java.lang.String name
public final int maxWidth
public final int maxHeight
public final int displayWidth
public final int displayHeight
public final java.lang.String language
public final com.google.android.exoplayer2.Format[] formats
public final int chunkCount
public StreamElement(java.lang.String baseUri,
java.lang.String chunkTemplate,
int type,
java.lang.String subType,
long timescale,
java.lang.String name,
int maxWidth,
int maxHeight,
int displayWidth,
int displayHeight,
java.lang.String language,
com.google.android.exoplayer2.Format[] formats,
java.util.List<java.lang.Long> chunkStartTimes,
long lastChunkDuration)
public SsManifest.StreamElement copy(com.google.android.exoplayer2.Format[] formats)
formats - The formats to be included in the copy.java.lang.IndexOutOfBoundsException - If a key has an invalid index.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 android.net.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.