RtcStats

  • C#

更新时间不可用

通话相关的统计信息。

C#
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

发送字节数 (bytes)。

rxBytes

接收字节数 (bytes)。

txAudioBytes

发送音频字节数 (bytes),累计值。

txVideoBytes

发送视频字节数 (bytes),累计值。

rxAudioBytes

接收音频字节数 (bytes),累计值。

rxVideoBytes

接收视频字节数 (bytes),累计值。

txKBitRate

发送码率 (Kbps)。

rxKBitRate

接收码率 (Kbps)。

rxAudioKBitRate

音频接收码率 (Kbps)。

txAudioKBitRate

音频包的发送码率 (Kbps)。

rxVideoKBitRate

视频接收码率 (Kbps)。

txVideoKBitRate

视频发送码率 (Kbps)。

lastmileDelay

客户端-接入服务器延时 (毫秒)。

txPacketLossRate

使用抗丢包技术前,客户端上行发送到服务器丢包率 (%)。

rxPacketLossRate

使用抗丢包技术前,服务器下行发送到客户端丢包率 (%)。

userCount

当前频道内的用户人数。

cpuAppUsage

当前 App 的 CPU 使用率 (%)。

注意:

cpuTotalUsage

当前系统的 CPU 使用率 (%)。

对于 Windows 平台,在多核环境中,该成员指多核 CPU 的平均使用率。 计算方式为 (100 - 任务管理中显示的系统空闲进程 CPU)/100。

注意:

connectTimeMs

从开始建立连接到成功连接的时间(毫秒)。如报告 0,则表示无效。

gatewayRtt

客户端到本地路由器的往返时延 (ms)。

memoryAppUsageRatio

当前 App 的内存占比 (%)。

注意: 该值仅作参考。受系统限制可能无法获取。

memoryTotalUsageRatio

当前系统的内存占比 (%)。

注意: 该值仅作参考。受系统限制可能无法获取。

memoryAppUsageInKbytes

当前 App 的内存大小 (KB)。

注意: 该值仅作参考。受系统限制可能无法获取。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?