Package com.bambuser.broadcaster
Class LatencyMeasurement
java.lang.Object
com.bambuser.broadcaster.LatencyMeasurement
A latency measurement consists of the measured
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The measured latency, in milliseconds.final int
The total clock synchronization uncertainty, in milliseconds. -
Method Summary
-
Field Details
-
latency
public final int latencyThe measured latency, in milliseconds. -
uncertainty
public final int uncertaintyThe total clock synchronization uncertainty, in milliseconds.
-