ECLIENT_ROLE_CHANGE_FAILED_REASON

The reason for a user role switch failure.

Enumerator

CLIENT_ROLE_CHANGE_FAILED_TOO_MANY_BROADCASTERS

1: The number of hosts in the channel exceeds the limit.

Note: This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
CLIENT_ROLE_CHANGE_FAILED_NOT_AUTHORIZED

2: The request is rejected by the Agora server. Agora recommends you prompt the user to try to switch their user role again.

CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT

3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again.

Deprecated:
This enumerator is deprecated since v4.4.0 and is not recommended for use.
CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED

4: The SDK is disconnected from the Agora edge server. You can troubleshoot the failure through the reason reported by OnConnectionStateChanged.

Deprecated:
This enumerator is deprecated since v4.4.0 and is not recommended for use.