ScrubbingModeParameters
@UnstableApi
public final class ScrubbingModeParameters
Parameters to control the behavior of scrubbing mode.
Summary
Nested types |
|---|
public final class ScrubbingModeParameters.BuilderBuilder for |
Constants |
|
|---|---|
static final ScrubbingModeParameters |
An instance which defines sensible default values for many scrubbing use-cases. |
Public fields |
|
|---|---|
final boolean |
Whether to avoid resetting to a keyframe during a forward seek within the same GoP. |
final boolean |
Whether flushing the decoder is avoided where possible in scrubbing mode. |
final ImmutableSet<@C.TrackType Integer> |
Which track types will be disabled in scrubbing mode. |
final @Nullable @FloatRange(from = 0, to = 1) Double |
The fraction of the media duration to use for |
final @Nullable @FloatRange(from = 0, to = 1) Double |
The fraction of the media duration to use for |
final boolean |
This field is deprecated. Use |
final boolean |
Whether to enable ExoPlayer's |
final boolean |
Whether the codec operating rate should be increased in scrubbing mode. |
final boolean |
Whether to use |
Public methods |
|
|---|---|
ScrubbingModeParameters.Builder |
Returns a |
boolean |
|
int |
hashCode() |
Constants
DEFAULT
public static final ScrubbingModeParameters DEFAULT
An instance which defines sensible default values for many scrubbing use-cases.
Public fields
allowSkippingKeyFrameReset
public final boolean allowSkippingKeyFrameReset
Whether to avoid resetting to a keyframe during a forward seek within the same GoP.
Defaults to true.
allowSkippingMediaCodecFlush
public final boolean allowSkippingMediaCodecFlush
Whether flushing the decoder is avoided where possible in scrubbing mode.
Defaults to true.
disabledTrackTypes
public final ImmutableSet<@C.TrackType Integer> disabledTrackTypes
Which track types will be disabled in scrubbing mode.
fractionalSeekToleranceAfter
public final @Nullable @FloatRange(from = 0, to = 1) Double fractionalSeekToleranceAfter
The fraction of the media duration to use for toleranceAfterUs when scrubbing.
If this is null or the media duration is not known then the getSeekParameters non-scrubbing seek parameters} are used.
fractionalSeekToleranceBefore
public final @Nullable @FloatRange(from = 0, to = 1) Double fractionalSeekToleranceBefore
The fraction of the media duration to use for toleranceBeforeUs when scrubbing.
If this is null or the media duration is not known then the getSeekParameters non-scrubbing seek parameters} are used.
shouldEnableDynamicScheduling
public final boolean shouldEnableDynamicScheduling
Whether to enable ExoPlayer's dynamic scheduling in scrubbing mode.
shouldIncreaseCodecOperatingRate
public final boolean shouldIncreaseCodecOperatingRate
Whether the codec operating rate should be increased in scrubbing mode.
If using MediaCodec for video decoding, KEY_OPERATING_RATE will be set to an increased value in scrubbing mode.
useDecodeOnlyFlag
public final boolean useDecodeOnlyFlag
Whether to use BUFFER_FLAG_DECODE_ONLY in scrubbing mode.
This only has an effect on API 34+ when playback is using MediaCodec for decoding.
Public methods
buildUpon
public ScrubbingModeParameters.Builder buildUpon()
Returns a Builder initialized with the values from this instance.