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 configuration. abstract Double
getCurrentLatency()
The current latency. abstract LatencyConfiguration
getCurrentLatencyConfiguration()
The current latency configuration for the current source, if available. -
-
Method Detail
-
isEnabled
abstract Boolean isEnabled()
Whether the latency manager is enabled.
With the Media3 backend, this value is automatically set to
true
when TypedSource.latencyConfiguration is set.
-
setEnabled
abstract Unit setEnabled(Boolean isEnabled)
Whether the latency manager is enabled.
With the Media3 backend, this value is automatically set to
true
when TypedSource.latencyConfiguration is set.
-
isMonitoringLivePlayback
abstract Boolean isMonitoringLivePlayback()
Whether the latency manager is monitoring to stay within the live playback configuration.
Can only be monitored for live playback.
With the Media3 backend, this value is true if the manager is enabled and a TypedSource.latencyConfiguration was set.
-
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.latencyConfiguration
If TypedSource.latencyConfiguration 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.
-
-
-
-