When the API return value is less than 0, the meaning is as follows:
Error Code | Description |
---|---|
THUNDER_RET_SUCCESS(0) | Succeeded. |
THUNDER_RET_NOT_INITIALIZED(-1) | Not initialized. |
THUNDER_RET_WRONG_INIT_STATUS(-2) | Incorrect initialization status, which may occur when calling this API before initialization or destruction is completed. |
THUNDER_RET_NO_JOIN_ROOM(-3) | This API cannot be called before joining a room. Please join a room first. |
THUNDER_RET_ALREADY_JOIN_ROOM(-4) | Already joined a room. This API can only be called before joining a room. |
THUNDER_RET_WRONG_JOIN_STATUS(-5) | Incorrect joining status. This API cannot be called when joining or exiting a room. |
THUNDER_RET_NOT_IN_THUNDER(-6) | Not in Thunder mode (Only for Thunder-called interfaces, calling in ThunderBolt mode will return this error) |
THUNDER_RET_NOT_IN_THUNDERBOLT(-7) | Not in ThunderBolt mode (Only for ThunderBolt-called interfaces, calling in Thunder mode will return this error) |
THUNDER_RET_INVALID_UID(-8) | Invalid user ID |
THUNDER_RET_INVALID_ROOMID(-9) | Invalid room ID |
THUNDER_RET_INVALID_URL(-10) | Invalid URL |
THUNDER_RET_INVALID_TASKID(-11) | Invalid URL |
THUNDER_RET_CAPACITY_LIMIT(-12) | Excceed the SDK capacity limit (stream pushing address threshold exceeded, etc.) |
THUNDER_RET_INVALID_ARGUMENT(-13) | Invalid parameters (when the required parameters are null or invalid). |
THUNDER_RET_START_AUDIO_CAPTURE_ERR(-14) | Enabling audio capture error. |
THUNDER_RET_NO_START_AUDIO_CAPTURE(-15) | The audio capture is not enabled when sending external data. |
THUNDER_RET_ALREADY_START_AUDIO_CAPTURE(-16) | Audio capture is enabled. |
THUNDER_RET_NO_START_AUDIO_PUBLISH(-17) | The audio publishing is not enabled when sending external data. |
THUNDER_RET_ALREADY_START_AUDIO_ENCODE(-18) | Audio capture is enabled. |
THUNDER_RET_ALREADY_START_AUDIO_PUBLISH(-19) | Audio publishing is enabled. |
THUNDER_RET_NOT_ON_FRONT_CAMERA(-20) | The current camera is the rear camera. |
THUNDER_RET_NOT_ON_MULTI_TYPE(-21) | Please set the display mode for the remote view before joining a room, when setting a multi-user co-hosting layout. |
THUNDER_RET_INVALID_SEATINDEX(-22) | The seat number for multi-person co-hosting exceeds the layout range. |
THUNDER_RET_WRONG_AUDIO_CAPTURE_TYPE(-23) | Incorrect audio capture type. |
THUNDER_RET_ALREADY_START_CUSTOM_AUDIO(-24) | The external audio stream pushing is enabled. |
THUNDER_RET_CALL_TOO_FREQUENT(-25) | The API call frequency exceeds the limit. |
THUNDER_RET_INVALID_TRANSCODING_MODE(101) | Invalid transcoingMode |
THUNDER_NOTIFY_JOIN_FAIL(-2001) | Joining the room failed for the SDK receiving no service notifications due to network issues, and the SDK will exit the room. |
THUNDER_RET_AUDIO_ENGINE_ERROR(-3001) | Audio library error. Check the log for causes. |
THUNDER_RET_AUDIO_DISABLE_VOICE_POSITION(-3002) | The remote user's stereo is not enabled. |
THUNDER_RET_AUDIO_PUBLISH_MODE_NONE(-3003) | The SourceType cannot be THUNDER_PUBLISH_MODE_NONE when publishing. |
THUNDER_RET_VIDEO_ENGINE_ERROR(-4001) | Video library error. Check the log for causes. |
THUNDER_RET_TRANS_ENGINE_ERROR(-5001) | Transfer library error. Check the log for causes. |
THUNDER_RET_ARGO_ENGINE_ERROR(-6001) | Configuration library error. Check the log for causes. |
THUNDER_RET_SERVICE_ENGINE_ERROR(-7001) | SERVICE library error. Check the log for causes. |
THUNDER_RET_LOG_ENGINE_ERROR(-8001) | Log library error. Check the log for causes. |