docs/doc/reference/com/google/android/exoplayer2/MediaItem.LiveConfiguration.Builder.html
Package com.google.android.exoplayer2
Enclosing class:MediaItem.LiveConfiguration
public static final classMediaItem.LiveConfiguration.Builderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Builder for MediaItem.LiveConfiguration instances.
Constructors | Constructor | Description |
| --- | --- |
| Builder() |
Creates a new instance with default values.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| MediaItem.LiveConfiguration | build() |
Creates a MediaItem.LiveConfiguration with the values from this builder.
|
| MediaItem.LiveConfiguration.Builder | setMaxOffsetMs(long maxOffsetMs) |
Sets the maximum allowed live offset, in milliseconds.
|
| MediaItem.LiveConfiguration.Builder | setMaxPlaybackSpeed(float maxPlaybackSpeed) |
Sets the maximum playback speed.
|
| MediaItem.LiveConfiguration.Builder | setMinOffsetMs(long minOffsetMs) |
Sets the minimum allowed live offset, in milliseconds.
|
| MediaItem.LiveConfiguration.Builder | setMinPlaybackSpeed(float minPlaybackSpeed) |
Sets the minimum playback speed.
|
| MediaItem.LiveConfiguration.Builder | setTargetOffsetMs(long targetOffsetMs) |
Sets the target live offset, in milliseconds.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Builder()
Creates a new instance with default values.
-
@CanIgnoreReturnValue
public[MediaItem.LiveConfiguration.Builder](MediaItem.LiveConfiguration.Builder.html "class in com.google.android.exoplayer2")setTargetOffsetMs(long targetOffsetMs)
Sets the target live offset, in milliseconds.
See Player#getCurrentLiveOffset().
Defaults to C.TIME_UNSET, indicating the media-defined default will be used.
-
@CanIgnoreReturnValue
public[MediaItem.LiveConfiguration.Builder](MediaItem.LiveConfiguration.Builder.html "class in com.google.android.exoplayer2")setMinOffsetMs(long minOffsetMs)
Sets the minimum allowed live offset, in milliseconds.
See Player#getCurrentLiveOffset().
Defaults to C.TIME_UNSET, indicating the media-defined default will be used.
-
@CanIgnoreReturnValue
public[MediaItem.LiveConfiguration.Builder](MediaItem.LiveConfiguration.Builder.html "class in com.google.android.exoplayer2")setMaxOffsetMs(long maxOffsetMs)
Sets the maximum allowed live offset, in milliseconds.
See Player#getCurrentLiveOffset().
Defaults to C.TIME_UNSET, indicating the media-defined default will be used.
-
@CanIgnoreReturnValue
public[MediaItem.LiveConfiguration.Builder](MediaItem.LiveConfiguration.Builder.html "class in com.google.android.exoplayer2")setMinPlaybackSpeed(float minPlaybackSpeed)
Sets the minimum playback speed.
Defaults to C.RATE_UNSET, indicating the media-defined default will be used.
-
@CanIgnoreReturnValue
public[MediaItem.LiveConfiguration.Builder](MediaItem.LiveConfiguration.Builder.html "class in com.google.android.exoplayer2")setMaxPlaybackSpeed(float maxPlaybackSpeed)
Sets the maximum playback speed.
Defaults to C.RATE_UNSET, indicating the media-defined default will be used.
-
public[MediaItem.LiveConfiguration](MediaItem.LiveConfiguration.html "class in com.google.android.exoplayer2")build()
Creates a MediaItem.LiveConfiguration with the values from this builder.