Package com.bambuser.broadcaster
Class LatencyMeasurement
- java.lang.Object
-
- com.bambuser.broadcaster.LatencyMeasurement
-
public class LatencyMeasurement extends Object
A latency measurement consists of the measuredlatencyand theuncertaintyof the measurement. UseBroadcastPlayer.getEndToEndLatency()to get a measurement. The measuredlatencyis at most +/-uncertaintymilliseconds from the actual latency.For example if the measured
latencyis 500 ms and theuncertaintyis 100 ms, the actual latency is between 400 and 600 ms.To avoid confusion, avoid showing the latency to end users if the uncertainty is relatively large. In extreme cases on unreliable mobile networks, the
uncertaintymay be very large. For example if theuncertaintyis 2000 ms and we know the actual latency is 1500 ms, thelatencycan in theory show as -500 to 3500 ms. In practice, the measured value is likely close to the actual latency.
-
-
Field Summary
Fields Modifier and Type Field Description intlatencyThe measured latency, in milliseconds.intuncertaintyThe total clock synchronization uncertainty, in milliseconds.
-