NERTC iOS SDK V5.6.40
载入中...
搜索中...
未找到
NERtcEngineErrorCode.h
1/*
2 * Copyright (c) 2021 NetEase, Inc. All rights reserved.
3 */
4
5#import <Foundation/Foundation.h>
6
7NS_ASSUME_NONNULL_BEGIN
8
17typedef NS_ENUM(int, NERtcError) {
18
27 kNERtcNoError = 0,
42 KNERtcErrChannelReservePermissionDenied = 403,
51 kNERtcErrChannelReserveTimeOut = 408,
60 kNERtcErrChannelReserveErrorParam = 414,
69 kNERtcErrChannelReserveErrorAppKey = 417,
78 kNERtcErrChannelReserveUnknownError = 500,
87 kNERtcErrChannelReserveMoreThanTwoUser = 600,
93 kNERtcErrChannelPermissionKeyError = 901,
99 kNERtcErrChannelPermissionKeyTimeout = 902,
100
101 // LiveStream 操作失败错误
107 kNERtcErrLiveStreamInvaildRequest = 1301,
113 kNERtcErrLiveStreamInvaildParameters = 1400,
119 kNERtcErrLiveStreamRoomHasExited = 1401,
125 kNERtcErrLiveStreamExceedLimit = 1402,
131 kNERtcErrLiveStreamDuplicateId = 1403,
137 kNERtcErrLiveStreamNotFound = 1404,
143 kNERtcErrLiveStreamRequestFailed = 1417,
149 kNERtcErrLiveStreamInvalidLayout = 1501,
155 kNERtcErrLiveStreamUserPictureError = 1502,
161 kNERtcErrChannelNoPublishPermission = 1620,
167 kNERtcErrChannelNoSubscribePermission = 2803,
173 kNERtcErrServerBroadcasterReachedTheLimit = 4001,
179 kNERtcErrServerPersonsInRoomReachedTheLimit = 4003,
180
181 //Engine error code
182 // 主业务操作失败错误码
191 kNERtcErrFatal = 30001,
200 kNERtcErrOutOfMemory = 30002,
209 kNERtcErrInvalidParam = 30003,
218 kNERtcErrNotSupported = 30004,
227 kNERtcErrInvalidState = 30005,
236 kNERtcErrLackOfResource = 30006,
245 kNERtcErrInvalidIndex = 30007,
254 kNERtcErrDeviceNotFound = 30008,
263 kNERtcErrInvalidDeviceSourceID = 30009,
272 kNERtcErrInvalidVideoProfile = 30010,
281 kNERtcErrCreateDeviceSourceFail = 30011,
290 kNERtcErrInvalidRender = 30012,
299 kNERtcErrDevicePreviewAlreadyStarted = 30013,
308 kNERtcErrTransmitPendding = 30014,
317 kNERtcErrConnectFail = 30015,
326 kNERtcErrCreateDumpFileFail = 30016,
335 kNERtcErrStartDumpFail = 30017,
344 kNERtcErrDesktopCaptureInvalidState = 30020,
353 kNERtcErrDesktopCaptureInvalidParam = 30021,
362 kNERtcErrDesktopCaptureNotReady = 30022,
371 kNERtcErrDeviceOccupied = 30027,
380 kNERtcErrJoinInterruptedDueToLeaveAction = 30028,
389 kNERtcErrJoinInterruptedDueToDestroyAction = 30029,
398 kNERtcErrJoinInterruptedDueToAppTermination = 30030,
399
405 kNERtcErrFeatureSupportedHardwareLimit = 30031,
406
415 kNERtcErrChannelAlreadyJoined = 30100,
424 kNERtcErrChannelNotJoined = 30101,
433 kNERtcErrChannelRepleatedlyLeave = 30102,
442 kNERtcErrRequestJoinChannelFail = 30103,
451 kNERtcErrSessionNotFound = 30104,
460 kNERtcErrUserNotFound = 30105,
469 kNERtcErrInvalidUserID = 30106,
478 kNERtcErrMediaNotStarted = 30107,
487 kNERtcErrSourceNotFound = 30108,
496 kNERtcErrSwitchChannelInvalidState = 30109,
507 kNERtcErrChannelMediaRelayInvalidState = 30110,
522 kNERtcErrChannelMediaRelayPermissionDenied = 30111,
533 kNERtcErrChannelMediaRelayStopFailed= 30112,
544 kNERtcErrEncryptNotSuitable= 30113,
548 kNERtcErrPlayLowLatencyStreamFailed = 30114,
552 kNERtcErrPlayLowLatencyStreamTimeout = 30115,
561 kNERtcErrUserPermKeyAuthFailed = 30121,
567 kNERtcErrSEIExceedMaxDataLimit = 30122,
573 kNERtcErrDataChannelExceedMaxDataLimit = 30123,
582 kNERtcErrConnectionNotFound = 30200,
591 kNERtcErrStreamNotFound = 30201,
600 kNERtcErrAddTrackFail = 30202,
609 kNERtcErrTrackNotFound = 30203,
618 kNERtcErrMediaConnectionDisconnected = 30204,
627 kNERtcErrSignalDisconnected = 30205,
636 kNERtcErrServerKicked = 30206,
645 kNERtcErrChannelBeClosed = 30207,
654 kNERtcErrChannelLeaveBySwitchAction = 30208,
663 kNERtcErrChannelLeaveByDuplicateUidLogin = 30209,
672 kNERtcErrOSAuthorize = 30300,
681 kNERtcRuntimeErrADMNoAuthorize = 40000,
690 kNERtcRuntimeErrADMInitRecording = 40001,
699 kNERtcRuntimeErrADMStartRecording = 40002,
708 kNERtcRuntimeErrADMStopRecording= 40003,
717 kNERtcRuntimeErrADMInitPlayout = 40004,
726 kNERtcRuntimeErrADMStartPlayout = 40005,
735 kNERtcRuntimeErrADMStopPlayout = 40006,
743 kNERtcRuntimeErrADMRecordingFailed = 40007,
751 kNERtcRuntimeErrADMPlayoutFailed = 40008,
760 kNERtcRuntimeErrADMAuthorizeNotDetermined = 40009,
769 kNERtcRuntimeErrVDMNoAuthorize = 50000,
778 kNERtcRuntimeErrVDMNotScreenUseSubStream = 50001,
786 kNERtcRuntimeErrVDMCameraDisconnect = 50303,
794 kNERtcRuntimeErrVDMCameraFreezed = 50304,
802 kNERtcRuntimeErrVDMCameraUnknownError = 50305,
810 kNERtcRuntimeErrVDMCameraNoFrame = 50306,
818 kNERtcRuntimeErrVDMCameraCreateFail = 50307,
819
827 kNERtcRuntimeErrVDMScreenCaptureNoAuthorize = 50400,
835 kNERtcRuntimeErrVDMScreenSourceTypeError = 50401,
843 kNERtcRuntimeErrScreenAudienceState = 50402,
844
851 kNERtcRuntimeErrVDMCameraDueToSystemPressure = 51005,
852};
853
854typedef NS_ENUM(int, NERtcWarning) {
855
864 kNERtcNoWarning = 0,
873 KNERtcWarningChannelAbilityNotMatch = 406,
882 kNERtcWarningASLFallback = 407,
883};
884
896typedef NS_ENUM(int, kNERtcLiveStreamError) {
897
906 kNERtcLiveStreamErrorRequestIsInvaild = 1301,
907
916 kNERtcLiveStreamErrorIsInvaild = 1400,
925 kNERtcLiveStreamErrorRoomExited = 1401,
926
935 kNERtcLiveStreamErrorNumLimit = 1402,
936
945 kNERtcLiveStreamErrorDuplicateId = 1403,
946
955 kNERtcLiveStreamErrorNotFound = 1404,
964 kNERtcLiveStreamErrorRequestErr = 1417,
965
974 kNERtcLiveStreamErrorInternalServerErr = 1500,
975
984 kNERtcErrLsTaskInvalidLayout = 1501,
993 kNERtcErrLsTaskUserPicErr = 1512,
994};
995
996
997extern __attribute__((visibility("default"))) NSString * const NERtcReserveChannelErrorDomain;
998extern __attribute__((visibility("default"))) NSString * const NERtcRoomServerErrorDomain;
999extern __attribute__((visibility("default"))) NSString * const NERtcLocalErrorDomain;
1000extern __attribute__((visibility("default"))) NSString * const NERtcRemoteErrorDomain;
1001
1002#ifdef __cplusplus
1003extern "C" {
1004#endif
1005
1006
1007
1020__attribute__((visibility("default"))) NSString * NERtcErrorDescription(int errorCode);
1021
1022#ifdef __cplusplus
1023} // extern "C"
1024#endif
1025
1026NS_ASSUME_NONNULL_END