docs/doc/reference/com/google/android/exoplayer2/MediaItem.LiveConfiguration.html
Package com.google.android.exoplayer2
All Implemented Interfaces:BundleableEnclosing class:MediaItem
public static final classMediaItem.LiveConfigurationextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Bundleable](Bundleable.html "interface in com.google.android.exoplayer2")
Live playback configuration.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | MediaItem.LiveConfiguration.Builder |
Builder for MediaItem.LiveConfiguration instances.
|
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Bundleable.Creator<MediaItem.LiveConfiguration> | CREATOR |
An object that can restore MediaItem.LiveConfiguration from a Bundle.
|
| long | maxOffsetMs |
The maximum allowed offset from the live edge, in milliseconds, or C.TIME_UNSET to use the media-defined default.
|
| float | maxPlaybackSpeed |
Maximum factor by which playback can be sped up, or C.RATE_UNSET to use the media-defined default.
|
| long | minOffsetMs |
The minimum allowed offset from the live edge, in milliseconds, or C.TIME_UNSET to use the media-defined default.
|
| float | minPlaybackSpeed |
Minimum factor by which playback can be sped up, or C.RATE_UNSET to use the media-defined default.
|
| long | targetOffsetMs |
Target offset from the live edge, in milliseconds, or C.TIME_UNSET to use the media-defined default.
|
| static MediaItem.LiveConfiguration | UNSET |
A live playback configuration with unset values, meaning media-defined default values will be used.
|
Constructors | Constructor | Description |
| --- | --- |
| LiveConfiguration(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed) |
Deprecated.
Use MediaItem.LiveConfiguration.Builder instead.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| MediaItem.LiveConfiguration.Builder | buildUpon() |
Returns a MediaItem.LiveConfiguration.Builder initialized with the values of this instance.
|
| boolean | equals(Object obj) | |
| int | hashCode() | |
| Bundle | toBundle() |
Returns a Bundle representing the information stored in this object.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public static final[MediaItem.LiveConfiguration](MediaItem.LiveConfiguration.html "class in com.google.android.exoplayer2")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](Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[MediaItem.LiveConfiguration](MediaItem.LiveConfiguration.html "class in com.google.android.exoplayer2")> CREATOR
An object that can restore MediaItem.LiveConfiguration from a Bundle.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public LiveConfiguration(long targetOffsetMs,
long minOffsetMs,
long maxOffsetMs,
float minPlaybackSpeed,
float maxPlaybackSpeed)
Deprecated.
Use MediaItem.LiveConfiguration.Builder instead.
-
public[MediaItem.LiveConfiguration.Builder](MediaItem.LiveConfiguration.Builder.html "class in com.google.android.exoplayer2")buildUpon()
Returns a MediaItem.LiveConfiguration.Builder initialized with the values of this instance.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object
-
public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()
Description copied from interface: Bundleable
Returns a Bundle representing the information stored in this object.
Specified by:toBundle in interface Bundleable