public static class SmoothStreamingManifest.StreamElement extends Object
Modifier and Type | Field and Description |
---|---|
int |
chunkCount |
int |
displayHeight |
int |
displayWidth |
String |
language |
int |
maxHeight |
int |
maxWidth |
String |
name |
int |
qualityLevels |
String |
subType |
long |
timescale |
SmoothStreamingManifest.TrackElement[] |
tracks |
int |
type |
static int |
TYPE_AUDIO |
static int |
TYPE_TEXT |
static int |
TYPE_UNKNOWN |
static int |
TYPE_VIDEO |
Constructor and Description |
---|
StreamElement(String baseUri,
String chunkTemplate,
int type,
String subType,
long timescale,
String name,
int qualityLevels,
int maxWidth,
int maxHeight,
int displayWidth,
int displayHeight,
String language,
SmoothStreamingManifest.TrackElement[] tracks,
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)
Gets the duration of the specified chunk.
|
int |
getChunkIndex(long timeUs)
Gets the index of the chunk that contains the specified time.
|
long |
getStartTimeUs(int chunkIndex)
Gets the start time of the specified chunk.
|
public static final int TYPE_UNKNOWN
public static final int TYPE_AUDIO
public static final int TYPE_VIDEO
public static final int TYPE_TEXT
public final int type
public final String subType
public final long timescale
public final String name
public final int qualityLevels
public final int maxWidth
public final int maxHeight
public final int displayWidth
public final int displayHeight
public final String language
public final SmoothStreamingManifest.TrackElement[] tracks
public final int chunkCount
public StreamElement(String baseUri, String chunkTemplate, int type, String subType, long timescale, String name, int qualityLevels, int maxWidth, int maxHeight, int displayWidth, int displayHeight, String language, SmoothStreamingManifest.TrackElement[] tracks, List<Long> chunkStartTimes, long lastChunkDuration)
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.