Package com.google.android.exoplayer2
Class MediaItem.LiveConfiguration
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.LiveConfiguration
-
- All Implemented Interfaces:
Bundleable
- Enclosing class:
- MediaItem
public static final class MediaItem.LiveConfiguration extends Object implements Bundleable
Live playback configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<MediaItem.LiveConfiguration>
CREATOR
Object that can restoreMediaItem.LiveConfiguration
from aBundle
.long
maxOffsetMs
The maximum allowed offset from the live edge, in milliseconds, orC.TIME_UNSET
to use the media-defined default.float
maxPlaybackSpeed
Maximum factor by which playback can be sped up, orC.RATE_UNSET
to use the media-defined default.long
minOffsetMs
The minimum allowed offset from the live edge, in milliseconds, orC.TIME_UNSET
to use the media-defined default.float
minPlaybackSpeed
Minimum factor by which playback can be sped up, orC.RATE_UNSET
to use the media-defined default.long
targetOffsetMs
Target offset from the live edge, in milliseconds, orC.TIME_UNSET
to use the media-defined default.static MediaItem.LiveConfiguration
UNSET
A live playback configuration with unset values.
-
Constructor Summary
Constructors Constructor Description LiveConfiguration(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed)
Creates a live playback configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
Bundle
toBundle()
Returns aBundle
representing the information stored in this object.
-
-
-
Field Detail
-
UNSET
public static final MediaItem.LiveConfiguration UNSET
A live playback configuration with unset values.
-
targetOffsetMs
public final long targetOffsetMs
Target offset from the live edge, in milliseconds, orC.TIME_UNSET
to use the media-defined default.
-
minOffsetMs
public final long minOffsetMs
The minimum allowed offset from the live edge, in milliseconds, orC.TIME_UNSET
to use the media-defined default.
-
maxOffsetMs
public final long maxOffsetMs
The maximum allowed offset from the live edge, in milliseconds, orC.TIME_UNSET
to use the media-defined default.
-
minPlaybackSpeed
public final float minPlaybackSpeed
Minimum factor by which playback can be sped up, orC.RATE_UNSET
to use the media-defined default.
-
maxPlaybackSpeed
public final float maxPlaybackSpeed
Maximum factor by which playback can be sped up, orC.RATE_UNSET
to use the media-defined default.
-
CREATOR
public static final Bundleable.Creator<MediaItem.LiveConfiguration> CREATOR
Object that can restoreMediaItem.LiveConfiguration
from aBundle
.
-
-
Constructor Detail
-
LiveConfiguration
public LiveConfiguration(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed)
Creates a live playback configuration.- Parameters:
targetOffsetMs
- Target live offset, in milliseconds, orC.TIME_UNSET
to use the media-defined default.minOffsetMs
- The minimum allowed live offset, in milliseconds, orC.TIME_UNSET
to use the media-defined default.maxOffsetMs
- The maximum allowed live offset, in milliseconds, orC.TIME_UNSET
to use the media-defined default.minPlaybackSpeed
- Minimum playback speed, orC.RATE_UNSET
to use the media-defined default.maxPlaybackSpeed
- Maximum playback speed, orC.RATE_UNSET
to use the media-defined default.
-
-
Method Detail
-
toBundle
public Bundle toBundle()
Description copied from interface:Bundleable
Returns aBundle
representing the information stored in this object.- Specified by:
toBundle
in interfaceBundleable
-
-