NERtc Android SDK
Public 属性 | 所有成员列表
com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode接口 参考

Public 属性

int OK = 0
 
int ILLEGAL_ARGUMENT = RtcCode.ILLEGAL_ARGUMENT
 
int RESERVE_ERROR_TIME_OUT = 408
 
int RESERVE_ERROR_INVALID_PARAMETER = 414
 
int RESERVE_ERROR_MORE_THAN_TWO_USER = 600
 
int RESERVE_ERROR_NO_PERMISSION = 403
 
int RESERVE_ERROR_RESERVE_SERVER_FAIL = 500
 
int ENGINE_ERROR_FATAL = 30001
 
int ENGINE_ERROR_OUT_OF_MEMORY = 30002
 
int ENGINE_ERROR_INVALID_PARAM = 30003
 
int ENGINE_ERROR_NOT_SUPPORTED = 30004
 
int ENGINE_ERROR_INVALID_STATE = 30005
 
int ENGINE_ERROR_LACK_OF_RESOURCE = 30006
 
int ENGINE_ERROR_INVALID_INDEX = 30007
 
int ENGINE_ERROR_DEVICE_NOT_FOUND = 30008
 
int ENGINE_ERROR_INVALID_DEVICE_SOURCEID = 30009
 
int ENGINE_ERROR_INVALID_VIDEO_PROFILE = 30010
 
int ENGINE_ERROR_CREATE_DEVICE_SOURCE_FAIL = 30011
 
int ENGINE_ERROR_INVALID_RENDER = 30012
 
int ENGINE_ERROR_DEVICE_PREVIEW_ALREADY_STARTED = 30013
 
int ENGINE_ERROR_TRANSMIT_PENDDING = 30014
 
int ENGINE_ERROR_CONNECT_FAIL = 30015
 
int ENGINE_ERROR_CREATE_DUMP_FILE_FAIL = 300016
 
int ENGINE_ERROR_START_DUMP_FAIL = 300017
 
int ENGINE_ERROR_ROOM_ALREADY_JOINED = 30100
 
int ENGINE_ERROR_ROOM_NOT_JOINED = 30101
 
int ENGINE_ERROR_ROOM_REPLEATEDLY_LEAVE = 30102
 
int ENGINE_ERROR_REQUEST_JOIN_ROOM_FAIL = 30103
 
int ENGINE_ERROR_SESSION_NOT_FOUND = 30104
 
int ENGINE_ERROR_USER_NOT_FOUND = 30105
 
int ENGINE_ERROR_INVALID_USERID = 30106
 
int ENGINE_ERROR_MEDIA_NOT_STARTED = 30107
 
int ENGINE_ERROR_SOURCE_NOT_FOUND = 30108
 
int SWITCH_CHANNEL_NOT_JOINED = 30109
 
int ENGINE_ERROR_CHANNEL_MEDIARELAY_STATE_INVALID = 30110
 
int ENGINE_ERROR_CHANNEL_MEDIARELAY_DENIED = 30111
 
int ENGINE_ERROR_CHANNEL_MEDIARELAY_STOP_FAILED = 30112
 
int ENGINE_ERROR_CONNECTION_NOT_FOUND = 30200
 
int ENGINE_ERROR_STREAM_NOT_FOUND = 30201
 
int ENGINE_ERROR_ADD_TRACK_FAIL = 30202
 
int ENGINE_ERROR_TRACK_NOT_FOUND = 30203
 
int ENGINE_ERROR_MEDIA_CONNECTION_DISCONNECTED = 30204
 
int ENGINE_ERROR_SIGNAL_DISCONNECTED = 30205
 
int ENGINE_ERROR_SERVER_KICKED = 30206
 
int ENGINE_ERROR_ROOM_CLOSED = 30207
 
int LEAVE_CHANNEL_FOR_SWITCH = 30208
 

详细描述

错误码定义

类成员变量说明

◆ ENGINE_ERROR_ADD_TRACK_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_ADD_TRACK_FAIL = 30202

添加Track失败

◆ ENGINE_ERROR_CHANNEL_MEDIARELAY_DENIED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CHANNEL_MEDIARELAY_DENIED = 30111

媒体流转发权限不足。

原因通常包括:

  • 源房间的房间类型为双人房间(1V1模式)。此时无法转发媒体流。
  • 调用 startChannelMediaRelay 开启媒体流转发的成员角色为观众角色,仅主播角色可以转发媒体流。

◆ ENGINE_ERROR_CHANNEL_MEDIARELAY_STATE_INVALID

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CHANNEL_MEDIARELAY_STATE_INVALID = 30110

媒体流转发状态无效。

原因通常为重复调用 startChannelMediaRelay。成功调用startChannelMediaRelay后,必须先调用 stopChannelMediaRelay 方法退出当前的转发状态,才能再次调用该方法。

◆ ENGINE_ERROR_CHANNEL_MEDIARELAY_STOP_FAILED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CHANNEL_MEDIARELAY_STOP_FAILED = 30112

停止媒体流转发操作失败。

原因通常为未开启媒体流转发。请确认调用 stopChannelMediaRelay 前,是否已成功调用 startChannelMediaRelay 开启媒体流转发。

◆ ENGINE_ERROR_CONNECT_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CONNECT_FAIL = 30015

连接失败

◆ ENGINE_ERROR_CONNECTION_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CONNECTION_NOT_FOUND = 30200

连接未找到

◆ ENGINE_ERROR_CREATE_DEVICE_SOURCE_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CREATE_DEVICE_SOURCE_FAIL = 30011

