Class Period
- java.lang.Object
-
- com.google.android.exoplayer2.source.dash.manifest.Period
-
@Deprecated public class Period extends Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description List<AdaptationSet>adaptationSetsDeprecated.The adaptation sets belonging to the period.DescriptorassetIdentifierDeprecated.The asset identifier for this period, if one existsList<EventStream>eventStreamsDeprecated.The event stream belonging to the period.StringidDeprecated.The period identifier, if one exists.longstartMsDeprecated.The start time of the period in milliseconds, relative to the start of the manifest.
-
Constructor Summary
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetAdaptationSetIndex(int type)Deprecated.Returns the index of the first adaptation set of a given type, orC.INDEX_UNSETif no adaptation set of the specified type exists.
-
-
-
Field Detail
-
id
@Nullable public final String id
Deprecated.The period identifier, if one exists.
-
startMs
public final long startMs
Deprecated.The start time of the period in milliseconds, relative to the start of the manifest.
-
adaptationSets
public final List<AdaptationSet> adaptationSets
Deprecated.The adaptation sets belonging to the period.
-
eventStreams
public final List<EventStream> eventStreams
Deprecated.The event stream belonging to the period.
-
assetIdentifier
@Nullable public final Descriptor assetIdentifier
Deprecated.The asset identifier for this period, if one exists
-
-
Constructor Detail
-
Period
public Period(@Nullable String id, long startMs, List<AdaptationSet> 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.
-
Period
public Period(@Nullable String id, long startMs, List<AdaptationSet> adaptationSets, List<EventStream> 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- TheEventStreams belonging to the period.
-
Period
public Period(@Nullable String id, long startMs, List<AdaptationSet> adaptationSets, List<EventStream> eventStreams, @Nullable Descriptor 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- TheEventStreams belonging to the period.assetIdentifier- The asset identifier for this period
-
-
Method Detail
-
getAdaptationSetIndex
public int getAdaptationSetIndex(int type)
Deprecated.Returns the index of the first adaptation set of a given type, orC.INDEX_UNSETif 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.
-
-