public class LatencyMeasurement extends Object
latency and the uncertainty of
the measurement. Use BroadcastPlayer.getEndToEndLatency() to get a measurement.
The measured latency is at most +/- uncertainty milliseconds from the
actual latency.
For example if the measured latency is 500 ms and the uncertainty is
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 uncertainty may be very
large. For example if the uncertainty is 2000 ms and we know the actual latency is
1500 ms, the latency can in theory show as -500 to 3500 ms. In practice, the measured
value is likely close to the actual latency.
| Modifier and Type | Field and Description |
|---|---|
int |
latency
The measured latency, in milliseconds.
|
int |
uncertainty
The total clock synchronization uncertainty, in milliseconds.
|