400-881-9892

文档中心

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

文档中心 互动课堂

TKRoomSDK Status Codes

    Status Codes

    Global Error Codes
    Error Codes Description
    3001 Server Expired
    3002 The company has been frozen
    3003 The room has been deleted or expired
    4001 The company does not exist
    4002 The username or password is incorrect
    4003 The room name is not allowed to be empty
    4004 The time format is incorrect
    4005 The time setting is incorrect
    4006 The teacher's password format is incorrect
    4007 The room does not exist, the room is invalid or has been deleted, or the room has expired
    4008 The room password is incorrect
    4009 The password format for the student user is incorrect
    4010 The password format is incorrect
    4011 The room type is required
    4101 Enterprise ID verification is required
    4102 Error in verifying the Enterprise ID
    4103 The number of rooms exceeds the maximum limit
    4105 No data matches the criteria
    4106 The number of room files exceeds the quantity limit
    4107 Database operation error
    4108 No permission
    4109 Auth is not correct
    4110 This room requires a password. Please enter the password
    4111 The user is not registered or the password is incorrect. This room requires registered users to participate
    4200 Group ID is required
    4201 Group name is required
    4202 File ID is required
    5000 Username and password are required
    5001 Whether the room has a password is required
    5002 Chairman password is required
    5003 The room's general password is required
    5004 Start time and end time are required
    5005 If allowing eavesdropping users, a password should be provided
    5006 The password format for the room participants is incorrect
    5007 The password for the eavesdropping user is incorrect
    5008 The format of the maximum number of users is incorrect
    5009 The maximum number of users exceeds the limit
    5010 The maximum number of eavesdropping users is incorrect
    5011 The maximum number of eavesdropping users exceeds the limit
    5012 The format of the maximum number of videos is incorrect
    5013 The maximum number of videos is incorrect
    5014 The format of the maximum number of audio streams is incorrect
    5015 The maximum number of audio streams is incorrect
    5016 The format of the video resolution parameter is incorrect
    5017 The format of the layout parameter is incorrect
    5018 The assistant password is required
    5019 The password for the monitoring course is required
    5020 The video resolution is incorrect or exceeds the enterprise limit
    5100 Room number is required
    5101 User account is required
    5102 The room password cannot be repeated
    5200 The chairman password is incorrect
    5201 The eavesdropping password is incorrect
    5203 Student password
    5204 No password
    5205 Nickname or name is required
    5206 Data write failed
    5207 User type: 0 - Lecturer (Teacher), 1 - Assistant, 2 - Student, 3 - Live Streaming User, 4 - Inspector
    5208 The user has already logged in
    5300 The 40-character login key is required
    5301 The 40-character key is incorrect
    6000 The server ID is incorrect
    6001 The IP address is incorrect
    6002 The number of regular users exceeds the range
    6003 The number of eavesdropping users exceeds the range
    sdk Error Codes
    Name Error Codes Description
    TK_ERR.ERR_ADM_RECORDING_DEVICE_NOT_FOUND 101 No recording device available
    TK_ERR.ERR_ADM_PLAYOUT_DEVICE_NOT_FOUND 102 No playback device available
    TK_ERR.ERR_VDM_CAMERA_NOT_FOUND 151 No video device available
    TK_ERR.ERR_ADM_RECORDING_DEVICE_NOT_ALLOWED 103 The recording device is not authorized
    TK_ERR.ERR_VDM_CAMERA_NOT_ALLOWED 152 The video device is not authorized
    TK_ERR.ERR_ADM_RECORDING_DEVICE_NOT_READABLE 104 The recording device is unavailable, possibly occupied by another application
    TK_ERR.ERR_VDM_CAMERA_NOT_READABLE 153 The video device is unavailable, possibly occupied by another application
    TK_ERR.ERR_ADM_UNKNOWN_ERROR 2001 Unknown audio error
    TK_ERR.ERR_VDM_UNKNOWN_ERROR 2002 Unknown video error
    TK_ERR.ERR_ADM_RECORDING_TRACK_NOT_AVAILABLE 2003 The audio track is unavailable
    TK_ERR.ERR_VDM_VIDEO_TRACK_NOT_AVAILABLE 2004 The video track is unavailable
    TK_ERR.ERR_ADM_RECORDING_OVER_CONSTRAINTS 2005 Audio constraints exception
    TK_ERR.ERR_VDM_VIDEO_OVER_CONSTRAINTS 2006 Video constraints exception
    TK_ERR.ERR_ADM_TYPE_ERROR 2007 Invalid audio constraints
    TK_ERR.ERR_VDM_TYPE_ERROR 2008 Invalid video constraints
    TK_ERR.ERR_ADM_CAMERA_LOST 2009 The camera in use has been removed
    TK_ERR.ERR_ADM_PLAYOUT_LOST 2010 The speaker in use has been removed
    TK_ERR.ERR_VDM_RECORDING_LOST 2011 The microphone in use has been removed
    TK_ERR.ERR_ADM_PLAY_MEDIA_NOT_ALLOWED 2101 The lack of human-computer interaction prevents the audio from playing
    TK_ERR.ERR_VDM_PLAY_MEDIA_NOT_ALLOWED 2102 The lack of human-computer interaction prevents the video from playing
    TK_ERR.ERR_MSM_SCREEN_SHARE_NOT_ALLOWED 2103 Screen sharing failed
    TK_ERR.ROOM_NOT_CONNECT 2508 No successful connection to the room error code
    TK_ERR.CHECK_USERDesktopMediaError 2509 Web sharing plugin not detected
    TK_ERR.Server_Exception 2510 Server exception
    TK_ERR.ROOM_JOIN_GROUP_FAILED 2511 Failed to join the group
    2526 Failed to publish
    2527 Failed to cancel the post
    2528 Subscription failed
    2529 Failed to unsubscribe
    2600 Room link failed
    2601 The number of posts exceeds the limit
    2602 Exceeded the maximum allowed number of times
    ERROR Notification Error Codes
    Name Error Codes Description
    TK.ERROR_NOTICE.ERR_OK 0 Success
    TK.ERROR_NOTICE.ERR_CHAT_TEXT_TOO_LONG 61 The length of the text message is greater than or equal to 1024
    TK.ERROR_NOTICE.ERR_CHAT_SPEED_TOO_FAST 62 The interval between sending text messages is less than or equal to 1000 milliseconds
    TK.ERROR_NOTICE.ERR_JOINROOM_WRONG_PARAM 63 Error in joining room parameters
    TK.ERROR_NOTICE.ERR_JOINROOM_STUDENT_LIMIT_EXCEED 64 The number of students has exceeded the limit
    TK.ERROR_NOTICE.ERR_NOT_INITIALIZED 101 Not initialized
    TK.ERROR_NOTICE.ERR_INVALID_STATUS 102 Invalid status
    TK.ERROR_NOTICE.ERR_BAD_PARAMETERS 103 The parameter is incorrect
    TK.ERROR_NOTICE.ERR_NO_THIS_USER 104 There is no such user
    TK.ERROR_NOTICE.ERR_HTTP_REQUEST_FAILED 111 The web interface request failed
    TK.ERROR_NOTICE.ERR_PUBLISH_FAILED 131 Publication failed (the SDK will automatically reconnect)
    TK.ERROR_NOTICE.ERR_PUBLISH_TIMEOUT 132 Publication timed out (the SDK will automatically reconnect)
    TK.ERROR_NOTICE.ERR_PUBLISH_ROOMMAXVIDEOLIMITED 133 Media link exceeded the limit
    TK.ERROR_NOTICE.ERR_PUBLISH_MAX_RECONNECT_COUNT 134 The number of publication reconnection attempts has exceeded the specified maximum number of reconnects. [Note: The maximum number of reconnects is unlimited by default and can be configured via the joinroom interface.]
    TK.ERROR_NOTICE.ERR_SUBSCRIBE_FAILED 141 Subscription failed (the SDK will automatically reconnect)
    TK.ERROR_NOTICE.ERR_SUBSCRIBE_TIMEOUT 142 Subscription timed out (the SDK will automatically reconnect)
    TK.ERROR_NOTICE.ERR_SUBSCRIBE_STREAM_NOTFOUND 143 The stream has not been published
    TK.ERROR_NOTICE.ERR_SWITCH_SERVER_FAILED 151 Failed to switch servers
    TK.ERROR_NOTICE.ERR_SERVER_RECORDED 153 The server recording has already been started or is currently in progress. There is no need to call the start recording interface again
    TK.ERROR_NOTICE.ERR_SERVER_NOTRECORDED 154 Recording has not started
    TK.ERROR_NOTICE.ERR_JOINGROUP_TIMEOUT 155 Joining group timed out
    TK.ERROR_NOTICE.ERR_JOINGROUP_FAILED 156 Failed to join the group
    INFO Notification Status Codes
    Name Error Codes Description
    TK.INFO_NOTICE.INFO_PUBLISH_COMPLETED 2001 Publication succeeded
    TK.INFO_NOTICE.INFO_SUBSCRIBE_COMPLETED 2002 Subscription succeeded
    WARN Notification Status Codes
    Name Status Codes Description
    TK.WARNING_NOTICE.WAR_UNPUBLISHVIDEO_BY_SWITCHAUDIOROOM 1011 When switching to a pure audio room, if a video has been published, the SDK will automatically unpublish the video
    TK.WARNING_NOTICE.WAR_PUBLISHVIDEO_BY_SWITCHAUDIOVIDEOROOM 1012 When switching to an audio and video room, if audio has been published, the SDK will automatically publish video
    TK.WARNING_NOTICE.WAR_UNPUBLISHVIDEO_BY_MAX_RECONNECT_COUNT 1013 The number of publication reconnection attempts has exceeded the specified maximum number of reconnects, and the SDK will automatically unpublish the video
    TK.WARNING_NOTICE.WAR_UNPUBLISHAUDIO_BY_MAX_RECONNECT_COUNT 1014 The number of publication reconnection attempts has exceeded the specified maximum number of reconnects, and the SDK will automatically unpublish the audio
    TK.WARNING_NOTICE.WAR_UNPUBLISHVIDEO_BY_GET_DEVICE_MEDIASTREAM_FAILURE 1015 Failed to obtain the device stream, and the SDK will automatically unpublish the video
    TK.WARNING_NOTICE.WAR_UNPUBLISHAUDIO_BY_GET_DEVICE_MEDIASTREAM_FAILURE 1016 Failed to obtain the device stream, and the SDK will automatically unpublish the audio
    Supplementary Explanation

    1)131、132、133、134、141、142、2001、2002 the supplementary information corresponding to the error/status code is as follows:

    Field Type Description
    deviceId String Device ID [Note: The device ID is only applicable to videos published in multi-video mode.]
    userId String User id
    type String Media type, refer to the media type documentation

    2)1011、1012、1013、1015The supplementary information corresponding to the warning code is as follows:

    Field Type Description
    deviceId String Device ID [Note: The device ID is only applicable to videos published in multi-video mode.]