400-881-9892

文档中心

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

文档中心 互动课堂

TKRoomSDK Status Code

    Status Code

    The error codes of TKRoomSDK are defined in the file TKRoomDefines.h, as the enumeration TKRoomErrorCode Error Code TKRoomErrorCode

    Field Enumeration Value Comment
    TKErrorCode_UnKnow -2 Unknown Error
    TKErrorCode_Internal_Exception -1 Initialization Error
    TKErrorCode_OK 0 Success
    TKErrorCode_SentMsg_ContentTooLong 61 The chat message content is too long
    TKErrorCode_SentMsg_HighFrequency 62 The frequency of sending chat messages is too high
    TKErrorCode_JoinRoom_WrongParam 63 Join Room Parameter Error
    TKErrorCode_JoinRoom_Student_Limit_Exceed 64 The number of students joining the room exceeds the limit
    TKErrorCode_JoinGroup_Failed 65 Join Group Failed
    TKErrorCode_JoinGroup_Repeated 66 Repeatedly calling join group when the previous join is not completed
    TKErrorCode_JoinGroup_TimeOut 67 joinGroup Timeout
    TKErrorCode_Network_Unusual 100 Network Unavailable
    TKErrorCode_Not_Initialized 101 Not Initialized
    TKErrorCode_Bad_Parameters 102 Parameter Error
    TKErrorCode_ADM_Recording_Device_Not_Allowd 103 Microphone Not Authorized
    TKErrorCode_Publish_StateError 104 Publication Status Error
    TKErrorCode_VDM_Camera_Not_Allowed 152 Camera Not Authorized
    TKErrorCode_RenderView_ReUsed 156 The rendering view is already in use
    TKErrorCode_Publish_NoAck 401 Publication Unresponsive
    TKErrorCode_Publish_RoomNotExist 402 Room Does Not Exist
    TKErrorCode_Publish_RoomMaxVideoLimited 403 The maximum number of streams in the room has been exceeded
    TKErrorCode_Publish_ErizoJs_Timeout 404 Publication Link Timeout
    TKErrorCode_Publish_Agent_Timeout 405 Publication Network Timeout
    TKErrorCode_Publish_UndefinedRPC_Timeout 406 Unknown Network Error in Publication
    TKErrorCode_Publish_AddingInput_Error 407 Publication Join Error
    TKErrorCode_Publish_DuplicatedExtensionId 408 Publication Duplicate ID Error
    TKErrorCode_Publish_Unauthorized 409 Publication Unauthorized Error
    TKErrorCode_Publish_Failed 410 Publication Failed, Automatic Re-publication
    TKErrorCode_Publish_Timeout 411 Publication Timeout, Automatic Re-publication
    TKErrorCode_Subscribe_RoomNotExist 501 Subscription Room Does Not Exist
    TKErrorCode_Subscribe_StreamNotDefine 502 Subscription Stream Does Not Exist
    TKErrorCode_Subscribe_MediaRPC_Timeout 503 Subscription Media Timeout
    TKErrorCode_Subscribe_Fail 504 Subscription Failed
    TKErrorCode_Subscribe_Timeout 505 Subscription Timeout
    TKErrorCode_ConnectSocketError 601 Network Connection Error
    TKErrorCode_CheckRoom_RequestFailed 801 The HTTP request for checkroom failed
    TKErrorCode_GetConfig_RequestFailed 802 The HTTP request for getConfig failed
    TKErrorCode_Room_StateError 1500 Room Status Error
    TKErrorCode_Stream_StateError 1501 Stream Status Error
    TKErrorCode_Stream_NotFound 1502 Stream Not Found
    TKErrorCode_FilePath_NotExist 1503 The file path does not exist
    TKErrorCode_CreateFile_Failed 1504 Failed to create file
    TKErrorCode_VDM_Camera_Runtime_Error 1505 Camera Runtime Error
    TKErrorCode_ADM_AudioUnit_Initialize_Error 1506 Audio Device Initialization Failed
    TKErrorCode_ServerRecord_ing 1510 Recording is in progress, and recording is called repeatedly
    TKErrorCode_JoinRoom_Failed 2507 Join Room Failed
    TKErrorCode_CheckRoom_ServerOverdue 3001 Server Expired
    TKErrorCode_CheckRoom_RoomFreeze 3002 The company is frozen
    TKErrorCode_CheckRoom_RoomDeleteOrOrverdue 3003 The room has been deleted or expired
    TKErrorCode_CheckRoom_CompanyHasEnded 3004 The company's trial period has ended
    TKErrorCode_CheckRoom_CompanyNotExist 4001 The company does not exist
    TKErrorCode_CheckRoom_RoomNonExistent 4007 The room does not exist
    TKErrorCode_CheckRoom_PasswordError 4008 The room password does not exist
    TKErrorCode_CheckRoom_WrongPasswordForRole 4012 The password does not match the identity
    TKErrorCode_CheckRoom_RoomNumberOverRun 4103 The number of people in the room has exceeded the limit
    TKErrorCode_CheckRoom_RoomAuthenError 4109 Authentication Error
    TKErrorCode_CheckRoom_NeedPassword 4110 This room requires a password. Please enter the password
    TKErrorCode_CheckRoom_RoomPointOverrun 4112 The company's points have exceeded the limit
    TKErrorCode_CheckRoom_RoomNSF 4113 Insufficient Balance
    TKErrorCode_CheckRoom_RoomCancelled 4020 The course has been canceled
    TKErrorCode_NotAllowed_JoinTheRoom 4117 Temporary access to the classroom is not allowed
    TKErrorCode_NotAllowed_JoinLiveRoomForOnlooker 5300 Listeners are not allowed to enter the large class

    Warning Code TKRoomWarningCode

    Field Enumeration Value Comment
    TKRoomWarning_UnKnow 0 Unknown Warning Code
    TKRoomWarning_AudioRouteChange_Headphones 121 Headset Mode
    TKRoomWarning_AudioRouteChange_BuiltInReceiver 122 Earpiece Mode (Phone near the ear)
    TKRoomWarning_AudioRouteChange_BuiltInSpeaker 123 Built-in Speaker (External Playback)
    TKRoomWarning_AudioRouteChange_Bluetooth 124 Bluetooth Mode
    TKRoomWarning_CheckRoom_Completed 1001 checkroom Completed
    TKRoomWarning_GetConfig_Completed 1002 getconfig Completed
    TKRoomWarning_Stream_Connected 1101 The media link connection is successful
    TKRoomWarning_Stream_Failed 1102 The media link connection failed
    TKRoomWarning_Stream_Closed 1103 The media link is closed
    TKRoomWarning_ReConnectSocket_ServerChanged 5002 Switch servers
    TKRoomWarning_DevicePerformance_Low 5003 The performance of the device in use is too low
    TKRoomWarning_ADM_Session_Began_Interrruption 105 The audio capture has been interrupted by the system, such as incoming calls or alarms
    TKRoomWarning_ADM_Session_Ended_Interrruption 106 The audio capture has resumed after the system interruption
    TKRoomWarning_ADM_Record_Audio_Low_Volume 107 The volume captured by the recording device is too low
    TKRoomWarning_ADM_PlayOut_Audio_Low_Volume 108 The speaker volume is set too low or is muted
    TKRoomWarning_VDM_Session_Began_Interrrupted 154 Video capture has been interrupted by the system. For example, the App has gone into the background, or another App that uses video has been launched
    TKRoomWarning_VDM_Session_Ended_Interrrupted 155 Video capture has resumed after the system interruption
    TKRoomWarning_ADM_Category_Not_PlayAndRecord 1511 During the call, the category of the Audio Session must be set to AVAudioSessionCategoryPlayAndRecord. The SDK will monitor this property value. If this value is changed to another value, this alert will be triggered, and it will be forcibly set back to AVAudioSessionCategoryPlayAndRecord.
    TKRoomWarning_VDM_Session_Began_Interrrupted_InBackground 1512 The App has gone into the background, and video capture has been interrupted