NERtc iOS SDK  V4.4.301
枚举 | 函数 | 变量
NERtcEngineErrorCode.h 文件参考
#import <Foundation/Foundation.h>

浏览源代码.

枚举

enum  NERtcError {
  kNERtcNoError = 0 , KNERtcErrChannelReservePermissionDenied = 403 , kNERtcErrChannelReserveTimeOut = 408 , kNERtcErrChannelReserveErrorParam = 414 ,
  kNERtcErrChannelReserveErrorAppKey = 417 , kNERtcErrChannelReserveMoreThanTwoUser = 600 , kNERtcErrChannelReserveServerFail = 601 , kNERtcErrFatal = 30001 ,
  kNERtcErrOutOfMemory = 30002 , kNERtcErrInvalidParam = 30003 , kNERtcErrNotSupported = 30004 , kNERtcErrInvalidState = 30005 ,
  kNERtcErrLackOfResource = 30006 , kNERtcErrInvalidIndex = 30007 , kNERtcErrDeviceNotFound = 30008 , kNERtcErrInvalidDeviceSourceID = 30009 ,
  kNERtcErrInvalidVideoProfile = 30010 , kNERtcErrCreateDeviceSourceFail = 30011 , kNERtcErrInvalidRender = 30012 , kNERtcErrDevicePreviewAlreadyStarted = 30013 ,
  kNERtcErrTransmitPendding = 30014 , kNERtcErrConnectFail = 30015 , kNERtcErrChannelAlreadyJoined = 30100 , kNERtcErrChannelNotJoined = 30101 ,
  kNERtcErrChannelRepleatedlyLeave = 30102 , kNERtcErrRequestJoinChannelFail = 30103 , kNERtcErrSessionNotFound = 30104 , kNERtcErrUserNotFound = 30105 ,
  kNERtcErrInvalidUserID = 30106 , kNERtcErrMediaNotStarted = 30107 , kNERtcErrSourceNotFound = 30108 , kNERtcErrSwitchChannelInvalidState = 30109 ,
  kNERtcErrChannelMediaRelayInvalidState = 30110 , kNERtcErrChannelMediaRelayPermissionDenied = 30111 , kNERtcErrChannelMediaRelayStopFailed = 30112 , kNERtcErrEncryptNotSuitable = 30113 ,
  kNERtcErrConnectionNotFound = 30200 , kNERtcErrStreamNotFound = 30201 , kNERtcErrAddTrackFail = 30202 , kNERtcErrTrackNotFound = 30203 ,
  kNERtcErrMediaConnectionDisconnected = 30204 , kNERtcErrSignalDisconnected = 30205 , kNERtcErrServerKicked = 30206 , kNERtcErrChannelBeClosed = 30207 ,
  kNERtcErrChannelLeaveBySwitchAction = 30208 , kNERtcErrChannelLeaveByDuplicateUidLogin = 30209 , kNERtcErrOSAuthorize = 30300 , kNERtcRuntimeErrADMNoAuthorize = 40000 ,
  kNERtcRuntimeErrADMInitRecording = 40001 , kNERtcRuntimeErrADMStartRecording = 40002 , kNERtcRuntimeErrADMStopRecording = 40003 , kNERtcRuntimeErrADMInitPlayout = 40004 ,
  kNERtcRuntimeErrADMStartPlayout = 40005 , kNERtcRuntimeErrADMStopPlayout = 40006 , kNERtcRuntimeErrVDMNoAuthorize = 50000 , kNERtcRuntimeErrVDMNotScreenUseSubStream = 50001
}
 Engine Error Code 更多...
 
enum  NERtcWarning { kNERtcNoWarning = 0 , KNERtcWarningChannelAbilityNotMatch = 406 }
 
