tencent cloud


Voice Chat Room Entry Failure

Last updated: 2024-01-18 15:16:53

    Voice Chat Room Entry Failure

    Why is there no callback after the EnterRoom API is called?

    Follow the steps below for troubleshooting:
    1. Check whether initialization is successful and whether 0 is returned after initialization.
    2. Check whether the Poll function is called periodically.
    3. Check whether all APIs are called in the main thread.

    Why room entry fails even if 0 is returned when the EnterRoom API is called?

    A callback will be returned after the EnterRoom API is called, which, instead of the API returned value, should be used to determine whether room entry succeeds.

    Why is "HTTP Invalid id" returned when I enter a room in an application?

    If your account mapped by the OpenId parameter when you call the EnterRoom API starts from 0, you are recommended to add 10000 to it. For example, if your account is 999, 10999 should be entered as your OpenId.

    How do I troubleshoot failures such as 10001 returned for room entry?

    Follow the steps below for troubleshooting:
    1. View and confirm the validity of the parameters in the room entry API, such as AppId, UIN, and AuthBuffer (see the API documentation for the corresponding platform).
    2. Check whether the relevant parameters in the console match the local ones.
    3. Check whether your account has overdue payments in the console.
    4. Check whether your testing devices are in the private network or public network. If they are in the private network, troubleshoot as instructed in Dealing with Corporate Firewall Restrictions.

    What should I do if the callback returns the error code 1101 when the EnterRoom API is called for room entry after the Init method is called?

    Please make sure that all APIs are called in the same thread and the Poll API is called periodically.

    After Successful Voice Chat Room Entry

    Will the client automatically exit the voice chat room after being switched to the background?

    At this point, the client maintains a heartbeat connection with the server for 90s. If the heartbeat stops, the server will kick the client out of the room after 90s.

    What should I do if a client is disconnected from a voice chat room?

    If the network connection is interrupted, the client will try reconnecting to the room in 60 minutes. ITMG_MAIN_EVENT_TYPE_ROOM_DISCONNECT will be called back after 60 minutes. After the reconnection, the mic and speaker status do not need to be set.

    Is there an API for room ID recycling?

    No. After the last member exits the room, the room will be automatically terminated.

    How should be APIs called when room entry is performed immediately after room exit?

    If there is a scenario in the application where room entry is performed immediately after room exit, you don't need to wait for the RoomExitComplete callback notification from the ExitRoom API during API call; instead, you can directly call the API.

    Can the room exit and room entry APIs be called at the same time?

    The ExitRoom API needs to be called first, and the EnterRoom API can be called only after the callback for successful room exit is received.

    When is the member status synced? Will a user receive a notification when entering the room for the first time?

    Notifications for audio events are subject to a threshold, and the notification "A member sends an audio packet" will be sent only when this threshold is exceeded. If a member in the room does not speak for two seconds, the notification "A member stops sending audio packets" will be sent.
    There will be a notification when a user enters the room for the first time.

    Will a blocked user stay in the blocklist after exiting the room?

    No. After voice room exit, the blocklist becomes invalid.

    The speaker's voice can be heard when using the range voice feature on the client, but there is no attenuation effect, and the returned value is 0 even if the 3D sound effect file is set. What should I do?

    Check whether the 3D sound effect API EnableSpatializer is enabled and whether the local coordinates are updated: UpdateSelfPosition and UpdateAudioRecvRange.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support