The definition of the RtcStats struct.
◆ RtcStats()
◆ duration
The call duration (s), represented by an aggregate value.
◆ txBytes
The total number of bytes transmitted, represented by an aggregate value.
◆ rxBytes
The total number of bytes received, represented by an aggregate value.
◆ txAudioBytes
| unsigned int txAudioBytes |
The total number of audio bytes sent (bytes), represented by an aggregate value.
◆ txVideoBytes
| unsigned int txVideoBytes |
The total number of video bytes sent (bytes), represented by an aggregate value.
◆ rxAudioBytes
| unsigned int rxAudioBytes |
The total number of audio bytes received (bytes), represented by an aggregate value.
◆ rxVideoBytes
| unsigned int rxVideoBytes |
The total number of video bytes received (bytes), represented by an aggregate value.
◆ txKBitRate
| unsigned short txKBitRate |
The transmission bitrate (Kbps), represented by an instantaneous value.
◆ rxKBitRate
| unsigned short rxKBitRate |
The receiving bitrate (Kbps), represented by an instantaneous value.
◆ rxAudioKBitRate
| unsigned short rxAudioKBitRate |
Audio receiving bitrate (Kbps), represented by an instantaneous value.
◆ txAudioKBitRate
| unsigned short txAudioKBitRate |
The audio transmission bitrate (Kbps), represented by an instantaneous value.
◆ rxVideoKBitRate
| unsigned short rxVideoKBitRate |
The video receive bitrate (Kbps), represented by an instantaneous value.
◆ txVideoKBitRate
| unsigned short txVideoKBitRate |
The video transmission bitrate (Kbps), represented by an instantaneous value.
◆ lastmileDelay
| unsigned short lastmileDelay |
The VOS client-server latency (ms).
◆ userCount
The number of users in the channel.
◆ cpuAppUsage
The app CPU usage (%).
- Note
- The value of
cpuAppUsage is always reported as 0 in the onLeaveChannel callback.
- As of Android 8.1, you cannot get the CPU usage from this attribute due to system limitations.
◆ cpuTotalUsage
The system CPU usage (%).
For Windows, in the multi-kernel environment, this member represents the average CPU usage. The value = (100 - System Idle Progress in Task Manager)/100.
- Note
- The value of
cpuTotalUsage is always reported as 0 in the onLeaveChannel callback.
- As of Android 8.1, you cannot get the CPU usage from this attribute due to system limitations.
◆ gatewayRtt
The round-trip time delay from the client to the local router.
- Note
- On Android, to get
gatewayRtt, ensure that you add the android.permission.ACCESS_WIFI_STATE permission after </application> in the AndroidManifest.xml file in your project.
◆ memoryAppUsageRatio
| double memoryAppUsageRatio |
The memory usage ratio of the app (%).
- Note
- This value is for reference only. Due to system limitations, you may not get this value.
◆ memoryTotalUsageRatio
| double memoryTotalUsageRatio |
The memory usage ratio of the system (%).
- Note
- This value is for reference only. Due to system limitations, you may not get this value.
◆ memoryAppUsageInKbytes
| int memoryAppUsageInKbytes |
The memory usage of the app (KB).
- Note
- This value is for reference only. Due to system limitations, you may not get this value.
◆ connectTimeMs
The time elapsed from the when the app starts connecting to an Agora channel to when the connection is established. 0 indicates that this member does not apply.
◆ firstAudioPacketDuration
| int firstAudioPacketDuration |
The duration (ms) between the app starting connecting to an Agora channel and the first audio packet is received. 0 indicates that this member does not apply.
◆ firstVideoPacketDuration
| int firstVideoPacketDuration |
The duration (ms) between the app starting connecting to an Agora channel and the first video packet is received. 0 indicates that this member does not apply.
◆ firstVideoKeyFramePacketDuration
| int firstVideoKeyFramePacketDuration |
The duration (ms) between the app starting connecting to an Agora channel and the first video key frame is received. 0 indicates that this member does not apply.
◆ packetsBeforeFirstKeyFramePacket
| int packetsBeforeFirstKeyFramePacket |
The number of video packets before the first video key frame is received. 0 indicates that this member does not apply.
◆ firstAudioPacketDurationAfterUnmute
| int firstAudioPacketDurationAfterUnmute |
The duration (ms) between the last time unmute audio and the first audio packet is received. 0 indicates that this member does not apply.
◆ firstVideoPacketDurationAfterUnmute
| int firstVideoPacketDurationAfterUnmute |
The duration (ms) between the last time unmute video and the first video packet is received. 0 indicates that this member does not apply.
◆ firstVideoKeyFramePacketDurationAfterUnmute
| int firstVideoKeyFramePacketDurationAfterUnmute |
The duration (ms) between the last time unmute video and the first video key frame is received. 0 indicates that this member does not apply.
◆ firstVideoKeyFrameDecodedDurationAfterUnmute
| int firstVideoKeyFrameDecodedDurationAfterUnmute |
The duration (ms) between the last time unmute video and the first video key frame is decoded. 0 indicates that this member does not apply.
◆ firstVideoKeyFrameRenderedDurationAfterUnmute
| int firstVideoKeyFrameRenderedDurationAfterUnmute |
The duration (ms) between the last time unmute video and the first video key frame is rendered. 0 indicates that this member does not apply.
◆ txPacketLossRate
The packet loss rate of sender(broadcaster).
◆ rxPacketLossRate
The packet loss rate of receiver(audience).
◆ lanAccelerateState
The local network acceleration state. A value of 1 indicates that local network acceleration is active, while 0 indicates it is inactive. @technical preview