Last updated: 2023-09-19 15:30:20Download PDF
Notify users of warnings and errors that occur during audio and video calls.
TUICallDefine Error Code
The package you purchased does not support this ability. You can refer to console to purchase Upgrade package.
The IM SDK version is too low, please upgrade the IM SDK version to >= 6.6; Find and modify in the build.gradle file.："com.tencent.imsdk:imsdk-plus:7.1.3925"
Failed to obtain permission. The audio/video permission is not authorized. Check if the device permission is enabled.
Failed to get the device list (only supported on web platform).
The init method has not been called for initialization. The TUICallEngine API should be used after initialization.
param is invalid.
The current status can't use this function.
The current status is waiting/accept, please do not call it repeatedly.
The current calling scene does not support this feature.
Failed to send signaling. You can check the specific error message in the callback of the method.
IM Error Code
Video and audio calls use Tencent Cloud's IM SDK as the basic service for communication, such as the core logic of call signaling and busy signaling. Common error codes are as follows:
You have not logged in to the Chat SDK or have been forcibly logged out. Log in to the Chat SDK first and try again after a successful callback. To check whether you are online, use TIMManager getLoginUser.
Invalid parameter. Check the error information to locate the invalid parameter.
UserSig has expired. Get a new valid UserSig and log in again. For more information about how to get a UserSig, see Generating UserSig.
The current package does not support this API. Please upgrade to the Flagship Edition package.
The signaling request ID is invalid or has been processed.
More IM SDK error codes are available at：IM Error Code
TRTC Error Code
Video and audio calls use Tencent Cloud's IM SDK as the basic service for calling, such as the core logic of switching camera and microphone on or off. Common error codes are as follows:
Failed to turn the camera on. This may occur when there is a problem with the camera configuration program (driver) on Windows or macOS. Disable and reenable the camera, restart the camera, or update the configuration program.
No permission to access to the camera. This usually occurs on mobile devices and may be because the user denied access.
Incorrect camera parameter settings (unsupported values or others).
The camera is being used. Try another camera.
Failed to turn the mic on. This may occur when there is a problem with the mic configuration program (driver) on Windows or macOS. Disable and reenable the mic, restart the mic, or update the configuration program.
No permission to access to the mic. This usually occurs on mobile devices and may be because the user denied access.
Failed to set mic parameters.
The mic is being used. The mic cannot be turned on when, for example, the user is having a call on the mobile device.
Failed to enter the room. For the reason, refer to the error message for -3301.
More TRTC SDK error codes are available at：TRTC Error Code