AgoraRtcRemoteVideoStats
- macOS
更新时间
远端视频流的统计信息。
__attribute__((visibility("default"))) @interface AgoraRtcRemoteVideoStats : NSObject
@property(assign, nonatomic) NSUInteger uid;
@property(assign, nonatomic) NSUInteger delay __deprecated;
@property(assign, nonatomic) NSUInteger e2eDelay;
@property(assign, nonatomic) NSUInteger width;
@property(assign, nonatomic) NSUInteger height;
@property(assign, nonatomic) NSUInteger receivedBitrate;
@property(assign, nonatomic) AgoraVideoStreamType rxStreamType;
@property(assign, nonatomic) NSInteger decoderOutputFrameRate;
@property(assign, nonatomic) NSInteger rendererOutputFrameRate;
@property(assign, nonatomic) NSInteger frameLossRate;
@property(assign, nonatomic) NSInteger packetLossRate;
@property(assign, nonatomic) NSInteger totalFrozenTime;
@property(assign, nonatomic) NSUInteger totalActiveTime;
@property(assign, nonatomic) NSInteger publishDuration;
@property(assign, nonatomic) NSInteger frozenRate;
@property(assign, nonatomic) NSInteger avSyncTimeMs;
@property(assign, nonatomic) NSInteger mosValue;
@property(assign, nonatomic) NSUInteger rxVideoBytes;
@end属性
| 参数名 | 描述 |
|---|---|
uid | 发送该视频流的远端用户 ID。 |
delay | 视频延迟(毫秒)。 注: 在音视频同步的场景中,你可以从 |
e2eDelay | 端到端的视频延迟(毫秒)。即从远端用户采集视频到本地用户接收并渲染视频的时间。 |
width | 视频的宽度(像素)。 |
height | 视频的高度(像素)。 |
receivedBitrate | 自上次统计以来接收到的远端视频码率(Kbps)。 |
rxStreamType | 视频流的类型。详见 AgoraVideoStreamType。 |
decoderOutputFrameRate | 远端视频解码的帧率(fps)。 |
rendererOutputFrameRate | 远端视频渲染的帧率(fps)。 |
frameLossRate | 远端视频的丢帧率(%)。 |
packetLossRate | 使用抗丢包技术后远端视频的丢包率(%)。 |
totalFrozenTime | 远端用户加入频道后远端视频流的总卡顿时长(毫秒)。在帧率不低于 5 fps 的视频通话中,若相邻两帧可渲染视频帧的时间间隔超过 500 毫秒,则视为视频卡顿。 |
totalActiveTime | 视频的总可用时长(毫秒)。只要远端用户在加入频道后未停止发送视频流或未关闭视频模块,视频即为可用状态。 |
publishDuration | 远端视频流的总时长(毫秒)。 |
frozenRate | 视频卡顿时长占视频总可用时长的百分比(%)。只要远端用户在加入频道后未停止发送视频流或未关闭视频模块,视频即为可用状态。 |
avSyncTimeMs | 音频领先视频的时间(毫秒)。 注: 如果该值为负数,表示音频落后于视频。 |
mosValue | 在统计周期内远端视频流的质量。该值由声网实时视频 MOS(Mean Opinion Score)算法评估,取值范围为 [0, 500]。将该值除以 100 可得 MOS 评分,范围为 0 到 5,分数越高表示视频质量越好。 注: 对于纹理视频数据,该参数始终返回 0。 |
rxVideoBytes | 接收到的视频字节总数(字节),为累计值。 |