WebRTCStatsReporter class
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. The stats are collected every 3 seconds and sent to the server. 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.
Constructors
- WebRTCStatsReporter(TxSocket socket, RTCPeerConnection peerConnection, String callId, String peerId, bool sendStats, {CallQualityCallback? onCallQualityChange})
- Default constructor that initializes the WebRTCStatsReporter with the provided parameters
Properties
- callId → String
-
final
- debugReportStarted ↔ bool
-
getter/setter pair
- debugStatsId ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCallQualityChange → CallQualityCallback?
-
Callback for call quality metrics updates
final
- peerConnection → RTCPeerConnection
-
final
- peerId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendStats → bool
-
final
- socket → TxSocket
-
final
- uuid → Uuid
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startStatsReporting(
) → Future< void> -
stopStatsReporting(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited