Skip to content
Ju Liaoyuan edited this page Dec 20, 2022 · 1 revision

SNCode Constants Reference

  Declared in SNCode.h

SNCode

Soraka Log

Definition

typedef NS_ENUM(NSInteger, SNCode ) {   
    
    SNCodeNoError = 0,
    
    SNCodeZegoInitSDKSuccess = 11001,
    
    SNCodeZegoInitSDKFail = -11001,
    
    SNCodeZegoUnInitSDKSuccess = 11002,
    
    SNCodeZegoUnInitSDKSuccessFail = -11002,
    
    SNCodeZegoPublishStreamSuccess = 11003,
    
    SNCodeZegoPublishStreamFail = -11003,
    
    SNCodeZegoPublishCallbackSuccess = 11004,
    
    SNCodeZegoPublishCallbackFail = -11004,
    
    SNCodeZegoStopPublishSuccess = 11005,
    
    SNCodeZegoStopPublishFail = -11005,
    
    SNCodeZegoStartPullMultiStreamSuccess = 11006,
    
    SNCodeZegoStartPullMultiStreamFail = -11006,
    
    SNCodeZegoPullStreamCallbackSuccess = 11007,
    
    SNCodeZegoPullStreamCallbackFail = -11007,
    
    SNCodeZegoStopPullMultiStreamSuccess = 11008,
    
    SNCodeZegoStopPullMultiStreamFail = -11008,
    
    SNCodeZegoEnterSuccess = 11010,
    
    SNCodeZegoEnterFail = -11010,
    
    SNCodeZegoLeaveSuccess = 11011,
    
    SNCodeZegoLeaveFail = -11011,
    
    SNCodeZegoMicSuccess = 11012,
    
    SNCodeZegoMicFail = -11012,
    
    SNCodeZegoSetUserSuccess = 11013,
    
    SNCodeZegoSetUserFail = -11013,
    
    SNCodeZegoMuteSuccess = 11014,
    
    SNCodeZegoMuteFail = -11014,
    
    SNCodeZegoDisconnect = -11015,
    
    SNCodeZGSpeakerSuccess = 11017,
    
    SNCodeZGSpeakerFail = -11017,
    
    SNCodeZGBGMPlaySuccess = 11018,
    
    SNCodeZGBGMPlayFail = -11018,
    
    SNCodeZGBGMStopSuccess = 11019,
    
    SNCodeZGBGMStopFail = -11019,
    
    SNCodeZGBGMPauseSuccess = 11020,
    
    SNCodeZGBGMPauseFail = -11020,
    
    SNCodeZGBGMResumeSuccess = 11021,
    
    SNCodeZGBGMResumeFail = -11021,
    
    SNCodeZGBGMSetPositionSuccess = 11022,
    
    SNCodeZGBGMRSetPositionFail = -11022,
    
    SNCodeZGBGMSetVolumeSuccess = 11023,
    
    SNCodeZGBGMRSetVolumeFail = -11023,
    
    SNCodeZGSetFrontCameraSuccess = 11024,
    
    SNCodeZGSetFrontCameraFail = -11024,
    
    SNCodeZGSetCameraSuccess = 11025,
    
    SNCodeZGSetCameraFail = -11025,
    
    SNCodeZGSetAVConfigSuccess = 11026,
    
    SNCodeZGSetAVConfigFail = -11026,
    
    SNCodeZGPullMixStreamSuccess = 11027,
    
    SNCodeZGPullMixStreamFail = -11027,
    
    SNCodeZGStopPullMixStreamSuccess = 11028,
    
    SNCodeZGStopPullMixStreamFail = -11028,
    
    SNCodeTXEnterSuccess = 12010,
    
    SNCodeTXEnterFail = -12010,
    
    SNCodeTXLeaveSuccess = 12011,
    
    SNCodeTXLeaveFail = -12011,
    
    SNCodeTXMicSuccess = 12012,
    
    SNCodeTXMicFail = -12012,
    
    SNCodeTXDisconnection = -12015,
    
    SNCodeTXPublishStreamSuccess = 12003,
    
    SNCodeTXPublishStreamFail = -12003,
    
    SNCodeTXStopPublishSuccess = 12005,
    
    SNCodeTXStopPublishFail = -12005,
    
    SNCodeTXStartPullMultiStreamSuccess = 12006,
    
    SNCodeTXStartPullMultiStreamFail = -12006,
    
    SNCodeTXStopPullMultiStreamSuccess = 12008,
    
    SNCodeTXStopPullMultiStreamFail = -12008,
    
    SNCodeTXSpeakerSuccess = 12017,
    
    SNCodeTXSpeakerFail = -12017,
    
    SNCodeTXBGMPlaySuccess = 12018,
    
    SNCodeTXBGMPlayFail = -12018,
    
    SNCodeTXBGMStopSuccess = 12019,
    
    SNCodeTXBGMStopFail = -12019,
    
    SNCodeTXBGMPauseSuccess = 12020,
    
    SNCodeTXBGMPauseFail = -12020,
    
    SNCodeTXBGMResumeSuccess = 12021,
    
    SNCodeTXBGMResumeFail = -12021,
    
    SNCodeTXBGMSetPositionSuccess = 12022,
    
    SNCodeTXBGMRSetPositionFail = -12022,
    
    SNCodeTXBGMSetVolumeSuccess = 12023,
    
    SNCodeTXBGMRSetVolumeFail = -12023,
    
    SNCodeTXPullMixStreamSuccess = 12027,
    
    SNCodeTXPullMixStreamFail = -12027,
    
    SNCodeTXStopPullMixStreamSuccess = 12028,
    
    SNCodeTXStopPullMixStreamFail = -12028,
    
    SNCodeAudioBreak = -14001,
    
    SNCodeAudioEnd = -14002,
    
    SNCodeNIMEnterSuccess = 21002,
    
    SNCodeNIMEnterFail = -21002,
    
    SNCodeNIMIlleagl = -21003,
    
    SNCodeMCREnterSuccess = 22002,
    
    SNCodeMCREnterFail = -22002,
    
    SNCodeMCRIlleagl = -22003,
    
    SNCodeDeviceError = -3000,
    
};

