ScrubbingModeParameters


@UnstableApi
class ScrubbingModeParameters


Parameters to control the behavior of scrubbing mode.

Summary

Nested types

Builder for ScrubbingModeParameters instances.

Constants

const ScrubbingModeParameters!

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

Public functions

ScrubbingModeParameters.Builder!

Returns a Builder initialized with the values from this instance.

Boolean
equals(o: Any?)
Int

Public properties

ImmutableSet<@C.TrackType Int!>!

Which track types will be disabled in scrubbing mode.

@FloatRange(from = 0, to = 1) Double?

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

@FloatRange(from = 0, to = 1) Double?

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

Boolean

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

Constants

DEFAULT

const val DEFAULTScrubbingModeParameters!

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

Public functions

buildUpon

fun buildUpon(): ScrubbingModeParameters.Builder!

Returns a Builder initialized with the values from this instance.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

disabledTrackTypes

val disabledTrackTypesImmutableSet<@C.TrackType Int!>!

Which track types will be disabled in scrubbing mode.

fractionalSeekToleranceAfter

val fractionalSeekToleranceAfter: @FloatRange(from = 0, to = 1) Double?

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

val fractionalSeekToleranceBefore: @FloatRange(from = 0, to = 1) Double?

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

val shouldIncreaseCodecOperatingRateBoolean

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.