RtcStats
- C++
更新时间不可用
用于统计通话会话相关数据。
struct RtcStats {
unsigned int duration;
unsigned int txBytes;
unsigned int rxBytes;
unsigned int txAudioBytes;
unsigned int txVideoBytes;
unsigned int rxAudioBytes;
unsigned int rxVideoBytes;
unsigned short txKBitRate;
unsigned short rxKBitRate;
unsigned short rxAudioKBitRate;
unsigned short txAudioKBitRate;
unsigned short rxVideoKBitRate;
unsigned short txVideoKBitRate;
unsigned short lastmileDelay;
unsigned int userCount;
double cpuAppUsage;
double cpuTotalUsage;
int gatewayRtt;
double memoryAppUsageRatio;
double memoryTotalUsageRatio;
int memoryAppUsageInKbytes;
int connectTimeMs;
int firstAudioPacketDuration;
int firstVideoPacketDuration;
int firstVideoKeyFramePacketDuration;
int packetsBeforeFirstKeyFramePacket;
int firstAudioPacketDurationAfterUnmute;
int firstVideoPacketDurationAfterUnmute;
int firstVideoKeyFramePacketDurationAfterUnmute;
int firstVideoKeyFrameDecodedDurationAfterUnmute;
int firstVideoKeyFrameRenderedDurationAfterUnmute;
int txPacketLossRate;
int rxPacketLossRate;
int lanAccelerateState;
};属性
| 参数名 | 描述 |
|---|---|
duration | |
txBytes | |
rxBytes | |
txAudioBytes | |
txVideoBytes | |
rxAudioBytes | |
rxVideoBytes | |
txKBitRate | |
rxKBitRate | |
rxAudioKBitRate | |
txAudioKBitRate | |
rxVideoKBitRate | |
txVideoKBitRate | |
lastmileDelay | |
userCount | |
cpuAppUsage | |
cpuTotalUsage | 系统的 CPU 使用率(%)。在 Windows 多核环境下,该值为平均 CPU 使用率,计算方式为:(100 - 任务管理器中的系统空闲进度)/100。 注:
|
gatewayRtt | 客户端到本地路由器的往返时延(毫秒)。 注: 该属性在 iOS 14 及以上版本默认禁用,iOS 14 以下版本默认启用。如需在 iOS 14 及以上版本启用,请联系技术支持。在 Android 上,需在 |
memoryAppUsageRatio | |
memoryTotalUsageRatio | |
memoryAppUsageInKbytes | |
connectTimeMs | |
firstAudioPacketDuration | |
firstVideoPacketDuration | |
firstVideoKeyFramePacketDuration | |
packetsBeforeFirstKeyFramePacket | |
firstAudioPacketDurationAfterUnmute | |
firstVideoPacketDurationAfterUnmute | |
firstVideoKeyFramePacketDurationAfterUnmute | |
firstVideoKeyFrameDecodedDurationAfterUnmute | |
firstVideoKeyFrameRenderedDurationAfterUnmute | |
txPacketLossRate | |
rxPacketLossRate |