MediaItem.LiveConfiguration
public final class MediaItem.LiveConfiguration
Live playback configuration.
Summary
Nested types |
|---|
public final class MediaItem.LiveConfiguration.BuilderBuilder for |
Constants |
|
|---|---|
static final MediaItem.LiveConfiguration |
A live playback configuration with unset values, meaning media-defined default values will be used. |
Public fields |
|
|---|---|
final long |
The maximum allowed offset from the live edge, in milliseconds, or |
final float |
Maximum factor by which playback can be sped up, or |
final long |
The minimum allowed offset from the live edge, in milliseconds, or |
final float |
Minimum factor by which playback can be sped up, or |
final long |
Target offset from the live edge, in milliseconds, or |
Public constructors |
|---|
@UnstableApiThis method is deprecated. Use |
Public methods |
|
|---|---|
MediaItem.LiveConfiguration.Builder |
Returns a |
boolean |
|
static MediaItem.LiveConfiguration |
@UnstableApiRestores a |
int |
hashCode() |
Bundle |
Constants
UNSET
public static final MediaItem.LiveConfiguration UNSET
A live playback configuration with unset values, meaning media-defined default values will be used.
Public fields
maxOffsetMs
public final long maxOffsetMs
The maximum allowed offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.
maxPlaybackSpeed
public final float maxPlaybackSpeed
Maximum factor by which playback can be sped up, or RATE_UNSET to use the media-defined default.
minOffsetMs
public final long minOffsetMs
The minimum allowed offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.
minPlaybackSpeed
public final float minPlaybackSpeed
Minimum factor by which playback can be sped up, or RATE_UNSET to use the media-defined default.
targetOffsetMs
public final long targetOffsetMs
Target offset from the live edge, in milliseconds, or TIME_UNSET to use the media-defined default.
Public constructors
LiveConfiguration
@UnstableApi
publicLiveConfiguration(
long targetOffsetMs,
long minOffsetMs,
long maxOffsetMs,
float minPlaybackSpeed,
float maxPlaybackSpeed
)
Public methods
buildUpon
public MediaItem.LiveConfiguration.Builder buildUpon()
Returns a Builder initialized with the values of this instance.
fromBundle
@UnstableApi
public static MediaItem.LiveConfiguration fromBundle(Bundle bundle)
Restores a LiveConfiguration from a Bundle.