public final class

MediaItem.LiveConfiguration

extends java.lang.Object

implements Bundleable

 java.lang.Object

↳androidx.media3.common.MediaItem.LiveConfiguration

Overview

Live playback configuration.

Summary

Fields
public static final Bundleable.Creator<MediaItem.LiveConfiguration>CREATOR

Object that can restore MediaItem.LiveConfiguration from a .

public final longmaxOffsetMs

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

public final floatmaxPlaybackSpeed

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

public final longminOffsetMs

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

public final floatminPlaybackSpeed

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

public final longtargetOffsetMs

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

public static final MediaItem.LiveConfigurationUNSET

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

Constructors
publicLiveConfiguration(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed)

Methods
public MediaItem.LiveConfiguration.BuilderbuildUpon()

Returns a MediaItem.LiveConfiguration.Builder initialized with the values of this instance.

public booleanequals(java.lang.Object obj)

public inthashCode()

public BundletoBundle()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public static final MediaItem.LiveConfiguration UNSET

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

public final long targetOffsetMs

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

public final long minOffsetMs

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

public final long maxOffsetMs

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

public final float minPlaybackSpeed

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

public final float maxPlaybackSpeed

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

public static final Bundleable.Creator<MediaItem.LiveConfiguration> CREATOR

Object that can restore MediaItem.LiveConfiguration from a .

Constructors

public LiveConfiguration(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed)

Deprecated: Use MediaItem.LiveConfiguration.Builder instead.

Methods

Returns a MediaItem.LiveConfiguration.Builder initialized with the values of this instance.

public boolean equals(java.lang.Object obj)

public int hashCode()

public Bundle toBundle()