SimpleBasePlayer.MediaItemData


protected class SimpleBasePlayer.MediaItemData


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.

Summary

Nested types

A builder for MediaItemData objects.

Public functions

SimpleBasePlayer.MediaItemData.Builder!

Returns a Builder pre-populated with the current values.

Boolean
equals(o: Any?)
Int

Public properties

Long

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

Long

The duration of the media item, in microseconds, or TIME_UNSET if unknown.

Long

The offset between elapsedRealtime and the time since the Unix epoch according to the clock of the media origin server, or TIME_UNSET if unknown or not applicable.

Boolean

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

Boolean

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

Boolean

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

MediaItem.LiveConfiguration?

The active MediaItem.LiveConfiguration, or null if the media item is not live.

Any?

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

MediaItem!

The MediaItem.

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!>!

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

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

Long

The start time of the live presentation, in milliseconds since the Unix epoch, or TIME_UNSET if unknown or not applicable.

Tracks!

The Tracks of this media item.

Any!

The unique identifier of this media item.

Long

The start time of the live window, in milliseconds since the Unix epoch, or TIME_UNSET if unknown or not applicable.

Public functions

buildUpon

fun buildUpon(): SimpleBasePlayer.MediaItemData.Builder!

Returns a Builder pre-populated with the current values.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

defaultPositionUs

val defaultPositionUsLong

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

durationUs

val durationUsLong

The duration of the media item, in microseconds, or TIME_UNSET if unknown.

elapsedRealtimeEpochOffsetMs

val elapsedRealtimeEpochOffsetMsLong

The offset between elapsedRealtime and the time since the Unix epoch according to the clock of the media origin server, or TIME_UNSET if unknown or not applicable.

isDynamic

val isDynamicBoolean

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

isPlaceholder

val isPlaceholderBoolean

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

isSeekable

val isSeekableBoolean

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

liveConfiguration

val liveConfigurationMediaItem.LiveConfiguration?

The active MediaItem.LiveConfiguration, or null if the media item is not live.

manifest

val manifestAny?

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

mediaItem

val mediaItemMediaItem!

The MediaItem.

mediaMetadata

val mediaMetadataMediaMetadata?

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.

periods

val periodsImmutableList<SimpleBasePlayer.PeriodData!>!

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.

positionInFirstPeriodUs

val positionInFirstPeriodUsLong

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

presentationStartTimeMs

val presentationStartTimeMsLong

The start time of the live presentation, in milliseconds since the Unix epoch, or TIME_UNSET if unknown or not applicable.

tracks

val tracksTracks!

The Tracks of this media item.

uid

val uidAny!

The unique identifier of this media item.

windowStartTimeMs

val windowStartTimeMsLong

The start time of the live window, in milliseconds since the Unix epoch, or TIME_UNSET if unknown or not applicable.