enum  kNERtcLiveStreamError {
  kNERtcLiveStreamErrorRequestIsInvaild = 1301 , kNERtcLiveStreamErrorIsInvaild = 1400 , kNERtcLiveStreamErrorRoomExited = 1401 , kNERtcLiveStreamErrorNumLimit = 1402 ,
  kNERtcLiveStreamErrorDuplicateId = 1403 , kNERtcLiveStreamErrorNotFound = 1404 , kNERtcLiveStreamErrorRequestErr = 1417 , kNERtcLiveStreamErrorInternalServerErr = 1500 ,
  kNERtcErrLsTaskInvalidLayout = 1501 , kNERtcErrLsTaskUserPicErr = 1502
}
 LiveStream Error Code 更多...
 

函数

NSString * NERtcErrorDescription (int errorCode)
 Gets the error code description 更多...
 

变量

NSString *const NERtcReserveChannelErrorDomain
 
NSString *const NERtcRoomServerErrorDomain
 
NSString *const NERtcLocalErrorDomain
 
NSString *const NERtcRemoteErrorDomain
 

枚举类型说明

◆ kNERtcLiveStreamError

LiveStream Error Code

枚举值
kNERtcLiveStreamErrorRequestIsInvaild 

The task request is invalid and overwritten by subsequent operations

kNERtcLiveStreamErrorIsInvaild 

The task parameter has an invalid format

kNERtcLiveStreamErrorRoomExited 

The client already leaves the room

kNERtcLiveStreamErrorNumLimit 

The number of streaming tasks reaches the upper limit.

kNERtcLiveStreamErrorDuplicateId 

Duplicate ID of a streaming task

kNERtcLiveStreamErrorNotFound 

The task ID does not exist, or the room does not exist

kNERtcLiveStreamErrorRequestErr 

Request failed

kNERtcLiveStreamErrorInternalServerErr 

Server internal error

kNERtcErrLsTaskInvalidLayout 

The layout parameter is invalid

kNERtcErrLsTaskUserPicErr 

User picture error

◆ NERtcError

enum NERtcError

Engine Error Code

枚举值
kNERtcNoError 

No errors

KNERtcErrChannelReservePermissionDenied 

No permissions.

Reasons:

  • The RTC v2.0 service is not activated. The trial period expires. The service is not renewed.
  • Token is not set when a user joins a room in safe mode.
  • Others issues.
kNERtcErrChannelReserveTimeOut 

The request timed out

kNERtcErrChannelReserveErrorParam 

Request parameters error

kNERtcErrChannelReserveErrorAppKey 

Invalid APP KEY

kNERtcErrChannelReserveMoreThanTwoUser 

Only two users are supported.

A third user tries to allocate a room with the same room name.

kNERtcErrChannelReserveServerFail 

Server error in allocating rooms

kNERtcErrFatal 

Common error

kNERtcErrOutOfMemory 

Out of memory

kNERtcErrInvalidParam 

Invalid parameter

kNERtcErrNotSupported 

Unsupported operation

kNERtcErrInvalidState 

Operations not supported by the current state

kNERtcErrLackOfResource 

Resource exhausted

kNERtcErrInvalidIndex 

Invalid index

kNERtcErrDeviceNotFound 

Device not found

kNERtcErrInvalidDeviceSourceID 

Invalid device ID

kNERtcErrInvalidVideoProfile 

Invalid video profile type

kNERtcErrCreateDeviceSourceFail 

Device source error

kNERtcErrInvalidRender 

Invalid rendering container

kNERtcErrDevicePreviewAlreadyStarted 

The device already turned on

kNERtcErrTransmitPendding 

Transmission error

kNERtcErrConnectFail 

Connecting server error

kNERtcErrChannelAlreadyJoined 

A user already joined a room.

kNERtcErrChannelNotJoined 

A user has not joined the room.

kNERtcErrChannelRepleatedlyLeave 

A user repeatedly leaves the room.

kNERtcErrRequestJoinChannelFail 

Fail to join the room.

kNERtcErrSessionNotFound 

Session not found.

kNERtcErrUserNotFound 

User not found

kNERtcErrInvalidUserID 

