onTargetPlaybackLatency

abstract fun onTargetPlaybackLatency(targetPlaybackLatency: Double?)

Called with the current playback target latency in seconds.

It represents the latency at which the player currently is trying to play at. The player compares LowLatencyApi.latency to this value to decide whether catchup or fallback correction is needed.

This value can differ from LowLatencyApi.targetLatency: for example when playback is paused, when the user time-shifts away from the live edge, or when playback starts with an offset.

If the targetPlaybackLatency is not available, null is returned.