Skip to content

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

ParameterTypeDescription
rtcStatsRTCStatsReal-time media statistics payload
callId / legIdstringIdentifier associated with the stats update (platform callback naming varies)

Notes

  • Use these updates for call quality telemetry and diagnostics
  • Event naming is rtcStatsUpdate on Web with equivalent native listeners/delegates

Built with VitePress.