Issues Related to Livestreaming Groups

Last updated: 2020-09-09 15:40:54

    If I send a message in which Message.nick and Message.avatar are both empty, how can the message be processed to normally display the nickname and profile photo on the screen?

    You can call getMyProfile to obtain your nickname and profile photo.

    How can I mute a group member in a livestreaming group?

    You can use a custom message to mute a specific group member. The custom message must contain the Members_Account of the group member to be muted and the muting time. Send the custom message to the business backend by calling the Callback Before Delivering Group Messages. The business backend will call Muting and Unmuting Group Members to mute the group member.

    How can I remove a group member from a livestreaming group?

    You can use a custom message to remove a specific group member. The custom message must contain the Members_Account of the group member to be removed. Set the priority of the custom message to High to prevent the message from being discarded by the backend due to the message sending frequency limit of 40 messages per second. After the SDK receives the message, it calls the kickGroupMember API to remove the group member from the group.

    A group member quits a livestreaming group on the Android, iOS, or PC client when the API for quitting a group is called on the WeChat Mini Program or web client. However, when the API for quitting a group is called on the Android, iOS, or PC client, the group member does not quit the livestreaming group on the WeChat Mini Program or web client. Why is this the case?

    The WeChat Mini Program and web client allow users to join livestreaming groups as guests. When the API for quitting a group is called on the Android, iOS, or PC client, the WeChat Mini Program or web client will not proactively trigger the quit group operation.

    • To ensure synchronized group quitting on all clients, configure the Callback After a Group Member Drops Out and determine the quit platform based on the OptPlatform field. When the quit platform is Android, iOS, or PC, call Send a One-to-One Message to send a custom message to the group member who quits the group. The frontend screens the conversation and does not display it on the UI. After the WeChat Mini Program or web client receives the message, it calls the quitGroup API.
    • To ensure independent group quitting on different clients, configure Callback After a Group Member Drops Out and determine the quit platform based on the OptPlatform field. Call Send a One-to-One Message to send a custom message to the group member who quits the group. The frontend screens the conversation and does not display it on the UI. After a non-quit platform receives the message, it calls the joinGroup API to join the group. To prevent multiple system notifications for joining and quitting a group, you can submit a ticket to disable system notifications for joining and quitting a group.

    Why are messages lost?

    Messages can be lost due to the following conditions:

    • Livestreaming groups have a message sending frequency limit of 40 messages per second. You can determine whether a message is discarded due to the frequency limit based on the callbacks before and after delivering group messages. If a message receives the callback before delivering group messages but does not receive the callback after delivering group messages, the message is discarded due to the frequency limit.
    • When a group member quits a livestreaming group from the WeChat Mini Program or web client, the member may also quit on the Android, iOS, or PC client. For more information, see FAQ 4.
    • If the WeChat Mini Program or web client encounters an exception, check whether your SDK version is earlier than v2.7.6. If yes, upgrade your SDK to the latest version.

    If the fault persists, submit a ticket to contact us.

    How can I compile statistics on likes and follows?

    Customize the like or follow message type. When a user clicks the like or follow icon on the frontend to deliver a custom message, send the like or follow message to the business side by calling the Callback Before Delivering Group Messages. The business side counts the number of received like and follow messages and updates the data to the group profile field every 3 to 5 seconds by calling Modify Basic Group Profiles. The SDK calls the getGroupsInfo API to count the number of like or follow messages.

    How can I properly set message priorities?

    To prevent important messages from being discarded, a livestreaming group provides three message priorities for all messages. The SDK preferentially obtains high priority messages. We recommend that you set the priorities of custom messages as follows:

    • High: red packets, gifts, and messages for removing group members
    • Normal: common text messages
    • Low: likes and follows

    Are there any open-source livestreaming components that can be directly used to watch videos and chat?

    Yes. The code is also open-source. For more information, see Tencent Cloud TWebLive.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help