IoT SDK for Android v1.8.0
Static Public Attributes | List of all members
io.agora.rtc.AgoraRtcService.ErrorCode Class Reference

Static Public Attributes

static final int ERR_OKAY = 0
 
static final int ERR_FAILED = 1
 
static final int ERR_NET_DOWN = 14
 
static final int ERR_JOIN_CHANNEL_REJECTED = 17
 
static final int ERR_INVALID_APP_ID = 101
 
static final int ERR_INVALID_CHANNEL_NAME = 102
 
static final int ERR_NO_SERVER_RESOURCES = 103
 
static final int ERR_LOOKUP_CHANNEL_REJECTED = 105
 
static final int ERR_OPEN_CHANNEL_REJECTED = 107
 
static final int ERR_TOKEN_EXPIRED = 109
 
static final int ERR_INVALID_TOKEN = 110
 
static final int ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119
 
static final int ERR_DECRYPTION_FAILED = 120
 
static final int ERR_OPEN_CHANNEL_INVALID_TICKET = 121
 
static final int ERR_OPEN_CHANNEL_TRY_NEXT_VOS = 122
 
static final int ERR_CLIENT_IS_BANNED_BY_SERVER = 123
 
static final int ERR_SEND_VIDEO_OVER_BANDWIDTH_LIMIT = 200
 
static final int ERR_AUDIO_DECODER_NOT_MATCH_AUDIO_FRAME = 201
 
static final int ERR_NO_AUDIO_DECODER_TO_HANDLE_AUDIO_FRAME = 202
 

Detailed Description

RTC error codes.

Member Data Documentation

◆ ERR_AUDIO_DECODER_NOT_MATCH_AUDIO_FRAME

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_AUDIO_DECODER_NOT_MATCH_AUDIO_FRAME = 201
static

201: SDK decoding fails because the audio encoding type you have configured does not match the actual encoding type.

◆ ERR_CLIENT_IS_BANNED_BY_SERVER

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_CLIENT_IS_BANNED_BY_SERVER = 123
static

123: The client is banned by the Agora server. Check whether the user is kicked out.

◆ ERR_DECRYPTION_FAILED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_DECRYPTION_FAILED = 120
static

120: Decryption fails. Check your encryption settings or try rejoining the channel.

◆ ERR_FAILED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_FAILED = 1
static

1: General error. Refer to the SDK log to diagnose the error.

◆ ERR_INVALID_APP_ID

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_INVALID_APP_ID = 101
static

101: The Agora App ID is invalid. Check whether you used the correct Agora App ID from Agora console.

◆ ERR_INVALID_CHANNEL_NAME

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_INVALID_CHANNEL_NAME = 102
static

102: The channel name is invalid. See joinChannel for valid channel names.

◆ ERR_INVALID_TOKEN

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_INVALID_TOKEN = 110
static

110: The token is invalid. Check whether the user ID you used to generate RTC Token is the same as the user ID you use to join an RTC channel.

◆ ERR_JOIN_CHANNEL_REJECTED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_JOIN_CHANNEL_REJECTED = 17
static

17: Request to join channel is rejected. It occurs when the local user is already in the channel and tries to join the same channel again. You need to adjust your code to prevent a user from joining the same channel twice.

◆ ERR_LOOKUP_CHANNEL_REJECTED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_LOOKUP_CHANNEL_REJECTED = 105
static

105: The Agora server has rejected the request to query a channel. Check whether your RTC Token is valid.

◆ ERR_NET_DOWN

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_NET_DOWN = 14
static

14: Network is unavailable. Check the network connection.

◆ ERR_NO_AUDIO_DECODER_TO_HANDLE_AUDIO_FRAME

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_NO_AUDIO_DECODER_TO_HANDLE_AUDIO_FRAME = 202
static

202: SDK decoding fails because the SDK built-in encoder only supports Opus, G722, and PCMU.

◆ ERR_NO_SERVER_RESOURCES

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_NO_SERVER_RESOURCES = 103
static

103: Fails to get server resources in the specified region.

◆ ERR_OKAY

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_OKAY = 0
static

0: No error.

◆ ERR_OPEN_CHANNEL_INVALID_TICKET

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_OPEN_CHANNEL_INVALID_TICKET = 121
static

121: Fails to create an RTC channel. Please rejoin the RTC channel.

◆ ERR_OPEN_CHANNEL_REJECTED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_OPEN_CHANNEL_REJECTED = 107
static

107: The Agora server has rejected the request to create a channel. Check whether your RTC Token is valid.

◆ ERR_OPEN_CHANNEL_TRY_NEXT_VOS

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_OPEN_CHANNEL_TRY_NEXT_VOS = 122
static

122: Agora is trying to switch to another server to create an RTC channel. There is no need for you to take actions.

◆ ERR_SEND_VIDEO_OVER_BANDWIDTH_LIMIT

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_SEND_VIDEO_OVER_BANDWIDTH_LIMIT = 200
static

200: The video frame sending speed exceeds bandwidth limit and may result in packet loss. Use targetBitrateChanged to adjust the bandwidth.

◆ ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119
static

119: Fails to switch channel role. You need to rejoin the channel.

◆ ERR_TOKEN_EXPIRED

final int io.agora.rtc.AgoraRtcService.ErrorCode.ERR_TOKEN_EXPIRED = 109
static

109: Your RTC Token has expired. You need to generate a new RTC Token from your server and call joinChannel to rejoin the RTC channel with the new token.


The documentation for this class was generated from the following file: