docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.MediaItemData.html
Package com.google.android.exoplayer2
Enclosing class:SimpleBasePlayer
protected static final classSimpleBasePlayer.MediaItemDataextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
An immutable description of an item in the playlist, containing both static setup information like MediaItem and dynamic data that is generally read from the media like the duration.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | SimpleBasePlayer.MediaItemData.Builder |
A builder for SimpleBasePlayer.MediaItemData objects.
|
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | defaultPositionUs |
The default position relative to the start of the media item at which to begin playback, in microseconds.
|
| long | durationUs |
The duration of the media item, in microseconds, or C.TIME_UNSET if unknown.
|
| long | elapsedRealtimeEpochOffsetMs |
The offset between SystemClock.elapsedRealtime() and the time since the Unix epoch according to the clock of the media origin server, or C.TIME_UNSET if unknown or not applicable.
|
| boolean | isDynamic |
Whether this media item may change over time, for example a moving live window.
|
| boolean | isPlaceholder |
Whether this media item contains placeholder information because the real information has yet to be loaded.
|
| boolean | isSeekable |
Whether it's possible to seek within this media item.
|
| MediaItem.LiveConfiguration | liveConfiguration |
The active MediaItem.LiveConfiguration, or null if the media item is not live.
|
| Object | manifest |
The manifest of the media item, or null if not applicable.
|
| MediaItem | mediaItem |
The MediaItem.
|
| MediaMetadata | mediaMetadata |
The MediaMetadata, including static data from the MediaItem and the media's Format, as well any dynamic metadata that has been parsed from the media.
|
| ImmutableList<SimpleBasePlayer.PeriodData> | periods |
The list of periods in this media item, or an empty list to assume a single period without ads and the same duration as the media item.
|
| long | positionInFirstPeriodUs |
The position of the start of this media item relative to the start of the first period belonging to it, in microseconds.
|
| long | presentationStartTimeMs |
The start time of the live presentation, in milliseconds since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
|
| Tracks | tracks |
The Tracks of this media item.
|
| Object | uid |
The unique identifier of this media item.
|
| long | windowStartTimeMs |
The start time of the live window, in milliseconds since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| SimpleBasePlayer.MediaItemData.Builder | buildUpon() |
Returns a SimpleBasePlayer.MediaItemData.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 this media item.
-
public final[Tracks](Tracks.html "class in com.google.android.exoplayer2")tracks
The Tracks of this media item.
-
public final[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem
The MediaItem.
-
@Nullable
public final[MediaMetadata](MediaMetadata.html "class in com.google.android.exoplayer2")mediaMetadata
The MediaMetadata, including static data from the MediaItem and the media's Format, 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 MediaItem metadata and the metadata of the selected Formats.
-
@Nullable
public final[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")manifest
The manifest of the media item, or null if not applicable.
-
@Nullable
public final[MediaItem.LiveConfiguration](MediaItem.LiveConfiguration.html "class in com.google.android.exoplayer2")liveConfiguration
The active MediaItem.LiveConfiguration, or null if the media item is not live.
-
public final long presentationStartTimeMs
The start time of the live presentation, in milliseconds since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
-
public final long windowStartTimeMs
The start time of the live window, in milliseconds since the Unix epoch, or C.TIME_UNSET if unknown or not applicable.
-
public final long elapsedRealtimeEpochOffsetMs
The offset between SystemClock.elapsedRealtime() and the time since the Unix epoch according to the clock of the media origin server, or C.TIME_UNSET if unknown or not applicable.
-
public final boolean isSeekable
Whether it's possible to seek within this media item.
-
public final boolean isDynamic
Whether this media item may change over time, for example a moving live window.
-
public final long defaultPositionUs
The default position relative to the start of the media item at which to begin playback, in microseconds.
-
public final long durationUs
The duration of the media item, in microseconds, or C.TIME_UNSET if unknown.
-
public final long positionInFirstPeriodUs
The position of the start of this media item relative to the start of the first period belonging to it, in microseconds.
-
public final boolean isPlaceholder
Whether this media item contains placeholder information because the real information has yet to be loaded.
-
public final[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[SimpleBasePlayer.PeriodData](SimpleBasePlayer.PeriodData.html "class in com.google.android.exoplayer2")> periods
The list of periods in this media item, or an empty list to assume a single period without ads and the same duration as the media item.
-
public[SimpleBasePlayer.MediaItemData.Builder](SimpleBasePlayer.MediaItemData.Builder.html "class in com.google.android.exoplayer2")buildUpon()
Returns a SimpleBasePlayer.MediaItemData.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