5 #import <Foundation/Foundation.h>
10 NS_ASSUME_NONNULL_BEGIN
270 @property (nonatomic, nullable, strong) VIEW_CLASS *
container;
353 @property (nonatomic, assign) NSInteger minFrameRate;
416 @property (nonatomic, assign) NSInteger bitrate;
426 @property (nonatomic, assign) NSInteger minBitrate;
469 @property (nonatomic, assign)
int captureWidth;
490 @property (nonatomic, assign)
int captureHeight;
519 @property (nonatomic, assign)
int width;
537 @property (nonatomic, assign)
int height;
638 @property (nonatomic, copy) NSString *path;
652 @property (nonatomic, assign)
int loopCount;
662 @property (nonatomic, assign) BOOL sendEnabled;
672 @property (nonatomic, assign) BOOL playbackEnabled;
684 @property (nonatomic, assign) uint32_t sendVolume;
696 @property (nonatomic, assign) uint32_t playbackVolume;
729 @property (nonatomic, copy) NSString *path;
743 @property (nonatomic, assign)
int loopCount;
753 @property (nonatomic, assign) BOOL sendEnabled;
763 @property (nonatomic, assign) BOOL playbackEnabled;
775 @property (nonatomic, assign) uint32_t sendVolume;
787 @property (nonatomic, assign) uint32_t playbackVolume;
794 @property (nonatomic, copy) NSString *filePath;
797 @property (nonatomic, assign)
int sampleRate;
810 #pragma mark - live stream
833 @property (nonatomic, assign) BOOL singleVideoPassthrough;
846 @property (nonatomic, assign) NSInteger audioBitrate;
876 @property (nonatomic, assign) NSInteger channels;
912 @property (nonatomic, assign) uint64_t uid;
928 @property (nonatomic, assign) BOOL videoPush;
942 @property (nonatomic, assign) NSInteger x;
956 @property (nonatomic, assign) NSInteger y;
970 @property (nonatomic, assign) NSInteger width;
984 @property (nonatomic, assign) NSInteger height;
998 @property (nonatomic, assign) BOOL audioPush;
1008 @property (nonatomic, assign) NSInteger zOrder;
1040 @property (nonatomic, copy) NSString *url;
1054 @property (nonatomic, assign) NSInteger x;
1068 @property (nonatomic, assign) NSInteger y;
1080 @property (nonatomic, assign) NSInteger width;
1092 @property (nonatomic, assign) NSInteger height;
1114 @property (nonatomic, assign) NSInteger width;
1124 @property (nonatomic, assign) NSInteger height;
1134 @property (nonatomic, assign) NSUInteger backgroundColor;
1144 @property (nonatomic, strong) NSArray<NERtcLiveStreamUserTranscoding *> * users;
1176 @property (nonatomic, copy) NSString *taskID;
1188 @property (nonatomic, copy) NSString *streamURL;
1198 @property (nonatomic, assign) BOOL serverRecordEnabled;
1238 @property (nonatomic, nullable, copy) NSString *extraInfo;
1253 #pragma mark -- Audio Frame Observer
1278 @property (nonatomic, assign) uint32_t channels;
1288 @property (nonatomic, assign) uint32_t sampleRate;
1333 @property (nonatomic, assign) uint32_t channels;
1343 @property (nonatomic, assign) uint32_t sampleRate;
1353 @property (nonatomic, assign) uint32_t bytesPerSample;
1363 @property (nonatomic, assign) uint32_t samplesPerChannel;
1395 @property (nonatomic, assign)
void* data;
1400 #pragma mark - Volume info
1420 @property (nonatomic, assign) uint64_t uid;
1430 @property (nonatomic, assign)
unsigned int volume;
1434 #pragma mark - Video Frame
1464 @property(nonatomic, assign) uint64_t timestamp;
1474 @property(nonatomic, assign) uint32_t width;
1484 @property(nonatomic, assign) uint32_t height;
1504 @property(nonatomic)
void * buffer;
1514 @property(nonatomic, strong) NSArray<NSNumber *> *strides;
1518 #pragma mark- MediaRelay
1538 @property (nonatomic, copy)NSString *channelName;
1547 @property (nonatomic, copy)NSString *token;
1556 @property (nonatomic, assign)uint64_t uid;
1576 @property(nonatomic, strong, readonly)NSDictionary<NSString *, NERtcChannelMediaRelayInfo *> * _Nullable destinationInfos;
1610 - (BOOL)setDestinationInfo:(
NERtcChannelMediaRelayInfo *_Nonnull)destinationInfo forChannelName:(NSString *_Nonnull)channelName;
1624 - (BOOL)removeDestinationInfoForChannelName:(NSString *_Nonnull)channelName;
1628 #pragma mark - watermark
1655 @property (nonatomic, copy, nullable) NSString *content;
1665 @property (nonatomic, assign) CGFloat fontSize;
1675 @property (nonatomic, strong, nullable) UIColor *fontColor;
1685 @property (nonatomic, strong, nullable) UIColor *wmColor;
1695 @property (nonatomic, assign) CGRect frame;
1721 @property (nonatomic, assign) CGFloat fontSize;
1731 @property (nonatomic, strong) UIColor *fontColor;
1741 @property (nonatomic, assign) CGRect frame;
1751 @property (nonatomic, strong) UIColor *wmColor;
1775 @property (nonatomic, strong, nullable) NSArray<UIImage *> *images;
1785 @property (nonatomic, assign) NSUInteger fps;
1795 @property (nonatomic, assign) BOOL loop;
1805 @property (nonatomic, assign) CGRect frame;
1829 @property (nonatomic, strong, nullable) NSArray<NERtcTextWatermarkConfig *> *textWatermarks;
1849 @property (nonatomic, strong, nullable) NSArray<NERtcImageWatermarkConfig *> *imageWaterMarks;
1881 @property (nonatomic, copy, nullable) NSString *key;
1884 #pragma mark - privatization
1906 @property (nonatomic, copy, nullable) NSString *channelServer;
1916 @property (nonatomic, copy, nullable) NSString *statisticsServer;
1926 @property (nonatomic, copy, nullable) NSString *roomServer;
1936 @property (nonatomic, copy, nullable) NSString *compatServer;
1946 @property (nonatomic, copy, nullable) NSString *nosLbsServer;
1956 @property (nonatomic, copy, nullable) NSString *nosUploadSever;
1966 @property (nonatomic, copy, nullable) NSString *nosTokenServer;
1976 @property (nonatomic, assign) BOOL useIPv6;
1981 @property (nonatomic, copy, nullable) NSString *cloudProxyServer;
1986 @property (nonatomic, copy, nullable) NSString *webSocketProxyServer;
1991 @property (nonatomic, copy, nullable) NSString *quicProxyServer;
1996 @property (nonatomic, copy, nullable) NSString *mediaProxyServer;
2000 #pragma mark - NERtcLastmileProbeConfig
2026 @property(nonatomic, assign) BOOL probeUplink;
2040 @property(nonatomic, assign) BOOL probeDownlink;
2054 @property(nonatomic, assign) NSUInteger expectedUplinkBitrate;
2065 @property(nonatomic, assign) NSUInteger expectedDownlinkBitrate;
2069 #pragma mark - NERtcLastmileProbeOneWayResult
2089 @property(nonatomic, assign) NSUInteger packetLossRate;
2099 @property(nonatomic, assign) NSUInteger jitter;
2109 @property(nonatomic, assign) NSUInteger availableBandwidth;
2113 #pragma mark - NERtcLastmileProbeResult
2143 @property(nonatomic, assign) NSUInteger rtt;
2167 #pragma mark -- Log setting
2187 @property (nonatomic, copy) NSString *logDir;
2201 #pragma mark - Video Correction Config
2206 @property (nonatomic, assign) CGPoint topLeft;
2209 @property (nonatomic, assign) CGPoint topRight;
2212 @property (nonatomic, assign) CGPoint bottomLeft;
2215 @property (nonatomic, assign) CGPoint bottomRight;
2218 @property (nonatomic, assign) CGFloat canvasWidth;
2221 @property (nonatomic, assign) CGFloat canvasHeight;
2224 @property (nonatomic, assign) BOOL enableMirror;
2228 NS_ASSUME_NONNULL_END
NSString *const kNERtcKeyAutoSubscribeAudio
是否自动订阅其他用户的音频流。 布尔值,默认为 YES,即自动订阅。
NSString *const kNERtcKeyRecordType
云端录制模式。详细信息请参考 NERtcRecordType。
NSString *const kNERtcKeyRecordVideoEnabled
是否开启云端视频录制,默认值 NO,即关闭视频录制。
FOUNDATION_EXPORT uint32_t const NERtcAudioMixingDefaultVolume
Definition: NERtcEngineBase.h:621
NSString *const kNERtcKeyVideoCaptureObserverEnabled
是否需要开启视频数据采集回调,开启后开发者可以获取到原始视频数据。 布尔值,默认值 NO。 开启后如果需要关闭,需要通过调用 destroyEngine 来清除。
NSString *const KNERtcKeyAudioAINSEnable
是否开启 AI 降噪。 NERTC SDK 自研 AI 降噪算法,开启 AI 降噪之后,在嘈杂的环境中可以针对背景人声、键盘声等非稳态噪声进行定向降噪,同时也会提升对于环境稳态噪声的抑制,保留更纯粹的...
FOUNDATION_EXPORT uint32_t const NERtcAudioMixingMaxVolume
Definition: NERtcEngineBase.h:620
NSString *const KNERtcKeyEnableReportVolumeWhenMute
本地用户静音时是否返回原始音量。 布尔值,默认值为 false。
NSString *const kNERtcKeyExtraInfo
Login 事件中的一个自定义字段,适用于标识一些额外信息,例如 App 版本。
NSString *const kNERtcKeyVideoStartWithBackCamera
第一次开启摄像头时,是否使用后摄像头。 布尔值,默认值 NO,即不使用后置摄像头。
NSString *const kNERtcKeyVideoPreferHWEncode
是否优先使用硬件编码视频数据。 布尔值,默认值 YES。 请在初始化(setupEngineWithContext)之前设置该参数,否则该参数会在下次初始化之后生效。
NSString *const kNERtcKeyVideoPreferMetalRender
是否优先使用 Metal 渲染。 布尔值,默认值 NO,即使用OpenGL 渲染。
NSString *const kNERtcKeyVideoSendOnPubType
通话开始时,默认发送的流类型,通话前设置有效。 int 类型,默认为 3,即大流。详细信息请参考 NERtcVideoPubMode。
NSString *const KNERtcKeyDisableOverrideSpeakerOnReceiver
当系统切换听筒或扬声器时,SDK 是否以系统设置为准。 布尔值,默认为 NO。
NSString *const kNERtcKeyPublishSelfStreamEnabled
在旁路推流场景中,是否允许推送本地媒体流到 CDN。默认值 YES。
NSString *const KNERtcKeyDisableSWAECOnHeadset
设置耳机时不使用软件回声消除功能,默认值 NO。如设置YES 则SDK在耳机模式下不使用软件回声消除功能,会对某些机型下 耳机的音质效果有影响
NSString *const kNERtcKeyLogLevel
SDK 日志等级,默认为 kNERtcLogLevelInfo,详细信息请参考 NERtcLogLevel。
NSString *const kNERtcKeyRecordHostEnabled
是否云端录制主讲人,默认值 NO
NSString *const kNERtcKeyVideoPreferHWDecode
是否优先使用硬件解码视频数据。 布尔值,默认值 YES。 请在初始化(setupEngineWithContext)之前设置该参数,否则该参数会在下次初始化之后生效。
NSString *const kNERtcKeyAutoSubscribeVideo
是否自动订阅其他用户的视频流。 布尔值,默认值 NO,即不自动订阅。
NSString *const kNERtcKeyRecordAudioEnabled
是否开启云端音频录制。默认值 NO,即关闭音频录制。
NS_ASSUME_NONNULL_BEGIN NSString *const kNERtcKeyChannel1V1ModeEnabled
以下 key 用于 INERtcEngine::setParameters
NERtcLiveStreamMode
直播推流模式。
Definition: NERtcEngineEnum.h:2198
NERtcVideoCropMode
视频裁剪模式
Definition: NERtcEngineEnum.h:843
NERtcLastmileProbeResultState
Last mile 质量探测结果的状态。
Definition: NERtcEngineEnum.h:2734
NERtcLogLevel
日志级别。
Definition: NERtcEngineEnum.h:2804
NERtcVideoFormatType
视频格式类型
Definition: NERtcEngineEnum.h:975
NERtcLiveStreamVideoScaleMode
直播推流模式。
Definition: NERtcEngineEnum.h:2227
NERtcSubStreamContentPrefer
屏幕共享功能的编码策略倾向
Definition: NERtcEngineEnum.h:576
NERtcLiveStreamAudioCodecProfile
直播推流音频编码规格。
Definition: NERtcEngineEnum.h:2169
NERtcAudioRecordingQuality
录音音质。
Definition: NERtcEngineEnum.h:1384
NERtcAudioRecordingPosition
Definition: NERtcEngineEnum.h:1474
NERtcVideoOutputOrientationMode
视频旋转方向模式。
Definition: NERtcEngineEnum.h:795
NERtcVideoProfileType
视频 profile 类型。
Definition: NERtcEngineEnum.h:361
NERtcCameraPreference
摄像头采集偏好。
Definition: NERtcEngineEnum.h:323
NERtcAudioType
音频类型
Definition: NERtcEngineEnum.h:2297
NERtcVideoMirrorMode
视频镜像模式。
Definition: NERtcEngineEnum.h:757
NERtcAudioFrameOpMode
音频数据读写模式
Definition: NERtcEngineEnum.h:2317
NERtcEncryptionMode
加密模式
Definition: NERtcEngineEnum.h:2713
NERtcAudioRecordingCycleTime
Definition: NERtcEngineEnum.h:1483
NERtcDegradationPreference
带宽受限时视频编码适应性偏好
Definition: NERtcEngineEnum.h:525
NERtcLiveStreamAudioSampleRate
直播推流音频采样率。
Definition: NERtcEngineEnum.h:2131
NERtcVideoFrameRate
视频帧率。
Definition: NERtcEngineEnum.h:439
NERtcVideoRenderScaleMode
视频渲染缩放模式。
Definition: NERtcEngineEnum.h:689
NERtcVideoRotationType
视频数据的旋转方向
Definition: NERtcEngineEnum.h:928
音频帧。
Definition: NERtcEngineBase.h:1376
Definition: NERtcEngineBase.h:792
声音音量信息。
Definition: NERtcEngineBase.h:1411
本地视频基础发送配置。
Definition: NERtcEngineBase.h:316
摄像头采集配置。
Definition: NERtcEngineBase.h:439
画布水印设置。 同时设置文字、时间戳或图片水印时,如果不同类型的水印位置有重叠,会按照图片、文本、时间戳的顺序进行图层覆盖。
Definition: NERtcEngineBase.h:1820
Options for creating audio effects
Definition: NERtcEngineBase.h:716
Options for creating mixing audios
Definition: NERtcEngineBase.h:625
配置媒体流加密模式和密钥。
Definition: NERtcEngineBase.h:1862
图片水印设置参数。 支持设置 4 个图片水印。
Definition: NERtcEngineBase.h:1766
Last mile 网络探测配置。
Definition: NERtcEngineBase.h:2011
单向 Last mile 网络质量探测结果报告。
Definition: NERtcEngineBase.h:2080
上下行 Last mile 网络质量探测结果。
Definition: NERtcEngineBase.h:2124
音视频流编码参数等设置
Definition: NERtcEngineBase.h:820
图片布局。
Definition: NERtcEngineBase.h:1031
直播布局。
Definition: NERtcEngineBase.h:1105
直播推流任务的配置。
Definition: NERtcEngineBase.h:1167
直播成员布局。
Definition: NERtcEngineBase.h:903
日志相关设置。
Definition: NERtcEngineBase.h:2178
私有化服务器配置项
Definition: NERtcEngineBase.h:1897
文字水印设置参数。 最多可添加 10 个文字水印。
Definition: NERtcEngineBase.h:1641
时间戳水印。
Definition: NERtcEngineBase.h:1712
视频画布设置。
Definition: NERtcEngineBase.h:251
id< NERtcEngineVideoRenderSink > externalVideoRender
外部渲染器。
Definition: NERtcEngineBase.h:304
BOOL useExternalRender
是否使用外部渲染器,默认 NO 不使用,若使用SDK内部会根据externalVideoRender来进行绑定,若不使用SDK内部根据container来进行绑定。暂不支持在通话中切换内部渲染与外部渲染...
Definition: NERtcEngineBase.h:260
NERtcVideoRenderScaleMode renderMode
视频渲染模式。
Definition: NERtcEngineBase.h:280
VIEW_CLASS * container
视频窗口容器(SDK内部渲染)。
Definition: NERtcEngineBase.h:270
NERtcVideoMirrorMode mirrorMode
视频镜像模式。
Definition: NERtcEngineBase.h:294
Definition: NERtcEngineBase.h:2204
本地视频发送配置
Definition: NERtcEngineBase.h:502
视频帧信息。
Definition: NERtcEngineBase.h:1445
本地辅流发送配置。
Definition: NERtcEngineBase.h:607
外部视频渲染。
Definition: NERtcEngineDelegate.h:422