SimpleBasePlayer.PeriodData


class SimpleBasePlayer.PeriodData


Data describing the properties of a period inside a MediaItemData.

Summary

Nested types

A builder for PeriodData objects.

Public functions

SimpleBasePlayer.PeriodData.Builder!

Returns a Builder pre-populated with the current values.

Boolean
equals(o: Any?)
Int

Public properties

AdPlaybackState!

The AdPlaybackState of the period, or NONE if there are no ads.

Long

The total duration of the period, in microseconds, or TIME_UNSET if unknown.

Boolean

Whether this period contains placeholder information because the real information has yet to be loaded.

Long

The original duration of the period before any modification of its end, in microseconds, or TIME_UNSET if unknown.

Any!

The unique identifier of the period within its media item.

Public functions

buildUpon

fun buildUpon(): SimpleBasePlayer.PeriodData.Builder!

Returns a Builder pre-populated with the current values.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

adPlaybackState

val adPlaybackState: AdPlaybackState!

The AdPlaybackState of the period, or NONE if there are no ads.

durationUs

val durationUs: Long

The total duration of the period, in microseconds, or TIME_UNSET if unknown. Only the last period in a media item can have an unknown duration.

isPlaceholder

val isPlaceholder: Boolean

Whether this period contains placeholder information because the real information has yet to be loaded.

originalDurationUs

val originalDurationUs: Long

The original duration of the period before any modification of its end, in microseconds, or TIME_UNSET if unknown.

uid

val uid: Any!

The unique identifier of the period within its media item.