LowLatencyApi

interface LowLatencyApi

Provides the means to configure low latency settings and to query the current low latency state. Accessible through Player.lowLatency.

The player will try to keep the latency as close as possible to the targetLatency while avoiding stalls by changing the playback rate or timeshifting if too far as configured by catchupConfig and fallbackConfig.

Properties

Link copied to clipboard

The current LowLatencySynchronizationConfig for catchup or null if no catchup config is set or there is no active playback session.

Link copied to clipboard

The current LowLatencySynchronizationConfig for fallback or null if no fallback config is set or there is no active playback session.

Link copied to clipboard
abstract val latency: Double

The duration in seconds between the current position and the live edge.

Link copied to clipboard
abstract var targetLatency: Double

Offset in seconds to the live edge that the player should aim to play from, or -1 if the source is not a low latency live stream.