Package com.google.android.exoplayer2
Class SimpleBasePlayer.MediaItemData
- java.lang.Object
-
- com.google.android.exoplayer2.SimpleBasePlayer.MediaItemData
-
- Enclosing class:
- SimpleBasePlayer
protected static final class SimpleBasePlayer.MediaItemData extends Object
An immutable description of an item in the playlist, containing both static setup information likeMediaItemand dynamic data that is generally read from the media like the duration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleBasePlayer.MediaItemData.BuilderA builder forSimpleBasePlayer.MediaItemDataobjects.
-
Field Summary
Fields Modifier and Type Field Description longdefaultPositionUsThe default position relative to the start of the media item at which to begin playback, in microseconds.longdurationUsThe duration of the media item, in microseconds, orC.TIME_UNSETif unknown.longelapsedRealtimeEpochOffsetMsThe offset betweenSystemClock.elapsedRealtime()and the time since the Unix epoch according to the clock of the media origin server, orC.TIME_UNSETif unknown or not applicable.booleanisDynamicWhether this media item may change over time, for example a moving live window.booleanisPlaceholderWhether this media item contains placeholder information because the real information has yet to be loaded.booleanisSeekableWhether it's possible to seek within this media item.MediaItem.LiveConfigurationliveConfigurationThe activeMediaItem.LiveConfiguration, or null if the media item is not live.ObjectmanifestThe manifest of the media item, or null if not applicable.MediaItemmediaItemTheMediaItem.MediaMetadatamediaMetadataTheMediaMetadata, including static data from theMediaItemand the media'sFormat, as well any dynamic metadata that has been parsed from the media.ImmutableList<SimpleBasePlayer.PeriodData>periodsThe 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.longpositionInFirstPeriodUsThe position of the start of this media item relative to the start of the first period belonging to it, in microseconds.longpresentationStartTimeMsThe start time of the live presentation, in milliseconds since the Unix epoch, orC.TIME_UNSETif unknown or not applicable.TrackstracksTheTracksof this media item.ObjectuidThe unique identifier of this media item.longwindowStartTimeMsThe start time of the live window, in milliseconds since the Unix epoch, orC.TIME_UNSETif unknown or not applicable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBasePlayer.MediaItemData.BuilderbuildUpon()Returns aSimpleBasePlayer.MediaItemData.Builderpre-populated with the current values.booleanequals(Object o)inthashCode()
-
-
-
Field Detail
-
uid
public final Object uid
The unique identifier of this media item.
-
mediaMetadata
@Nullable public final MediaMetadata mediaMetadata
TheMediaMetadata, including static data from theMediaItemand the media'sFormat, as well any dynamic metadata that has been parsed from the media. If null, the metadata is assumed to be the simple combination of theMediaItemmetadata and the metadata of the selectedFormats.
-
manifest
@Nullable public final Object manifest
The manifest of the media item, or null if not applicable.
-
liveConfiguration
@Nullable public final MediaItem.LiveConfiguration liveConfiguration
The activeMediaItem.LiveConfiguration, or null if the media item is not live.
-
presentationStartTimeMs
public final long presentationStartTimeMs
The start time of the live presentation, in milliseconds since the Unix epoch, orC.TIME_UNSETif unknown or not applicable.
-
windowStartTimeMs
public final long windowStartTimeMs
The start time of the live window, in milliseconds since the Unix epoch, orC.TIME_UNSETif unknown or not applicable.
-
elapsedRealtimeEpochOffsetMs
public final long elapsedRealtimeEpochOffsetMs
The offset betweenSystemClock.elapsedRealtime()and the time since the Unix epoch according to the clock of the media origin server, orC.TIME_UNSETif unknown or not applicable.
-
isSeekable
public final boolean isSeekable
Whether it's possible to seek within this media item.
-
isDynamic
public final boolean isDynamic
Whether this media item may change over time, for example a moving live window.
-
defaultPositionUs
public final long defaultPositionUs
The default position relative to the start of the media item at which to begin playback, in microseconds.
-
durationUs
public final long durationUs
The duration of the media item, in microseconds, orC.TIME_UNSETif unknown.
-
positionInFirstPeriodUs
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.
-
isPlaceholder
public final boolean isPlaceholder
Whether this media item contains placeholder information because the real information has yet to be loaded.
-
periods
public final 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.
-
-
Method Detail
-
buildUpon
public SimpleBasePlayer.MediaItemData.Builder buildUpon()
Returns aSimpleBasePlayer.MediaItemData.Builderpre-populated with the current values.
-
-