Agora RTC Objective-C API Reference Refactor

Properties
AgoraChannelStats Class Reference

Inherits <NSObject>.

## Properties
NSUInteger | duration
NSUInteger | txBytes
NSUInteger | rxBytes
NSUInteger | txAudioKBitrate
NSUInteger | rxAudioKBitrate
NSUInteger | txVideoKBitrate
NSUInteger | rxVideoKBitrate
NSUInteger | txAudioBytes
NSUInteger | txVideoBytes
NSUInteger | rxAudioBytes
NSUInteger | rxVideoBytes
NSUInteger | lastmileDelay
NSUInteger | userCount
double | cpuAppUsage
double | cpuTotalUsage
NSInteger | gatewayRtt
double | memoryAppUsageRatio
double | memoryTotalUsageRatio
NSInteger | memoryAppUsageInKbytes
NSInteger | connectTimeMs
NSUInteger | txKBitrate
NSUInteger | rxKBitrate
NSInteger | firstAudioPacketDuration
NSInteger | firstVideoPacketDuration
NSInteger | firstVideoKeyFramePacketDuration
NSInteger | packetsBeforeFirstKeyFramePacket
NSInteger | txPacketLossRate
NSInteger | rxPacketLossRate

## Detailed Description

The Statistics of the channel.

## Property Documentation

## ◆ duration

- (NSUInteger) duration
| read write nonatomic assign

The call duration in seconds, represented by an aggregate value.

## ◆ txBytes

- (NSUInteger) txBytes
| read write nonatomic assign

The total number of bytes transmitted, represented by an aggregate value.

## ◆ rxBytes

- (NSUInteger) rxBytes
| read write nonatomic assign

The total number of bytes received, represented by an aggregate value.

## ◆ txAudioKBitrate

- (NSUInteger) txAudioKBitrate
| read write nonatomic assign

The audio transmission bitrate in Kbps, represented by an instantaneous value.

## ◆ rxAudioKBitrate

- (NSUInteger) rxAudioKBitrate
| read write nonatomic assign

The audio receiving bitrate in Kbps, represented by an instantaneous value.

## ◆ txVideoKBitrate

- (NSUInteger) txVideoKBitrate
| read write nonatomic assign

The video transmission bitrate in Kbps, represented by an instantaneous value.

## ◆ rxVideoKBitrate

- (NSUInteger) rxVideoKBitrate
| read write nonatomic assign

The video receiving bitrate in Kbps, represented by an instantaneous value.

## ◆ txAudioBytes

- (NSUInteger) txAudioBytes
| read write nonatomic assign

Total number of audio bytes sent (bytes), represented by an aggregate value.

## ◆ txVideoBytes

- (NSUInteger) txVideoBytes
| read write nonatomic assign

Total number of video bytes sent (bytes), represented by an aggregate value.

## ◆ rxAudioBytes

- (NSUInteger) rxAudioBytes
| read write nonatomic assign

Total number of audio bytes received (bytes) before network countermeasures, represented by an aggregate value.

## ◆ rxVideoBytes

- (NSUInteger) rxVideoBytes
| read write nonatomic assign

Total number of video bytes received (bytes), represented by an aggregate value.

## ◆ lastmileDelay

- (NSUInteger) lastmileDelay
| read write nonatomic assign

The client-server latency (ms).

## ◆ userCount

- (NSUInteger) userCount
| read write nonatomic assign

The number of users in the channel.

## ◆ cpuAppUsage

- (double) cpuAppUsage
| read write nonatomic assign

Application CPU usage (%).

## ◆ cpuTotalUsage

- (double) cpuTotalUsage
| read write nonatomic assign

System CPU usage (%).

## ◆ gatewayRtt

- (NSInteger) gatewayRtt
| read write nonatomic assign

Gateway Rtt.

## ◆ memoryAppUsageRatio

- (double) memoryAppUsageRatio
| read write nonatomic assign

The memory usage ratio of the app (%).

## ◆ memoryTotalUsageRatio

- (double) memoryTotalUsageRatio
| read write nonatomic assign

The memory usage ratio of the system (%).

## ◆ memoryAppUsageInKbytes

- (NSInteger) memoryAppUsageInKbytes
| read write nonatomic assign

The memory usage of the app (KB).

## ◆ connectTimeMs

- (NSInteger) connectTimeMs
| read write nonatomic assign

The time interval (ms) between establishing the connection and the connection succeeds, 0 if not valid.

## ◆ txKBitrate

- (NSUInteger) txKBitrate
| read write nonatomic assign

The transmission bitrate in Kbps, represented by an instantaneous value.

## ◆ rxKBitrate

- (NSUInteger) rxKBitrate
| read write nonatomic assign

The receiving bitrate in Kbps, represented by an instantaneous value.

## ◆ firstAudioPacketDuration

- (NSInteger) firstAudioPacketDuration
| read write nonatomic assign

The duration(ms) between first audio packet received and connection start, 0 if not valid

## ◆ firstVideoPacketDuration

- (NSInteger) firstVideoPacketDuration
| read write nonatomic assign

The duration(ms) between first video packet received and connection start, 0 if not valid

## ◆ firstVideoKeyFramePacketDuration

- (NSInteger) firstVideoKeyFramePacketDuration
| read write nonatomic assign

The duration(ms) between first video key frame received and connection start, 0 if not valid

## ◆ packetsBeforeFirstKeyFramePacket

- (NSInteger) packetsBeforeFirstKeyFramePacket
| read write nonatomic assign

Video packet number before first video key frame received, 0 if not valid

## ◆ txPacketLossRate

- (NSInteger) txPacketLossRate
| read write nonatomic assign

The packet loss rate of sender(broadcaster).

## ◆ rxPacketLossRate

- (NSInteger) rxPacketLossRate
| read write nonatomic assign

The packet loss rate of receiver(audience).