# SimpleBasePlayer.MediaItemData

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.MediaItemData)

*** ** * ** ***


```
class SimpleBasePlayer.MediaItemData
```

<br />

*** ** * ** ***

An immutable description of an item in the playlist, containing both static setup information like `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` and dynamic data that is generally read from the media like the duration.

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData.Builder!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#buildUpon()()` Returns a `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData.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.MediaItemData#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.MediaItemData#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#defaultPositionUs()` The default position relative to the start of the media item at which to begin playback, in microseconds. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#durationUs()` The duration of the media item, 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/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#elapsedRealtimeEpochOffsetMs()` The offset between `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()` and the time since the Unix epoch according to the clock of the media origin server, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown or not applicable. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#isDynamic()` Whether this media item may change over time, for example a moving live window. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#isPlaceholder()` Whether this media item contains placeholder information because the real information has yet to be loaded. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#isSeekable()` Whether it's possible to seek within this media item. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem.LiveConfiguration?` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#liveConfiguration()` The active `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem.LiveConfiguration`, or null if the media item is not live. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#manifest()` The manifest of the media item, or null if not applicable. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#mediaItem()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata?` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#mediaMetadata()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata`, including static data from the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#mediaMetadata()` and the media's `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#metadata()`, as well any dynamic metadata that has been parsed from the media. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#periods()` The list of `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData` in this media item, or an empty list to assume a single period without ads and the same duration as the media item. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#positionInFirstPeriodUs()` The position of the start of this media item relative to the start of the first period belonging to it, in microseconds. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#presentationStartTimeMs()` The start time of the presentation, in milliseconds since the Unix epoch, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown or not applicable. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Tracks!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#tracks()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/Tracks` of this media item. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#uid()` The unique identifier of this media item. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.MediaItemData#windowStartTimeMs()` The start time of the window, in milliseconds since the Unix epoch, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown or not applicable. |

## Public functions

### buildUpon

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

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

### equals

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

### hashCode

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

## Public properties

### defaultPositionUs

```
val defaultPositionUs: Long
```

The default position relative to the start of the media item at which to begin playback, in microseconds.

### durationUs

```
val durationUs: Long
```

The duration of the media item, in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown.

### elapsedRealtimeEpochOffsetMs

```
val elapsedRealtimeEpochOffsetMs: Long
```

The offset between `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()` and the time since the Unix epoch according to the clock of the media origin server, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown or not applicable.

### isDynamic

```
val isDynamic: Boolean
```

Whether this media item may change over time, for example a moving live window.

### isPlaceholder

```
val isPlaceholder: Boolean
```

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

### isSeekable

```
val isSeekable: Boolean
```

Whether it's possible to seek within this media item.

### liveConfiguration

```
val liveConfiguration: MediaItem.LiveConfiguration?
```

The active `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem.LiveConfiguration`, or null if the media item is not live.

### manifest

```
val manifest: Any?
```

The manifest of the media item, or null if not applicable.

### mediaItem

```
val mediaItem: MediaItem!
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

### mediaMetadata

```
val mediaMetadata: MediaMetadata?
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata`, including static data from the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#mediaMetadata()` and the media's `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#metadata()`, as well any dynamic metadata that has been parsed from the media. If null, the metadata is assumed to be the simple combination of the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#mediaMetadata()` metadata and the metadata of the selected `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#metadata()`.

### periods

```
val periods: ImmutableList<SimpleBasePlayer.PeriodData!>!
```

The list of `https://developer.android.com/reference/kotlin/androidx/media3/common/SimpleBasePlayer.PeriodData` in this media item, or an empty list to assume a single period without ads and the same duration as the media item.

### positionInFirstPeriodUs

```
val positionInFirstPeriodUs: Long
```

The position of the start of this media item relative to the start of the first period belonging to it, in microseconds.

### presentationStartTimeMs

```
val presentationStartTimeMs: Long
```

The start time of the presentation, in milliseconds since the Unix epoch, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown or not applicable.

### tracks

```
val tracks: Tracks!
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/Tracks` of this media item.

### uid

```
val uid: Any!
```

The unique identifier of this media item.

### windowStartTimeMs

```
val windowStartTimeMs: Long
```

The start time of the window, in milliseconds since the Unix epoch, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if unknown or not applicable.