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.util.List<EventStream> |
eventStreams
The event stream 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 startMs,
java.util.List<AdaptationSet> adaptationSets) |
Period(java.lang.String id,
long startMs,
java.util.List<AdaptationSet> adaptationSets,
java.util.List<EventStream> eventStreams) |
| 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. |
@Nullable public final java.lang.String id
public final long startMs
public final java.util.List<AdaptationSet> adaptationSets
public final java.util.List<EventStream> eventStreams
public Period(@Nullable
java.lang.String id,
long startMs,
java.util.List<AdaptationSet> adaptationSets)
id - The period identifier. May be null.startMs - The start time of the period in milliseconds.adaptationSets - The adaptation sets belonging to the period.public Period(@Nullable
java.lang.String id,
long startMs,
java.util.List<AdaptationSet> adaptationSets,
java.util.List<EventStream> eventStreams)
id - The period identifier. May be null.startMs - The start time of the period in milliseconds.adaptationSets - The adaptation sets belonging to the period.eventStreams - The EventStreams 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.