LowLatencySynchronizationConfig

LowLatencySynchronizationConfig

data class LowLatencySynchronizationConfig(var playbackRateThreshold: Double = DEFAULT_PLAYBACK_RATE_THRESHOLD, var seekThreshold: Double = DEFAULT_SEEK_THRESHOLD, var playbackRate: Float) : Parcelable

Configures target latency synchronization behaviour.

Constructors

LowLatencySynchronizationConfigconstructor(playbackRateThreshold: Double = DEFAULT_PLAYBACK_RATE_THRESHOLD, seekThreshold: Double = DEFAULT_SEEK_THRESHOLD, playbackRate: Float)

Types

NameSummary
Companionobject Companion

Properties

NameSummary
playbackRatevar playbackRate: Float
The maximum playback rate used to reach the LowLatencyApi.targetLatency.
playbackRateThresholdvar playbackRateThreshold: Double
Has no effect as there is no longer a latency threshold to adjust the playback rate. The Playback rate is continuously adjusted in favour of reaching and maintaining the target latency.
seekThresholdvar seekThreshold: Double
The LowLatencyApi.latency distance to the LowLatencyApi.targetLatency over which the player should time-shift to the LowLatencyApi.targetLatency. The player will not seek to catchup if it would result in a stall.