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

Boolean

Whether flushing the decoder is avoided where possible in scrubbing mode.

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

This property is deprecated.

Use allowSkippingMediaCodecFlush instead (but note that it's value is inverted).

Boolean

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

Boolean

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

Boolean

Whether to use BUFFER_FLAG_DECODE_ONLY 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

allowSkippingMediaCodecFlush

val allowSkippingMediaCodecFlushBoolean

Whether flushing the decoder is avoided where possible in scrubbing mode.

Defaults to true.

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.

isMediaCodecFlushEnabled

val isMediaCodecFlushEnabledBoolean

shouldEnableDynamicScheduling

val shouldEnableDynamicSchedulingBoolean

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

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.

useDecodeOnlyFlag

val useDecodeOnlyFlagBoolean

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.