Agora Objective-C API Reference for iOS/macOS

AgoraChannelStats Class Reference

Inherits from NSObject
Declared in AgoraObjects.h

Overview

Statistics of the channel

  duration

Call duration (s), represented by an aggregate value.

@property (assign, nonatomic) NSInteger duration

Declared In

AgoraObjects.h

  txBytes

Total number of bytes transmitted, represented by an aggregate value.

@property (assign, nonatomic) NSInteger txBytes

Declared In

AgoraObjects.h

  rxBytes

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

@property (assign, nonatomic) NSInteger rxBytes

Declared In

AgoraObjects.h

  txAudioKBitrate

Audio packet transmission bitrate (Kbps), represented by an instantaneous value.

@property (assign, nonatomic) NSInteger txAudioKBitrate

Declared In

AgoraObjects.h

  rxAudioKBitrate

Audio receive bitrate (Kbps), represented by an instantaneous value.

@property (assign, nonatomic) NSInteger rxAudioKBitrate

Declared In

AgoraObjects.h

  txVideoKBitrate

Video transmission bitrate (Kbps), represented by an instantaneous value.

@property (assign, nonatomic) NSInteger txVideoKBitrate

Declared In

AgoraObjects.h

  rxVideoKBitrate

Video receive bitrate (Kbps), represented by an instantaneous value.

@property (assign, nonatomic) NSInteger rxVideoKBitrate

Declared In

AgoraObjects.h

  lastmileDelay

Client-server latency (ms)

@property (assign, nonatomic) NSInteger lastmileDelay

Declared In

AgoraObjects.h

  txPacketLossRate

The packet loss rate (%) from the local client to Agora’s edge server.

@property (assign, nonatomic) NSInteger txPacketLossRate

Declared In

AgoraObjects.h

  rxPacketLossRate

The packet loss rate (%) from Agora’s edge server to the local client.

@property (assign, nonatomic) NSInteger rxPacketLossRate

Declared In

AgoraObjects.h

  userCount

Number of users in the channel.

@property (assign, nonatomic) NSInteger userCount

Discussion

  • Communication profile: The number of users in the channel.
  • Live broadcast profile:

    • If the local user is an audience: The number of users in the channel = The number of hosts in the channel + 1.
    • If the user is a host: The number of users in the channel = The number of hosts in the channel.

Declared In

AgoraObjects.h

  cpuAppUsage

Application CPU usage (%).

@property (assign, nonatomic) double cpuAppUsage

Declared In

AgoraObjects.h

  cpuTotalUsage

System CPU usage (%).

@property (assign, nonatomic) double cpuTotalUsage

Declared In

AgoraObjects.h

Is this page helpful?