This topic describes the error codes that may be returned when you call methods in Real-Time Communication (RTC) SDK for web. Information in this topic can help you resolve issues that you may encounter when you integrate RTC SDK for web.
Error codes returned by the isSupport method
The following table describes the error codes that may be returned when you call the isSupport method to check whether a browser supports RTC SDK for web.
Error code | Error message | Description | Type |
|---|---|---|---|
10000 | ERROR_DEVICE_UNKNOWNERROR | The error code returned because an unknown device error has occurred. | Device error |
10001 | ERROR_DEVICE_AUDIODEVICENOTFOUND | The error code returned because no audio devices are found. | |
10002 | ERROR_DEVICE_VIDEODEVICENOTFOUND | The error code returned because no video devices are found. | |
10003 | ERROR_DEVICE_AUDIODEVICENOTALLOWED | The error code returned because audio devices are disabled in the browser. | |
10004 | ERROR_DEVICE_VIDEODEVICENOTALLOWED | The error code returned because video devices are disabled in the browser. | |
10005 | ERROR_DEVICE_AUDIODEVICENOTREADABLE | The error code returned because audio devices are disabled in the system. | |
10006 | ERROR_DEVICE_VIDEODEVICENOTREADABLE | The error code returned because video devices are disabled in the system. | |
10007 | ERROR_DEVICE_CONSTRAINEDDERROR | The error code returned because one or more parameters are invalid. | |
10014 | ERROR_SCREENSHARE_INVALIDACCESS | The error code returned because the access is invalid. | |
10015 | ERROR_SCREENSHARE_ABORTERROR | The error code returned because a screen track is aborted. | |
10016 | ERROR_SCREENSHARE_INVALIDSTATEERROR | The error code returned because the status of the screen track is invalid. | |
10017 | ERROR_SCREENSHARE_TYPEERROR | The error code returned because a type error has occurred. | |
10020 | ERROR_NOTSUPPORT_WEBRTC | The error code returned because the browser does not support Web Real-Time Communication (WebRTC). | WebRTC detection error |
10021 | ERROR_NEEDHTTPS | The error code returned because HTTPS is not used. | |
10022 | ERROR_NOTSUPPORT_DEVICE | The error code returned because devices are not supported. | |
10023 | ERROR_NOTSUPPORT_H264 | The error code returned because H.264 is not supported. | |
10024 | ERROR_NOTSUPPORT_BROWSER | The error code returned because the browser is not supported. | |
10025 | ERROR_NOTSUPPORT_SCREENSHARE | The error code returned because screen sharing is not supported. |
Common error codes
The following table describes the error codes that may be returned when you call methods except the isSupport method.
Error code | Error message | Description | Type |
|---|---|---|---|
10000 | ERROR_DEVICE_UNKNOWNERROR | The error code returned because an unknown device error has occurred. | Device error |
10001 | ERROR_DEVICE_AUDIODEVICENOTFOUND | The error code returned because no audio devices are found. | |
10002 | ERROR_DEVICE_VIDEODEVICENOTFOUND | The error code returned because no video devices are found. | |
10003 | ERROR_DEVICE_AUDIODEVICENOTALLOWED | The error code returned because audio devices are disabled in the browser. | |
10004 | ERROR_DEVICE_VIDEODEVICENOTALLOWED | The error code returned because video devices are disabled in the browser. | |
10005 | ERROR_DEVICE_AUDIODEVICENOTREADABLE | The error code returned because audio devices are disabled in the system. | |
10006 | ERROR_DEVICE_VIDEODEVICENOTREADABLE | The error code returned because video devices are disabled in the system. | |
10008 | ERROR_DEVICE_AUDIO_ENDED | The error code returned because the external microphone is unplugged. | |
10009 | ERROR_DEVICE_VIDEO_ENDED | The error code returned because the external camera is unplugged. | |
10030 | ERROR_NOTSUPPORT_SETOUTPUTDEVICE | The error code returned because the playback device cannot be set. | |
10031 | ERROR_HOT_UPDATE_LOCAL_VIDEO | The error code returned because the local video fails to be updated in hot mode. | |
10032 | ERROR_VIDEO_STREAM_NOT_FOUND | The error code returned because no video tracks are found. | |
10033 | ERROR_GETPREVIEWSTREAM | The error code returned because the local preview stream fails to be obtained. | |
10040 | ERROR_NOTSUPPORT_SETSINKID | The error code returned because the API operation used to set the playback device is not supported. | |
10041 | ERROR_NOTSUPPORT_PROPORTION | The error code returned because the specified aspect ratio is not supported. | |
10042 | ERROR_RESOLUTION_MODIFICATION | The error code returned because the resolution fails to be updated in hot mode. | |
10043 | ERROR_RESOLUTION_HOT_UPDATE | The error code returned because the resolution cannot be updated in hot mode. | |
10044 | ERROR_NOTSUPPORT_RESOLUTION_PARAMES | The error code returned because one or more resolution parameters are invalid. | |
10010 | ERROR_SCREENSHARE_UNKNOWNERROR | The error code returned because an unknown error has occurred in screen sharing. | Screen sharing error |
10011 | ERROR_SCREENSHARE_NOTALLOWED | The error code returned because screen sharing is disabled. | |
10012 | ERROR_SCREENSHARE_ENDED | The error code returned because screen sharing is canceled. | |
10013 | ERROR_SCREENSHARE_NOPERMISSION | The error code returned because screen sharing is disabled in the Mac operating system. | |
10101 | ERROR_OPTIONS_CHANNELPROFILE_CDNLIVE | The error code returned because the channel is not in low-latency interactive mode. | Configuration error |
10111 | ERROR_OPTIONS_CHANNELPROFILE_RTC | The error code returned because the channel is not in communication mode. | |
10112 | ERROR_OPTIONS_LIVE_CANNOT_PUBLISH | The error code returned because a viewer has no permissions to ingest streams. | |
10120 | ERROR_OPTIONS_AUDIO_ONLY | The error code returned because the stream ingest for a video track or subscription to a video track is not supported in audio-only mode. | |
10130 | ERROR_OPTIONS_ENABLECAMERA | The error code returned because a camera error occurs when you use the camera after the enableCamera method is called. | |
10140 | ERROR_NO_USER | The error code returned because the user does not exist. | |
10306 | ERROR_H5_COMPATIBLE | The error code returned in the onError callback because HTML5 compatible mode is not enabled on the stream ingest client. | |
10501 | ERROR_H5_COMPATIBLE_MODE | The error code returned because HTML5 compatible mode must be enabled on the clients on which HTML5 is not used. | |
10160 | ERROR_NO_SUBSCRIPTION_CONTENT | The error code returned because no tracks are available for subscription. | Failure to join a channel |
10171 | ERROR_SET_LOCAL_DESCRIPTION | The error code returned because the local description fails to be configured. | |
10200 | ERROR_AUTOPLAY_UNKNOWN_ERROR | The error code returned because an unknown error has occurred in automatic playback. | Automatic playback error |
10201 | ERROR_AUTOPLAY_ERROR | The error code returned because automatic playback fails. | |
10301 | ERROR_ICE_PUBLISH_DISCONNECTED | The error code returned because the Interactive Connectivity Establishment (ICE) connection is closed from the stream ingest side. | Network error |
10302 | ERROR_ICE_SUBSCRIBE_DISCONNECTED | The error code returned because the ICE connection is closed from the subscription side. | |
10310 | ERROR_HEARTBEAT_TIMEOUT | The error code returned because no heartbeat is received in 90 seconds. | |
10311 | ERROR_NOSESSION | The error code returned because no session exists. | |
33622275 | ERROR_OPTIONS_JOINCHANNEL | The error code returned because the web client fails to join a channel due to an invalid channel type. | Channel type error |
10303 | ERROR_ICE_PUB_NOCANDIDATE | The error code returned because the stream ingest connection cannot be established by using UDP. | Stream ingest error |
10307 | ERROR_PUB_MEDIA_HANG_UP | The error code returned because an exception has occurred in the media track for which the stream is ingested. You must ingest the stream for the media track again. | |
10400 | ERROR_PUBLISH_NOSTREAM | The error code returned because all tracks are disabled. | |
10401 | ERROR_ANSWER_FAIL | The error code returned because the answer operation fails. | |
10304 | ERROR_ICE_SUB_NOCANDIDATE | The error code returned because the subscription connection cannot be established by using UDP. | Subscription error |
10305 | ERROR_DECODE_ERROR | The error code returned because the subscribed track cannot be decoded as expected. We recommend that you cancel the subscription and subscribe to the track again. | Playback error |
10500 | ERROR_FREQUENTLY_OPERATION | The error code returned because the operations to ingest the stream for a media track or subscribe to a media track are too frequent. | Operation error |
10600 | ERROR_AUDIOMIXING_UNKNOWN_ERROR | The error code returned because an unknown error has occurred in background music playback. | Background music error |
10601 | ERROR_LOAD_AUDIO_FAILED | The error code returned because the background music file fails to be loaded. | |
10602 | ERROR_INVALID_AUDIO_MIXING_STATE | The error code returned because the current playback status of the background music is invalid. | |
10603 | ERROR_NOTSUPPORT_AUDIOCONTEXT | The error code returned because the browser does not support AudioContext. | |
10604 | ERROR_AUTOPLAY_FAIL | The error code returned because AudioContext fails to be automatically played. | |
10605 | ERROR_NOT_ARRAYBUFFER | The error code returned because the audio played as background music is not an ArrayBuffer. | |
10606 | ERROR_AUDIO_MIXING_MISSING_PARAME | The error code returned because one or more parameters are missing for the background music. | |
10607 | ERROR_START_MIX_FAIL | The error code returned because audio mixing fails for the background music. | |
10608 | ERROR_RESUME_AUDIO_FAIL | The error code returned because the background music fails to be resumed. |