ClientRoleChangeFailedReason

Reasons for user role switch failure.

Enumerations

ClientRoleChangeFailedTooManyBroadcasters
1: The number of broadcasters in the channel has reached the limit.
Note: This enum is only reported when the 128-user feature is enabled. The broadcaster limit depends on the configuration when enabling the 128-user feature.
ClientRoleChangeFailedNotAuthorized
2: Request was rejected by the server. It is recommended to prompt the user to try switching roles again.
ClientRoleChangeFailedRequestTimeOut
3: Request timed out. It is recommended to prompt the user to check their network connection and try switching roles again.
Note: Deprecated: This enum value is deprecated since v4.4.0 and is not recommended for use.
ClientRoleChangeFailedConnectionFailed
4: Network connection lost. You can troubleshoot the specific cause based on the reason reported by onConnectionStateChanged.
Note: Deprecated: This enum value is deprecated since v4.4.0 and is not recommended for use.