docs/doc/reference/com/google/android/exoplayer2/source/dash/manifest/Period.html
Package com.google.android.exoplayer2.source.dash.manifest
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classPeriodextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Encapsulates media content components over a contiguous period of time.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| List<AdaptationSet> | adaptationSets |
Deprecated.
The adaptation sets belonging to the period.
|
| Descriptor | assetIdentifier |
Deprecated.
The asset identifier for this period, if one exists
|
| List<EventStream> | eventStreams |
Deprecated.
The event stream belonging to the period.
|
| String | id |
Deprecated.
The period identifier, if one exists.
|
| long | startMs |
Deprecated.
The start time of the period in milliseconds, relative to the start of the manifest. |
Constructors | Constructor | Description |
| --- | --- |
| Period(String id, long startMs, List<AdaptationSet> adaptationSets) |
Deprecated.
|
| Period(String id, long startMs, List<AdaptationSet> adaptationSets, List<EventStream> eventStreams) |
Deprecated.
|
| Period(String id, long startMs, List<AdaptationSet> adaptationSets, List<EventStream> eventStreams, Descriptor assetIdentifier) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | getAdaptationSetIndex(int type) |
Deprecated.
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.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")id
Deprecated.
The period identifier, if one exists.
-
public final long startMs
Deprecated.
The start time of the period in milliseconds, relative to the start of the manifest.
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[AdaptationSet](AdaptationSet.html "class in com.google.android.exoplayer2.source.dash.manifest")> adaptationSets
Deprecated.
The adaptation sets belonging to the period.
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[EventStream](EventStream.html "class in com.google.android.exoplayer2.source.dash.manifest")> eventStreams
Deprecated.
The event stream belonging to the period.
-
@Nullable
public final[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")assetIdentifier
Deprecated.
The asset identifier for this period, if one exists
-
public Period(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")id,
long startMs,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[AdaptationSet](AdaptationSet.html "class in com.google.android.exoplayer2.source.dash.manifest")> adaptationSets)
Deprecated.
Parameters: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[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")id,
long startMs,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[AdaptationSet](AdaptationSet.html "class in com.google.android.exoplayer2.source.dash.manifest")> adaptationSets,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[EventStream](EventStream.html "class in com.google.android.exoplayer2.source.dash.manifest")> eventStreams)
Deprecated.
Parameters: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 Period(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")id,
long startMs,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[AdaptationSet](AdaptationSet.html "class in com.google.android.exoplayer2.source.dash.manifest")> adaptationSets,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[EventStream](EventStream.html "class in com.google.android.exoplayer2.source.dash.manifest")> eventStreams,
@Nullable[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")assetIdentifier)
Deprecated.
Parameters: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.assetIdentifier - The asset identifier for this period
-
public int getAdaptationSetIndex(int type)
Deprecated.
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.
Parameters:type - An adaptation set type.Returns:The index of the first adaptation set of the specified type, or C.INDEX_UNSET.