5#import <Foundation/Foundation.h>
21NS_ASSUME_NONNULL_BEGIN
23@protocol NECallEngineRtcDelegateEx <NSObject>
25- (void)onNERtcEngineVirtualBackgroundSourceEnabled:(BOOL)enabled
26 reason:(NERtcVirtualBackgroundSourceStateReason)reason;
30@protocol NERecordProvider <NSObject>
36@protocol NECallEngineDelegate <NSObject>
61- (void)onVideoAvailable:(BOOL)available userID:(NSString *)userId;
66- (void)onVideoMuted:(BOOL)muted userID:(NSString *)userId;
71- (void)onAudioMuted:(BOOL)muted userID:(NSString *)userId;
73#pragma mark - 内部周期回调接口
92@property(nonatomic, weak) id<NERtcEngineMediaStatsObserver>
observer;
114 (nullable
void (^)(NSError *_Nullable error,
NECallInfo *_Nullable callInfo))completion;
118- (void)accept:(nullable
void (^)(NSError *_Nullable error,
125 completion:(nullable
void (^)(NSError *_Nullable error))completion;
132 completion:(nullable
void (^)(NSError *_Nullable))completion;
136- (void)setTimeout:(
int)time;
142- (int)setupLocalView:(nullable UIView *)view;
148- (int)setupRemoteView:(nullable UIView *)view;
153- (int)enableLocalVideo:(BOOL)enable;
158- (int)muteLocalVideo:(BOOL)muted;
163- (int)muteLocalAudio:(BOOL)muted;
167- (void)setCallRecordProvider:(
id<NERecordProvider>)provider;
177- (void)addCallDelegate:(
id<NECallEngineDelegate>)delegate;
180- (void)removeCallDelegate:(
id<NECallEngineDelegate>)delegate;
NERtcCallStatus
通话状态
定义 NECallEngineConsts.h:41
NSTimeInterval timeOutSeconds
单位:秒,IM服务器邀请2分钟后无响应为超时,最大值不超过2分钟。
定义 NECallEngine.h:86
nullable NECallInfo * getCallInfo()
获取当前通话信息
定义 NECallEngine.m:605
NESetupConfig * config
初始化设置
定义 NECallEngine.h:95
id< NERtcEngineDelegateEx > engineDelegate
NERtcEngine 的回调接口,由用户提供
定义 NECallEngine.h:89
NERtcCallStatus callStatus
通话状态
定义 NECallEngine.h:83
id< NERtcEngineMediaStatsObserver > observer
中转NERtcEngine统计回调
定义 NECallEngine.h:92
void destroy()
销毁
定义 NECallEngine.m:115
NECallConfig * getCallConfig()
获取当前通话配置
定义 NECallEngine.m:612
NSString * getVersion()
版本号
定义 NECallEngine.m:1613
instancetype sharedInstance()
单例
定义 NECallEngine.m:73
void switchCamera()
摄像头前后切换
定义 NECallEngine.m:458
定义 NECallTypeChangeInfo.h:11