NERtcCallKit V2.2.5
载入中...
搜索中...
未找到
NECallEngineConsts.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
5#ifndef NECallEngineConsts_h
6#define NECallEngineConsts_h
7
10
12typedef NS_OPTIONS(NSUInteger, NECallType) {
14 NECallTypeAudio = 1,
16 NECallTypeVideo = 2,
17};
18
28
40
52
100
102typedef NS_OPTIONS(NSUInteger, NERtcCallType) {
104 NERtcCallTypeAudio = 1,
105 // 视频
106 NERtcCallTypeVideo = 2,
107};
108
118
128
130typedef NS_ENUM(NSInteger, NECallEngineErrorCode) {
131 // 当前状态不支持
134
135typedef void (^NERtcCallKitTokenHandler)(uint64_t uid, NSString *channelName,
136 void (^complete)(NSString *token, NSError *error));
137
139 NERtcCallKitContext *context);
140
141#define kNERtcCallKitBusyCode @"601"
142
143static const NSUInteger kNERtcCallKitMaxTimeOut = 2 * 60;
144
145#endif /* NECallEngineConsts_h */
NECallInitRtcMode
RTCSDK初始化模式
Definition NECallEngineConsts.h:120
@ GlobalInitRtc
全局初始化一次
Definition NECallEngineConsts.h:122
@ InitRtcInNeed
主叫呼叫以及被叫接收到呼叫邀请时候初始化,结束通话后销毁Rtc
Definition NECallEngineConsts.h:124
@ InitRtcInNeedDelayToAccept
被叫初始化Rtc延迟到 accept 执行
Definition NECallEngineConsts.h:126
void(^ NERtcCallKitTokenHandler)(uint64_t uid, NSString *channelName, void(^complete)(NSString *token, NSError *error))
Definition NECallEngineConsts.h:135
NECallEngineStatus
引擎状态
Definition NECallEngineConsts.h:30
@ NECallStatusCalling
呼叫中
Definition NECallEngineConsts.h:34
@ NECallStatusInCall
通话中
Definition NECallEngineConsts.h:38
@ NECallStatusCalled
正在被呼叫
Definition NECallEngineConsts.h:36
@ NECallStatusIdle
闲置
Definition NECallEngineConsts.h:32
NECallSwitchState
通话行为
Definition NECallEngineConsts.h:20
@ NECallSwitchStateInvite
邀请
Definition NECallEngineConsts.h:22
@ NECallSwitchStateAgree
接受
Definition NECallEngineConsts.h:24
@ NECallSwitchStateReject
拒绝
Definition NECallEngineConsts.h:26
NERtcCallStatus
通话状态
Definition NECallEngineConsts.h:42
@ NERtcCallStatusInCall
通话中
Definition NECallEngineConsts.h:50
@ NERtcCallStatusCalled
正在被呼叫
Definition NECallEngineConsts.h:48
@ NERtcCallStatusCalling
呼叫中
Definition NECallEngineConsts.h:46
@ NERtcCallStatusIdle
闲置
Definition NECallEngineConsts.h:44
NECallEngineErrorCode
引擎错误码
Definition NECallEngineConsts.h:130
@ CurrentStatusNotSupport
Definition NECallEngineConsts.h:132
NERtcCallTerminalCode
通话结束错误码
Definition NECallEngineConsts.h:54
@ TerminalAcceptFail
接听失败
Definition NECallEngineConsts.h:98
@ TerminalCodeCallFailed
发起呼叫失败
Definition NECallEngineConsts.h:70
@ TerminalCalleeReject
拒绝呼叫
Definition NECallEngineConsts.h:82
@ TerminalCallerCancel
取消呼叫
Definition NECallEngineConsts.h:78
@ TerminalBeHuangUp
呼叫被挂断
Definition NECallEngineConsts.h:88
@ TerminalCodeNormal
正常流程
Definition NECallEngineConsts.h:56
@ TerminalCodeTokenError
token 请求失败
Definition NECallEngineConsts.h:58
@ TerminalUserRtcDisconnected
Rtc房间断开链接
Definition NECallEngineConsts.h:94
@ TerminalCalleeCancel
呼叫被取消
Definition NECallEngineConsts.h:80
@ TerminalOtherRejected
多端登录被其他端拒绝
Definition NECallEngineConsts.h:90
@ TerminalRtcDisconnected
Rtc 断连
Definition NECallEngineConsts.h:76
@ TerminalUserRtcLeave
离开Rtc房间
Definition NECallEngineConsts.h:96
@ TerminalCallerRejcted
呼叫被拒绝
Definition NECallEngineConsts.h:84
@ TerminalCodeTimeOut
超时
Definition NECallEngineConsts.h:60
@ TerminalCodeJoinRtcError
加入rtc失败
Definition NECallEngineConsts.h:66
@ TerminalOtherAccepted
多端登录被其他端接听
Definition NECallEngineConsts.h:92
@ TerminalCodeBusy
用户占线
Definition NECallEngineConsts.h:62
@ TerminalCodeKicked
账号被踢
Definition NECallEngineConsts.h:72
@ TerminalCodeEmptyUid
uid 为空
Definition NECallEngineConsts.h:74
@ TerminalCodeCancelErrorParam
cancel 取消参数错误
Definition NECallEngineConsts.h:68
@ TerminalHuangUp
挂断呼叫
Definition NECallEngineConsts.h:86
@ TerminalCodeRtcInitError
rtc 初始化失败
Definition NECallEngineConsts.h:64
NERtcSwitchState
通话行为
Definition NECallEngineConsts.h:110
@ NERtcSwitchStateAgree
接受
Definition NECallEngineConsts.h:114
@ NERtcSwitchStateReject
拒绝
Definition NECallEngineConsts.h:116
@ NERtcSwitchStateInvite
邀请
Definition NECallEngineConsts.h:112
typedef NS_OPTIONS(NSUInteger, NECallType)
通话类型
Definition NECallEngineConsts.h:12
void(^ NERtcCallKitPushConfigHandler)(NERtcCallKitPushConfig *config, NERtcCallKitContext *context)
Definition NECallEngineConsts.h:138
Definition NERtcCallKitContext.h:12
Definition NERtcCallKitPushConfig.h:10