Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Network Speed in WebRTC

I have implemented WebRTC for a JavaScript video conferencing application. I need to calculate the internet speed during video/audio calls and depending on it show a message grading the connection as Poor/Average/Good/Excellent. Please suggest the best possible way to do this.

like image 482
A.Blanc Avatar asked Nov 08 '25 10:11

A.Blanc


1 Answers

https://webrtc.github.io/samples/src/content/peerconnection/audio/ shows how to use the getStats API to calculate the difference between the number of bits sent. Another thing you might consider is the round trip time which is available from the same API.

like image 187
Philipp Hancke Avatar answered Nov 10 '25 02:11

Philipp Hancke