RtcStats
Statistics of the call session.
public static class RtcStats {
public int totalDuration;
public int txBytes;
public int rxBytes;
public int txKBitRate;
public int txAudioBytes;
public int rxAudioBytes;
public int txVideoBytes;
public int rxVideoBytes;
public int rxKBitRate;
public int txAudioKBitRate;
public int rxAudioKBitRate;
public int txVideoKBitRate;
public int rxVideoKBitRate;
public int lastmileDelay;
public double cpuTotalUsage;
public int gatewayRtt;
public double cpuAppUsage;
public int users;
public int connectTimeMs;
public int txPacketLossRate;
public int rxPacketLossRate;
public double memoryAppUsageRatio;
public double memoryTotalUsageRatio;
public int memoryAppUsageInKbytes;
public int lanAccelerateState;
}
Properties
- totalDuration
- Call duration (in seconds) for the local user, shown as a cumulative value.
- txBytes
- Number of bytes sent.
- rxBytes
- Number of bytes received.
- txKBitRate
- Actual bitrate (Kbps) of the sent local video stream.
- txAudioBytes
- Total number of audio bytes sent, shown as a cumulative value.
- rxAudioBytes
- Total number of audio bytes received, shown as a cumulative value.
- txVideoBytes
- Total number of video bytes sent, shown as a cumulative value.
- rxVideoBytes
- Total number of video bytes received, shown as a cumulative value.
- rxKBitRate
- Receiving bitrate (Kbps).
- txAudioKBitRate
- Audio sending bitrate (Kbps).
- rxAudioKBitRate
- Audio receiving bitrate (Kbps).
- txVideoKBitRate
- Video sending bitrate (Kbps).
- rxVideoKBitRate
- Video receiving bitrate (Kbps).
- lastmileDelay
- Client-to-server latency (ms).
- cpuTotalUsage
- System CPU usage (%).
Note:
- In the onLeaveChannel callback, this value is always 0.
- Starting from Android 8.1, this value may not be available due to system restrictions.
- gatewayRtt
- Round-trip time from the client to the local router (ms).
Note: On Android, to obtain this value, make sure to add the
android.permission.ACCESS_WIFI_STATEpermission in theAndroidManifest.xmlfile after</application>. - cpuAppUsage
- CPU usage of the app (%).
Note:
- In the onLeaveChannel callback, this value is always 0.
- Starting from Android 8.1, this value may not be available due to system restrictions.
- users
- Number of users in the channel.
- connectTimeMs
- Time from SDK start to connection establishment (ms). A value of 0 indicates invalid.
- txPacketLossRate
- Packet loss rate (%) from client to Agora server, before applying anti-packet-loss mechanisms.
- rxPacketLossRate
- Packet loss rate (%) from Agora server to client before applying anti-packet-loss mechanisms.
- memoryAppUsageRatio
- Memory usage ratio (%) of the app.
Note: This value is for reference only and may not be available due to system restrictions.
- memoryTotalUsageRatio
- Memory usage ratio (%) of the system.
Note: This value is for reference only and may not be available due to system restrictions.
- memoryAppUsageInKbytes
- Memory usage (KB) of the app.
Note: This value is for reference only and may not be available due to system restrictions.