public class Period extends Object
Modifier and Type | Field and Description |
---|---|
List<AdaptationSet> |
adaptationSets
The adaptation sets belonging to the period.
|
String |
id
The period identifier, if one exists.
|
long |
startMs
The start time of the period in milliseconds.
|
Constructor and Description |
---|
Period(String id,
long start,
List<AdaptationSet> adaptationSets) |
Modifier and Type | Method and Description |
---|---|
int |
getAdaptationSetIndex(int type)
Returns the index of the first adaptation set of a given type, or
C.INDEX_UNSET if no
adaptation set of the specified type exists. |
public final String id
public final long startMs
public final List<AdaptationSet> adaptationSets
public Period(String id, long start, List<AdaptationSet> adaptationSets)
id
- The period identifier. May be null.start
- The start time of the period in milliseconds.adaptationSets
- The adaptation sets belonging to the period.public int getAdaptationSetIndex(int type)
C.INDEX_UNSET
if no
adaptation set of the specified type exists.type
- An adaptation set type.C.INDEX_UNSET
.