ScrubbingModeParameters


@UnstableApi
public final class ScrubbingModeParameters


Parameters to control the behavior of scrubbing mode.

Summary

Nested types

Builder for ScrubbingModeParameters instances.

Constants

static final ScrubbingModeParameters

An instance which defines sensible default values for many scrubbing use-cases.

Public fields

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 toleranceAfterUs when scrubbing.

final @Nullable @FloatRange(from = 0, to = 1) Double

The fraction of the media duration to use for toleranceBeforeUs when scrubbing.

final boolean

Whether the decoder is flushed in scrubbing mode.

final boolean

Whether to enable ExoPlayer's dynamic scheduling in scrubbing mode.

final boolean

Whether the codec operating rate should be increased in scrubbing mode.

final boolean

Whether to use BUFFER_FLAG_DECODE_ONLY in scrubbing mode.

Public methods

ScrubbingModeParameters.Builder

Returns a Builder initialized with the values from this instance.

boolean
int

Constants

DEFAULT

public static final ScrubbingModeParameters DEFAULT

An instance which defines sensible default values for many scrubbing use-cases.

Public fields

disabledTrackTypes

public final ImmutableSet<@C.TrackType IntegerdisabledTrackTypes

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.

isMediaCodecFlushEnabled

public final boolean isMediaCodecFlushEnabled

Whether the decoder is flushed in scrubbing mode.

Defaults to false.

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.

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()