How is calculated connectionQuality?


I’m talking about the object returned when listening to event.

There is a property called connectionQuality which varies from 0 to 100 (and it’s a float number).

I assume it is was permit to those little colored-indicator of each video-card to work (from red to orange to yellow to green if I’m correct?).

I was wondering how it is calculated ? I think maybe an average number which is linked to packet loss, bandwith etc… I really don’t know.

It would help us a lot to understand more deeply that property.

Also, and I know it’s not the topic subject, but there is another property that I don’t really understand : avgAudioLevels : it’s alway an empty object !
Or is is specitic to particular devices, or option like lipsync ?

Thanks you a lot.

Thanks for your answer,
Actually, I think you misunderstood my question (but I wasn’t clear enough).

One of my team’s member found the method which is this lib-jitsi-meet/ConnectionQuality.js at master · jitsi/lib-jitsi-meet · GitHub

(I’m posting this in case other people found this post and wonder same thing as me)

1 Like