On RTC Stats Update
Fired when real-time communication statistics are emitted for an active call leg.
Event Registration
fun setOnRtcStatsUpdateListener(
fn: (rtcStats: RTCStats, legId: String) -> Unit
): Subscription
Usage Example
client.setOnRtcStatsUpdateListener { rtcStats, legId ->
println("Received RtcStats $rtcStats for leg $legId")
}
Event Data
| Parameter | Type | Description |
|---|---|---|
rtcStats | RTCStats | Real-time media statistics payload |
callId / legId | string | Identifier associated with the stats update (platform callback naming varies) |
Notes
- Use these updates for call quality telemetry and diagnostics
- Event naming is
rtcStatsUpdateon Web with equivalent native listeners/delegates