MediaItem.LiveConfiguration


class MediaItem.LiveConfiguration


Live playback configuration.

Summary

Nested types

Builder for LiveConfiguration instances.

Constants

const MediaItem.LiveConfiguration!

A live playback configuration with unset values, meaning media-defined default values will be used.

Public constructors

@UnstableApi
LiveConfiguration(
    targetOffsetMs: Long,
    minOffsetMs: Long,
    maxOffsetMs: Long,
    minPlaybackSpeed: Float,
    maxPlaybackSpeed: Float
)

This function is deprecated.

Use Builder instead.

Public functions

MediaItem.LiveConfiguration.Builder!

Returns a Builder initialized with the values of this instance.

Boolean
equals(obj: Any?)
java-static MediaItem.LiveConfiguration!

Restores a LiveConfiguration from a Bundle.

Int
Bundle!

Public properties

Long

The maximum allowed offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.

Float

Maximum factor by which playback can be sped up, or RATE_UNSET to use the media-defined default.

Long

The minimum allowed offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.

Float

Minimum factor by which playback can be sped up, or RATE_UNSET to use the media-defined default.

Long

Target offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.

Constants

UNSET

const val UNSETMediaItem.LiveConfiguration!

A live playback configuration with unset values, meaning media-defined default values will be used.

Public constructors

LiveConfiguration

@UnstableApi
LiveConfiguration(
    targetOffsetMs: Long,
    minOffsetMs: Long,
    maxOffsetMs: Long,
    minPlaybackSpeed: Float,
    maxPlaybackSpeed: Float
)

Public functions

buildUpon

fun buildUpon(): MediaItem.LiveConfiguration.Builder!

Returns a Builder initialized with the values of this instance.

equals

fun equals(obj: Any?): Boolean

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): MediaItem.LiveConfiguration!

Restores a LiveConfiguration from a Bundle.

hashCode

fun hashCode(): Int

toBundle

@UnstableApi
fun toBundle(): Bundle!

Public properties

maxOffsetMs

val maxOffsetMsLong

The maximum allowed offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.

maxPlaybackSpeed

val maxPlaybackSpeedFloat

Maximum factor by which playback can be sped up, or RATE_UNSET to use the media-defined default.

minOffsetMs

val minOffsetMsLong

The minimum allowed offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.

minPlaybackSpeed

val minPlaybackSpeedFloat

Minimum factor by which playback can be sped up, or RATE_UNSET to use the media-defined default.

targetOffsetMs

val targetOffsetMsLong

Target offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.