libbambuser
0.9.26
|
#include <libbambuserplayer.h>
Public Attributes | |
float | latency |
The measured latency, in seconds. | |
float | uncertainty |
The total clock synchronization uncertainty, in seconds. More... | |
A latency measurement consists of the measured latency and the uncertainty of the measurement. Use BambuserPlayer.endToEndLatency to get a measurement.
The measured latency is at most +/- uncertainty seconds from the actual latency.
For example if the measured latency is 0.5 s and the uncertainty is 0.100 s, the actual latency is between 0.4 and 0.6 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 2.0 s and we know the actual latency is 1.5 s, the latency can in theory show as -0.5 to 3.5 s. In practice, the measured value is likely close to the actual latency.
float LatencyMeasurement::uncertainty |
The total clock synchronization uncertainty, in seconds.
If latency information is unavailable, this is negative.