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 codec operating rate should be increased 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.

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.

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()