# 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)

*** ** * ** ***


```
class SimpleBasePlayer.PeriodData
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#buildUpon()()` Returns a `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder` pre-populated with the current values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#adPlaybackState()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` of the period, or `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#NONE()` if there are no ads. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#durationUs()` The total duration of the period, in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#isPlaceholder()` Whether this period contains placeholder information because the real information has yet to be loaded. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/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/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData#uid()` The unique identifier of the period within its media item. |

## Public functions

### buildUpon

```
fun buildUpon(): SimpleBasePlayer.PeriodData.Builder!
```

Returns a `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData.Builder` pre-populated with the current values.

### equals

```
fun equals(o: Any?): Boolean
```

### hashCode

```
fun hashCode(): Int
```

## Public properties

### adPlaybackState

```
val adPlaybackState: AdPlaybackState!
```

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

### durationUs

```
val durationUs: Long
```

The total duration of the period, in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown. Only the last period in a media item can have an unknown duration.

### isPlaceholder

```
val isPlaceholder: Boolean
```

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

### originalDurationUs

```
val originalDurationUs: Long
```

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

### uid

```
val uid: Any!
```

The unique identifier of the period within its media item.