NERtc iOS SDK
NERtcEngineErrorCode.h
浏览该文件的文档.
1 /*
2  * Copyright (c) 2021 NetEase, Inc. All rights reserved.
3  */
4 
5 #import <Foundation/Foundation.h>
6 
7 NS_ASSUME_NONNULL_BEGIN
8 
12 typedef NS_ENUM(int, NERtcError) {
15  //资源分配错误 (正常请求时不会有此类错误返回)
31 
32  //Engine error code
34  kNERtcErrFatal = 30001,
97 
143 };
144 
145 typedef NS_ENUM(int, NERtcWarning) {
148  //资源分配错误 (正常请求时不会有此类错误返回)
151 };
156 typedef NS_ENUM(int, kNERtcLiveStreamError) {
177 };
178 
179 
180 extern NSString * const NERtcReserveChannelErrorDomain;
181 extern NSString * const NERtcRoomServerErrorDomain;
182 extern NSString * const NERtcLocalErrorDomain;
183 extern NSString * const NERtcRemoteErrorDomain;
184 
185 #ifdef __cplusplus
186 extern "C" {
187 #endif
188 
195  NSString * NERtcErrorDescription(int errorCode);
196 
197 #ifdef __cplusplus
198 } // extern "C"
199 #endif
200 
201 NS_ASSUME_NONNULL_END
kNERtcLiveStreamError
LiveStream Error Code
Definition: NERtcEngineErrorCode.h:156
@ kNERtcLiveStreamErrorRequestIsInvaild
task请求无效,被后续操作覆盖
Definition: NERtcEngineErrorCode.h:158
@ kNERtcErrLsTaskInvalidLayout
布局参数错误
Definition: NERtcEngineErrorCode.h:174
@ kNERtcLiveStreamErrorNotFound
taskId任务不存在,或房间不存在
Definition: NERtcEngineErrorCode.h:168
@ kNERtcErrLsTaskUserPicErr
用户图片错误
Definition: NERtcEngineErrorCode.h:176
@ kNERtcLiveStreamErrorDuplicateId
推流ID重复
Definition: NERtcEngineErrorCode.h:166
@ kNERtcLiveStreamErrorRoomExited
房间已经退出
Definition: NERtcEngineErrorCode.h:162
@ kNERtcLiveStreamErrorNumLimit
推流任务超出上限
Definition: NERtcEngineErrorCode.h:164
@ kNERtcLiveStreamErrorInternalServerErr
服务器内部错误
Definition: NERtcEngineErrorCode.h:172
@ kNERtcLiveStreamErrorIsInvaild
task参数格式错误
Definition: NERtcEngineErrorCode.h:160
@ kNERtcLiveStreamErrorRequestErr
请求失败
Definition: NERtcEngineErrorCode.h:170
NERtcError
Engine Error Code
Definition: NERtcEngineErrorCode.h:12
@ kNERtcErrServerKicked
被踢出房间
Definition: NERtcEngineErrorCode.h:116
@ kNERtcRuntimeErrADMStartRecording
音频采集设备开始失败
Definition: NERtcEngineErrorCode.h:130
@ kNERtcErrDeviceNotFound
设备未找到
Definition: NERtcEngineErrorCode.h:48
@ kNERtcErrChannelMediaRelayInvalidState
媒体流转发状态无效。
Definition: NERtcEngineErrorCode.h:86
@ kNERtcErrChannelReserveErrorAppKey
非法的APP KEY
Definition: NERtcEngineErrorCode.h:26
@ kNERtcErrMediaConnectionDisconnected
媒体连接断开
Definition: NERtcEngineErrorCode.h:112
@ kNERtcErrChannelNotJoined
尚未加入房间
Definition: NERtcEngineErrorCode.h:66
@ kNERtcErrChannelReserveTimeOut
请求超时
Definition: NERtcEngineErrorCode.h:22
@ kNERtcErrInvalidUserID
非法的用户 ID
Definition: NERtcEngineErrorCode.h:76
@ kNERtcErrConnectFail
连接服务器错误
Definition: NERtcEngineErrorCode.h:62
@ kNERtcRuntimeErrADMStopPlayout
音频播放设备停止失败
Definition: NERtcEngineErrorCode.h:138
@ kNERtcErrInvalidRender
非法的渲染容器
Definition: NERtcEngineErrorCode.h:56
@ kNERtcErrInvalidState
当前状态不支持的操作
Definition: NERtcEngineErrorCode.h:42
@ kNERtcErrChannelReserveErrorParam
服务器请求参数错误
Definition: NERtcEngineErrorCode.h:24
@ kNERtcErrFatal
通用错误
Definition: NERtcEngineErrorCode.h:34
@ kNERtcErrChannelLeaveByDuplicateUidLogin
房间被关闭因为有重复 uid 登录
Definition: NERtcEngineErrorCode.h:122
@ kNERtcErrTransmitPendding
传输错误
Definition: NERtcEngineErrorCode.h:60
@ kNERtcErrCreateDeviceSourceFail
设备创建错误
Definition: NERtcEngineErrorCode.h:54
@ kNERtcNoError
没有错误
Definition: NERtcEngineErrorCode.h:14
@ kNERtcErrNotSupported
不支持的操作
Definition: NERtcEngineErrorCode.h:40
@ kNERtcErrEncryptNotSuitable
设置的媒体流加密密钥与房间中其他成员不一致,加入房间失败。
Definition: NERtcEngineErrorCode.h:102
@ kNERtcErrRequestJoinChannelFail
加入房间操作失败
Definition: NERtcEngineErrorCode.h:70
@ kNERtcErrInvalidDeviceSourceID
非法设备 ID
Definition: NERtcEngineErrorCode.h:50
@ kNERtcErrChannelReserveMoreThanTwoUser
只支持两个用户, 有第三个人试图使用相同的房间名分配房间
Definition: NERtcEngineErrorCode.h:28
@ kNERtcErrChannelLeaveBySwitchAction
房间被关闭因为切换房间的操作
Definition: NERtcEngineErrorCode.h:120
@ kNERtcErrInvalidParam
错误的参数
Definition: NERtcEngineErrorCode.h:38
@ kNERtcErrStreamNotFound
媒体流未找到
Definition: NERtcEngineErrorCode.h:106
@ kNERtcErrSignalDisconnected
信令连接断开
Definition: NERtcEngineErrorCode.h:114
@ kNERtcErrInvalidVideoProfile
非法的视频 profile type
Definition: NERtcEngineErrorCode.h:52
@ kNERtcErrDevicePreviewAlreadyStarted
设备已经打开
Definition: NERtcEngineErrorCode.h:58
@ kNERtcRuntimeErrADMInitRecording
音频采集设备初始化失败
Definition: NERtcEngineErrorCode.h:128
@ kNERtcErrSwitchChannelInvalidState
切换房间状态无效
Definition: NERtcEngineErrorCode.h:82
@ kNERtcRuntimeErrVDMNoAuthorize
没有视频设备权限
Definition: NERtcEngineErrorCode.h:140
@ kNERtcErrChannelAlreadyJoined
重复加入房间
Definition: NERtcEngineErrorCode.h:64
@ kNERtcRuntimeErrADMStartPlayout
音频播放设备开始失败
Definition: NERtcEngineErrorCode.h:136
@ kNERtcErrSourceNotFound
source 未找到
Definition: NERtcEngineErrorCode.h:80
@ kNERtcErrOSAuthorize
操作系统权限问题
Definition: NERtcEngineErrorCode.h:124
@ kNERtcErrLackOfResource
资源耗尽
Definition: NERtcEngineErrorCode.h:44
@ kNERtcErrUserNotFound
用户未找到
Definition: NERtcEngineErrorCode.h:74
@ kNERtcErrConnectionNotFound
连接未找到
Definition: NERtcEngineErrorCode.h:104
@ kNERtcErrSessionNotFound
会话未找到
Definition: NERtcEngineErrorCode.h:72
@ kNERtcErrChannelMediaRelayStopFailed
停止媒体流转发操作失败。
Definition: NERtcEngineErrorCode.h:96
@ kNERtcRuntimeErrADMNoAuthorize
没有音频设备权限
Definition: NERtcEngineErrorCode.h:126
@ kNERtcErrOutOfMemory
内存耗尽
Definition: NERtcEngineErrorCode.h:36
@ kNERtcErrAddTrackFail
加入 track 失败
Definition: NERtcEngineErrorCode.h:108
@ KNERtcErrChannelReservePermissionDenied
权限不足。原因包括:
Definition: NERtcEngineErrorCode.h:20
@ kNERtcErrTrackNotFound
track 未找到
Definition: NERtcEngineErrorCode.h:110
@ kNERtcRuntimeErrVDMNotScreenUseSubStream
非屏幕共享使用辅流
Definition: NERtcEngineErrorCode.h:142
@ kNERtcErrChannelReserveServerFail
分配房间服务器出错
Definition: NERtcEngineErrorCode.h:30
@ kNERtcErrInvalidIndex
非法 index
Definition: NERtcEngineErrorCode.h:46
@ kNERtcRuntimeErrADMStopRecording
音频采集设备停止失败
Definition: NERtcEngineErrorCode.h:132
@ kNERtcErrChannelRepleatedlyLeave
重复离开房间
Definition: NERtcEngineErrorCode.h:68
@ kNERtcRuntimeErrADMInitPlayout
音频播放设备初始化失败
Definition: NERtcEngineErrorCode.h:134
@ kNERtcErrMediaNotStarted
用户多媒体数据未连接
Definition: NERtcEngineErrorCode.h:78
@ kNERtcErrChannelMediaRelayPermissionDenied
媒体流转发权限不足。
Definition: NERtcEngineErrorCode.h:92
@ kNERtcErrChannelBeClosed
房间已被关闭
Definition: NERtcEngineErrorCode.h:118
NSString *const NERtcReserveChannelErrorDomain
NSString *const NERtcLocalErrorDomain
NSString * NERtcErrorDescription(int errorCode)
获取错误码描述
NSString *const NERtcRemoteErrorDomain
NERtcWarning
Definition: NERtcEngineErrorCode.h:145
@ KNERtcWarningChannelAbilityNotMatch
当前客户端设备视频编解码能力与房间不匹配,例如设备不支持 VP8 等编码类型。在此房间中可能无法成功进行视频编解码,即本端可能无法正常显示某些远端的视频画面,同样远端也可能无法显示本端画面。
Definition: NERtcEngineErrorCode.h:150
@ kNERtcNoWarning
没有错误
Definition: NERtcEngineErrorCode.h:147
NSString *const NERtcRoomServerErrorDomain