Constants

SNCodeNoError

无错误

   Declared In SNCode.h.

SNCodeZegoInitSDKSuccess

即构SDK初始化成功

   Declared In SNCode.h.

SNCodeZegoInitSDKFail

即构SDK初始化失败

   Declared In SNCode.h.

SNCodeZegoUnInitSDKSuccess

即构SDK反初始化成功

   Declared In SNCode.h.

SNCodeZegoUnInitSDKSuccessFail

即构SDK反初始化失败

   Declared In SNCode.h.

SNCodeZegoPublishStreamSuccess

即构推流成功

   Declared In SNCode.h.

SNCodeZegoPublishStreamFail

即构推流失败

   Declared In SNCode.h.

SNCodeZegoPublishCallbackSuccess

即构推流回调成功

   Declared In SNCode.h.

SNCodeZegoPublishCallbackFail

即构推流回调失败

   Declared In SNCode.h.

SNCodeZegoStopPublishSuccess

即构停止推流成功

   Declared In SNCode.h.

SNCodeZegoStopPublishFail

即构停止推流失败

   Declared In SNCode.h.

SNCodeZegoStartPullMultiStreamSuccess

即构拉多流成功

   Declared In SNCode.h.

SNCodeZegoStartPullMultiStreamFail

即构拉多流失败

   Declared In SNCode.h.

SNCodeZegoPullStreamCallbackSuccess

即构拉流回调成功

   Declared In SNCode.h.

SNCodeZegoPullStreamCallbackFail

即构拉流回调失败

   Declared In SNCode.h.

SNCodeZegoStopPullMultiStreamSuccess

即构停止拉流成功

   Declared In SNCode.h.

SNCodeZegoStopPullMultiStreamFail

即构停止拉流失败

   Declared In SNCode.h.

