400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

TKRoomSDK Error Codes

    Error Code TKRoomErrorCode
    Field Enumeration Value Comment
    ERR_INTERNAL_EXCEPTION -1 request data return parsing exception
    ERR_NOT_INITIALIZED 1 initialization error
    ERR_OK 0 success
    ERR_INVALID_STATUS 2 status abnormal
    ERR_BAD_PARAMETERS 3 parameter error
    ERR_USER_NOT_PUBLISHING 6 already published
    ERR_USER_NOT_PLAYING 7 failed to obtain this media stream
    ERR_HTTP_REQUEST_FAILED 11 request failed (mostly due to exceeding the retry limit), except for step2GetConfig
    ERR_CHECKTOKEN_FAILED 20 the parameters that the token depends on are incomplete
    ERR_CAMERA_LOST 23 camera lost
    ERR_PUBLISH_FAILED 31 failed to publish the stream
    ERR_PUBLISH_TIMEOUT 32 publishing stream timed out
    ERR_PUBLISH_ROOMMAXVIDEOLIMITED 33 media link exceeds the limit
    ERR_PUBLISH_MAX_RECONNECT_COUNT 34 exceeded the specified maximum number of reconnection attempts
    ERR_SUBSCRIBE_FAILED 41 failed to subscribe to the media stream, it already exists
    ERR_SUBSCRIBE_STREAM_NOTFOUND 43 cannot find the subscribed stream
    ERR_CHAT_TEXT_TOO_LONG 61 the message sent exceeds the maximum length limit (1024)
    ERR_CHAT_SPEED_TOO_FAST 62 the interval between sending messages is too fast (>1s)
    ERR_JOINROOM_WRONG_PARAM 63 the parameters for calling joinRoom and joinGroup are incorrect
    ERR_JOINROOM_STUDENT_LIMIT_EXCEED 64 exceeds the maximum number of students supported by the room
    ERR_NETWORK_HASPROXY 112 there is an HTTP proxy on the network, which will cause UDP to be unavailable on mobile devices
    ERR_SERVER_RECORDED 153 the startServerRecord feature is not enabled
    ERR_API_LEVEL_NOT_ALLOW 1506 the api level required for the interface has not been reached
    ERR_SOCKET_DISCONNECTING 1507 the signaling channel is connecting, and this connection request is rejected
    ERR_JOINROOM_FAILED 2507 room entry error (other exceptions)