Period
@UnstableApi
class Period
Encapsulates media content components over a contiguous period of time.
Summary
Public constructors |
|---|
Period( |
Period( |
Public functions |
|
|---|---|
Int |
getAdaptationSetIndex(type: Int)Returns the index of the first adaptation set of a given type, or |
Public properties |
|
|---|---|
(Mutable)List<AdaptationSet!>! |
The adaptation sets belonging to the period. |
Descriptor? |
The asset identifier for this period, if one exists |
(Mutable)List<EventStream!>! |
The event stream belonging to the period. |
String? |
The period identifier, if one exists. |
Long |
The start time of the period in milliseconds, relative to the start of the manifest. |
Public constructors
Period
Period(
id: String?,
startMs: Long,
adaptationSets: (Mutable)List<AdaptationSet!>!
)
| Parameters | |
|---|---|
id: String? |
The period identifier. May be null. |
startMs: Long |
The start time of the period in milliseconds. |
adaptationSets: (Mutable)List<AdaptationSet!>! |
The adaptation sets belonging to the period. |
Period
Period(
id: String?,
startMs: Long,
adaptationSets: (Mutable)List<AdaptationSet!>!,
eventStreams: (Mutable)List<EventStream!>!
)
| Parameters | |
|---|---|
id: String? |
The period identifier. May be null. |
startMs: Long |
The start time of the period in milliseconds. |
adaptationSets: (Mutable)List<AdaptationSet!>! |
The adaptation sets belonging to the period. |
eventStreams: (Mutable)List<EventStream!>! |
The |
Period
Period(
id: String?,
startMs: Long,
adaptationSets: (Mutable)List<AdaptationSet!>!,
eventStreams: (Mutable)List<EventStream!>!,
assetIdentifier: Descriptor?
)
| Parameters | |
|---|---|
id: String? |
The period identifier. May be null. |
startMs: Long |
The start time of the period in milliseconds. |
adaptationSets: (Mutable)List<AdaptationSet!>! |
The adaptation sets belonging to the period. |
eventStreams: (Mutable)List<EventStream!>! |
The |
assetIdentifier: Descriptor? |
The asset identifier for this period |
Public functions
getAdaptationSetIndex
fun getAdaptationSetIndex(type: Int): Int
Returns the index of the first adaptation set of a given type, or INDEX_UNSET if no adaptation set of the specified type exists.
| Parameters | |
|---|---|
type: Int |
An adaptation set type. |
| Returns | |
|---|---|
Int |
The index of the first adaptation set of the specified type, or |
Public properties
adaptationSets
val adaptationSets: (Mutable)List<AdaptationSet!>!
The adaptation sets belonging to the period.
assetIdentifier
val assetIdentifier: Descriptor?
The asset identifier for this period, if one exists
eventStreams
val eventStreams: (Mutable)List<EventStream!>!
The event stream belonging to the period.