[Live-devel] Calculating latency

Ross Finlayson finlayson at live555.com
Wed Jun 19 14:34:37 PDT 2024



> On Jun 19, 2024, at 2:22 PM, Flavio Alves <flavio.alves at vitalintelligencedata.com> wrote:
> 
> Hello,
> 
> Currently to evaluate live streaming latency we are using a manual approach, where we start a stream and try to 'feel' the latency of the streaming.
> 
> I was wondering if there is any way to calculate the latency during the streaming. Is this information that I could get and/or calculate on the server or client?

If (and only if) your server and client have synchronized clocks, then you could measure the latency - at the client - by looking at each presentation time, and comparing it to the client’s current ‘wall clock’ time (i.e., by calling “gettimeofday()”).


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list