NERtc iOS SDK  V4.6.20
NERtcEngineBase.h
浏览该文件的文档.
1 /*
2  * Copyright (c) 2021 NetEase, Inc. All rights reserved.
3  */
4 
5 #import <Foundation/Foundation.h>
6 #import "NERtcEngineEnum.h"
7 
9 
10 NS_ASSUME_NONNULL_BEGIN
11 
21 // channel
35 
36 // video
100 
111 NERTC_EXTERN_API NSString * const kNERtcKeyAutoSubscribeVideo; // BOOL -- 其他用户打开视频时,自动订阅。只支持在通话前设置,通话中设置无效。 默认值 NO 。
112 
113 // audio
139 
147 
179 
180 
181 // server record
218 
219 // live stream
231 
232 // log level
251 
260 NERTC_EXPORT @interface NERtcVideoCanvas : NSObject
261 
270 @property (nonatomic, assign) BOOL useExternalRender;
271 
280 @property (nonatomic, nullable, strong) VIEW_CLASS *container;
281 
290 @property (nonatomic, assign) NERtcVideoRenderScaleMode renderMode;
291 
304 @property (nonatomic, assign) NERtcVideoMirrorMode mirrorMode;
305 
314 @property (nonatomic, strong) id<NERtcEngineVideoRenderSink> externalVideoRender;
315 @end
316 
326 
335 @property (nonatomic, assign) NERtcVideoProfileType maxProfile;
336 
353 @property (nonatomic, assign) NERtcVideoFrameRate frameRate;
354 
363 @property (nonatomic, assign) NSInteger minFrameRate;
364 
426 @property (nonatomic, assign) NSInteger bitrate;
427 
436 @property (nonatomic, assign) NSInteger minBitrate;
437 
438 @end
439 
449 
470 @property (nonatomic, assign) int captureWidth;
491 @property (nonatomic, assign) int captureHeight;
492 
493 @end
503 
520 @property (nonatomic, assign) int width;
521 
538 @property (nonatomic, assign) int height;
539 
548 @property (nonatomic, assign) NERtcVideoCropMode cropMode;
549 
570 @property (nonatomic, assign) NERtcDegradationPreference degradationPreference;
571 
583 @property (nonatomic, assign) NERtcVideoMirrorMode mirrorMode;
584 
595 @property (nonatomic, assign) NERtcVideoOutputOrientationMode orientationMode;
596 
597 
598 @end
599 
609 
618 @property (nonatomic, assign) NERtcSubStreamContentPrefer contentPrefer;
619 
620 @end
621 
624 
627 
640 @property (nonatomic, copy) NSString *path;
641 
654 @property (nonatomic, assign) int loopCount;
655 
664 @property (nonatomic, assign) BOOL sendEnabled;
665 
674 @property (nonatomic, assign) BOOL playbackEnabled;
675 
686 @property (nonatomic, assign) uint32_t sendVolume;
687 
698 @property (nonatomic, assign) uint32_t playbackVolume;
699 
708 @property (nonatomic, assign) int64_t startTimeStamp;
709 
718 @property (nonatomic, assign) NERtcAudioStreamType sendWithAudioType;
719 
732 - (BOOL)isInvalid;
733 
734 @end
735 
738 
751 @property (nonatomic, copy) NSString *path;
752 
765 @property (nonatomic, assign) int loopCount;
766 
775 @property (nonatomic, assign) BOOL sendEnabled;
776 
785 @property (nonatomic, assign) BOOL playbackEnabled;
786 
797 @property (nonatomic, assign) uint32_t sendVolume;
798 
809 @property (nonatomic, assign) uint32_t playbackVolume;
810 
811 @end
812 
814 
815 // 录音文件在本地保存的绝对路径,需要精确到文件名及格式。例如:sdcard/xxx/audio.aac。请确保指定的路径存在并且可写。目前仅支持 WAV 或 AAC 文件格式。
816 @property (nonatomic, copy) NSString *filePath;
817 
818 // 录音采样率(Hz),可以设为 16000、32000(默认)、44100 或 48000。
819 @property (nonatomic, assign) int sampleRate;
820 
821 // 录音音质,只在 AAC 格式下有效。详细信息请参考 {@link NERtcAudioRecordingQuality}。
822 @property (nonatomic, assign) NERtcAudioRecordingQuality quality;
823 
824 // 录音文件所包含的内容。详细信息请参考 {@link NERtcAudioRecordingPosition}。
825 @property (nonatomic, assign) NERtcAudioRecordingPosition position;
826 
827 // 录制过程中,循环缓存的最大时间长度,单位(s)。详细信息请参考 {@link NERtcAudioRecordingCycleTime}。
828 @property (nonatomic, assign) NERtcAudioRecordingCycleTime cycleTime;
829 
830 @end
831 
832 #pragma mark - live stream
841 NERTC_EXPORT @interface NERtcLiveConfig: NSObject
842 
851 @property (nonatomic, assign) BOOL interruptedPlaceImage;
852 
865 @property (nonatomic, assign) BOOL singleVideoPassthrough;
878 @property (nonatomic, assign) NSInteger audioBitrate;
879 
894 @property (nonatomic, assign) NERtcLiveStreamAudioSampleRate sampleRate;
895 
908 @property (nonatomic, assign) NSInteger channels;
909 
922 @property (nonatomic, assign) NERtcLiveStreamAudioCodecProfile audioCodecProfile;
923 
924 @end
925 
935 
944 @property (nonatomic, assign) uint64_t uid;
945 
960 @property (nonatomic, assign) BOOL videoPush;
961 
974 @property (nonatomic, assign) NSInteger x;
975 
988 @property (nonatomic, assign) NSInteger y;
989 
1002 @property (nonatomic, assign) NSInteger width;
1003 
1016 @property (nonatomic, assign) NSInteger height;
1017 
1030 @property (nonatomic, assign) BOOL audioPush;
1031 
1040 @property (nonatomic, assign) NSInteger zOrder;
1041 
1050 @property (nonatomic, assign) NERtcLiveStreamVideoScaleMode adaption;
1051 
1052 @end
1053 
1063 
1072 @property (nonatomic, copy) NSString *url;
1073 
1086 @property (nonatomic, assign) NSInteger x;
1087 
1100 @property (nonatomic, assign) NSInteger y;
1101 
1112 @property (nonatomic, assign) NSInteger width;
1113 
1124 @property (nonatomic, assign) NSInteger height;
1125 
1135 @property (nonatomic, assign) int zorder;
1136 
1137 @end
1138 
1148 
1157 @property (nonatomic, assign) NSInteger width;
1158 
1167 @property (nonatomic, assign) NSInteger height;
1168 
1177 @property (nonatomic, assign) NSUInteger backgroundColor;
1178 
1187 @property (nonatomic, strong) NSArray<NERtcLiveStreamUserTranscoding *> * users;
1188 
1198 @property (nonatomic, nullable, strong) NERtcLiveStreamImageInfo* bgImage;
1199 
1206 @property (nonatomic, nullable, strong) NSArray<NERtcLiveStreamImageInfo*> * bgImages;
1207 
1208 @end
1209 
1219 
1228 @property (nonatomic, copy) NSString *taskID;
1229 
1240 @property (nonatomic, copy) NSString *streamURL;
1241 
1250 @property (nonatomic, assign) BOOL serverRecordEnabled;
1251 
1260 @property (nonatomic, assign) NERtcLiveStreamMode lsMode;
1261 
1270 @property (nonatomic, nullable, strong) NERtcLiveStreamLayout *layout;
1271 
1280 @property (nonatomic, nullable, strong) NERtcLiveConfig *config;
1281 
1290 @property (nonatomic, nullable, copy) NSString *extraInfo;
1291 
1300 - (BOOL)isInvalid;
1301 
1302 @end
1303 
1304 
1305 #pragma mark -- Audio Frame Observer
1315 
1330 @property (nonatomic, assign) uint32_t channels;
1331 
1340 @property (nonatomic, assign) uint32_t sampleRate;
1341 
1350 @property (nonatomic, assign) NERtcAudioFrameOpMode mode;
1351 
1352 @end
1353 
1362 NERTC_EXPORT @interface NERtcAudioFormat : NSObject
1363 
1372 @property (nonatomic, assign) NERtcAudioType type;
1385 @property (nonatomic, assign) uint32_t channels;
1386 
1395 @property (nonatomic, assign) uint32_t sampleRate;
1396 
1405 @property (nonatomic, assign) uint32_t bytesPerSample;
1406 
1415 @property (nonatomic, assign) uint32_t samplesPerChannel;
1416 
1417 @end
1418 
1427 NERTC_EXPORT @interface NERtcAudioFrame : NSObject
1428 
1437 @property (nonatomic, strong) NERtcAudioFormat* format;
1438 
1447 @property (nonatomic, assign) void* data;
1448 
1457 @property (nonatomic, assign) int64_t syncTimestamp;
1458 
1459 @end
1460 
1461 
1462 #pragma mark - Volume info
1463 
1472 NERTC_EXPORT @interface NERtcAudioVolumeInfo : NSObject
1473 
1482 @property (nonatomic, assign) uint64_t uid;
1483 
1492 @property (nonatomic, assign) unsigned int volume;
1493 
1503 @property (nonatomic, assign) unsigned int subStreamVolume;
1504 
1505 @end
1506 
1507 #pragma mark - Video Frame
1508 
1517 NERTC_EXPORT @interface NERtcVideoFrame : NSObject
1518 
1527 @property(nonatomic, assign) NERtcVideoFormatType format;
1528 
1537 @property(nonatomic, assign) uint64_t timestamp;
1538 
1547 @property(nonatomic, assign) uint32_t width;
1548 
1557 @property(nonatomic, assign) uint32_t height;
1558 
1567 @property(nonatomic, assign) NERtcVideoRotationType rotation;
1568 
1577 @property(nonatomic) void * buffer;
1578 
1587 @property(nonatomic, strong) NSArray<NSNumber *> *strides;
1588 
1589 @end
1590 
1591 #pragma mark- MediaRelay
1592 
1602 
1611 @property (nonatomic, copy)NSString *channelName;
1620 @property (nonatomic, copy)NSString *token;
1629 @property (nonatomic, assign)uint64_t uid;
1630 
1631 @end
1632 
1634 
1649 @property(nonatomic, strong, readonly)NSDictionary<NSString *, NERtcChannelMediaRelayInfo *> * _Nullable destinationInfos;
1650 
1665 @property(nonatomic, strong)NERtcChannelMediaRelayInfo *sourceInfo;
1666 
1683 - (BOOL)setDestinationInfo:(NERtcChannelMediaRelayInfo *_Nonnull)destinationInfo forChannelName:(NSString *_Nonnull)channelName;
1684 
1697 - (BOOL)removeDestinationInfoForChannelName:(NSString *_Nonnull)channelName;
1698 
1699 @end
1700 
1701 #pragma mark - watermark
1702 
1728 @property (nonatomic, copy, nullable) NSString *content;
1729 
1738 @property (nonatomic, assign) CGFloat fontSize;
1739 
1748 @property (nonatomic, strong, nullable) UIColor *fontColor;
1749 
1758 @property (nonatomic, strong, nullable) UIColor *wmColor;
1759 
1768 @property (nonatomic, assign) CGRect frame;
1769 
1770 @end
1771 
1785 
1794 @property (nonatomic, assign) CGFloat fontSize;
1795 
1804 @property (nonatomic, strong) UIColor *fontColor;
1805 
1814 @property (nonatomic, assign) CGRect frame;
1815 
1824 @property (nonatomic, strong) UIColor *wmColor;
1825 
1826 @end
1827 
1839 
1848 @property (nonatomic, strong, nullable) NSArray<UIImage *> *images;
1849 
1858 @property (nonatomic, assign) NSUInteger fps;
1859 
1868 @property (nonatomic, assign) BOOL loop;
1869 
1878 @property (nonatomic, assign) CGRect frame;
1879 
1880 @end
1881 
1893 
1902 @property (nonatomic, strong, nullable) NSArray<NERtcTextWatermarkConfig *> *textWatermarks;
1903 
1912 @property (nonatomic, strong, nullable) NERtcTimestampWatermarkConfig *timestampWatermark;
1913 
1922 @property (nonatomic, strong, nullable) NSArray<NERtcImageWatermarkConfig *> *imageWaterMarks;
1923 
1924 @end
1925 
1943 
1952 @property (nonatomic, assign) CGFloat wmAlpha;
1953 
1962 @property (nonatomic, assign) NSUInteger wmWidth;
1963 
1972 @property (nonatomic, assign) NSUInteger wmHeight;
1973 
1982 @property (nonatomic, assign) NSUInteger offsetX;
1983 
1992 @property (nonatomic, assign) NSUInteger offsetY;
1993 
2002 @property (nonatomic, strong) NSArray<NSString *> *imagePaths;
2003 
2014 @property (nonatomic, assign) NSUInteger fps;
2015 
2024 @property (nonatomic, assign) BOOL loop;
2025 
2026 @end
2027 
2029 
2038 @property (nonatomic, copy) NSString *content;
2039 
2048 @property (nonatomic, copy) NSString *fontPath;
2049 
2058 @property (nonatomic, assign) NSUInteger fontColor;
2059 
2068 @property (nonatomic, assign) NSUInteger fontSize;
2069 
2078 @property (nonatomic, assign) CGFloat wmAlpha;
2079 
2089 @property (nonatomic, assign) NSUInteger wmColor;
2090 
2099 @property (nonatomic, assign) NSUInteger wmWidth;
2100 
2109 @property (nonatomic, assign) NSUInteger wmHeight;
2110 
2119 @property (nonatomic, assign) NSUInteger offsetX;
2120 
2129 @property (nonatomic, assign) NSUInteger offsetY;
2130 
2131 @end
2132 
2134 
2143 @property (nonatomic, copy) NSString *fontPath;
2144 
2153 @property (nonatomic, assign) NSUInteger fontColor;
2154 
2163 @property (nonatomic, assign) NSUInteger fontSize;
2164 
2173 @property (nonatomic, assign) CGFloat wmAlpha;
2174 
2185 @property (nonatomic, assign) NSUInteger wmColor;
2186 
2195 @property (nonatomic, assign) NSUInteger wmWidth;
2196 
2205 @property (nonatomic, assign) NSUInteger wmHeight;
2206 
2215 @property (nonatomic, assign) NSUInteger offsetX;
2216 
2225 @property (nonatomic, assign) NSUInteger offsetY;
2226 
2227 @end
2228 
2238 
2247 @property (nonatomic, assign) NERtcVideoWatermarkType watermarkType;
2248 
2257 @property (nonatomic, strong) NERtcVideoWatermarkImageConfig *imageWatermark;
2258 
2267 @property (nonatomic, strong) NERtcVideoWatermarkTextConfig *textWatermark;
2268 
2277 @property (nonatomic, strong) NERtcVideoWatermarkTimestampConfig *timestampWatermark;
2278 
2279 @end
2280 
2281 #pragma mark - Encryption
2282 
2292 
2301 @property (nonatomic, assign) NERtcEncryptionMode mode;
2302 
2311 @property (nonatomic, copy, nullable) NSString *key;
2312 
2313 @end
2314 
2315 #pragma mark - privatization
2316 
2327 NERTC_EXPORT @interface NERtcServerAddresses : NSObject
2328 
2337 @property (nonatomic, copy, nullable) NSString *channelServer;
2338 
2347 @property (nonatomic, copy, nullable) NSString *statisticsServer;
2348 
2357 @property (nonatomic, copy, nullable) NSString *statisticsDispatchServer;
2358 
2367 @property (nonatomic, copy, nullable) NSString *statisticsBackupServer;
2368 
2377 @property (nonatomic, copy, nullable) NSString *roomServer;
2378 
2387 @property (nonatomic, copy, nullable) NSString *compatServer;
2388 
2397 @property (nonatomic, copy, nullable) NSString *nosLbsServer;
2398 
2407 @property (nonatomic, copy, nullable) NSString *nosUploadSever;
2408 
2417 @property (nonatomic, copy, nullable) NSString *nosTokenServer;
2418 
2427 @property (nonatomic, assign) BOOL useIPv6;
2428 
2432 @property (nonatomic, copy, nullable) NSString *cloudProxyServer;
2433 
2437 @property (nonatomic, copy, nullable) NSString *webSocketProxyServer;
2438 
2442 @property (nonatomic, copy, nullable) NSString *quicProxyServer;
2443 
2447 @property (nonatomic, copy, nullable) NSString *mediaProxyServer;
2448 
2449 @end
2450 
2451 #pragma mark - NERtcLastmileProbeConfig
2452 
2462 
2477 @property(nonatomic, assign) BOOL probeUplink;
2478 
2491 @property(nonatomic, assign) BOOL probeDownlink;
2492 
2505 @property(nonatomic, assign) NSUInteger expectedUplinkBitrate;
2506 
2516 @property(nonatomic, assign) NSUInteger expectedDownlinkBitrate;
2517 
2518 @end
2519 
2520 #pragma mark - NERtcLastmileProbeOneWayResult
2521 
2531 
2540 @property(nonatomic, assign) NSUInteger packetLossRate;
2541 
2550 @property(nonatomic, assign) NSUInteger jitter;
2551 
2560 @property(nonatomic, assign) NSUInteger availableBandwidth;
2561 
2562 @end
2563 
2564 #pragma mark - NERtcLastmileProbeResult
2565 
2575 
2584 @property(nonatomic, assign) NERtcLastmileProbeResultState state;
2585 
2594 @property(nonatomic, assign) NSUInteger rtt;
2595 
2604 @property(nonatomic, strong) NERtcLastmileProbeOneWayResult *uplinkReport;
2605 
2614 @property(nonatomic, strong) NERtcLastmileProbeOneWayResult *downlinkReport;
2615 
2616 @end
2617 
2618 #pragma mark -- Log setting
2619 
2628 NERTC_EXPORT @interface NERtcLogSetting : NSObject
2629 
2638 @property (nonatomic, copy) NSString *logDir;
2639 
2648 @property (nonatomic, assign) NERtcLogLevel logLevel;
2649 
2650 @end
2651 
2652 #pragma mark - Video Correction Config
2653 
2663 
2664 // 矫正区域的左上顶点(x 和 y 的取值范围为 0 ~ 1 的浮点数)
2665 @property (nonatomic, assign) CGPoint topLeft;
2666 
2667 // 矫正区域的右上顶点(x 和 y 的取值范围为 0 ~ 1 的浮点数)
2668 @property (nonatomic, assign) CGPoint topRight;
2669 
2670 // 矫正区域的左下顶点(x 和 y 的取值范围为 0 ~ 1 的浮点数)
2671 @property (nonatomic, assign) CGPoint bottomLeft;
2672 
2673 // 矫正区域的右下顶点(x 和 y 的取值范围为 0 ~ 1 的浮点数)
2674 @property (nonatomic, assign) CGPoint bottomRight;
2675 
2676 // 画布宽度(单位 px,使用外部视频渲染时需要传递)
2677 @property (nonatomic, assign) CGFloat canvasWidth;
2678 
2679 // 画布高度(单位 px,使用外部视频渲染时需要传递)
2680 @property (nonatomic, assign) CGFloat canvasHeight;
2681 
2682 // 是否镜像显示(使用外部视频渲染时需要传递)
2683 @property (nonatomic, assign) BOOL enableMirror;
2684 
2685 @end
2686 
2687 #pragma mark - NERtcVirtualBackgroundSource
2688 
2700 
2709 @property (nonatomic, assign) NERtcVirtualBackgroundSourceType backgroundSourceType;
2710 
2725 @property (nonatomic, assign) NSUInteger color;
2726 
2737 @property (nonatomic, copy) NSString *source;
2738 
2749 @property (nonatomic, assign) NERtcBlurDegree blur_degree;
2750 
2751 @end
2752 
2753 #pragma mark - Audio Effect
2754 
2763 NERTC_EXPORT @interface NERtcReverbParam : NSObject
2764 
2773 @property (nonatomic, assign) float wetGain;
2774 
2783 @property (nonatomic, assign) float dryGain;
2784 
2793 @property (nonatomic, assign) float damping;
2794 
2803 @property (nonatomic, assign) float roomSize;
2804 
2813 @property (nonatomic, assign) float decayTime;
2814 
2823 @property (nonatomic, assign) float preDelay;
2824 
2825 @end
2826 
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:1363
音频帧。
Definition: NERtcEngineBase.h:1428
音频原始数据回调格式(默认不设置)。
Definition: NERtcEngineBase.h:1315
Definition: NERtcEngineBase.h:814
声音音量信息。
Definition: NERtcEngineBase.h:1473
本地视频基础发送配置。
Definition: NERtcEngineBase.h:326
摄像头采集配置。
Definition: NERtcEngineBase.h:449
画布水印设置。 同时设置文字、时间戳或图片水印时,如果不同类型的水印位置有重叠,会按照图片、文本、时间戳的顺序进行图层覆盖。
Definition: NERtcEngineBase.h:1893
Definition: NERtcEngineBase.h:1634
媒体流转发相关的数据结构。
Definition: NERtcEngineBase.h:1602
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