CONNECTION_CHANGED_REASON_TYPE
Reason for network connection state change.
Enumerations
- CONNECTION_CHANGED_CONNECTING
- 0: Establishing network connection.
- CONNECTION_CHANGED_JOIN_SUCCESS
- 1: Successfully joined the channel.
- CONNECTION_CHANGED_INTERRUPTED
- 2: Network connection interrupted.
- CONNECTION_CHANGED_BANNED_BY_SERVER
- 3: Network connection is banned by the server. For example, this status is returned when the user is kicked out of the channel.
- CONNECTION_CHANGED_JOIN_FAILED
- 4: Failed to join the channel. If the SDK fails to join the channel after trying for 20 minutes, this status is returned and it stops attempting to reconnect. Prompt the user to switch networks and try joining the channel again.
- CONNECTION_CHANGED_LEAVE_CHANNEL
- 5: Left the channel.
- CONNECTION_CHANGED_INVALID_APP_ID
- 6: Invalid App ID. Use a valid App ID to rejoin the channel and ensure the App ID matches the one generated in the Agora Console.
- CONNECTION_CHANGED_INVALID_CHANNEL_NAME
- 7: Invalid channel name. Use a valid channel name to rejoin the channel. A valid channel name is a string within 64 bytes. The supported character set includes 89 characters:
- CONNECTION_CHANGED_INVALID_TOKEN
- 8: Invalid Token. Possible reasons:
- Your project has App Certificate enabled but you joined the channel without using a Token.
- The user ID specified in JoinChannel [2/2] does not match the one used to generate the Token.
- The generated Token does not match the one used to join the channel.
- When App Certificate is enabled, use Token to join the channel.
- The user ID used to generate the Token matches the one used to join the channel.
- The generated Token matches the one used to join the channel.
- CONNECTION_CHANGED_TOKEN_EXPIRED
- 9: The current Token has expired. Generate a new Token on your server and use it to rejoin the channel.
- CONNECTION_CHANGED_REJECTED_BY_SERVER
- 10: This user is banned by the server. Possible reasons:
- The user already joined the channel and calls the join channel API again, such as JoinChannel [2/2]. Stop calling this method.
- The user tries to join the channel during a call test. Wait until the test ends before joining the channel.
- CONNECTION_CHANGED_SETTING_PROXY_SERVER
- 11: SDK attempts to reconnect due to proxy server settings.
- CONNECTION_CHANGED_RENEW_TOKEN
- 12: Network connection status changed due to Token renewal.
- CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED
- 13: Client IP address changed. If this status is received multiple times, prompt the user to switch networks and try joining the channel again.
- CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT
- 14: Keep-alive timeout between SDK and server, entering auto-reconnect state.
- CONNECTION_CHANGED_REJOIN_SUCCESS
- 15: Successfully rejoined the channel.
- CONNECTION_CHANGED_LOST
- 16: SDK lost connection with the server.
- CONNECTION_CHANGED_ECHO_TEST
- 17: Connection state changed due to echo test.
- CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED_BY_USER
- 18: Local IP address changed by user.
- CONNECTION_CHANGED_SAME_UID_LOGIN
- 19: The same UID joined the same channel from a different device.
- CONNECTION_CHANGED_TOO_MANY_BROADCASTERS
- 20: The number of broadcasters in the channel has reached the limit.