A.Blanc
A.Blanc

Reputation: 433

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.

Upvotes: 4

Views: 3994

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17265

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.

Upvotes: 4

Related Questions