AgoraChannelStats 类

Inherits from NSObject
Declared in AgoraObjects.h

概览

频道的统计数据

  duration

本地用户的通话时长,单位为秒,累计值

@property (assign, nonatomic) NSInteger duration

Declared In

AgoraObjects.h

  txBytes

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

@property (assign, nonatomic) NSInteger txBytes

Declared In

AgoraObjects.h

  rxBytes

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

@property (assign, nonatomic) NSInteger rxBytes

Declared In

AgoraObjects.h

  txAudioBytes

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

@property (assign, nonatomic) NSInteger txAudioBytes

Declared In

AgoraObjects.h

  txVideoBytes

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

@property (assign, nonatomic) NSInteger txVideoBytes

Declared In

AgoraObjects.h

  rxAudioBytes

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

@property (assign, nonatomic) NSInteger rxAudioBytes

Declared In

AgoraObjects.h

  rxVideoBytes

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

@property (assign, nonatomic) NSInteger rxVideoBytes

Declared In

AgoraObjects.h

  txKBitrate

音视频总发送码率(Kbps),瞬时值

@property (assign, nonatomic) NSInteger txKBitrate

Declared In

AgoraObjects.h

  rxKBitrate

音视频总接收码率(Kbps),瞬时值

@property (assign, nonatomic) NSInteger rxKBitrate

Declared In

AgoraObjects.h

  txAudioKBitrate

音频发送码率 (Kbps),瞬时值

@property (assign, nonatomic) NSInteger txAudioKBitrate

Declared In

AgoraObjects.h

  rxAudioKBitrate

音频接收码率 (Kbps),瞬时值

@property (assign, nonatomic) NSInteger rxAudioKBitrate

Declared In

AgoraObjects.h

  txVideoKBitrate

视频发送码率 (Kbps),瞬时值

@property (assign, nonatomic) NSInteger txVideoKBitrate

Declared In

AgoraObjects.h

  rxVideoKBitrate

视频接收码率 (Kbps),瞬时值

@property (assign, nonatomic) NSInteger rxVideoKBitrate

Declared In

AgoraObjects.h

  lastmileDelay

Last mile 的延迟(ms)

@property (assign, nonatomic) NSInteger lastmileDelay

Declared In

AgoraObjects.h

  txPacketLossRate

使用抗丢包技术前,本地客户端到边缘服务器的丢包率,单位为 %

@property (assign, nonatomic) NSInteger txPacketLossRate

Declared In

AgoraObjects.h

  rxPacketLossRate

使用抗丢包技术前,边缘服务器到本地客户端的丢包率,单位为 %

@property (assign, nonatomic) NSInteger rxPacketLossRate

Declared In

AgoraObjects.h

  userCount

当前频道内的用户人数

@property (assign, nonatomic) NSInteger userCount

详情

  • 通信场景下,当前频道内的用户人数。
  • 直播场景下,如果本地用户为观众,为频道内的主播人数 + 1;如果本地用户为主播,为频道内的主播人数。

Declared In

AgoraObjects.h

  cpuAppUsage

当前 App 的 CPU 使用率 (%)

@property (assign, nonatomic) double cpuAppUsage

Declared In

AgoraObjects.h

  cpuTotalUsage

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

@property (assign, nonatomic) double cpuTotalUsage

Declared In

AgoraObjects.h

  gatewayRtt

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

@property (assign, nonatomic) NSInteger gatewayRtt

详情

Note: (仅 iOS)自 3.3.0 版本起,该属性默认在 iOS 14 之前的设备上开启,在 iOS 14 及之后的设备上关闭。如需在 iOS 14 及之后的设备上启用该属性,请提交工单联系声网技术支持。详见 FAQ

Declared In

AgoraObjects.h

  memoryAppUsageRatio

当前 App 的内存占比 (%)

@property (assign, nonatomic) double memoryAppUsageRatio

详情

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

Declared In

AgoraObjects.h

  memoryTotalUsageRatio

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

@property (assign, nonatomic) double memoryTotalUsageRatio

详情

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

Declared In

AgoraObjects.h

  memoryAppUsageInKbytes

当前 App 的内存大小 (KB)

@property (assign, nonatomic) NSInteger memoryAppUsageInKbytes

详情

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

Declared In

AgoraObjects.h