SNCodeZegoEnterSuccess

即构登录房间成功

   Declared In SNCode.h.

SNCodeZegoEnterFail

即构登录房间失败

   Declared In SNCode.h.

SNCodeZegoLeaveSuccess

即构退出房间成功

   Declared In SNCode.h.

SNCodeZegoLeaveFail

即构退出房间失败

   Declared In SNCode.h.

SNCodeZegoMicSuccess

即构操作麦克风成功

   Declared In SNCode.h.

SNCodeZegoMicFail

即构操作麦克风失败

   Declared In SNCode.h.

SNCodeZegoSetUserSuccess

即构设置用户成功

   Declared In SNCode.h.

SNCodeZegoSetUserFail

即构设置用户失败

   Declared In SNCode.h.

SNCodeZegoMuteSuccess

即构操作音量成功

   Declared In SNCode.h.

SNCodeZegoMuteFail

即构操作音量成功

   Declared In SNCode.h.

SNCodeZegoDisconnect

即构断开连接

   Declared In SNCode.h.

SNCodeZGSpeakerSuccess

即构切换扬声器成功

   Declared In SNCode.h.

SNCodeZGSpeakerFail

即构切换扬声器失败

   Declared In SNCode.h.

SNCodeZGBGMPlaySuccess

即构播放bgm完成

   Declared In SNCode.h.

SNCodeZGBGMPlayFail

即构播放bgm失败

   Declared In SNCode.h.

SNCodeZGBGMStopSuccess

即构停止播放bgm成功

   Declared In SNCode.h.

SNCodeZGBGMStopFail

即构停止播放bgm失败

   Declared In SNCode.h.

SNCodeZGBGMPauseSuccess

即构暂停播放bgm成功

   Declared In SNCode.h.

SNCodeZGBGMPauseFail

即构停止播放bgm失败

   Declared In SNCode.h.

SNCodeZGBGMResumeSuccess

即构继续播放bgm成功

   Declared In SNCode.h.

SNCodeZGBGMResumeFail

即构继续播放bgm失败

   Declared In SNCode.h.

SNCodeZGBGMSetPositionSuccess

即构继续播放bgm成功

   Declared In SNCode.h.

SNCodeZGBGMRSetPositionFail

即构继续播放bgm失败

   Declared In SNCode.h.

SNCodeZGBGMSetVolumeSuccess

即构设置bgm音量成功

   Declared In SNCode.h.

SNCodeZGBGMRSetVolumeFail

即构设置bgm音量失败

   Declared In SNCode.h.

SNCodeZGSetFrontCameraSuccess

即构设置前置摄像头成功

   Declared In SNCode.h.

SNCodeZGSetFrontCameraFail

即构设置前置摄像头失败

   Declared In SNCode.h.

SNCodeZGSetCameraSuccess

即构设置摄像头成功

   Declared In SNCode.h.

SNCodeZGSetCameraFail

即构设置摄像头失败

   Declared In SNCode.h.

SNCodeZGSetAVConfigSuccess

即构设置视频推流信息成功

   Declared In SNCode.h.

SNCodeZGSetAVConfigFail

即构设置视频推流信息失败

   Declared In SNCode.h.

SNCodeZGPullMixStreamSuccess

即构拉混流成功

   Declared In SNCode.h.

SNCodeZGPullMixStreamFail

即构拉混流失败

   Declared In SNCode.h.

SNCodeZGStopPullMixStreamSuccess

即构停止拉混流成功

   Declared In SNCode.h.

SNCodeZGStopPullMixStreamFail

即构停止拉混流失败

   Declared In SNCode.h.

SNCodeTXEnterSuccess

腾讯登录房间成功

   Declared In SNCode.h.

SNCodeTXEnterFail

腾讯登录房间失败

   Declared In SNCode.h.

SNCodeTXLeaveSuccess

腾讯登出房间成功

   Declared In SNCode.h.

SNCodeTXLeaveFail

腾讯登出房间失败

   Declared In SNCode.h.

SNCodeTXMicSuccess

