protected final class

SimpleBasePlayer.PeriodData

extends java.lang.Object

 java.lang.Object

↳androidx.media3.common.SimpleBasePlayer.PeriodData

Overview

Data describing the properties of a period inside a SimpleBasePlayer.MediaItemData.

Summary

Fields
public final AdPlaybackStateadPlaybackState

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

public final longdurationUs

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

public final booleanisPlaceholder

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

public final java.lang.Objectuid

The unique identifier of the period within its media item.

Methods
public SimpleBasePlayer.PeriodData.BuilderbuildUpon()

Returns a SimpleBasePlayer.PeriodData.Builder pre-populated with the current values.

public booleanequals(java.lang.Object o)

public inthashCode()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public final java.lang.Object uid

The unique identifier of the period within its media item.

public final long durationUs

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

public final AdPlaybackState adPlaybackState

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

public final boolean isPlaceholder

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

Methods

Returns a SimpleBasePlayer.PeriodData.Builder pre-populated with the current values.

public boolean equals(java.lang.Object o)

public int hashCode()