docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PeriodData.html
Package com.google.android.exoplayer2
Enclosing class:SimpleBasePlayer
protected static final classSimpleBasePlayer.PeriodDataextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Data describing the properties of a period inside a SimpleBasePlayer.MediaItemData.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | SimpleBasePlayer.PeriodData.Builder |
A builder for SimpleBasePlayer.PeriodData objects.
|
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| AdPlaybackState | adPlaybackState |
The AdPlaybackState of the period, or AdPlaybackState.NONE if there are no ads.
|
| long | durationUs |
The total duration of the period, in microseconds, or C.TIME_UNSET if unknown.
|
| boolean | isPlaceholder |
Whether this period contains placeholder information because the real information has yet to be loaded.
|
| Object | uid |
The unique identifier of the period within its media item.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| SimpleBasePlayer.PeriodData.Builder | buildUpon() |
Returns a SimpleBasePlayer.PeriodData.Builder pre-populated with the current values.
|
| boolean | equals(Object o) | |
| int | hashCode() | |
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public final[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")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](source/ads/AdPlaybackState.html "class in com.google.android.exoplayer2.source.ads")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.
-
public[SimpleBasePlayer.PeriodData.Builder](SimpleBasePlayer.PeriodData.Builder.html "class in com.google.android.exoplayer2")buildUpon()
Returns a SimpleBasePlayer.PeriodData.Builder pre-populated with the current values.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")o)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object