腾讯操作麦克风成功

   Declared In SNCode.h.

SNCodeTXMicFail

腾讯操作麦克风失败

   Declared In SNCode.h.

SNCodeTXDisconnection

腾讯房间断链

   Declared In SNCode.h.

SNCodeTXPublishStreamSuccess

腾讯推流成功

   Declared In SNCode.h.

SNCodeTXPublishStreamFail

腾讯推流失败

   Declared In SNCode.h.

SNCodeTXStopPublishSuccess

腾讯停止推流成功

   Declared In SNCode.h.

SNCodeTXStopPublishFail

腾讯停止推流失败

   Declared In SNCode.h.

SNCodeTXStartPullMultiStreamSuccess

腾讯拉多流成功

   Declared In SNCode.h.

SNCodeTXStartPullMultiStreamFail

腾讯拉多流失败

   Declared In SNCode.h.

SNCodeTXStopPullMultiStreamSuccess

腾讯停止拉流成功

   Declared In SNCode.h.

SNCodeTXStopPullMultiStreamFail

腾讯停止拉流失败

   Declared In SNCode.h.

SNCodeTXSpeakerSuccess

腾讯切换扬声器成功

   Declared In SNCode.h.

SNCodeTXSpeakerFail

腾讯切换扬声器失败

   Declared In SNCode.h.

SNCodeTXBGMPlaySuccess

腾讯播放bgm完成

   Declared In SNCode.h.

SNCodeTXBGMPlayFail

腾讯播放bgm失败

   Declared In SNCode.h.

SNCodeTXBGMStopSuccess

腾讯停止播放bgm成功

   Declared In SNCode.h.

SNCodeTXBGMStopFail

腾讯停止播放bgm失败

   Declared In SNCode.h.

SNCodeTXBGMPauseSuccess

腾讯暂停播放bgm成功

   Declared In SNCode.h.

SNCodeTXBGMPauseFail

腾讯停止播放bgm失败

   Declared In SNCode.h.

SNCodeTXBGMResumeSuccess

腾讯继续播放bgm成功

   Declared In SNCode.h.

SNCodeTXBGMResumeFail

腾讯继续播放bgm失败

   Declared In SNCode.h.

SNCodeTXBGMSetPositionSuccess

腾讯继续播放bgm成功

   Declared In SNCode.h.

SNCodeTXBGMRSetPositionFail

腾讯继续播放bgm失败

   Declared In SNCode.h.

SNCodeTXBGMSetVolumeSuccess

腾讯设置bgm音量成功

   Declared In SNCode.h.

SNCodeTXBGMRSetVolumeFail

腾讯设置bgm音量失败

   Declared In SNCode.h.

SNCodeTXPullMixStreamSuccess

腾讯拉混流成功

   Declared In SNCode.h.

SNCodeTXPullMixStreamFail

腾讯拉混流失败

   Declared In SNCode.h.

SNCodeTXStopPullMixStreamSuccess

腾讯停止拉混流成功

   Declared In SNCode.h.

SNCodeTXStopPullMixStreamFail

腾讯停止拉混流失败

   Declared In SNCode.h.

SNCodeAudioBreak

音频卡顿开始

   Declared In SNCode.h.

SNCodeAudioEnd

音频卡顿结束

   Declared In SNCode.h.

SNCodeNIMEnterSuccess

进入聊天室成功

   Declared In SNCode.h.

SNCodeNIMEnterFail

进入聊天室失败

   Declared In SNCode.h.

SNCodeNIMIlleagl

聊天室异常

   Declared In SNCode.h.

SNCodeMCREnterSuccess

进入Mercury聊天室成功

   Declared In SNCode.h.

SNCodeMCREnterFail

进入Mercury聊天室失败

   Declared In SNCode.h.

SNCodeMCRIlleagl

Mercury聊天室异常

   Declared In SNCode.h.

SNCodeDeviceError

设备报Device error错误码

   Declared In SNCode.h.

Declared In

SNCode.h

Clone this wiki locally