SimpleBasePlayer.PeriodData
public final class SimpleBasePlayer.PeriodData
Data describing the properties of a period inside a MediaItemData.
Summary
Nested types |
|---|
public final class SimpleBasePlayer.PeriodData.BuilderA builder for |
Public fields |
|
|---|---|
final AdPlaybackState |
The |
final long |
The total duration of the period, in microseconds, or |
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 |
boolean |
|
int |
hashCode() |
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.
Public methods
buildUpon
public SimpleBasePlayer.PeriodData.Builder buildUpon()
Returns a Builder pre-populated with the current values.