Rate this page:

CallStats

Class that represents statistics for the ICall. Reported via ICallListener.onCallStatsReceived(ICall, CallStats) with interval specified by ClientConfig.statsCollectionInterval

Props

audioBytesReceived

Copy URL
var audioBytesReceived: 

long

Total number of audio bytes received for the call.

Returns

  • type:

    long

audioBytesSent

Copy URL
var audioBytesSent: 

long

Total number of audio bytes sent for the call.

Returns

  • type:

    long

audioLoss

Copy URL
var audioLoss: 

double

Total packet loss in the audio stream(s) related to the call session. Values are in the range 0..1, where 0 means no loss and 1 means full loss.

Returns

  • type:

    double

audioPacketsLost

Copy URL
var audioPacketsLost: 

int

Total number of audio packets lost for the call.

Returns

  • type:

    int

audioPacketsReceived

Copy URL
var audioPacketsReceived: 

long

Total number of audio packets received for the call.

Returns

  • type:

    long

audioPacketsSent

Copy URL
var audioPacketsSent: 

long

Total number of audio packets sent for the call.

Returns

  • type:

    long

availableOutgoingBitrate

Copy URL
var availableOutgoingBitrate: 

double

It is calculated by the underlying congestion control by combining the available bitrate for all the outgoing RTP streams via the currently selected candidate pair. It is measured in bits per second and the bitrate is calculated over a 1 second window.

Returns

  • type:

    double

endpointStats

Copy URL
var endpointStats: 

Map<IEndpoint, EndpointStats>

Statistics for endpoints existing in the call at the moment of the stats collection.

Returns

localAudioStats

Copy URL
var localAudioStats: 

Map<ILocalAudioStream, OutboundAudioStats>

Statistics for all active outgoing audio streams of the call at the moment of the stats collection.

localCandidateType

Copy URL
var localCandidateType: 

String

Local ICE candidate type.

Possible values:

  • "host" - A host candidate
  • "srflx" - A server reflexive candidate
  • "prflx" - A peer reflexive candidate
  • "relay" - A relay candidate

Returns

  • type:

    String

localVideoStats

Copy URL
var localVideoStats: 

Map<ILocalVideoStream, OutboundVideoStats>

Statistics for all active outgoing video streams of the call at the moment of the stats collection.

networkType

Copy URL
var networkType: 

String

Type of network interface used by the base of a local candidate (the address the ICE agent sends from). This stat only tells you about the network interface used by the first "hop"; it is possible that a connection is bottlenecked by another type of network. For example, when using Wi-Fi tethering, the networkType of the relevant candidate would be "wifi", even when the next hop is over a cellular connection.

Possible values:

  • cellular - A cellular connection (e.g., EDGE, HSPA, LTE, etc.).
  • ethernet - An Ethernet connection.
  • wifi - A Wi-Fi connection.
  • wimax - A WiMAX connection.
  • vpn - The connection runs over a VPN. The underlying network type is not available.
  • unknown - The user agent is unable or unwilling to identify the underlying connection technology.

Returns

  • type:

    String

remoteCandidateType

Copy URL
var remoteCandidateType: 

String

Remote ICE candidate type.

Possible values:

  • "host" - A host candidate
  • "srflx" - A server reflexive candidate
  • "prflx" - A peer reflexive candidate
  • "relay" - A relay candidate

Returns

  • type:

    String

rtt

Copy URL
var rtt: 

double

Latest round trip time measured in seconds.

Returns

  • type:

    double

timestamp

Copy URL
var timestamp: 

double

Time at which the call statistics are collected (in UNIX timestamp format, microseconds).

Returns

  • type:

    double

totalBytesReceived

Copy URL
var totalBytesReceived: 

long

Total number of bytes (audio and video) received in the call.

Returns

  • type:

    long

totalBytesSent

Copy URL
var totalBytesSent: 

long

Total number of bytes (audio and video) sent in the call.

Returns

  • type:

    long

totalLoss

Copy URL
var totalLoss: 

double

Total incoming packet loss for the call.

Returns

  • type:

    double

totalPacketsLost

Copy URL
var totalPacketsLost: 

int

Total number of incoming packets lost (audio and video) in the call.

Returns

  • type:

    int

totalPacketsReceived

Copy URL
var totalPacketsReceived: 

long

Total number of packets (audio and video) received in the call.

Returns

  • type:

    long

totalPacketsSent

Copy URL
var totalPacketsSent: 

long

Total number of packets (audio and video) sent in the call.

Returns

  • type:

    long

videoBytesReceived

Copy URL
var videoBytesReceived: 

long

Total number of video bytes received for the call.

Returns

  • type:

    long

videoBytesSent

Copy URL
var videoBytesSent: 

long

Total number of video bytes sent for the call.

Returns

  • type:

    long

videoLoss

Copy URL
var videoLoss: 

double

Total packet loss in the video stream(s) related to the call session. Values are in the range 0..1, where 0 means no loss and 1 means full loss.

Returns

  • type:

    double

videoPacketsLost

Copy URL
var videoPacketsLost: 

int

Total number of video packets lost for the call.

Returns

  • type:

    int

videoPacketsReceived

Copy URL
var videoPacketsReceived: 

long

Total number of video packets received for the call.

Returns

  • type:

    long

videoPacketsSent

Copy URL
var videoPacketsSent: 

long

Total number of video packets sent for the call.

Returns

  • type:

    long