RtcStats
- Unity
更新时间不可用
通话相关的统计信息。
public class RtcStats
{
public RtcStats()
{
}
public RtcStats(uint duration, uint txBytes, uint rxBytes, uint txAudioBytes, uint txVideoBytes,
uint rxAudioBytes, uint rxVideoBytes, UInt16 txKBitRate, UInt16 rxKBitRate, UInt16 rxAudioKBitRate,
UInt16 txAudioKBitRate, UInt16 rxVideoKBitRate, UInt16 txVideoKBitRate, UInt16 lastmileDelay,
uint userCount, double cpuAppUsage, double cpuTotalUsage, int gatewayRtt,
double memoryAppUsageRatio, double memoryTotalUsageRatio, int memoryAppUsageInKbytes, int connectTimeMs, int txPacketLossRate, int rxPacketLossRate)
{
this.duration = duration;
this.txBytes = txBytes;
this.rxBytes = rxBytes;
this.txAudioBytes = txAudioBytes;
this.txVideoBytes = txVideoBytes;
this.rxAudioBytes = rxAudioBytes;
this.rxVideoBytes = rxVideoBytes;
this.txKBitRate = txKBitRate;
this.rxKBitRate = rxKBitRate;
this.rxAudioKBitRate = rxAudioKBitRate;
this.txAudioKBitRate = txAudioKBitRate;
this.rxVideoKBitRate = rxVideoKBitRate;
this.txVideoKBitRate = txVideoKBitRate;
this.lastmileDelay = lastmileDelay;
this.userCount = userCount;
this.cpuAppUsage = cpuAppUsage;
this.cpuTotalUsage = cpuTotalUsage;
this.gatewayRtt = gatewayRtt;
this.memoryAppUsageRatio = memoryAppUsageRatio;
this.memoryTotalUsageRatio = memoryTotalUsageRatio;
this.memoryAppUsageInKbytes = memoryAppUsageInKbytes;
this.connectTimeMs = connectTimeMs;
this.txPacketLossRate = txPacketLossRate;
this.rxPacketLossRate = rxPacketLossRate;
}
public uint duration { set; get; }
public uint txBytes { set; get; }
public uint rxBytes { set; get; }
public uint txAudioBytes { set; get; }
public uint txVideoBytes { set; get; }
public uint rxAudioBytes { set; get; }
public uint rxVideoBytes { set; get; }
public ushort txKBitRate { set; get; }
public ushort rxKBitRate { set; get; }
public ushort rxAudioKBitRate { set; get; }
public ushort txAudioKBitRate { set; get; }
public ushort rxVideoKBitRate { set; get; }
public ushort txVideoKBitRate { set; get; }
public ushort lastmileDelay { set; get; }
public uint userCount { set; get; }
public double cpuAppUsage { set; get; }
public double cpuTotalUsage { set; get; }
public int gatewayRtt { set; get; }
public double memoryAppUsageRatio { set; get; }
public double memoryTotalUsageRatio { set; get; }
public int memoryAppUsageInKbytes { set; get; }
public int connectTimeMs { set; get; }
public int txPacketLossRate { set; get; }
public int rxPacketLossRate { set; get; }
}属性
| 参数名 | 描述 |
|---|---|
duration | |
txBytes | |
rxBytes | |
txAudioBytes | |
txVideoBytes | |
rxAudioBytes | |
rxVideoBytes | |
txKBitRate | |
rxKBitRate | |
rxAudioKBitRate | |
txAudioKBitRate | |
rxVideoKBitRate | |
txVideoKBitRate | |
lastmileDelay | |
txPacketLossRate | |
rxPacketLossRate | |
userCount | |
cpuAppUsage | 当前 App 的 CPU 使用率 (%)。 注:
|
cpuTotalUsage | 当前系统的 CPU 使用率 (%)。 对于 Windows 平台,在多核环境中,该成员指多核 CPU 的平均使用率。 计算方式为 (100 - 任务管理中显示的系统空闲进程 CPU)/100。 注:
|
connectTimeMs | |
gatewayRtt | 客户端到本地路由器的往返时延 (ms)。 注: 该属性默认在 iOS 14 之前的设备上开启,在 iOS 14 及之后的设备上关闭。 如需在 iOS 14 及之后的设备上启用该属性,请联系技术支持。
在 Android 平台上,如需获取 |
memoryAppUsageRatio | |
memoryTotalUsageRatio | |
memoryAppUsageInKbytes |