NERtc iOS SDK V5.6.20
载入中...
搜索中...
未找到
NERtcEngineStatistics.h
浏览该文件的文档.
1/*
2 * Copyright (c) 2021 NetEase, Inc. All rights reserved.
3 */
4
5#import <Foundation/Foundation.h>
6#import "NERtcEngineEnum.h"
7
8#pragma clang diagnostic push
9#pragma clang diagnostic ignored "-Wdocumentation"
10
11
12NS_ASSUME_NONNULL_BEGIN
13
22NERTC_EXPORT @interface NERtcStats : NSObject
23
24
33@property (nonatomic, assign) int64_t txBytes;
34
43@property (nonatomic, assign) int64_t rxBytes;
44
53@property (nonatomic, assign) uint32_t cpuAppUsage;
54
63@property (nonatomic, assign) uint32_t cpuTotalUsage;
64
73@property (nonatomic, assign) uint32_t memoryAppUsageRatio;
74
83@property (nonatomic, assign) uint32_t memoryTotalUsageRatio;
84
93@property (nonatomic, assign) uint32_t memoryAppUsageInKBytes;
94
103@property (nonatomic, assign) uint64_t totalDuration;
104
113@property (nonatomic, assign) uint64_t txAudioBytes;
114
123@property (nonatomic, assign) uint64_t txVideoBytes;
124
125
134@property (nonatomic, assign) uint64_t rxAudioBytes;
135
136
145@property (nonatomic, assign) uint64_t rxVideoBytes;
146
155@property (nonatomic, assign) uint64_t rxAudioKBitRate;
156
165@property (nonatomic, assign) uint64_t rxVideoKBitRate;
166
175@property (nonatomic, assign) uint64_t txAudioKBitRate;
176
185@property (nonatomic, assign) uint64_t txVideoKBitRate;
186
195@property (nonatomic, assign) uint64_t upRtt;
196
205@property (nonatomic, assign) uint64_t downRtt;
206
215@property (nonatomic, assign) uint32_t txAudioPacketLossRate;
216
225@property (nonatomic, assign) uint32_t txVideoPacketLossRate;
226
235@property (nonatomic, assign) uint32_t txAudioPacketLossSum;
236
245@property (nonatomic, assign) uint32_t txVideoPacketLossSum;
246
255@property (nonatomic, assign) uint32_t txAudioJitter;
256
265@property (nonatomic, assign) uint32_t txVideoJitter;
266
275@property (nonatomic, assign) uint32_t rxAudioPacketLossRate;
276
285@property (nonatomic, assign) uint32_t rxVideoPacketLossRate;
286
295@property (nonatomic, assign) uint64_t rxAudioPacketLossSum;
296
305@property (nonatomic, assign) uint32_t rxVideoPacketLossSum;
306
316@property (nonatomic, assign) uint32_t rxAudioJitter;
317
326@property (nonatomic, assign) uint32_t rxVideoJitter;
327@end
328
338
347@property (nonatomic, assign) int32_t layerType;
348
357@property (nonatomic, assign) int32_t width;
358
367@property (nonatomic, assign) int32_t height;
368
377@property (nonatomic, assign) int32_t captureWidth;
378
387@property (nonatomic, assign) int32_t captureHeight;
388
397@property (nonatomic, assign) int64_t sendBitrate;
398
407@property (nonatomic, assign) int32_t encoderOutputFrameRate;
408
417@property (nonatomic, assign) int32_t captureFrameRate;
418
427@property (nonatomic, assign) int32_t targetBitrate;
428
437@property (nonatomic, assign) int32_t encoderBitrate;
438
447@property (nonatomic, assign) int32_t sentFrameRate;
448
457@property (nonatomic, assign) int32_t renderFrameRate;
458
467@property (nonatomic, copy) NSString *encoderName;
468
477@property (nonatomic, assign) BOOL dropBwStrategyEnabled;
478
479@end
480
490
499@property (nonatomic, strong)NSArray<NERtcVideoLayerSendStats *> *videoLayers;
500
501@end
502
512
521@property (nonatomic, assign) int32_t layerType;
522
531@property (nonatomic, assign) int32_t width;
532
541@property (nonatomic, assign) int32_t height;
542
551@property (nonatomic, assign) int64_t receivedBitrate;
552
562@property (nonatomic, assign) int32_t fps;
563
572@property (nonatomic, assign) int32_t packetLossRate;
573
582@property (nonatomic, assign) int32_t decoderOutputFrameRate;
583
592@property (nonatomic, assign) int32_t rendererOutputFrameRate;
593
602@property (nonatomic, assign) int64_t totalFrozenTime;
603
612@property (nonatomic, assign) int32_t frozenRate;
613
622@property (nonatomic, copy) NSString *decoderName;
623
632@property(nonatomic, assign) int32_t peerToPeerDelay;
633
634@end
635
645
654@property (nonatomic, assign) uint64_t uid;
655
664@property (nonatomic, strong) NSArray<NERtcVideoLayerRecvStats *> *videoLayers;
665
666@end
667
668
678
687@property (nonatomic, assign) NERtcAudioStreamType streamType;
688
689
698@property (nonatomic, assign) int64_t sentBitrate;
699
708@property (nonatomic, assign) int16_t lossRate;
709
718@property (nonatomic, assign) int64_t rtt;
719
728@property (nonatomic, assign) int volume;
729
739@property (nonatomic, assign) int capVolume;
740
749@property (nonatomic, assign) int16_t numChannels;
750
759@property (nonatomic, assign) int32_t sentSampleRate;
760@end
761
762
772
781@property (nonatomic, strong)NSArray<NERtcAudioLayerSendStats *> *audioLayers;
782@end
783
793
800@property (nonatomic, assign) NERtcAudioStreamType streamType;
801
810@property (nonatomic, assign) int64_t receivedBitrate;
811
812
821@property (nonatomic, assign) int16_t audioLossRate;
822
831@property (nonatomic, assign) int volume;
832
841@property (nonatomic, assign) int64_t totalFrozenTime;
842
851@property (nonatomic, assign) int32_t frozenRate;
852
862@property (nonatomic, assign) int32_t avTimeStampDiff;
863
872@property(nonatomic, assign) int32_t peerToPeerDelay;
873
874@end
875
876
886
895@property (nonatomic, assign) uint64_t uid;
896
897
906@property (nonatomic, strong)NSArray<NERtcAudioLayerRecvStats *> *audioLayers;
907@end
908
909
919
928@property (nonatomic, assign) uint64_t userId;
929
938@property (nonatomic, assign) NERtcNetworkQuality txQuality;
939
948@property (nonatomic, assign) NERtcNetworkQuality rxQuality;
949
950@end
951
960@protocol NERtcEngineMediaStatsObserver<NSObject>
961
962@optional
963
976-(void)onRtcStats:(NERtcStats *)stat;
977
990- (void)onLocalAudioStat:(NERtcAudioSendStats *)stat;
991
1004- (void)onRemoteAudioStats:(NSArray<NERtcAudioRecvStats*> *)stats;
1005
1020-(void)onLocalVideoStat:(NERtcVideoSendStats *)stat;
1021
1036- (void)onRemoteVideoStats:(NSArray<NERtcVideoRecvStats*> *)stats;
1037
1050 - (void)onNetworkQuality:(NSArray<NERtcNetworkQualityStats *> *)stats;
1051
1052@end
1053
1062@protocol NERtcChannelMediaStatsObserver<NERtcEngineMediaStatsObserver>
1063@end
1064
1065
1066
1067NS_ASSUME_NONNULL_END
1068
1069#pragma clang diagnostic pop
NERtcNetworkQuality
网络质量类型。
Definition NERtcEngineEnum.h:3197
#define NERTC_EXPORT
Definition NERtcEngineEnum.h:12
NERtcAudioStreamType
音频流类型,目前同时支持音频两路流:主流和辅流
Definition NERtcEngineEnum.h:1738
远端用户的音频统计。
Definition NERtcEngineStatistics.h:793
本地音频流上传统计信息。
Definition NERtcEngineStatistics.h:678
远端用户的音频统计。
Definition NERtcEngineStatistics.h:886
本地音频流上传统计信息。
Definition NERtcEngineStatistics.h:772
用户的网络质量
Definition NERtcEngineStatistics.h:919
通话相关的统计信息
Definition NERtcEngineStatistics.h:23
uint32_t txAudioJitter
本地上行音频抖动 (ms)
Definition NERtcEngineStatistics.h:255
uint32_t rxVideoPacketLossSum
本地下行视频丢包数
Definition NERtcEngineStatistics.h:305
uint32_t txAudioPacketLossSum
本地上行音频丢包数
Definition NERtcEngineStatistics.h:235
uint32_t memoryAppUsageRatio
当前 App 的内存占比 (%) , 占最大可用内存
Definition NERtcEngineStatistics.h:73
uint32_t rxVideoJitter
本地下行视频抖动 (ms)
Definition NERtcEngineStatistics.h:326
uint64_t txAudioKBitRate
音频发送码率(kbps)
Definition NERtcEngineStatistics.h:175
uint32_t txVideoPacketLossRate
本地上行视频实际丢包率(%)
Definition NERtcEngineStatistics.h:225
uint64_t rxVideoBytes
自加入房间后累计的接收的视频字节数(Byte)
Definition NERtcEngineStatistics.h:145
int64_t rxBytes
接收字节数(bytes),累计值
Definition NERtcEngineStatistics.h:43
uint32_t txAudioPacketLossRate
本地上行音频丢包率(%)
Definition NERtcEngineStatistics.h:215
uint32_t rxVideoPacketLossRate
本地下行视频丢包率(%)
Definition NERtcEngineStatistics.h:285
uint64_t txVideoBytes
自加入房间后累计的发送的视频字节数(Byte)
Definition NERtcEngineStatistics.h:123
uint32_t cpuAppUsage
当前 App 的 CPU 使用率 (%)
Definition NERtcEngineStatistics.h:53
uint32_t txVideoPacketLossSum
本地上行视频丢包数
Definition NERtcEngineStatistics.h:245
uint32_t memoryAppUsageInKBytes
当前 App 的内存大小 (KB)
Definition NERtcEngineStatistics.h:93
uint32_t cpuTotalUsage
当前系统的 CPU 使用率 (%)
Definition NERtcEngineStatistics.h:63
int64_t txBytes
发送字节数(bytes),累计值
Definition NERtcEngineStatistics.h:33
uint64_t rxAudioBytes
自加入房间后累计的接收的音频字节数(Byte)
Definition NERtcEngineStatistics.h:134
uint64_t rxAudioPacketLossSum
本地下行音频丢包数
Definition NERtcEngineStatistics.h:295
uint64_t downRtt
下行平均往返时延(ms)
Definition NERtcEngineStatistics.h:205
uint64_t totalDuration
自加入房间的通话时长, 退出后再加入重新计时 ( 单位:S)
Definition NERtcEngineStatistics.h:103
uint64_t rxAudioKBitRate
音频接收码率(kbps)
Definition NERtcEngineStatistics.h:155
uint64_t txAudioBytes
自加入房间后累计的发送的音频字节数(Byte)
Definition NERtcEngineStatistics.h:113
uint64_t txVideoKBitRate
视频发送码率(kbps)
Definition NERtcEngineStatistics.h:185
uint32_t rxAudioJitter
本地下行音频抖动 (ms)
Definition NERtcEngineStatistics.h:316
uint64_t upRtt
上行平均往返时延(ms)
Definition NERtcEngineStatistics.h:195
uint64_t rxVideoKBitRate
视频接收码率(kbps)
Definition NERtcEngineStatistics.h:165
uint32_t txVideoJitter
本地上行视频抖动 (ms)
Definition NERtcEngineStatistics.h:265
uint32_t rxAudioPacketLossRate
本地下行音频丢包率(%)
Definition NERtcEngineStatistics.h:275
uint32_t memoryTotalUsageRatio
当前系统的内存占比 (%)
Definition NERtcEngineStatistics.h:83
每条流的接收下行统计信息
Definition NERtcEngineStatistics.h:512
本地视频单条流统计信息
Definition NERtcEngineStatistics.h:338
远端视频流的统计信息
Definition NERtcEngineStatistics.h:645
本地视频流上传统计信息
Definition NERtcEngineStatistics.h:490