Invalid user ID

kNERtcErrMediaNotStarted 

Multimedia data is not transmitted.

kNERtcErrSourceNotFound 

source not found

kNERtcErrSwitchChannelInvalidState 

Invalid room status during switching

kNERtcErrChannelMediaRelayInvalidState 

Invalid status during the media stream relay.

The typical reason is repeated calling startChannelMediaRelay. If you want to call the startChannelMediaRelay method for another time, you must first call the stopChannelMediaRelay method to exit the current relaying status.

kNERtcErrChannelMediaRelayPermissionDenied 

No permissions to relay media stream.

Reasons:
- The type of the original room is a double room (1V1 mode). The media stream cannot be relayed at this moment.
- The member role that calls startChannelMediaRelay to relay media stream is audience. Only the host role can relay the media stream. 
kNERtcErrChannelMediaRelayStopFailed 

Failed to stop relaying media stream.

The typical reason is that the media stream relay is disabled. Before you call stopChannelMediaRelay, make sure that you have called startChannelMediaRelay to enable the media stream relay.

kNERtcErrEncryptNotSuitable 

Failed to join the room because the specified media stream encryption key is inconsistent with the key specified by one or more of the members who join the room.

Reset the encryption key by calling enableEncryption.

kNERtcErrConnectionNotFound 

Connection not found.

kNERtcErrStreamNotFound 

Media stream not found

kNERtcErrAddTrackFail 

Failed to join track.

kNERtcErrTrackNotFound 

Track not found.

kNERtcErrMediaConnectionDisconnected 

Media stream disconnected.

kNERtcErrSignalDisconnected 

Signaling disconnected.

kNERtcErrServerKicked 

Removed from the room.

kNERtcErrChannelBeClosed 

The room is deleted.

kNERtcErrChannelLeaveBySwitchAction 

The room was closed due to the operation of switching rooms.

kNERtcErrChannelLeaveByDuplicateUidLogin 

The room was closed due to duplicate uid logins

kNERtcErrOSAuthorize 

Operating system permissions issue

kNERtcRuntimeErrADMNoAuthorize 

have no audio device permissions

kNERtcRuntimeErrADMInitRecording 

Failed to initialize the audio capture device

kNERtcRuntimeErrADMStartRecording 

Failed to start the audio capture device

kNERtcRuntimeErrADMStopRecording 

Failed to stop the audio capture device

kNERtcRuntimeErrADMInitPlayout 

Failed to initialize the audio playback device

kNERtcRuntimeErrADMStartPlayout 

Failed to start the audio playback device

kNERtcRuntimeErrADMStopPlayout 

Failed to stop the audio playback device

kNERtcRuntimeErrVDMNoAuthorize 

Have no video device permissions

kNERtcRuntimeErrVDMNotScreenUseSubStream 

Use substream without the screen-sharing stream

◆ NERtcWarning

枚举值
kNERtcNoWarning 

No errors

KNERtcWarningChannelAbilityNotMatch 

The video encoding capability of the current client device does not match the encoding support of the room.

For example, the device does not support encoding types such as VP8. In this room, video streams cannot be encoded and decoded. In this case, the local client may not be able to display some remote videos, and the remote client may be unable to display videos from the local client.

函数说明

◆ NERtcErrorDescription()

NSString* NERtcErrorDescription ( int  errorCode)

Gets the error code description

参数
errorCodeThe error codes. For more information, see NERtcEngineErrorCode.NERtcError.
返回
The strings in the description.

变量说明

◆ NERtcLocalErrorDomain

NSString* const NERtcLocalErrorDomain
extern

◆ NERtcRemoteErrorDomain

NSString* const NERtcRemoteErrorDomain
extern

◆ NERtcReserveChannelErrorDomain

NSString* const NERtcReserveChannelErrorDomain
extern

◆ NERtcRoomServerErrorDomain

NSString* const NERtcRoomServerErrorDomain
extern