utils/stats/webrtc_stats_reporter
library
Classes
-
WebRTCStatsReporter
-
Class to handle the reporting of WebRTC stats to the server
via the provided socket and peerConnection.
The callId and peerId are used to identify the call and peer respectively.
Call quality metrics are updated every 100ms for real-time UI updates.
Full stats are sent to the socket every 3 seconds to avoid overloading the connection.
The stats reporting can be started and stopped using the startStatsReporting and stopStatsReporting methods.
The collected stats are available in the Telnyx Portal for debugging purposes.