Modifier and Type | Field | Description |
---|---|---|
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.
|
Constructor | Description |
---|---|
LiveConfiguration(long targetOffsetMs,
long minOffsetMs,
long maxOffsetMs,
float minPlaybackSpeed,
float maxPlaybackSpeed) |
Creates a live playback configuration.
|
public static final MediaItem.LiveConfiguration UNSET
public final long targetOffsetMs
C.TIME_UNSET
to use the
media-defined default.public final long minOffsetMs
C.TIME_UNSET
to
use the media-defined default.public final long maxOffsetMs
C.TIME_UNSET
to
use the media-defined default.public final float minPlaybackSpeed
C.RATE_UNSET
to use the
media-defined default.public final float maxPlaybackSpeed
C.RATE_UNSET
to use the
media-defined default.public LiveConfiguration(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed)
targetOffsetMs
- Target live offset, in milliseconds, or C.TIME_UNSET
to use the
media-defined default.minOffsetMs
- The minimum allowed live offset, in milliseconds, or C.TIME_UNSET
to use the media-defined default.maxOffsetMs
- The maximum allowed live offset, in milliseconds, or C.TIME_UNSET
to use the media-defined default.minPlaybackSpeed
- Minimum playback speed, or C.RATE_UNSET
to use the
media-defined default.maxPlaybackSpeed
- Maximum playback speed, or C.RATE_UNSET
to use the
media-defined default.