SimpleBasePlayer.PeriodData


protected final class SimpleBasePlayer.PeriodData


Data describing the properties of a period inside a MediaItemData.

Summary

Nested types

A builder for PeriodData objects.

Public fields

final AdPlaybackState

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

final long

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

final boolean

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

final Object

The unique identifier of the period within its media item.

Public methods

SimpleBasePlayer.PeriodData.Builder

Returns a Builder pre-populated with the current values.

boolean
int

Public fields

adPlaybackState

public final AdPlaybackState adPlaybackState

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

durationUs

public final long durationUs

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

public final boolean isPlaceholder

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

uid

public final Object uid

The unique identifier of the period within its media item.

Public methods

buildUpon

public SimpleBasePlayer.PeriodData.Builder buildUpon()

Returns a Builder pre-populated with the current values.

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()