# SimpleBasePlayer.PeriodData

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/SimpleBasePlayer.java+class:androidx.media3.common.SimpleBasePlayer.PeriodData)

*** ** * ** ***


```
public final class SimpleBasePlayer.PeriodData
```

<br />

*** ** * ** ***

Data describing the properties of a period inside a `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.MediaItemData`.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder` A builder for `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData` objects. |

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/androidx/media3/common/AdPlaybackState` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#adPlaybackState()` The `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState` of the period, or `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState#NONE()` if there are no ads. |
| `final long` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#durationUs()` The total duration of the period, in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if unknown. |
| `final boolean` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#isPlaceholder()` Whether this period contains placeholder information because the real information has yet to be loaded. |
| `final long` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#originalDurationUs()` The original duration of the period before any modification of its end, in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if unknown. |
| `final https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#uid()` The unique identifier of the period within its media item. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#buildUpon()()` Returns a `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder` pre-populated with the current values. |
| `boolean` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` |
| `int` | `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData#hashCode()()` |

## Public fields

### adPlaybackState

```
public final AdPlaybackState adPlaybackState
```

The `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState` of the period, or `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState#NONE()` if there are no ads.

### durationUs

```
public final long durationUs
```

The total duration of the period, in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#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.

### originalDurationUs

```
public final long originalDurationUs
```

The original duration of the period before any modification of its end, in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if unknown.

### 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 `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder` pre-populated with the current values.

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```