文档中心
互动直播 (Legacy)
API 参考
Agora C++ API Reference for All Platforms
Agora C++ API Reference for All Platforms
◆ RtcStats()
agora::rtc::RtcStats::RtcStats |
( |
| ) |
|
|
inline |
◆ duration
unsigned int agora::rtc::RtcStats::duration |
◆ txBytes
unsigned int agora::rtc::RtcStats::txBytes |
◆ rxBytes
unsigned int agora::rtc::RtcStats::rxBytes |
◆ txAudioBytes
unsigned int agora::rtc::RtcStats::txAudioBytes |
◆ txVideoBytes
unsigned int agora::rtc::RtcStats::txVideoBytes |
◆ rxAudioBytes
unsigned int agora::rtc::RtcStats::rxAudioBytes |
◆ rxVideoBytes
unsigned int agora::rtc::RtcStats::rxVideoBytes |
◆ txKBitRate
unsigned short agora::rtc::RtcStats::txKBitRate |
◆ rxKBitRate
unsigned short agora::rtc::RtcStats::rxKBitRate |
◆ rxAudioKBitRate
unsigned short agora::rtc::RtcStats::rxAudioKBitRate |
◆ txAudioKBitRate
unsigned short agora::rtc::RtcStats::txAudioKBitRate |
◆ rxVideoKBitRate
unsigned short agora::rtc::RtcStats::rxVideoKBitRate |
◆ txVideoKBitRate
unsigned short agora::rtc::RtcStats::txVideoKBitRate |
◆ lastmileDelay
unsigned short agora::rtc::RtcStats::lastmileDelay |
◆ txPacketLossRate
unsigned short agora::rtc::RtcStats::txPacketLossRate |
使用抗丢包技术前,客户端上行发送到服务器丢包率 (%)
◆ rxPacketLossRate
unsigned short agora::rtc::RtcStats::rxPacketLossRate |
使用抗丢包技术前,服务器下行发送到客户端丢包率 (%)
◆ userCount
unsigned int agora::rtc::RtcStats::userCount |
当前频道内的用户人数。
- 通信场景下,当前频道内的用户人数。
- 直播场景下,
- 如果本地用户为观众,为频道内的主播人数 + 1;
- 如果本地用户为主播,为频道内的主播人数。
◆ cpuAppUsage
double agora::rtc::RtcStats::cpuAppUsage |
◆ cpuTotalUsage
double agora::rtc::RtcStats::cpuTotalUsage |
当前系统的 CPU 使用率 (%)。
在多核环境中,该成员指多核 CPU 的平均使用率。 计算方式为 100 - 任务管理中显示的系统空闲进程 CPU()。
◆ gatewayRtt
int agora::rtc::RtcStats::gatewayRtt |
◆ memoryAppUsageRatio
double agora::rtc::RtcStats::memoryAppUsageRatio |
当前 App 的内存占比 (%)
- 注解
- 该值仅作参考。受系统限制可能无法获取。
◆ memoryTotalUsageRatio
double agora::rtc::RtcStats::memoryTotalUsageRatio |
当前系统的内存占比 (%)
- 注解
- 该值仅作参考。受系统限制可能无法获取。
◆ memoryAppUsageInKbytes
int agora::rtc::RtcStats::memoryAppUsageInKbytes |
当前 App 的内存大小 (KB)
- 注解
- 该值仅作参考。受系统限制可能无法获取。