FAQ

Products / Plugins
Platform / Framework

Room related issues

Products / Plugins:Video Call / Voice Call

Platform / Framework:iOS / Android / macOS / Windows / Web

Last updated:2022-02-11 12:41


1. Why can't I receive a callback after sending an IM message?

Please confirm from the following aspects:

  • Ensure that the receiver has correctly implemented the corresponding IM callback interface.
  • Make sure that the sender and receiver use the same appID and roomID.
  • ZEGO IM messages are real-time online messages, and the sender/receiver must be online at the same time (login to the room is successful).
  • The sender cannot receive the IM message sent by the local end.
2. The web platform prompts an error when logging in to the room: cmd=login, err_code=1011, err_message=token format error?

When logging in to the room, the input format of the "token" parameter is incorrect, causing the error. "token" is a string type, and the JSON format needs to be encrypted with base64 and then passed in loginRoom interface, please refer to Implementation - Log in to a room for specific implementation.

3. Web platform login room error: "content":"cmd=login, err_code=1000000101, err_message=login liveroom request fail", or "content":"server error=1000000101", what is the reason?

There are two possible reasons for this error:

  • AppID expired.
  • Server address is wrong, please go to ZEGO Console to confirm.
4. When I exit the room, do I need to call the push and pull stream?
  • If you call "logoutRoom" to exit the main room, or are kicked out of the room by a background service, the SDK will automatically stop the push and pull stream.
  • If you call "logoutRoom" to exit the multi-room, the SDK will not automatically stop the push and pull streaming.

Developers need to refer to the above logic and process the logic to stop the push and pull flow according to business requirements.

5. Does the multi-room function require special configuration?
  1. Upgrade Express-SDK to 1.13.0 or above;
  2. Please contact ZEGO technical support to apply to open the multi-room function.
6. When logging in to the room, why do I get an error: 1002001?

The error code "1002001" means that the user cannot log in to multiple rooms at the same time. Before logging in to a new room, you need to call "logoutRoom" to log out of the current room, otherwise the SDK will determine that the current user has logged in to multiple rooms, and this error will occur.

7. When using "switchRoom" to switch rooms, why the error: 1000002-no room login?
  • Before switching rooms, you need to call "loginRoom" to log in to a room A before you can use "switchRoom" to switch to room B.
  • If the "fromRoomID" parameter used is inconsistent with the "roomID" the user is currently in when calling "switchRoom", this error will also occur.
Page Directory
Download PDF