Reputation: 171
How to get stream traffic size in WebRTC. I want to traffic information in client javascript.
Wait for your answer.
Upvotes: 0
Views: 777
Reputation: 1784
As I understand your question, you are looking for some stats of your WebRTC communication.
There is the getStats()
function. You'll be able to retrieve some statistics of your streams (eg. packetsReceived, bytesSent, packetLoss, etc.)
W3C link : http://www.w3.org/TR/webrtc-stats/
Related code : https://www.npmjs.com/package/getstats
Upvotes: 3