public enum RTCErrorCode extends Enum<RTCErrorCode>
服务器返回错误以 4 开头,后两位是业务代码,最后两位是错误码 4XXXX,如 400XX 基础连接部分 本地返回错误以 5 开头,后两位是业务代码,最后两位是错误码 5XXXX,如 500XX 初始化基础连接部分
限定符和类型 | 方法和说明 |
---|---|
String |
getReason() |
int |
getValue() |
void |
setValue(int value) |
String |
toString() |
static RTCErrorCode |
valueOf(int value) |
static RTCErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RTCErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RTCErrorCode UnknownError
public static final RTCErrorCode RongRTCCodeNoMatchedRoom
public static final RTCErrorCode ServiceNotOpened
public static final RTCErrorCode ServerUserBlocked
public static final RTCErrorCode RongRTCCodeTokenExpired
public static final RTCErrorCode RongRTCCodeTokenNotInRoom
public static final RTCErrorCode RongRTCCodeSignalServerNotConnect
public static final RTCErrorCode RongRTCCodeParameterError
public static final RTCErrorCode RongRTCCodeJoinRepeatedRoom
public static final RTCErrorCode RongRTCCodeNotInRoom
public static final RTCErrorCode RongRTCCodeVoIPNotAvailable
public static final RTCErrorCode RongRTCCodeRTCTokenIsNull
public static final RTCErrorCode ILLEGALSTATE
public static final RTCErrorCode JOIN_CHAT_ROOM_TIMEOUT
public static final RTCErrorCode JOIN_CHAT_ROOM_INVOKE_IM_FAILED
public static final RTCErrorCode RongRTCCodeHttpTimeoutError
public static final RTCErrorCode RongRTCCodeHttpError
public static final RTCErrorCode RongRTCCodeNetworkUnavailable
public static final RTCErrorCode InvalidProtocolMessageError
public static final RTCErrorCode RongRTCCodePublishDuplicateResources
public static final RTCErrorCode RongRTCCodeSessionNegotiateOfferError
public static final RTCErrorCode RongRTCCodeSessionNegotiateSetRemoteError
public static final RTCErrorCode RongRTCCodePublishStreamsHasReachedMaxCount
public static final RTCErrorCode RongRTCCodeUnpublishNotExistStream
public static final RTCErrorCode INCOMPATIBLE_WITH_PRIVATE_SERVER
public static final RTCErrorCode RongRTCCodeSubscribeNotExistResources
public static final RTCErrorCode RongRTCCodeSubscribeDuplicateResources
public static final RTCErrorCode RongRTCCodeUnsubscribeNotExistResources
public static final RTCErrorCode LIVEURLNOTINCURRENTROOM
public static final RTCErrorCode RongRTCCodeRTCConnectionIsNull
public static final RTCErrorCode PublishMediaStreamIsNull
public static final RTCErrorCode JsonParseError
public static final RTCErrorCode LiveInfoIsNull
public static final RTCErrorCode ConnectionAddStreamFailed
public static final RTCErrorCode RongRTCCodeIMError
public static final RTCErrorCode RongRTCTokenError
public static final RTCErrorCode NOT_JOINED_MAIN_ROOM
public static final RTCErrorCode OTHER_ROOM_ID_CANNOT_THE_MAIN_ROOM
public static final RTCErrorCode CANCELLED_INVITATION_DOES_NOT_EXIST
public static final RTCErrorCode RESPONDING_INVITATION_DOES_NOT_EXIST
public static final RTCErrorCode MCU_PUBLISH_LIST_IS_NULL
public static final RTCErrorCode RongRTCCodeCDNCountReachToLimit
public static final RTCErrorCode RECONNECT_ERROR
IRCRTCEngineEventListener.onError(RTCErrorCode)
回调给 app层。
joinRoom 成功后,断网恢复时,SDK 内部会自动重连,
开发者可以通过 RCRTCConfig.Builder.enableAutoReconnect(boolean)
配置是否自动重连,SDK 默认开启。public static final RTCErrorCode HARDWARE_VIDEO_ENCODER_INIT_ERROR
IRCRTCEngineEventListener.onError(RTCErrorCode)
回调给 app层。public static final RTCErrorCode HARDWARE_VIDEO_ENCODER_ERROR
IRCRTCEngineEventListener.onError(RTCErrorCode)
回调给 app层。public static final RTCErrorCode HARDWARE_VIDEO_DECODER_INIT_ERROR
IRCRTCEngineEventListener.onError(RTCErrorCode)
回调给 app层。public static final RTCErrorCode HARDWARE_VIDEO_DECODER_ERROR
IRCRTCEngineEventListener.onError(RTCErrorCode)
回调给 app层。public static final RTCErrorCode CAMERA_ID_NOT_AVAILABLE
public static final RTCErrorCode NO_CAMERA_DEVICE
public static final RTCErrorCode OPEN_CAMERA_FAILED
public static final RTCErrorCode RTC_INIT_TIMEOUT
public static final RTCErrorCode OPEN_CAMERA_NO_PERMISSION
public static final RTCErrorCode CREATE_ANSWER_FAILURE
public static final RTCErrorCode CAMERA_IS_RELEASED
public static final RTCErrorCode CANCEL_OPERATOR
public static final RTCErrorCode AUDIO_MANAGER_IS_RELEASED
public static final RTCErrorCode STOP_CAMERA_FAILED
public static final RTCErrorCode OS_NOT_SUPPORT_FUNCTION
public static final RTCErrorCode START_SCREEN_CAPTURE_FIRST
public static final RTCErrorCode START_SCREEN_CAPTURE_UNKNOWN_MIXING_RULE
public static final RTCErrorCode PLAYER_MODULE_NOT_FOUND
public static final RTCErrorCode CDN_ERROR_SERVER_DIED
public static final RTCErrorCode CDN_INFO_VIDEO_INTERRUPT
public static final RTCErrorCode PLAYER_MODULE_INIT_ERROR
public static final RTCErrorCode SCREEN_SHARE_NO_PERMISSION_ERROR
public static final RTCErrorCode SCREEN_SHARE_ALREADY_CAPTURE
public static final RTCErrorCode START_PRETEST_HARDWARE_FAILED
public static final RTCErrorCode ROOM_TYPE_ERROR
public static final RTCErrorCode SAME_ROLE_ERROR
public static final RTCErrorCode SERVER_NOT_CONFIG_WISSE
public static final RTCErrorCode RTC_PROBE_TEST_NOT_START
public static final RTCErrorCode RTC_PROBE_TEST_STARTED
public static final RTCErrorCode RTC_ICE_DISCONNECT
public static final RTCErrorCode RTC_PROBE_INTERRUPT_BY_INTERNAL
public static final RTCErrorCode ILLEGAL_OPERATION_FOR_JOINING
public static RTCErrorCode[] values()
for (RTCErrorCode c : RTCErrorCode.values()) System.out.println(c);
public static RTCErrorCode valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public int getValue()
public void setValue(int value)
public String getReason()
public static RTCErrorCode valueOf(int value)
public String toString()
toString
在类中 Enum<RTCErrorCode>