@UnstableApi
class Period


Encapsulates media content components over a contiguous period of time.

Summary

Public constructors

Period(
    id: String?,
    startMs: Long,
    adaptationSets: (Mutable)List<AdaptationSet!>!
)
Period(
    id: String?,
    startMs: Long,
    adaptationSets: (Mutable)List<AdaptationSet!>!,
    eventStreams: (Mutable)List<EventStream!>!
)
Period(
    id: String?,
    startMs: Long,
    adaptationSets: (Mutable)List<AdaptationSet!>!,
    eventStreams: (Mutable)List<EventStream!>!,
    assetIdentifier: Descriptor?
)

Public functions

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.

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 EventStreams belonging to the period.

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 EventStreams belonging to the period.

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 INDEX_UNSET.

Public properties

adaptationSets

val adaptationSets: (Mutable)List<AdaptationSet!>!

The adaptation sets belonging to the period.

assetIdentifier

val assetIdentifierDescriptor?

The asset identifier for this period, if one exists

eventStreams

val eventStreams: (Mutable)List<EventStream!>!

The event stream belonging to the period.

id

val idString?

The period identifier, if one exists.

startMs

val startMsLong

The start time of the period in milliseconds, relative to the start of the manifest.