targetLatency

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.

The player will try to bring the latency as close as possible to the targetLatency while avoiding stalls.

On source start, the target is initially LowLatencyConfig.targetLatency if set and the media-defined target otherwise.

When the player resumes from a pause, the targetLatency is set to the current latency.

Setting the target latency when there is no active playback session has no effect.