创建设备失败

◆ ENGINE_ERROR_CREATE_DUMP_FILE_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_CREATE_DUMP_FILE_FAIL = 300016

创建dump 失败

◆ ENGINE_ERROR_DEVICE_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_DEVICE_NOT_FOUND = 30008

设备未找到

◆ ENGINE_ERROR_DEVICE_PREVIEW_ALREADY_STARTED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_DEVICE_PREVIEW_ALREADY_STARTED = 30013

预览已打开

◆ ENGINE_ERROR_FATAL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_FATAL = 30001

内部错误

◆ ENGINE_ERROR_INVALID_DEVICE_SOURCEID

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_DEVICE_SOURCEID = 30009

设备ID非法

◆ ENGINE_ERROR_INVALID_INDEX

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_INDEX = 30007

序号非法

◆ ENGINE_ERROR_INVALID_PARAM

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_PARAM = 30003

参数错误

◆ ENGINE_ERROR_INVALID_RENDER

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_RENDER = 30012

画布非法

◆ ENGINE_ERROR_INVALID_STATE

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_STATE = 30005

状态错误

◆ ENGINE_ERROR_INVALID_USERID

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_USERID = 30106

非法用户

◆ ENGINE_ERROR_INVALID_VIDEO_PROFILE

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_INVALID_VIDEO_PROFILE = 30010

视频能力非法

◆ ENGINE_ERROR_LACK_OF_RESOURCE

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_LACK_OF_RESOURCE = 30006

缺乏资源

◆ ENGINE_ERROR_MEDIA_CONNECTION_DISCONNECTED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_MEDIA_CONNECTION_DISCONNECTED = 30204

媒体连接已断开

◆ ENGINE_ERROR_MEDIA_NOT_STARTED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_MEDIA_NOT_STARTED = 30107

媒体会话未建立

◆ ENGINE_ERROR_NOT_SUPPORTED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_NOT_SUPPORTED = 30004

不支持

◆ ENGINE_ERROR_OUT_OF_MEMORY

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_OUT_OF_MEMORY = 30002

内存溢出

◆ ENGINE_ERROR_REQUEST_JOIN_ROOM_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_REQUEST_JOIN_ROOM_FAIL = 30103

请求加入房间失败

◆ ENGINE_ERROR_ROOM_ALREADY_JOINED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_ROOM_ALREADY_JOINED = 30100

房间已加入

◆ ENGINE_ERROR_ROOM_CLOSED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_ROOM_CLOSED = 30207

房间被关闭

◆ ENGINE_ERROR_ROOM_NOT_JOINED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_ROOM_NOT_JOINED = 30101

房间未加入

◆ ENGINE_ERROR_ROOM_REPLEATEDLY_LEAVE

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_ROOM_REPLEATEDLY_LEAVE = 30102

重复离开房间

◆ ENGINE_ERROR_SERVER_KICKED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_SERVER_KICKED = 30206

被管理员踢出房间

◆ ENGINE_ERROR_SESSION_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_SESSION_NOT_FOUND = 30104

会话未找到

◆ ENGINE_ERROR_SIGNAL_DISCONNECTED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_SIGNAL_DISCONNECTED = 30205

信令断开

◆ ENGINE_ERROR_SOURCE_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_SOURCE_NOT_FOUND = 30108

媒体源未找到

◆ ENGINE_ERROR_START_DUMP_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_START_DUMP_FAIL = 300017

开始dump失败

◆ ENGINE_ERROR_STREAM_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_STREAM_NOT_FOUND = 30201

媒体流未找到

◆ ENGINE_ERROR_TRACK_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_TRACK_NOT_FOUND = 30203

Track未找到

◆ ENGINE_ERROR_TRANSMIT_PENDDING

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_TRANSMIT_PENDDING = 30014

挂起

◆ ENGINE_ERROR_USER_NOT_FOUND

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ENGINE_ERROR_USER_NOT_FOUND = 30105

用户未找到

◆ ILLEGAL_ARGUMENT

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.ILLEGAL_ARGUMENT = RtcCode.ILLEGAL_ARGUMENT

参数错误

◆ LEAVE_CHANNEL_FOR_SWITCH

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.LEAVE_CHANNEL_FOR_SWITCH = 30208

因为切换频道而离开房间

◆ OK

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.OK = 0

成功

◆ RESERVE_ERROR_INVALID_PARAMETER

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.RESERVE_ERROR_INVALID_PARAMETER = 414

参数错误

◆ RESERVE_ERROR_MORE_THAN_TWO_USER

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.RESERVE_ERROR_MORE_THAN_TWO_USER = 600

只支持两个用户, 有第三个人试图使用相同的频道名分配频道

◆ RESERVE_ERROR_NO_PERMISSION

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.RESERVE_ERROR_NO_PERMISSION = 403

没有权限,包括没有开通音视频功能、没有开通非安全但是请求了非安全等

◆ RESERVE_ERROR_RESERVE_SERVER_FAIL

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.RESERVE_ERROR_RESERVE_SERVER_FAIL = 500

分配频道服务器出错

◆ RESERVE_ERROR_TIME_OUT

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.RESERVE_ERROR_TIME_OUT = 408

请求超时

◆ SWITCH_CHANNEL_NOT_JOINED

int com.netease.lava.nertc.sdk.NERtcConstants.ErrorCode.SWITCH_CHANNEL_NOT_JOINED = 30109

切换频道时不在会议中


该接口的文档由以下文件生成: