RtcStats
- Android
更新时间
通话会话的统计信息。
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;
}属性
| 参数名 | 描述 |
|---|---|
totalDuration | 本地用户的通话时长(秒),以累计值表示。 |
txBytes | 已发送的字节数。 |
rxBytes | 已接收的字节数。 |
txKBitRate | 发送本地视频流的实际码率(Kbps)。 |
txAudioBytes | 发送的音频字节总数,以累计值表示。 |
rxAudioBytes | 接收的音频字节总数,以累计值表示。 |
txVideoBytes | 发送的视频字节总数,以累计值表示。 |
rxVideoBytes | 接收的视频字节总数,以累计值表示。 |
rxKBitRate | 接收码率(Kbps)。 |
txAudioKBitRate | 音频发送码率(Kbps)。 |
rxAudioKBitRate | 音频接收码率(Kbps)。 |
txVideoKBitRate | 视频发送码率(Kbps)。 |
rxVideoKBitRate | 视频接收码率(Kbps)。 |
lastmileDelay | 客户端到服务器的延迟(毫秒)。 |
cpuTotalUsage | 系统 CPU 使用率(%)。 注:
|
gatewayRtt | 客户端到本地路由器的往返时延(毫秒)。 注: 在 Android 上,如需获取该值,请确保在项目的 |
cpuAppUsage | 应用的 CPU 使用率(%)。 注:
|
users | 频道中的用户人数。 |
connectTimeMs | SDK 开始连接到连接建立之间的时长(毫秒)。若值为 0,表示无效。 |
txPacketLossRate | 客户端发送到声网服务器的丢包率(%),为应用抗丢包机制前的值。 |
rxPacketLossRate | 声网服务器发送到客户端前,未使用抗丢包机制时的丢包率(%)。 |
memoryAppUsageRatio | 应用占用的内存比例(%)。 注: 该值仅供参考,因系统限制可能无法获取。 |
memoryTotalUsageRatio | 系统占用的内存比例(%)。 注: 该值仅供参考,因系统限制可能无法获取。 |
memoryAppUsageInKbytes | 应用占用的内存大小(KB)。 注: 该值仅供参考,因系统限制可能无法获取。 |