Interface LatencyManager
-
- All Implemented Interfaces:
public interface LatencyManager
The latency manager, used to control low-latency live playback.
This is only used for live playback.
-
-
Method Summary
Modifier and Type Method Description abstract Boolean
isEnabled()
Whether the latency manager is enabled. abstract Unit
setEnabled(Boolean isEnabled)
Whether the latency manager is enabled. abstract Boolean
isMonitoringLivePlayback()
Whether the latency manager is monitoring to stay within the live playback configurationLatencyManager.currentLatencyConfiguration. abstract Double
getCurrentLatency()
The current latency. abstract LatencyConfiguration
getCurrentLatencyConfiguration()
The current latency configuration for the current source, if available. -
-
Method Detail
-
setEnabled
abstract Unit setEnabled(Boolean isEnabled)
Whether the latency manager is enabled.
-
isMonitoringLivePlayback
abstract Boolean isMonitoringLivePlayback()
Whether the latency manager is monitoring to stay within the live playback configurationLatencyManager.currentLatencyConfiguration.
Can only be monitored for live playback.
-
getCurrentLatency
abstract Double getCurrentLatency()
The current latency.
Only available during live playback.
-
getCurrentLatencyConfiguration
abstract LatencyConfiguration getCurrentLatencyConfiguration()
The current latency configuration for the current source, if available.
The initial value will be based on TypedSource.getLatencyConfiguration
If TypedSource.getLatencyConfiguration is not set, the player will determine the configuration for your live stream.
The player might change the latency configuration based on playback events like stalls.
-
-
-
-