public class Period
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<AdaptationSet> |
adaptationSets
The adaptation sets belonging to the period.
|
java.lang.String |
id
The period identifier, if one exists.
|
long |
startMs
The start time of the period in milliseconds.
|
Constructor and Description |
---|
Period(java.lang.String id,
long start,
java.util.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 -1 if no adaptation set of
the specified type exists.
|
public final java.lang.String id
public final long startMs
public final java.util.List<AdaptationSet> adaptationSets
public Period(java.lang.String id, long start, java.util.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)
type
- An adaptation set type.