#include <NECallEngine.h>
◆ accept:
- (void) accept: |
|
(nullable void(^)(NSError *_Nullable error,
NECallInfo *_Nullable callInfo)) | completion |
|
◆ addCallDelegate:
◆ call:completion:
- (void) call: |
|
(NECallParam *) | param |
completion: |
|
(nullable void(^)(NSError *_Nullable error, NECallInfo *_Nullable callInfo)) | completion |
◆ destroy
◆ enableLocalVideo:
- (int) enableLocalVideo: |
|
(BOOL) | enable |
|
启动或关闭摄像头
- 参数
-
- 返回
- 操作返回值,成功则返回 0
◆ getCallConfig
◆ getCallInfo
◆ getVersion
+ (NSString *) getVersion |
|
|
|
◆ hangup:completion:
- (void) hangup: |
|
(NEHangupParam *) | param |
completion: |
|
(nullable void(^)(NSError *_Nullable error)) | completion |
挂断(内部会自动根据状态机状态做取消呼叫 拒绝接听 挂断动作)
- 参数
-
◆ muteLocalAudio:
- (int) muteLocalAudio: |
|
(BOOL) | muted |
|
启动或关闭声音采集
- 参数
-
- 返回
- 操作返回值,成功则返回 0
◆ muteLocalVideo:
- (int) muteLocalVideo: |
|
(BOOL) | muted |
|
启动或关闭视频流发送
- 参数
-
- 返回
- 操作返回值,成功则返回 0
◆ removeCallDelegate:
◆ setCallConfig:
设置呼叫时的配置参数,切换音视频是否需要切换,信令消息是否支持离线等
- 参数
-
◆ setCallRecordProvider:
设置发送话单回调(如果实现会截断内部话单流程,请在此实现中自己处理话单发送相关功能)
- 参数
-
◆ setTimeout:
- (void) setTimeout: |
|
(int) | time |
|
设置超时时间
- 参数
-
time | 超时时间,单位秒,不超过120s,超过内部会用120s处理 |
◆ setup:
◆ setupLocalView:
- (int) setupLocalView: |
|
(nullable UIView *) | view |
|
设置自己画面
- 参数
-
view | 渲染自己画面的View @discussion view上不建议有任何subview |
- 返回
- 0 操作成功
◆ setupRemoteView:
- (int) setupRemoteView: |
|
(nullable UIView *) | view |
|
设置其他用户画面
- 参数
-
view | 渲染其他画面的View @discussion view上不建议有任何subview |
- 返回
- 0 正常, -1 没有查询到 uid
◆ sharedInstance
+ (instancetype) sharedInstance |
|
|
|
◆ switchCallType:completion:
- (void) switchCallType: |
|
(NESwitchParam *) | param |
completion: |
|
(nullable void(^)(NSError *_Nullable)) | completion |
◆ switchCamera
◆ callStatus
◆ config
◆ engineDelegate
- (id<NERtcEngineDelegateEx>) engineDelegate |
|
readwritenonatomicweak |
◆ observer
- (id<NERtcEngineMediaStatsObserver>) observer |
|
readwritenonatomicweak |
◆ timeOutSeconds
- (NSTimeInterval) timeOutSeconds |
|
readwritenonatomicassign |
单位:秒,IM服务器邀请2分钟后无响应为超时,最大值不超过2分钟。
该类的文档由以下文件生成: