5 #import <Foundation/Foundation.h>
10 NS_ASSUME_NONNULL_BEGIN
280 @property (nonatomic, nullable, strong) VIEW_CLASS *
container;
363 @property (nonatomic, assign) NSInteger minFrameRate;
426 @property (nonatomic, assign) NSInteger bitrate;
436 @property (nonatomic, assign) NSInteger minBitrate;
470 @property (nonatomic, assign)
int captureWidth;
491 @property (nonatomic, assign)
int captureHeight;
520 @property (nonatomic, assign)
int width;
538 @property (nonatomic, assign)
int height;
640 @property (nonatomic, copy) NSString *path;
654 @property (nonatomic, assign)
int loopCount;
664 @property (nonatomic, assign) BOOL sendEnabled;
674 @property (nonatomic, assign) BOOL playbackEnabled;
686 @property (nonatomic, assign) uint32_t sendVolume;
698 @property (nonatomic, assign) uint32_t playbackVolume;
708 @property (nonatomic, assign) int64_t startTimeStamp;
751 @property (nonatomic, copy) NSString *path;
765 @property (nonatomic, assign)
int loopCount;
775 @property (nonatomic, assign) BOOL sendEnabled;
785 @property (nonatomic, assign) BOOL playbackEnabled;
797 @property (nonatomic, assign) uint32_t sendVolume;
809 @property (nonatomic, assign) uint32_t playbackVolume;
816 @property (nonatomic, copy) NSString *filePath;
819 @property (nonatomic, assign)
int sampleRate;
832 #pragma mark - live stream
851 @property (nonatomic, assign) BOOL interruptedPlaceImage;
865 @property (nonatomic, assign) BOOL singleVideoPassthrough;
878 @property (nonatomic, assign) NSInteger audioBitrate;
908 @property (nonatomic, assign) NSInteger channels;
944 @property (nonatomic, assign) uint64_t uid;
960 @property (nonatomic, assign) BOOL videoPush;
974 @property (nonatomic, assign) NSInteger x;
988 @property (nonatomic, assign) NSInteger y;
1002 @property (nonatomic, assign) NSInteger width;
1016 @property (nonatomic, assign) NSInteger height;
1030 @property (nonatomic, assign) BOOL audioPush;
1040 @property (nonatomic, assign) NSInteger zOrder;
1072 @property (nonatomic, copy) NSString *url;
1086 @property (nonatomic, assign) NSInteger x;
1100 @property (nonatomic, assign) NSInteger y;
1112 @property (nonatomic, assign) NSInteger width;
1124 @property (nonatomic, assign) NSInteger height;
1135 @property (nonatomic, assign)
int zorder;
1157 @property (nonatomic, assign) NSInteger width;
1167 @property (nonatomic, assign) NSInteger height;
1177 @property (nonatomic, assign) NSUInteger backgroundColor;
1187 @property (nonatomic, strong) NSArray<NERtcLiveStreamUserTranscoding *> * users;
1206 @property (nonatomic, nullable, strong) NSArray<NERtcLiveStreamImageInfo*> * bgImages;
1228 @property (nonatomic, copy) NSString *taskID;
1240 @property (nonatomic, copy) NSString *streamURL;
1250 @property (nonatomic, assign) BOOL serverRecordEnabled;
1290 @property (nonatomic, nullable, copy) NSString *extraInfo;
1305 #pragma mark -- Audio Frame Observer
1330 @property (nonatomic, assign) uint32_t channels;
1340 @property (nonatomic, assign) uint32_t sampleRate;
1385 @property (nonatomic, assign) uint32_t channels;
1395 @property (nonatomic, assign) uint32_t sampleRate;
1405 @property (nonatomic, assign) uint32_t bytesPerSample;
1415 @property (nonatomic, assign) uint32_t samplesPerChannel;
1447 @property (nonatomic, assign)
void* data;
1457 @property (nonatomic, assign) int64_t syncTimestamp;
1462 #pragma mark - Volume info
1482 @property (nonatomic, assign) uint64_t uid;
1492 @property (nonatomic, assign)
unsigned int volume;
1503 @property (nonatomic, assign)
unsigned int subStreamVolume;
1507 #pragma mark - Video Frame
1537 @property(nonatomic, assign) uint64_t timestamp;
1547 @property(nonatomic, assign) uint32_t width;
1557 @property(nonatomic, assign) uint32_t height;
1577 @property(nonatomic)
void * buffer;
1587 @property(nonatomic, strong) NSArray<NSNumber *> *strides;
1591 #pragma mark- MediaRelay
1611 @property (nonatomic, copy)NSString *channelName;
1620 @property (nonatomic, copy)NSString *token;
1629 @property (nonatomic, assign)uint64_t uid;
1649 @property(nonatomic, strong, readonly)NSDictionary<NSString *, NERtcChannelMediaRelayInfo *> * _Nullable destinationInfos;
1683 - (BOOL)setDestinationInfo:(
NERtcChannelMediaRelayInfo *_Nonnull)destinationInfo forChannelName:(NSString *_Nonnull)channelName;
1697 - (BOOL)removeDestinationInfoForChannelName:(NSString *_Nonnull)channelName;
1701 #pragma mark - watermark
1728 @property (nonatomic, copy, nullable) NSString *content;
1738 @property (nonatomic, assign) CGFloat fontSize;
1748 @property (nonatomic, strong, nullable) UIColor *fontColor;
1758 @property (nonatomic, strong, nullable) UIColor *wmColor;
1768 @property (nonatomic, assign) CGRect frame;
1794 @property (nonatomic, assign) CGFloat fontSize;
1804 @property (nonatomic, strong) UIColor *fontColor;
1814 @property (nonatomic, assign) CGRect frame;
1824 @property (nonatomic, strong) UIColor *wmColor;
1848 @property (nonatomic, strong, nullable) NSArray<UIImage *> *images;
1858 @property (nonatomic, assign) NSUInteger fps;
1868 @property (nonatomic, assign) BOOL loop;
1878 @property (nonatomic, assign) CGRect frame;
1902 @property (nonatomic, strong, nullable) NSArray<NERtcTextWatermarkConfig *> *textWatermarks;
1922 @property (nonatomic, strong, nullable) NSArray<NERtcImageWatermarkConfig *> *imageWaterMarks;
1952 @property (nonatomic, assign) CGFloat wmAlpha;
1962 @property (nonatomic, assign) NSUInteger wmWidth;
1972 @property (nonatomic, assign) NSUInteger wmHeight;
1982 @property (nonatomic, assign) NSUInteger offsetX;
1992 @property (nonatomic, assign) NSUInteger offsetY;
2002 @property (nonatomic, strong) NSArray<NSString *> *imagePaths;
2014 @property (nonatomic, assign) NSUInteger fps;
2024 @property (nonatomic, assign) BOOL loop;
2038 @property (nonatomic, copy) NSString *content;
2048 @property (nonatomic, copy) NSString *fontPath;
2058 @property (nonatomic, assign) NSUInteger fontColor;
2068 @property (nonatomic, assign) NSUInteger fontSize;
2078 @property (nonatomic, assign) CGFloat wmAlpha;
2089 @property (nonatomic, assign) NSUInteger wmColor;
2099 @property (nonatomic, assign) NSUInteger wmWidth;
2109 @property (nonatomic, assign) NSUInteger wmHeight;
2119 @property (nonatomic, assign) NSUInteger offsetX;
2129 @property (nonatomic, assign) NSUInteger offsetY;
2143 @property (nonatomic, copy) NSString *fontPath;
2153 @property (nonatomic, assign) NSUInteger fontColor;
2163 @property (nonatomic, assign) NSUInteger fontSize;
2173 @property (nonatomic, assign) CGFloat wmAlpha;
2185 @property (nonatomic, assign) NSUInteger wmColor;
2195 @property (nonatomic, assign) NSUInteger wmWidth;
2205 @property (nonatomic, assign) NSUInteger wmHeight;
2215 @property (nonatomic, assign) NSUInteger offsetX;
2225 @property (nonatomic, assign) NSUInteger offsetY;
2281 #pragma mark - Encryption
2311 @property (nonatomic, copy, nullable) NSString *key;
2315 #pragma mark - privatization
2337 @property (nonatomic, copy, nullable) NSString *channelServer;
2347 @property (nonatomic, copy, nullable) NSString *statisticsServer;
2357 @property (nonatomic, copy, nullable) NSString *statisticsDispatchServer;
2367 @property (nonatomic, copy, nullable) NSString *statisticsBackupServer;
2377 @property (nonatomic, copy, nullable) NSString *roomServer;
2387 @property (nonatomic, copy, nullable) NSString *compatServer;
2397 @property (nonatomic, copy, nullable) NSString *nosLbsServer;
2407 @property (nonatomic, copy, nullable) NSString *nosUploadSever;
2417 @property (nonatomic, copy, nullable) NSString *nosTokenServer;
2427 @property (nonatomic, assign) BOOL useIPv6;
2432 @property (nonatomic, copy, nullable) NSString *cloudProxyServer;
2437 @property (nonatomic, copy, nullable) NSString *webSocketProxyServer;
2442 @property (nonatomic, copy, nullable) NSString *quicProxyServer;
2447 @property (nonatomic, copy, nullable) NSString *mediaProxyServer;
2451 #pragma mark - NERtcLastmileProbeConfig
2477 @property(nonatomic, assign) BOOL probeUplink;
2491 @property(nonatomic, assign) BOOL probeDownlink;
2505 @property(nonatomic, assign) NSUInteger expectedUplinkBitrate;
2516 @property(nonatomic, assign) NSUInteger expectedDownlinkBitrate;
2520 #pragma mark - NERtcLastmileProbeOneWayResult
2540 @property(nonatomic, assign) NSUInteger packetLossRate;
2550 @property(nonatomic, assign) NSUInteger jitter;
2560 @property(nonatomic, assign) NSUInteger availableBandwidth;
2564 #pragma mark - NERtcLastmileProbeResult
2594 @property(nonatomic, assign) NSUInteger rtt;
2618 #pragma mark -- Log setting
2638 @property (nonatomic, copy) NSString *logDir;
2652 #pragma mark - Video Correction Config
2665 @property (nonatomic, assign) CGPoint topLeft;
2668 @property (nonatomic, assign) CGPoint topRight;
2671 @property (nonatomic, assign) CGPoint bottomLeft;
2674 @property (nonatomic, assign) CGPoint bottomRight;
2677 @property (nonatomic, assign) CGFloat canvasWidth;
2680 @property (nonatomic, assign) CGFloat canvasHeight;
2683 @property (nonatomic, assign) BOOL enableMirror;
2687 #pragma mark - NERtcVirtualBackgroundSource
2725 @property (nonatomic, assign) NSUInteger color;
2737 @property (nonatomic, copy) NSString *source;
2753 #pragma mark - Audio Effect
2773 @property (nonatomic, assign)
float wetGain;
2783 @property (nonatomic, assign)
float dryGain;
2793 @property (nonatomic, assign)
float damping;
2803 @property (nonatomic, assign)
float roomSize;
2813 @property (nonatomic, assign)
float decayTime;
2823 @property (nonatomic, assign)
float preDelay;
2827 NS_ASSUME_NONNULL_END
NERTC_EXTERN_API uint32_t const NERtcAudioMixingMaxVolume
Definition: NERtcEngineBase.h:622
NERTC_EXTERN_API NSString *const kNERtcKeyVideoStartWithBackCamera
第一次开启摄像头时,是否使用后摄像头。 布尔值,默认值 NO,即不使用后置摄像头。
Definition: NERtcEngineBase.h:79
NERTC_EXTERN_API NSString *const KNERtcKeyDisableSWAECOnHeadset
设置耳机时不使用软件回声消除功能,默认值 NO。如设置YES 则SDK在耳机模式下不使用软件回声消除功能,会对某些机型下 耳机的音质效果有影响
Definition: NERtcEngineBase.h:168
NERTC_EXTERN_API NSString *const kNERtcKeyExtraInfo
Login 事件中的一个自定义字段,适用于标识一些额外信息,例如 App 版本。
Definition: NERtcEngineBase.h:250
NERTC_EXTERN_API NSString *const KNERtcKeyAudioAINSEnable
是否开启 AI 降噪。 NERTC SDK 自研 AI 降噪算法,开启 AI 降噪之后,在嘈杂的环境中可以针对背景人声、键盘声等非稳态噪声进行定向降噪,同时也会提升对于环境稳态噪声的抑制,保留更纯粹的...
Definition: NERtcEngineBase.h:178
NERTC_EXTERN_API NSString *const kNERtcKeyLogLevel
SDK 日志等级,默认为 kNERtcLogLevelInfo,详细信息请参考 NERtcLogLevel。
Definition: NERtcEngineBase.h:241
NS_ASSUME_NONNULL_BEGIN NERTC_EXTERN_API NSString *const kNERtcKeyChannel1V1ModeEnabled
以下 key 用于 INERtcEngine::setParameters
Definition: NERtcEngineBase.h:8
NERTC_EXTERN_API NSString *const kNERtcKeyPublishSelfStreamEnabled
在旁路推流场景中,是否允许推送本地媒体流到 CDN。默认值 YES。
Definition: NERtcEngineBase.h:230
NERTC_EXTERN_API NSString *const kNERtcKeyVideoPreferMetalRender
是否优先使用 Metal 渲染。 布尔值,默认值 NO,即使用OpenGL 渲染。
Definition: NERtcEngineBase.h:89
NERTC_EXTERN_API NSString *const KNERtcKeyDisableOverrideSpeakerOnReceiver
当系统切换听筒或扬声器时,SDK 是否以系统设置为准。 布尔值,默认为 NO。
Definition: NERtcEngineBase.h:138
NERTC_EXTERN_API NSString *const kNERtcKeyVideoPreferHWEncode
是否优先使用硬件编码视频数据。 布尔值,默认值 YES。 请在初始化(setupEngineWithContext)之前设置该参数,否则该参数会在下次初始化之后生效。
Definition: NERtcEngineBase.h:47
NERTC_EXTERN_API NSString *const kNERtcKeyVideoSendOnPubType
通话开始时,默认发送的流类型,通话前设置有效。 int 类型,默认为 3,即大流。详细信息请参考 NERtcVideoPubMode。
Definition: NERtcEngineBase.h:99
NERTC_EXTERN_API NSString *const kNERtcKeyRecordHostEnabled
是否云端录制主讲人,默认值 NO
Definition: NERtcEngineBase.h:190
NERTC_EXTERN_API NSString *const kNERtcKeyAutoSubscribeAudio
是否自动订阅其他用户的音频流。 布尔值,默认为 YES,即自动订阅。
Definition: NERtcEngineBase.h:126
NERTC_EXTERN_API NSString *const kNERtcKeyAutoSubscribeVideo
是否自动订阅其他用户的视频流。 布尔值,默认值 NO,即不自动订阅。
Definition: NERtcEngineBase.h:111
NERTC_EXTERN_API NSString *const kNERtcKeyRecordAudioEnabled
是否开启云端音频录制。默认值 NO,即关闭音频录制。
Definition: NERtcEngineBase.h:199
NERTC_EXTERN_API NSString *const kNERtcKeySupportCallkit
是否需要支持 Callkit 框架。 布尔值,默认为 NO。
Definition: NERtcEngineBase.h:146
NERTC_EXTERN_API NSString *const kNERtcKeyRecordVideoEnabled
是否开启云端视频录制,默认值 NO,即关闭视频录制。
Definition: NERtcEngineBase.h:208
NERTC_EXTERN_API NSString *const kNERtcKeyRecordType
云端录制模式。详细信息请参考 NERtcRecordType。
Definition: NERtcEngineBase.h:217
NERTC_EXTERN_API NSString *const kNERtcKeyVideoPreferHWDecode
是否优先使用硬件解码视频数据。 布尔值,默认值 YES。 请在初始化(setupEngineWithContext)之前设置该参数,否则该参数会在下次初始化之后生效。
Definition: NERtcEngineBase.h:58
NERTC_EXTERN_API NSString *const KNERtcKeyEnableReportVolumeWhenMute
本地用户静音时是否返回原始音量。 布尔值,默认值为 false。
Definition: NERtcEngineBase.h:159
NERTC_EXTERN_API NSString *const kNERtcKeyVideoCaptureObserverEnabled
是否需要开启视频数据采集回调,开启后开发者可以获取到原始视频数据。 布尔值,默认值 NO。 开启后如果需要关闭,需要通过调用 destroyEngine 来清除。
Definition: NERtcEngineBase.h:69
NERTC_EXTERN_API uint32_t const NERtcAudioMixingDefaultVolume
Definition: NERtcEngineBase.h:623
NERtcLiveStreamMode
直播推流模式。
Definition: NERtcEngineEnum.h:2512
NERtcVideoCropMode
视频裁剪模式
Definition: NERtcEngineEnum.h:828
NERtcLastmileProbeResultState
Last mile 质量探测结果的状态。
Definition: NERtcEngineEnum.h:3048
NERtcLogLevel
日志级别。
Definition: NERtcEngineEnum.h:3118
NERtcVideoFormatType
视频格式类型
Definition: NERtcEngineEnum.h:960
NERtcVirtualBackgroundSourceType
自定义背景图片的类型。
Definition: NERtcEngineEnum.h:1087
NERtcVideoWatermarkType
视频水印类型。
Definition: NERtcEngineEnum.h:1171
NERtcLiveStreamVideoScaleMode
直播推流模式。
Definition: NERtcEngineEnum.h:2541
NERtcSubStreamContentPrefer
屏幕共享功能的编码策略倾向
Definition: NERtcEngineEnum.h:561
NERtcLiveStreamAudioCodecProfile
直播推流音频编码规格。
Definition: NERtcEngineEnum.h:2483
#define NERTC_EXTERN_API
Definition: NERtcEngineEnum.h:18
NERtcAudioRecordingQuality
录音音质。
Definition: NERtcEngineEnum.h:1698
NERtcAudioRecordingPosition
Definition: NERtcEngineEnum.h:1788
NERtcVideoOutputOrientationMode
视频旋转方向模式。
Definition: NERtcEngineEnum.h:780
NERtcVideoProfileType
视频 profile 类型。
Definition: NERtcEngineEnum.h:357
NERtcBlurDegree
自定义背景图的虚化程度。
Definition: NERtcEngineEnum.h:1130
NERtcAudioType
音频类型
Definition: NERtcEngineEnum.h:2611
NERtcVideoMirrorMode
视频镜像模式。
Definition: NERtcEngineEnum.h:742
NERtcAudioFrameOpMode
音频数据读写模式
Definition: NERtcEngineEnum.h:2631
NERtcEncryptionMode
加密模式
Definition: NERtcEngineEnum.h:3027
NERtcAudioRecordingCycleTime
Definition: NERtcEngineEnum.h:1797
NERtcDegradationPreference
带宽受限时视频编码适应性偏好
Definition: NERtcEngineEnum.h:510
NERtcLiveStreamAudioSampleRate
直播推流音频采样率。
Definition: NERtcEngineEnum.h:2445
#define NERTC_EXPORT
Definition: NERtcEngineEnum.h:12
NERtcVideoFrameRate
视频帧率。
Definition: NERtcEngineEnum.h:424
NERtcVideoRenderScaleMode
视频渲染缩放模式。
Definition: NERtcEngineEnum.h:674
NERtcAudioStreamType
音频流类型,目前同时支持音频两路流:主流和辅流
Definition: NERtcEngineEnum.h:1608
NERtcVideoRotationType
视频数据的旋转方向
Definition: NERtcEngineEnum.h:913
音频帧。
Definition: NERtcEngineBase.h:1428
Definition: NERtcEngineBase.h:814
声音音量信息。
Definition: NERtcEngineBase.h:1473
本地视频基础发送配置。
Definition: NERtcEngineBase.h:326
摄像头采集配置。
Definition: NERtcEngineBase.h:449
画布水印设置。 同时设置文字、时间戳或图片水印时,如果不同类型的水印位置有重叠,会按照图片、文本、时间戳的顺序进行图层覆盖。
Definition: NERtcEngineBase.h:1893
Options for creating audio effects
Definition: NERtcEngineBase.h:738
Options for creating mixing audios
Definition: NERtcEngineBase.h:627
配置媒体流加密模式和密钥。
Definition: NERtcEngineBase.h:2292
图片水印设置参数。 支持设置 4 个图片水印。
Definition: NERtcEngineBase.h:1839
Last mile 网络探测配置。
Definition: NERtcEngineBase.h:2462
单向 Last mile 网络质量探测结果报告。
Definition: NERtcEngineBase.h:2531
上下行 Last mile 网络质量探测结果。
Definition: NERtcEngineBase.h:2575
音视频流编码参数等设置
Definition: NERtcEngineBase.h:842
图片布局。
Definition: NERtcEngineBase.h:1063
直播布局。
Definition: NERtcEngineBase.h:1148
直播推流任务的配置。
Definition: NERtcEngineBase.h:1219
直播成员布局。
Definition: NERtcEngineBase.h:935
日志相关设置。
Definition: NERtcEngineBase.h:2629
混响参数
Definition: NERtcEngineBase.h:2764
私有化服务器配置项
Definition: NERtcEngineBase.h:2328
文字水印设置参数。 最多可添加 10 个文字水印。
Definition: NERtcEngineBase.h:1714
时间戳水印。
Definition: NERtcEngineBase.h:1785
视频画布设置。
Definition: NERtcEngineBase.h:261
id< NERtcEngineVideoRenderSink > externalVideoRender
外部渲染器。
Definition: NERtcEngineBase.h:314
BOOL useExternalRender
是否使用外部渲染器,默认 NO 不使用,若使用SDK内部会根据externalVideoRender来进行绑定,若不使用SDK内部根据container来进行绑定。暂不支持在通话中切换内部渲染与外部渲染...
Definition: NERtcEngineBase.h:270
NERtcVideoRenderScaleMode renderMode
视频渲染模式。
Definition: NERtcEngineBase.h:290
VIEW_CLASS * container
视频窗口容器(SDK内部渲染)。
Definition: NERtcEngineBase.h:280
NERtcVideoMirrorMode mirrorMode
视频镜像模式。
Definition: NERtcEngineBase.h:304
视频图像畸变矫正相关设置。
Definition: NERtcEngineBase.h:2663
本地视频发送配置
Definition: NERtcEngineBase.h:503
视频帧信息。
Definition: NERtcEngineBase.h:1518
本地辅流发送配置。
Definition: NERtcEngineBase.h:609
视频水印设置,目前支持三种类型的水印,但只能其中选择一种水印生效。
Definition: NERtcEngineBase.h:2238
视频图片水印配置。
Definition: NERtcEngineBase.h:1943
Definition: NERtcEngineBase.h:2029
Definition: NERtcEngineBase.h:2134
自定义背景图像。
Definition: NERtcEngineBase.h:2700
外部视频渲染。
Definition: NERtcEngineDelegate.h:479