Interactive method for live broadcast room, electronic device and storage medium
By determining the layout information of the avatar based on the anchor's role on the live broadcast room interface, the problem of how to effectively display and distinguish multiple anchor avatars in online live broadcasts is solved, achieving differentiated display of avatars and improving user experience.
Patent Information
- Application Number
- CN202211480234.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-11-23
AI Technical Summary
In online live broadcasts, how to effectively display and distinguish the avatars of multiple anchors on the live broadcast room interface, especially during tasks, it is necessary to highlight the avatars of the main characters to improve the user experience.
The host role is determined through the server, including the main role and the auxiliary role, and the layout information of the avatar in the live broadcast room interface is determined based on the role, and the layout information is sent to the client to achieve differentiated display of the avatar. The avatar of the main role is displayed on the interface. The display is larger and the supporting character's avatar is displayed smaller.
The differentiated display of virtual images is realized, and users can quickly locate the anchors they follow, which improves the user viewing experience and interactive effects.
Smart Images

Figure CN115883932B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an interactive method, electronic device and storage medium for a live broadcast room. Background Art
[0002] With the rapid development of computer technology, the live broadcast business has also developed rapidly. In online live broadcasts, viewers can interact with the anchor in various ways in the live broadcast room, such as participating in the live broadcast room's live broadcast interaction. On the basis of live broadcast interaction, you can also perform tasks such as anchor PK (Player Killing) and live broadcast team battles. In this case, it is usually necessary to display the virtual images of the anchors participating in the task on the live broadcast room interface. Therefore, how to display the virtual images of each anchor on the live broadcast room interface has become a current research hotspot. Summary of the invention
[0003] The embodiments of the present application provide an interactive method, an electronic device, and a storage medium for a live broadcast room, which can realize differentiated display of a virtual image of an anchor based on the anchor role, thereby improving the display effect of the virtual image.
[0004] The first aspect of the embodiment of the present application discloses a method for interacting with a live broadcast room, the method comprising:
[0005] Determine multiple groups of target tasks based on the anchors participating in the live broadcast room;
[0006] Obtaining the anchor role of each anchor in each group, wherein the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group;
[0007] Determine layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room based on the anchor role of each anchor in each group; the layout information includes: the display area of the virtual image corresponding to the anchor of the main role in any group on the task interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0008] The layout information is sent to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor is displayed based on the layout information.
[0009] A second aspect of the embodiment of the present application discloses another interactive method for a live broadcast room, the method comprising:
[0010] When a task instruction for a target task is received, a group selection interface is displayed in the live broadcast room on the client, and the group selection interface is used for the anchor corresponding to the client to select a group;
[0011] After the anchors participating in the live broadcast room microphone connection complete the group selection operation on their respective group selection interfaces, receiving layout information sent by the server; the layout information includes: for any group of multiple groups of the target task, the display area of the virtual image corresponding to the anchor of the main role on the task interface of the live broadcast room is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0012] The group selection interface is redirected to a task interface for the target task based on the layout information.
[0013] The third aspect of the embodiment of the present application discloses an interactive device for a live broadcast room, the device comprising:
[0014] A grouping unit, used to determine multiple groups of target tasks based on the anchors participating in the live broadcast room;
[0015] An acquisition unit, used for acquiring the anchor role of each anchor in each group, wherein the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group;
[0016] A determination unit is used to determine layout information of a virtual image corresponding to each anchor in each group on a task interface of the live broadcast room based on the anchor role of each anchor in each group; the layout information includes: a display area of a virtual image corresponding to an anchor of a main role in any group on the task interface is larger than a display area of a virtual image corresponding to an anchor of an auxiliary role on the task interface;
[0017] A sending unit is used to send the layout information to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor is displayed based on the layout information.
[0018] A fourth aspect of the embodiments of the present application discloses another interactive device for a live broadcast room, the device comprising:
[0019] A first display unit is used to display a group selection interface in the live broadcast room on the client when a task instruction for a target task is received, wherein the group selection interface is used for the anchor corresponding to the client to select a group;
[0020] The receiving unit is used to receive layout information sent by the server after the anchors participating in the live broadcast room microphone connection complete the group selection operation on the respective group selection interfaces; the layout information includes: for any group of multiple groups of the target task, the display area of the virtual image corresponding to the anchor of the main role on the task interface of the live broadcast room is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0021] The second display unit is used to jump the group selection interface to a task interface for the target task based on the layout information.
[0022] The fifth aspect of an embodiment of the present application discloses an electronic device, including a processor, a memory and a network interface, wherein the processor, the memory and the network interface are interconnected, wherein the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect and / or the second aspect above.
[0023] The sixth aspect of an embodiment of the present application discloses a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect and / or the second aspect mentioned above.
[0024] The seventh aspect of the embodiments of the present application discloses a computer program product or a computer program, wherein the computer program product or the computer program includes program instructions, and the program instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the program instructions from the computer-readable storage medium, and the processor executes the program instructions, so that the electronic device executes the method of the first aspect and / or the second aspect.
[0025] In an embodiment of the present application, the server can determine multiple groups of target tasks based on the anchors participating in the live broadcast room; and obtain the anchor role of each anchor in each group, which can include a main role or an auxiliary role, and there can be an anchor with a main role in any group; further, the layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room can be determined based on the anchor role of each anchor in each group, and the layout information is sent to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor can be displayed based on the layout information. The layout information may include: the display area of the virtual image corresponding to the anchor of the main role in any group on the live broadcast room interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the live broadcast room interface. By implementing the above method, the virtual image corresponding to the anchor of the main role can be displayed in a large screen, so as to highlight the virtual image corresponding to the anchor of the main role on the live broadcast room interface, so that the virtual image of the anchor can be displayed differently based on the anchor role, and the display effect of the virtual image can be improved; through this differentiated display, users can also quickly locate the anchor they want to follow, improving the user's viewing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 It is a schematic diagram of the architecture of an interactive system for a live broadcast room provided in an embodiment of the present application;
[0028] Figure 2 It is a flowchart of an interactive method for a live broadcast room provided in an embodiment of the present application;
[0029] Figure 3a This is a schematic diagram of an interface for connecting to a microphone in a live broadcast room provided in an embodiment of the present application;
[0030] Figure 3b This is a schematic diagram of an interface for group selection of three anchors provided in an embodiment of the present application;
[0031] Figure 3c This is a schematic diagram of an interface for group selection of four anchors provided in an embodiment of the present application;
[0032] Figure 3d This is a schematic diagram of an interface for group selection of five anchors provided in an embodiment of the present application;
[0033] Figure 3e This is a schematic diagram of an interface for group selection of 6 anchors provided in an embodiment of the present application;
[0034] Figure 3f This is a schematic diagram of an interface for allocating anchor roles provided in an embodiment of the present application;
[0035] Figure 4a This is a schematic diagram of an interface layout after three anchors are transformed into a battle, provided in an embodiment of the present application;
[0036] Figure 4b This is a schematic diagram of an interface layout after four anchors are transformed into a battle, provided in an embodiment of the present application;
[0037] Figure 4c This is a schematic diagram of an interface layout after 5 anchors are transformed into a battle, provided in an embodiment of the present application;
[0038] Figure 4d This is a schematic diagram of an interface layout after 6 anchors are transformed into a battle, provided in an embodiment of the present application;
[0039] Figure 5 It is a flowchart of another interactive method for a live broadcast room provided in an embodiment of the present application;
[0040] Figure 6a This is a schematic diagram of an interface of a most contributing anchor provided by an embodiment of the present application;
[0041] Figure 6b It is a flowchart of another interactive method of a live broadcast room provided in an embodiment of the present application;
[0042] Figure 7 It is a flowchart of another interactive method of a live broadcast room provided in an embodiment of the present application;
[0043] Figure 8 It is a flowchart of another interactive method of a live broadcast room provided in an embodiment of the present application;
[0044] Fig. 9 It is a structural schematic diagram of an interactive device for a live broadcast room provided in an embodiment of the present application;
[0045] Fig.10 It is a structural schematic diagram of another interactive device for a live broadcast room provided in an embodiment of the present application;
[0046] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0048] The embodiment of the present application provides an interactive scheme for a live broadcast room, and the principle of the interactive scheme for the live broadcast room is as follows: in the target task, the corresponding anchor roles can be assigned to the anchors participating in the live broadcast room, and the layout information of each anchor on the live broadcast room interface can be determined based on the anchor roles of each anchor. For example, multiple groups can be determined based on the anchors participating in the live broadcast room, and each group can include one or more anchors; for any group, the anchor role corresponding to each anchor in the group can be determined, and the anchor role can include a main role or an auxiliary role, and there is an anchor with a main role in a group; after determining the anchor role of each anchor in each group, the layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room can be determined based on the anchor role of each anchor in each group, and after determining the layout information, the layout information can also be sent to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor can be displayed based on the layout information. For example, the layout information may include: the display area of the virtual image corresponding to the anchor of the main role in any group on the live broadcast room interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the live broadcast room interface. By implementing the above scheme, the virtual image corresponding to the anchor of the main role can be displayed on a large screen, so that the virtual image corresponding to the anchor of the main role can be highlighted on the live broadcast room interface, so that the virtual image of the anchor can be displayed differently based on the anchor role, and the display effect of the virtual image can be improved; through this differentiated display, users can also quickly locate the anchor they want to follow, improving the user's viewing effect.
[0049] In a specific implementation, the interactive scheme of the live broadcast room mentioned above can be executed by a server. The server mentioned here can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as basic cloud computing services such as big data and artificial intelligence platforms, etc.
[0050] In combination with the interactive solution of the live broadcast room mentioned above, the embodiment of the present application provides a schematic diagram of the architecture of the interactive system of the live broadcast room applicable to the interactive solution of the live broadcast room, such as Figure 1 As shown, the present application involves multiple clients 10 and servers 11, and one anchor uses one client 10 accordingly.
[0051] Taking the client 10 as an example, each anchor can use the client 10 used to start the broadcast of the live broadcast room, and can connect to one of the live broadcast rooms, so there can be multiple anchors connected to the microphone in the live broadcast room. When any anchor initiates a task connection request through the client 10 used, the server 11 can receive the task connection request and respond to the task connection request. For example, the layout information of each anchor on the live broadcast room interface (such as the above-mentioned task interface) can be determined based on the above-mentioned interactive scheme of the live broadcast room. After the server 11 obtains the corresponding layout information, the layout information can be sent to each client 10, so that each client 10 can display the layout of each anchor on the live broadcast room interface based on the layout information.
[0052] in, Figure 1 The client shown may be a client with a video playback function running on a terminal, such as a multimedia playback client, a browser client, an information stream client, etc. The terminal mentioned here may include but is not limited to: a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, etc. The client 10 and the server 11 may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0053] It should be noted that the data related to user information in the embodiments of the present application are all data authorized by the user.
[0054] Based on the above description of the interactive solution of the live broadcast room, the embodiment of the present application proposes an interactive method of the live broadcast room. The embodiment of the present application is mainly described with the server as the execution subject; please refer to Figure 2 The interactive method of the live broadcast room may include the following steps S201-S204:
[0055] S201, determining multiple groups of target tasks based on the anchors participating in the live broadcast room.
[0056] Among them, the target task can be a game battle (also called team battle PK, battle, game competition, etc.).
[0057] In one implementation, any anchor can connect to another anchor's live broadcast room. After the connection is successful, the virtual images of the anchors participating in the live broadcast room connection can be displayed on the live broadcast room interface. The virtual image can refer to the anchor's avatar or other information, and the live broadcast room interface can refer to the live broadcast room of each anchor participating in the live broadcast room connection. Optionally, for any anchor's own live broadcast room, the anchor's virtual image can be displayed at a fixed position on the live broadcast room interface. For example, when multiple virtual images are displayed on the live broadcast room interface, each virtual image has a corresponding display order on the live broadcast room interface, then the fixed position can refer to the display position corresponding to the display order of 1; for example, when displaying virtual images, they are displayed in order from left to right, and the number of virtual images corresponding to a row of display areas is not limited, such as 2 or 3 virtual images can be displayed; if all virtual images cannot be displayed in a row of display areas, the next row can be displayed below the row of display areas until all virtual images can be displayed. Optionally, the display ratio of each virtual image is the same, that is, the size of the display area of each virtual image is consistent.
[0058] For example, see Figure 3a Interfaces 301, 302, 303, and 304 shown in the figure respectively represent the display of the virtual images of each anchor in the case of 3-person, 4-person, 5-person, and 6-person microphone connection. This live broadcast room interface can be called a microphone connection interface. Among them, these interfaces represent the microphone connection interface displayed on the client used by user A, that is, the virtual image of user A is always displayed in the first position among multiple virtual images, that is, the first position on the upper left side of the microphone connection interface.
[0059] In one implementation, any anchor connected to the microphone in the live broadcast room can trigger the execution of the target task (such as a game battle) in their respective live broadcast rooms. Specifically, an anchor in the live broadcast room can perform relevant operations on their own microphone connection interface to trigger the execution of the task; for example, there may be a task start control on the microphone connection interface, and the anchor can trigger the task start control (such as clicking, pressing, etc.) to trigger the execution of the task. For example, the task start control can be as follows Figure 3a The “PK” control displayed in the middle interface 301 means that when the host wants to start a game, he can click the “PK” control.
[0060] In one implementation, after the task start control is triggered, the group selection can be started to divide the anchors in the live broadcast room into multiple groups. Among them, the number of groups can be 2 or more, and the embodiment of the present application mainly takes 2 groups as an example for relevant explanation. Specifically, the group selection information of each anchor participating in the live broadcast room can be obtained, and the group selection information may include an anchor identifier and a group identifier. The anchor identifier can be used to uniquely indicate an anchor, and the group identifier can be used to uniquely indicate a group; then after the group selection information is obtained, the anchor included in each group can be determined according to the group selection information. For example, each group selection information can be divided using the same group identifier division rule to obtain multiple information groups about the group selection information, and the group identifiers included in the group selection information in each information group are the same. After obtaining the information group, for any information group, the anchors corresponding to all anchor identifiers in any group information can be divided into one group.
[0061] For example, if three group selection information are obtained, and they are: (anchor A, group 1), (anchor B, group 2), and (anchor C, group 1), then anchor A and anchor C can be divided into group 1, and anchor B can be divided into group 2.
[0062] In one implementation, each anchor participating in the live broadcast room can perform relevant operations on the live broadcast room interface of the client used, so that the server can obtain the group selection information sent by the client corresponding to each anchor, and then the server can determine multiple groups based on the obtained group selection information. Considering that each anchor participating in the live broadcast room can perform the same operation to group, the following mainly takes an anchor as an example to explain the selection process of grouping the anchor. Optionally, for any anchor's live broadcast room, when it is detected that the task start control on the live broadcast room's microphone interface is triggered, the microphone interface is converted into a group selection interface, so that the anchor can perform relevant operations on the group selection interface, and trigger the generation of corresponding group selection information. After the group selection information is generated, the client used by the anchor can send the group selection information to the server, and the server can receive the group selection information sent by the client corresponding to each anchor participating in the live broadcast room. After receiving the group selection information corresponding to each anchor, the group selection information can be used to perform grouping.
[0063] For example, see Figure 3b As shown, Figure 3bAfter the three hosts connected to the microphones in the middle interface 306 and the interface 307 click the task start control (i.e., PK control) in the interface 305, the group selection interface is displayed after the battle is initiated and the hosts have completed the group selection. For example, the final grouping situation can be that the red side shown in the interface 306 includes 1 host and the blue side includes 2 hosts; or the red side shown in the interface 307 includes 2 hosts and the blue side includes 1 host. For example, referring to the interface 306, the host can choose between the red side and the blue side, which are two groups; the user can click the grouping control to realize the corresponding grouping, such as the grouping control can be "Select Red Side" or "Select Blue Side". If the host clicks "Select Red Side", it means that the host becomes a member of the red side. If the host clicks "Select Blue Side", it means that the host becomes a member of the blue side. After the anchor performs a selection operation, the text display corresponding to the grouping control may change to distinguish whether the anchor has made a group selection. For example, before the anchor makes a group selection, the text corresponding to the grouping control may be "Select the red side", and after the group selection, the text corresponding to the grouping control may be updated to "Red side has been selected". Based on this, it can be seen that when the grouping control is detected to be triggered, the first text information corresponding to the grouping control (such as "Select the red side") can be updated to the second text information (such as "Red side has been selected").
[0064] For example, see Figure 3c As shown, Figure 3c The middle interface 309 and the interface 310 show the group selection interface after the four hosts connected to the microphone click the task start control (i.e., PK control) in the interface 308, after the battle is initiated and the hosts have completed the group selection. For example, the final grouping situation can be that the red side includes 2 hosts and the blue side includes 2 hosts as shown in the interface 309; or the red side includes 1 host and the blue side includes 3 hosts as shown in the interface 310; or the grouping situation is that the red side includes 3 hosts and the blue side includes 1 host.
[0065] For example, see Figure 3d As shown, Figure 3d The five hosts connected to the microphones in the middle interface 312, interface 313 and interface 314 click the task start control (i.e., PK control) in interface 311, and the group selection interface after the battle is initiated and the hosts have completed the group selection. For example, the final grouping situation may be that the red side shown in interface 312 includes 3 hosts and the blue side includes 2 hosts; or the red side shown in interface 313 includes 2 hosts and the blue side includes 3 hosts; or the red side shown in interface 314 includes 1 host and the blue side includes 4 hosts; or the grouping situation is that the red side includes 4 hosts and the blue side includes 1 host.
[0066] For example, see Figure 3e As shown, Figure 3eThe six hosts connected to the microphones in the middle interface 316, interface 317 and interface 318 click the task start control (i.e., PK control) in interface 315, and the group selection interface after the battle is initiated and the hosts have completed the group selection. For example, the final grouping situation can be that the red side shown in interface 316 includes 3 hosts and the blue side includes 3 hosts; or the red side shown in interface 317 includes 1 host and the blue side includes 5 hosts; or the red side shown in interface 318 includes 4 hosts and the blue side includes 2 hosts; or the grouping situation is that the red side includes 5 hosts and the blue side includes 1 host; or the grouping situation is that the red side includes 2 hosts and the blue side includes 4 hosts.
[0067] In one implementation, when the anchor performs group selection on the group selection interface, there may also be a corresponding selection duration, that is, the anchor can perform group selection operations within the selection duration to select the corresponding group; the anchor is considered valid only if the group selection is performed within the selection duration to ensure the effectiveness of task execution. Based on this, it can be known that if the server receives the group selection information sent by the client within the selection duration, it can be determined that the anchor's group selection is valid; if the server receives the group selection information sent by the client within the selection duration, it can be determined that the anchor's group selection is invalid. Optionally, within the selection duration, the anchor can change the submitted group selection at any time; then, for an anchor, if the server receives multiple group selection information of the anchor within the selection duration, the last group selection information received within the selection duration can be used as the final valid group selection information, so as to use the valid group selection information for subsequent group operations.
[0068] For example, Figure 3b The interface 306 shown can prompt the host to select the time length, such as the text prompt "Select within 5 seconds", which means that the host has 5 seconds to make group selection, and the host can choose either the red team or the blue team; within the selection time (or before the selection countdown ends), the host can change his or her group selection at any time, such as the text prompt "You can change the team camp within 5 seconds".
[0069] In one implementation, considering that the embodiment of the present application is a multi-person task (or a multi-person battle, a team battle), for two groups, the total number of all anchors corresponding to each group should be greater than or equal to 3, that is, the minimum total number of anchors is 3, and for two groups, if the number of anchors in one group is 1, the number of anchors in the other group must be greater than or equal to 2. Optionally, a maximum total number of anchors can also be set, such as the maximum total number of anchors can be 5, 6, etc., without limitation. The embodiment of the present application mainly uses the total number of anchors participating in the task in the numerical range of 3-6 for relevant examples. As can be seen from the above, the total number of anchors participating in the group selection operation can be verified to ensure the smooth progress of the task. Specifically, after obtaining the group selection information, the server can count the number of anchor identifications in the group selection information to verify the total number of anchors according to the number of identifications. Among them, when counting the number of identifications here, the number of different anchor identifications is counted. If the number of identifications is within the preset number range, it is determined that the verification is passed, and if the number of identifications is not within the preset number range, it is determined that the verification is not passed. The preset number range may be 3-6, or may be other ranges, which are not limited.
[0070] In one implementation, for the reliability of the target task execution, the grouping conditions of the groups can be preset, and then the number of anchors in each group can be counted based on the anchor identification and the group identification; if the number of anchors in each group meets the preset grouping conditions, the anchors corresponding to the group selection information with the same group identification can be divided into a group using the division rule to obtain multiple groups. For example, the grouping condition can be that the number of anchors in each group must be greater than or equal to 1, and when the number of anchors in a group is 1, the number of anchors in other groups must be greater than or equal to 2.
[0071] In one implementation, the total number of anchors participating in the target task can be set when the task is initiated. For example, the target task can be initiated by any anchor connected to the microphone in the live broadcast room. For example, the anchor who initiates the task execution can be called the initiating anchor. In a specific implementation, the initiating anchor can send a microphone task request to the server through the client. The microphone task request is used to request the execution of the task. The task microphone request can carry the total number of reference tasks, that is, the initiating anchor limits the total number of anchors participating in the task execution. Then, after the server obtains the group selection information and counts the number of anchor identifications, it can compare the number of identifications with the total number of reference tasks to verify the total number of anchors. The number of identifications is also the total number of anchors in multiple groups. In other words, it can be verified based on the total number of anchors in multiple groups and the total number of reference tasks. If the number of identifiers (i.e., the total number of anchors in multiple groups) is the same as the total number of people in the reference task, it is determined that the number verification has passed, and the above-mentioned division rule of dividing the anchors corresponding to the group selection information with the same group identifier into one group can be triggered to obtain multiple groups; if the number of identifiers (i.e., the total number of anchors in multiple groups) is not the same as the total number of people in the reference task (such as the number of identifiers is less than or greater than the total number of people in the reference task), it is determined that the number verification has not passed. In the case of failing the number verification, a prompt message of failure to participate in the target task can also be returned to prompt the reason for the failure of the target anchor task execution to improve the user experience.
[0072] S202, obtaining the anchor role of each anchor in each group.
[0073] The anchor role may include a main role or an auxiliary role. The difference between the main role and the auxiliary role may be that the anchor of the main role is more important than the anchor of the auxiliary role in the target task. For the convenience of subsequent description, the anchor of the main role may be referred to as the main anchor, and the anchor of the auxiliary role may be referred to as the auxiliary anchor. In any group, there may be one anchor of the main role.
[0074] In one implementation, after the anchors of the live broadcast room are grouped, the execution of the target task (such as a game battle) can be started according to the group. Among them, the number of tasks of the target task can be one or more times. In the case of multiple tasks, it can be any number of times, or it can be determined according to the pre-set task number setting rules. For example, the task number setting rule can be: the maximum number of anchors in the number of anchors in each group is used as the task number. That is, after determining each group, the number of anchors in each group can be further obtained to use the maximum number of anchors in the number of anchors in each group as the task number. In this case, in order to ensure the fairness of task execution, each anchor in the group can have at least one chance to become the main anchor. According to the above-mentioned task number setting rules, it can be known that among the multiple groups, there is at least one group in which the number of anchors is the same as the number of tasks. For any group, if the number of anchors in any group is equal to the number of tasks, then a host can be selected from any group as the main role for each task, and the anchor corresponding to the main role in each task is different, that is, a different anchor corresponds to the main role in one task. If the number of anchors in any group is less than the number of tasks, then one anchor can be selected from any group as the main role for each task, and it is guaranteed that each anchor in any group serves as the main role at least once.
[0075] For example, let's take the target task of a game battle as an example. Assume that there are two groups (referred to as the first group and the second group respectively), the number of anchors in the first group is 3, and the number of anchors in the second group is 2, then the number of battles (that is, the number of tasks) is 3. Then, in the three battles, the three anchors in the first group can be the main anchors in one battle respectively, and one of the two anchors in the second group needs to be the main anchor in two battles, and the other anchor needs to be the main anchor in one battle.
[0076] In one implementation, for any group, if there is a need for an anchor to be the main character in at least two tasks, for example, when the number of anchors in the group is less than the number of tasks, it indicates that there is such a need. In this case, the anchor who needs to be the main character in at least two tasks can be randomly selected from the any group, or the anchor who needs to be the main character in at least two tasks can be selected from the any group according to a preset selection rule.
[0077] Optionally, the specific implementation of the selection rule may be: for any group, if there is a need for an anchor who needs to play a main role in at least two tasks, the virtual resources (such as historical virtual resources) received by each anchor in any group within the historical duration can be obtained. Among them, any object (user) can enter the live broadcast room to interact with the anchor, for example, the object can send gifts, like the live broadcast room, share the live broadcast room, make comments, etc.; the virtual resources in the embodiment of the present application may refer to one or more of the virtual gifts, likes, shares, comments, etc. received by the live broadcast room. The historical duration may refer to a certain time period before the execution of the target task (such as 30 minutes, 60 minutes, etc.). Then, the reference value of each anchor can be determined based on the historical virtual resources of each anchor; and the anchor corresponding to the maximum reference value among the reference values of each anchor is determined as the anchor who needs to play a main role in at least two tasks.
[0078] Among them, for any anchor, the specific implementation of determining the anchor's reference value based on the anchor's historical virtual resources can be: first, the mapping relationship between virtual resources and resource values can be obtained; wherein, the mapping relationship can be preset, and the resource values corresponding to different virtual resources can be different, for example, the resource value corresponding to resource 1 is Q1, the resource value corresponding to resource 2 is Q2, and so on. After obtaining the mapping relationship, the resource value corresponding to each historical virtual resource in all historical virtual resources received by the anchor can be determined based on the mapping relationship, and then, the reference value can be determined based on the resource value corresponding to each historical virtual resource, such as the sum of the resource values corresponding to each historical virtual resource can be used as the reference value.
[0079] From the above description, it can be seen that through this selection method, an anchor with better resource value obtained within a historical period can be selected from a group, and this anchor can be used as the main anchor many times to increase the probability of this group becoming the winner in the target task.
[0080] In one implementation, after the server determines the main anchor and the auxiliary anchor in each task in the target task, it can send anchor role allocation information to the client of each anchor participating in the live broadcast room connection. The anchor role allocation information can include the anchor role corresponding to each anchor in each group. The anchor role can include a main role or an auxiliary role. There is an anchor with a main role in any group; so that the client corresponding to each anchor can receive the anchor role allocation information, and can output the anchor role allocation result based on the anchor role allocation information on the live broadcast room interface of the client, or perform a specific main anchor and auxiliary anchor allocation diagram for each task on the live broadcast room interface, so that the user can clearly understand the anchor allocation situation. Based on this, it can be known that after all anchors have performed the group selection operation on the corresponding group selection interface and obtained multiple groups, the group selection interface can jump to the role allocation interface. For example, taking the target task as a game battle as an example, Figure 3f Interfaces 319, 320, and 321 are respectively role allocation interfaces for different anchor allocation situations, and each interface shows a schematic diagram of the allocation of the main anchor and the auxiliary anchor in each group of the game battle. Figure 3f As shown, interface 319 shows the distribution of anchors when 6 anchors participate in the game battle and are divided into two groups (red side and blue side, and both the red side and the blue side include 3 anchors); interface 320 shows the distribution of anchors when 5 anchors participate in the game battle and are divided into two groups (red side and blue side, and the red side includes 2 anchors, and the blue side includes 3 anchors); interface 321 shows the distribution of anchors when 4 anchors participate in the game battle and are divided into two groups (red side and blue side, and the red side includes 1 anchor, and the blue side includes 3 anchors).
[0081] For example, for Figure 3b In the three-player battle scenario shown, if the grouping is that the red team shown in interface 306 includes 1 anchor and the blue team includes 2 anchors, the number of battles is 2, then the anchor (user A) in the red team is the main anchor in both battles, and the two anchors in the blue team (user B and user C) are the main anchor in 1 battle and the auxiliary anchor in 1 battle respectively. If the grouping is that the red team shown in interface 307 includes 2 anchors and the blue team includes 1 anchor, the allocation logic of the anchor roles in each group can be similar to the above.
[0082] For example, for Figure 3cIn a 4-player battle scenario, if the grouping is that the red team includes 2 anchors and the blue team includes 2 anchors as shown in interface 309, the number of battles is 2, and each anchor in the red team and each anchor in the blue team have the opportunity to be the main anchor once and the auxiliary anchor once. If the grouping is that the red team includes 1 anchor and the blue team includes 3 anchors as shown in interface 310, the number of battles is 3, and the anchors on the red team can be the main anchors in all 3 battles, and the anchors on the blue team have the opportunity to be the main anchor once; if the grouping is that the red team includes 3 anchors and the blue team includes 1 anchor, the allocation logic of the anchor roles in each group can be similar to the above.
[0083] For example, for Figure 3d It is a 5-player battle scene. If the grouping situation is that the red side shown in interface 312 includes 3 anchors and the blue side includes 2 anchors, then the number of battles is 3, then each anchor in the red side has a chance to become the main anchor once, and one anchor in the blue side has a chance to become the main anchor once, and the other anchor has a chance to become the main anchor twice. If the grouping situation is that the red side shown in interface 313 includes 2 anchors and the blue side includes 3 anchors, then the number of battles is 3, then one anchor in the red side has a chance to become the main anchor once, the other anchor has a chance to become the main anchor twice, and each anchor in the blue side has a chance to become the main anchor once. If the grouping situation is that the red side shown in interface 314 includes 1 anchor and the blue side includes 4 anchors, then the number of battles is 4, then one anchor in the red side has 4 chances to become the main anchor, and each anchor in the blue side has a chance to become the main anchor once. If the grouping situation is that the red team includes 4 anchors and the blue team includes 1 anchor, the allocation logic of the anchor roles in each group can be similar to the above.
[0084] For example, for Figure 3eIn a 6-player battle scenario, if the grouping is that the red side shown in interface 316 includes 3 anchors and the blue side includes 3 anchors, then the number of battles is 3, then each anchor in the red side has a chance to become the main anchor once, and each anchor in the blue side also has a chance to become the main anchor once. If the grouping is that the red side shown in interface 317 includes 1 anchor and the blue side includes 5 anchors, then the number of battles is 5, then one anchor in the red side has 5 chances to become the main anchor, and each anchor in the blue side has a chance to become the main anchor once. If the grouping is that the red side shown in interface 318 includes 4 anchors and the blue side includes 2 anchors, then the number of battles is 4, then each anchor in the red side has a chance to become the main anchor once, and each anchor in the blue side has 2 chances to become the main anchor. If the grouping situation is that the red team includes 5 anchors and the blue team includes 1 anchor; or the grouping situation is that the red team includes 2 anchors and the blue team includes 4 anchors, the allocation logic of the anchor roles in each group can be similar to the above.
[0085] S203, based on the anchor role of each anchor in each group, determine the layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room.
[0086] Among them, the layout information may include: the display area of the virtual image corresponding to the anchor of the main role (i.e., the main anchor) in any group on the live broadcast room interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role (i.e., the auxiliary anchor) on the live broadcast room interface; that is, the virtual image corresponding to the main anchor is displayed in a large screen to highlight the virtual image corresponding to the main anchor on the live broadcast room interface. Through this highlighting, users who participate in the interaction in the live broadcast room can also more intuitively understand the importance of each anchor in a group, thereby improving the user's viewing experience. Because the main anchor in each task will be a different anchor, different virtual images will be switched in real time on the display area of the main anchor on the live broadcast room interface. The live broadcast room interface here can be called a task interface.
[0087] For example, Figure 4a What is shown is the interactive layout diagram of three anchors changing to a battle (also called team battle PK), that is, the display effect of these three anchors on the live broadcast room interface based on the corresponding layout information, such as Figure 4aInterface 401 in the figure shows the layout of the virtual images corresponding to the respective anchors on the live broadcast room interface when the red side includes one anchor (user A) and the blue side includes two anchors (user B and user C). Among them, user A on the red side is the main anchor, and user B on the blue side is the main anchor. It can be seen that the display area of the virtual images corresponding to the main anchors of both parties on the live broadcast room interface is larger than the display area of the virtual images corresponding to the auxiliary anchors on the live broadcast room interface, that is, the virtual images corresponding to the main anchors of both parties are displayed in a large frame position, while the virtual images corresponding to the auxiliary anchors are displayed in a smaller display area below the main anchors.
[0088] For example, Figure 4b The interactive layout of the four-player live broadcast transformed into a group battle PK is shown, Figure 4b Interface 402 in the figure shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red team includes 2 anchors (user A and user C) and the blue team includes 2 anchors (user B and user D). Interface 403 shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red team includes 1 anchor (user A) and the blue team includes 3 anchors (user B, user C, and user D).
[0089] Another example: Figure 4c The interactive layout of the five-player live broadcast transformed into a team battle PK is shown, Figure 4c Interface 404 in the figure shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red side includes 2 anchors (user A and user C) and the blue side includes 3 anchors (user B, user D and user E). Interface 405 shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red side includes 1 anchor (user A) and the blue side includes 4 anchors (user B, user C, user D and user E). In particular, in order to utilize the situation shown in the attempt, the page layout logic of these two situations can also be included, such as the red side includes 3 anchors and the blue side includes 2 anchors; and the red side includes 4 anchors and the blue side includes 1 anchor. The page layout logic of these two situations is similar to the aforementioned page layout.
[0090] Another example: Figure 4d The interactive layout of the six-player live broadcast transformed into a group battle PK is shown, Figure 4dInterface 406 in the figure shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red team includes 3 anchors (user A, user C, user D) and the blue team includes 3 anchors (user B, user E, user F). Interface 407 shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red team includes 2 anchors (user A, user C) and the blue team includes 4 anchors (user B, user D, user E, user F). Interface 408 shows the layout of the virtual images corresponding to each anchor on the live broadcast room interface when the red team includes 1 anchor (user A) and the blue team includes 5 anchors (user B, user C, user D, user E, user F).
[0091] In one implementation, the layout information may further include a role identifier corresponding to the anchor role of each anchor. In order to distinguish the anchor roles of each anchor in the group, when the anchor's virtual image is displayed, a role identifier may be present in the display area of each virtual image, such as identifier 41, identifier 42, and identifier 43 in interface 401. Through such identifier display, the user can clearly understand the anchor role of each anchor, such as identifier 41 indicates that user A is the main anchor, identifier 42 indicates that user B is the main anchor, and identifier 43 indicates that user C is the auxiliary anchor.
[0092] In one implementation, the layout information may also include group identifiers corresponding to each anchor. To distinguish different groups, a group identifier may be present in the display area of each virtual image when the anchor's virtual image is displayed; or, different groups may be distinguished by different colors, shapes, etc. based on the character identifier. Exemplarily, taking color as an example, the color corresponding to the character identifier corresponding to each group may be different; exemplary, taking shape as an example, the shape corresponding to the character identifier corresponding to each group may be different. For example, taking color as an example, for the two groups displayed in interface 401 (the red side includes user A, and the blue side includes user B and user C), the color of identifier 41 corresponding to user A may be red, and the colors of identifiers 42 and 43 corresponding to users B and C may be blue.
[0093] In one implementation, the layout information may also include the display position of each anchor. When displaying the virtual images of each anchor in multiple groups, in order to more clearly distinguish the main anchor from the auxiliary anchor, the virtual image corresponding to the main anchor in each group may be displayed in a row of display areas, and the virtual image corresponding to the auxiliary anchor may be displayed in another row of display areas. For example, in the two groups shown in interface 401, the virtual images corresponding to the main anchors are displayed in the same row, while the virtual images corresponding to the auxiliary anchors are displayed below the main anchors.
[0094] S204, sending the layout information to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor is displayed based on the layout information.
[0095] For example, the task interface can be as follows Figure 4a or Figure 4b or Figure 4c or Figure 4d shown.
[0096] In an embodiment of the present application, the virtual image corresponding to the anchor of the main role can be displayed on a large screen to highlight the virtual image corresponding to the anchor of the main role on the live broadcast room interface, so that the virtual image of the anchor can be displayed differently based on the anchor role, thereby improving the display effect of the virtual image; through this differentiated display, users can also quickly locate the anchor they want to follow, thereby improving the user's viewing effect.
[0097] See also Figure 5 , is a flow chart of another interactive method for a live broadcast room provided in an embodiment of the present application. This embodiment of the present application is mainly described with the server as the execution subject; please refer to Figure 5 The interactive method of the live broadcast room may include the following steps S501-S508:
[0098] S501, determining multiple groups of target tasks based on the anchors participating in the live broadcast room.
[0099] S502, obtaining the anchor role of each anchor in each group.
[0100] S503, based on the anchor role of each anchor in each group, determine the layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room, and send the layout information to the client corresponding to each anchor.
[0101] The specific implementation of steps S501-S503 may refer to the specific implementation of steps S201-S204, which will not be described again here.
[0102] S504, obtaining the number of anchors in each group, and taking the maximum number of anchors in each group as the number of tasks.
[0103] In one implementation, in order to ensure that each anchor in any group can become the main anchor in a task to improve task fairness, the maximum number of anchors in each group can be used as the task number. For example, for two groups, if the number of anchors in the first group is 1 and the number of anchors in the second group is 5, the task number can be 5, and each anchor in the second group can be the main anchor in a task. For another example, if the number of anchors in the first group is 3 and the number of anchors in the second group is 2, the task number can be 3.
[0104] S505, for any task, obtaining the virtual resources received by the anchor of the main role in each group within the first duration of any task, and the virtual resources received by the anchor of the auxiliary role within the second duration.
[0105] The first duration of any task can be set by the host himself or by the system, such as 2 minutes, 5 minutes, etc. The second duration can be a time period in the first duration of any task, for example, the second duration can be 1 / 5 of the first duration, and the 1 / 5 time period can be any time period in the first duration, such as the first 1 / 5 of the first duration, or the last 1 / 5 of the first duration, etc. Exemplarily, if the first duration of a task is 120 seconds, the second duration can be the last 30 seconds of the 120 seconds, or the first 30 seconds, etc. The first duration corresponding to each task can be the same or different; the second duration corresponding to each task can be the same or different. For the understanding of virtual resources, reference can be made to the above description.
[0106] It can be seen that through the setting of the first duration and the second duration, the task durations of the main anchor and the auxiliary anchor in the target task can be different, and the task duration of the main anchor (i.e., the first duration) is longer than the task duration of the auxiliary anchor (i.e., the second duration), which means that the main anchor's task importance in the target task is higher than that of the auxiliary anchor. Then, relative to the auxiliary anchor, the main anchor's virtual image can be larger than the auxiliary anchor's virtual image, and the position layout can also be more eye-catching than that of the auxiliary anchor, so that the user can intuitively determine the main anchor in each group, and the accuracy of the user sending virtual resources to the main anchor can also be improved.
[0107] In one implementation, after entering a live broadcast room of a certain anchor, the object can perform a live broadcast room switching operation (such as clicking or pressing) in a designated area of the current live broadcast room to trigger the generation of a live broadcast room switching instruction. Upon receiving the live broadcast room switching instruction, the current live broadcast room can be switched to a target live broadcast room based on the live broadcast room switching instruction. The target live broadcast room can be indicated by the live broadcast room switching instruction. The designated area can refer to the display area corresponding to the virtual image of each anchor in the current live broadcast room, and the anchor indicated by the designated area is also the anchor of the target live broadcast room. For example, see Figure 4a As shown, if the object wants to enter the live broadcast room of user C, it can perform a click operation in the display area of the virtual image of user C. After performing the click operation, the current live broadcast room of the object can be converted to the live broadcast room of user C, which means that the object has entered the live broadcast room of user C.
[0108] As mentioned above, any object (user) can enter the anchor's live broadcast room to interact with the anchor. For example, the object can send virtual gifts, like the live broadcast room, share the live broadcast room, and make comments in the anchor's live broadcast room; for example, Figure 4a The interface 401 shown is the live broadcast room of user A, that is, the interface displayed when the object enters the live broadcast room of user A is interface 401. The object can send virtual resources in the live broadcast room shown in interface 401. The virtual resources sent by the object here are for the live broadcast room of user A. As mentioned above, the task duration of the main anchor is different from the task duration of the auxiliary anchor. If the object is within the task duration of the main anchor but not within the task duration of the auxiliary anchor at the current moment, the object should try to send virtual resources to the live broadcast room of the main anchor, because if the virtual resources are not sent in the live broadcast room of the auxiliary anchor within the task duration of the auxiliary anchor, they cannot be converted into the task value of the corresponding group. Therefore, in order to ensure the validity of the virtual resources, the live broadcast room can be switched.
[0109] Based on this, it can be known that if the live broadcast room entered by a certain object is not the live broadcast room of the main anchor, the display area of the main anchor's virtual image can be quickly determined based on the display of the anchor roles of each anchor on the live broadcast room interface of the current live broadcast room. After determining the display area, the object can perform a live broadcast room switching operation in the display area to trigger a live broadcast room switching instruction for entering the live broadcast room of the main anchor. After receiving the live broadcast room switching instruction, the current live broadcast room can be switched to the live broadcast room of the main anchor based on the live broadcast room switching instruction, so that the object can send virtual resources in the live broadcast room of the main anchor to improve the effectiveness of virtual resources.
[0110] S506, determining the task value of each group in any task according to the virtual resources received by the anchor of the main role in each group within the first duration of any task, and the virtual resources received by the anchor of the auxiliary role within the second duration.
[0111] In one implementation, for any group among the multiple groups, the main value of any group can be determined according to the virtual resources received by the anchor of the main role in any group within the first duration of any task; and the auxiliary value of any group can be determined according to the virtual resources received by the anchor of the auxiliary role in any group within the second duration. After determining the main value and the auxiliary value, the task value of any group in any task can be determined according to the main value and the auxiliary value. For example, for any group in any task, the sum of the main value and the auxiliary value can be used as the task value; illustratively, if the main value and the auxiliary value are S1 and S2 respectively, the task value can be S1+S2. For another example, the weighting coefficients corresponding to the main value and the auxiliary value can be set in advance, and the main value and the auxiliary value can be weighted summed up respectively based on the weighting coefficients corresponding to the main value and the auxiliary value, and the weighted summation can be used as the task value; for example, if the main value and the auxiliary value are S1 and S2 respectively, and the weighting coefficients corresponding to these two values are w1 and w2 respectively, then the task value can be w1*S1+w2*S2.
[0112] In one implementation, for any group in any task, the specific implementation method of determining the main value of any group according to the virtual resources received by the anchor of the main role (i.e., the main anchor, or the main attack anchor) within the first time period can be described as follows.
[0113] First, the mapping relationship between virtual resources and resource values can be obtained. After obtaining the mapping relationship, the resource values corresponding to each virtual resource among all virtual resources received by the main anchor in the first time period can be determined based on the mapping relationship. Then, the main value can be determined based on the resource values corresponding to each virtual resource. For example, the sum of the resource values corresponding to each virtual resource can be used as the main value.
[0114] Among them, the method of determining the auxiliary value is similar to the method of determining the main value, which will not be repeated here.
[0115] It should be noted that in any task, the task value of each group can be displayed in real time on the battle interface, that is, for any group, if any anchor in the group receives a virtual resource, the server can determine the corresponding resource value based on the virtual resource and add the resource value to the original task value, so that the task value of each group can be understood in real time. Figure 4aIn area 44, the task value of one group is shown as 999, and the task value of another group is shown as 369.
[0116] S507, obtaining the total task value of each group based on the task value of each group in each task.
[0117] In one implementation, for any group, the task value of the group in each task may be summed up, and the calculation result is used as the total task value of the group.
[0118] Optionally, assuming that the target task is a game battle, the task value of each task here can also be understood as the number of votes in each game (or PK votes, points, etc.), and the total task value can also be understood as the total number of votes; for any group, the number of votes in each game of the group can be summed up, and the result of the calculation is used as the total number of votes for the group. For example, for any group, assuming that the number of game battles is 5, and the number of votes in each game is P1, P2, P3, P4, P5, then the total number of votes is P1+P2+P3+P4+P5.
[0119] In one implementation, each task can be configured with a corresponding weighting coefficient, which represents the importance of each task to the task result. The larger the weighting coefficient corresponding to a task, the greater the importance of the task, and the smaller the weighting coefficient corresponding to a task, the smaller the importance of the task. The weighting coefficient can be set by the anchor when initiating a task request, or it can be set automatically by the system, or it can be set in other ways, without limitation. In this case, the weighting coefficient corresponding to each task can be obtained first; then, a weighted sum operation can be performed using the task value in each task and the corresponding weighting coefficient, and the result of the operation is used as the total task value of any group.
[0120] Optionally, when the target task is a game battle, each game may also be configured with a corresponding weighting coefficient, so as to perform a weighted sum operation using the number of votes in each game and the corresponding weighting coefficient, and use the result of the operation as the total number of votes for any group.
[0121] From the above, we can see that in each game team battle PK, each side has 1 main anchor, and the rest of the anchors are auxiliary anchors. The main anchor accounts for the largest proportion of the score (votes) in each game, and the battle (competition) time is also the longest. Therefore, the screen / position layout of the main anchor in each game can be larger and more eye-catching than that of other auxiliary anchors, so as to intuitively show the importance of the main anchor in the game battle.
[0122] S508: Determine the task result of the target task based on the total task value of each group.
[0123] Among them, the task result can refer to the optimal group (or winning group) among multiple groups. The optimal group is determined based on the total task value. For example, the maximum total task value can be determined from the total task values of each group, and the group corresponding to the maximum total task value is the optimal group.
[0124] Optionally, assuming that the target task is a game battle, the total task value of each group refers to the total number of votes of each group, then the group corresponding to the maximum total number of votes can be added as the battle result of the game battle, and the battle result is the optimal group (or the winning group). For example, assuming that there are two groups, which are respectively called the red side and the blue side, if the total number of votes of the red side is higher than the total number of votes of the blue side, then it can be determined that the red side is the winner in this game battle, that is, the battle result is the red side; if the total number of votes of the blue side is higher than the total number of votes of the red side, then it can be determined that the blue side is the winner in this game battle, that is, the battle result is the blue side; if the total number of votes of the blue side is the same as the total number of votes of the red side, then both the red side and the blue side are the winners in this game battle, or the battle result of this game battle is a draw.
[0125] In one implementation, after the target task is completed (such as the end of the game battle), the anchor with the greatest contribution to the total task value in each group can also be selected. For any group, the anchor with the greatest contribution in any group can refer to the anchor with the largest proportion in the total task value in any group, or the anchor with the highest total personal resource value in any group. For example, assuming that the target task is a game battle, for any group, the anchor with the greatest contribution can refer to the anchor with the most personal votes (personal points) in any group. Specifically, for any group, the task contribution value of each anchor for the total task value can be determined based on the virtual resources received by each anchor in the any group. The task contribution value of one anchor refers to the sum of the resource values corresponding to all virtual resources received by the anchor in the target task. The determination method of the sum of the resource values is similar to the determination method of the above-mentioned main value, which will not be repeated here. After determining the task contribution value of each anchor, the maximum task contribution value can be determined from the task contribution value of each anchor, and the anchor corresponding to the maximum task contribution value is the anchor with the greatest contribution in any group (such as the target anchor).
[0126] In order to more prominently display the virtual image corresponding to the anchor with the greatest contribution in each group on the live studio interface, the virtual image corresponding to the anchor with the greatest contribution can be displayed in the display area of the main anchor on the live studio interface. The target anchor corresponding to the maximum task contribution value can be the main anchor or the auxiliary anchor. Then, if the target anchor corresponding to the maximum task contribution value is the main anchor in any group, the virtual image corresponding to the main anchor can be directly displayed on the display area of the main anchor. If the target anchor corresponding to the maximum task contribution value is not the main anchor in any group, that is, the target anchor is an auxiliary anchor, the display area of the virtual image corresponding to the target anchor and the main anchor on the live studio interface can be interchanged to display the virtual image corresponding to the target anchor in a larger position of the display area for display, or in other words, a large screen display. Optionally, in order to highlight the anchor with the greatest contribution on the live studio interface, a prominent mark can also be displayed in the display area of the anchor with the greatest contribution. The prominent mark can be displayed at any position in the display area of the anchor with the greatest contribution. The prominent mark can be a text mark or an image mark, which is not limited.
[0127] For example, see Figure 6a It shows that 6 anchors are divided into 2 groups (such as the red side and the blue side, the red side includes anchors: user A, user C, user D, and the blue side includes anchors: user B, user E, user F), and the battle results of 3 games. Among them, the interface 601 is the screen displayed after the game battle ends (or the group battle PK ends). For this game battle, user A in the red side (the main anchor of the red side) is the anchor with the largest contribution, and user F in the blue side (the auxiliary anchor of the blue side) is the anchor with the largest contribution, that is, an auxiliary anchor in the blue side and the main anchor in the red side are the largest points contributors in the game battle, then the virtual images corresponding to these two anchors can finally be displayed on the large screen on the live broadcast room interface, among which the virtual images corresponding to the anchors with the highest vote contribution values in the red side and the blue side can be displayed on the large screen by default. Then, after determining the anchors with the greatest contribution corresponding to the red team and the blue team respectively, interface 601 can be updated to interface 602. It can be seen from interface 602 that, because the main anchor in the red team is user A, the display area corresponding to the main anchor in interface 602 displays the virtual image corresponding to user A, while the main anchor in the blue team is user B, and the anchor with the greatest contribution is auxiliary anchor user F, then the display areas of user F and user B need to be changed. While displaying the large screen, the display area of the anchor with the greatest contribution can also display a prominent mark, such as Figure 6a The mark 61 and the mark 62 in FIG. 1 are the prominent marks.
[0128] It should be noted that the interface schematic diagram shown in the embodiment of the present application is only an illustrative example, and other forms of interface layouts are also possible, and the present application does not make any specific limitations.
[0129] From the above, it can be seen that in specific application scenarios, such as when users open the live broadcast room of terminal pages such as App and Web H5 in an online state, users participating in the live broadcast can freely form two teams on the basis of the live broadcast interaction to interact in the game. Users participating in the live broadcast room can freely form two teams (such as the red team and the blue team) on the basis of the live broadcast interaction to interact in the game; the interface (page) layout of the anchor room interface will change accordingly according to the different roles of the participants in the game. Each time there is only one main anchor on both sides of the game, the virtual image corresponding to the main anchor can be enlarged and emphasized, while the virtual images corresponding to the other auxiliary anchors (or teammates) correspond to a smaller image layout; and different main and auxiliary candidates can be generated according to the number of games and the number of people in the matching game, so as to display different page interactive content.
[0130] To better understand the interactive method of the live broadcast room proposed in the embodiment of the present application, Figure 6b The process shown further explains the interactive method of the live broadcast room. Figure 6b The scene corresponding to the process shown can specifically refer to a game battle (team battle PK), and there are two corresponding groups (red team and blue team). Figure 6b As shown, the anchor can connect multiple people to the live broadcast room, and any live broadcast connected to the live broadcast room can initiate a round-robin PK request (i.e., a request for a task connected to the live broadcast room), and determine whether the number of connected anchors is greater than or equal to 3. If the number of connected anchors is less than 3, the round-robin fails to initiate. If the number of connected anchors is greater than or equal to 3, the anchors participating in the connection can start to choose a camp, that is, to choose the corresponding group. If there is an anchor who chooses to refuse or exit the live broadcast room within the countdown of 30 seconds, it can be determined that the round-robin failed to initiate, because the total number of anchors participating in the round-robin does not meet the preset total number of reference anchors, which can be carried in the round-robin PK request. If there is no anchor who chooses to refuse or exit the live broadcast room within the countdown of 30 seconds, it can be further determined whether all anchors have selected the corresponding camp. If there is an anchor who has not selected the corresponding camp, it can be determined that the round-robin failed to initiate. If all the anchors have selected the corresponding camp, there can be a 5-second final confirmation countdown to further confirm whether all the anchors have selected the same camp. If all the anchors have selected the same camp, it can be determined that the round-robin battle has failed, because a battle cannot be formed with only one group.
[0131] If all the anchors have not chosen the same camp, a multiplayer PK can be started. In the specific implementation, 2-5 rounds of battles can be matched based on the number of people in each group of the red side and the blue side, and the main anchors and auxiliary anchors of both sides in each round of battle can be determined. If all the rounds are over, the result of the game battle can be determined based on the total votes of both sides. For example, it can be determined first whether the total votes of the red side are higher than the total votes of the blue side. If so, it can be determined that the result of the game battle is the victory of the red side; if not, it can be determined whether the total votes of the blue side are higher. If so, it can be determined that the result of the game battle is the victory of the blue side; if not, it can be determined that the result of the game battle is a draw. After determining the result of the game battle, if the current time is within 30 seconds after the end of the battle, the anchor with the highest contribution votes on both sides (i.e., the anchor with the largest contribution) can be displayed on a large screen on the live broadcast room interface. If the current time exceeds 30 seconds after the end of the battle, the game battle (or PK) ends. After the PK ends, multiplayer connection can also be continued.
[0132] Among them, each side has 1 main anchor in each game, and the other anchors are auxiliary anchors. The first 120 seconds of each game is the main attack time period. During this main attack time period, users can send virtual gifts in the live broadcast room of the main anchor, so that the received virtual gifts can be converted into corresponding PK votes (i.e., the resource value mentioned above) according to a fixed ratio. During this time period, there can also be tasks such as gift giving, commenting, and liking in the live broadcast room of the auxiliary anchor. The last 30 seconds of each game is the team battle time period. For either side, if the live broadcast room of any anchor in either side receives virtual resources, the virtual resources can be converted into corresponding PK votes. In the above manner, the total number of votes of each side can be determined in each game. Then, after the end of multiple games, the total number of votes of each side in this game can be determined. For example, for either side, the sum of the total number of votes corresponding to each game can be used as the total number of votes of either side in this game.
[0133] In the embodiment of the present application, the virtual image corresponding to the anchor of the main role can be displayed on a large screen, so as to highlight the virtual image corresponding to the anchor of the main role on the live broadcast room interface, so that the virtual image of the anchor can be displayed differently based on the anchor role, thereby improving the display effect of the virtual image; through this differentiated display, the user can also quickly locate the anchor he wants to follow, thereby improving the user's viewing effect; through this differentiated display, the users who participate in the interaction in the live broadcast room can also more intuitively understand the importance of each anchor in a group in the target task, thereby improving the user's viewing experience; and, the main anchor has the largest proportion of task value and the longest task duration in each task process, then the corresponding virtual image (or anchor screen) / position layout of the main anchor of each task is larger and more eye-catching than that of other auxiliary anchors, and can also intuitively show the importance of the main anchor in the target task; through this differentiated display, in the subsequent sending link of virtual resources, the live broadcast room of a more important anchor (such as the main anchor) can also be quickly located to improve the effectiveness of sending virtual resources.
[0134] See also Figure 7 , is a flowchart of another interactive method for a live broadcast room provided in an embodiment of the present application. The present application embodiment is mainly described with the client as the execution subject, and the client may refer to the client corresponding to any anchor among the anchors participating in the live broadcast room; please refer to Figure 7 The interactive method of the live broadcast room may include the following steps S701-S703:
[0135] S701, when a task instruction for a target task is received, a group selection interface is displayed in the live broadcast room on the client.
[0136] Among them, the target task can be a game battle (or called a team battle PK, battle, game competition, etc.), the task instruction can be an instruction to start a game battle, and the task instruction can be initiated by any anchor participating in the live broadcast room's microphone connection by triggering the task start control on the live broadcast room's microphone connection interface, wherein the microphone connection interface is the interface generated by the anchor participating in the live broadcast room's microphone connection, and the specific introduction of the microphone connection interface can refer to the following description. In a specific implementation, for any anchor's live broadcast room, when it is detected that the task start control on the live broadcast room's microphone connection interface is triggered, it can be determined that the task instruction for the target task has been received, and then the microphone connection interface can be converted into a group selection interface, so that the anchor can make group selections on the group selection interface.
[0137] The group selection interface can be used for the anchor corresponding to the client to select groups, and the live broadcast room of each anchor participating in the live broadcast room can display a group selection interface. In a specific implementation, the anchor corresponding to the client can perform relevant operations on the group selection interface to trigger the generation of group selection information corresponding to the anchor, so that the client used by the anchor can send the group selection information to the server, and when the server receives the group selection information corresponding to each anchor participating in the live broadcast room, it can group based on the group selection information of each anchor. The group selection information may include an anchor identifier and a group identifier.
[0138] For example, see Figure 3b As shown, Figure 3b The middle interface 306 and the interface 307 show the group selection interface displayed in the live broadcast room after clicking the task start control (i.e., PK control) in the interface 305 when there are three live broadcasters. Figure 3c As shown, Figure 3c The middle interface 309 and the interface 310 show the group selection interface displayed in the live broadcast room after clicking the task start control (i.e., PK control) in the interface 308 when there are 4 live broadcasters. Figure 3d As shown, Figure 3d Interfaces 312, 313, and 314 show the group selection interface displayed in the live broadcast room after clicking the task start control (i.e., PK control) in interface 311 when there are 5 live broadcasters. Figure 3e As shown, Figure 3e Middle interface 316, interface 317 and interface 318 show the group selection interface displayed in the live broadcast room after clicking the task start control (i.e., PK control) in interface 315 when there are 6 connected hosts.
[0139] In one implementation, any anchor can connect to another anchor's live broadcast room. After the connection is successful, the virtual images of the anchors participating in the live broadcast room connection can be displayed on the interface of the live broadcast room (such as the connection interface). In a specific implementation, first, a connection instruction of the anchor corresponding to the client to participate in the live broadcast room connection can be received. After the client receives the connection instruction, it can respond to the connection instruction and display the connection interface in the live broadcast room. The connection interface can display the virtual images of each anchor participating in the live broadcast room connection. The display areas of the virtual images of each anchor are the same size and arranged in sequence. The display area of the virtual image of the anchor corresponding to the client can be in the first place in the arrangement.
[0140] For example, when multiple virtual images are displayed on the microphone interface of a live broadcast room, each virtual image has a corresponding display order on the microphone interface. For example, when displaying virtual images, they are displayed in order from left to right, and there is no limit on the number of virtual images corresponding to a row of display areas, such as 2 or 3 virtual images can be displayed; if not all virtual images can be displayed in a row of display areas, the next row can be displayed below the row of display areas until all virtual images can be displayed. For any anchor's own live broadcast room, the anchor's virtual image can be displayed in a fixed position on the microphone interface, and the fixed position can refer to the display position corresponding to a display order of 1. For example, see Figure 3a Interfaces 301, 302, 303, and 304 respectively represent the display of the virtual images of the anchors in the case of 3-person, 4-person, 5-person, and 6-person microphone connection. Among them, these microphone connection interfaces represent the live broadcast room interface displayed on the client used by user A, that is, the virtual image of user A is always displayed at the first position among multiple virtual images, that is, the first position on the upper left side of the microphone connection interface.
[0141] In one implementation, after detecting that the group selection operation of each anchor participating in the live broadcast room connection is completed, the group selection interface can display the grouping status for the target task, so that the user can clearly understand the allocation status of each group of anchors. In a specific implementation, after receiving the group selection information sent by the client of each anchor participating in the live broadcast room connection, the server can determine multiple groups of the target task based on the group selection information; and after the server determines the multiple groups, the group information indicating the multiple groups can be sent to the client of each anchor participating in the live broadcast room connection, so that the client of each anchor can display the groups on the group selection interface based on the group information.
[0142] For example, see Figure 3b As shown, Figure 3b The middle interface 306 and the interface 307 specifically show the group selection interface after the group selection of each anchor is completed when there are three anchors connected to the microphone. Figure 3c As shown, Figure 3c The middle interface 309 and the interface 310 specifically show the group selection interface after the group selection of each anchor is completed when there are 4 anchors connected to the microphone. Figure 3d As shown, Figure 3d The middle interface 312, the interface 313 and the interface 314 specifically show the group selection interface after the group selection of each anchor is completed when there are 5 anchors connected to the microphone. Figure 3e As shown, Figure 3eMiddle interface 316, interface 317 and interface 318 specifically show the group selection interface after the group selection of each anchor is completed when there are 6 anchors connected to the microphone.
[0143] In one implementation, the group selection interface may include a selection time prompt information for the host to select the group, so as to prompt the host to perform the group selection operation within the selection time. Figure 3b The interface 306 shown can prompt the host to select the time length, such as the text prompt "Select within 5 seconds", which means that the host has 5 seconds to make group selection, and the host can choose either the red team or the blue team; within the selection time (or before the selection countdown ends), the host can change his or her group selection at any time, such as the text prompt "You can change the team camp within 5 seconds".
[0144] Optionally, if the client receives a group selection operation for the anchor corresponding to the client within the selection duration indicated by the selection duration prompt information, the group selection operation may be regarded as a valid group selection operation, and group selection information corresponding to the group selection operation may be sent to the server, the group selection information may include an anchor identifier and a group identifier, so that the server can receive the group selection information and determine the group based on the group selection information of each anchor. If the client does not receive a group selection operation for the anchor corresponding to the client within the selection duration indicated by the selection duration prompt information, the group selection operation may be regarded as an invalid group selection operation.
[0145] S702, after the anchors participating in the live broadcast room microphone connection complete the group selection operation on their respective group selection interfaces, they receive the layout information sent by the server.
[0146] Among them, the layout information may include: for any one of the multiple groups of the target task, the display area of the virtual image corresponding to the anchor of the main role on the task interface of the live broadcast room is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface.
[0147] It is known that after the anchor performs the group selection operation on the group selection interface, the client can send the group selection information corresponding to the group selection operation to the server, so that the server can determine multiple groups for the target task based on the group selection information corresponding to each anchor, and further determine the layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room. Then, after the anchors participating in the live broadcast room connection complete the group selection operation on their respective group selection interfaces, they can receive the layout information sent by the server.
[0148] S703, based on the layout information, a task interface of a virtual image corresponding to each anchor participating in the live broadcast room is displayed in the live broadcast room.
[0149] In one implementation, a task interface for a virtual image corresponding to each anchor participating in the live broadcast room can be displayed in the live broadcast room based on the layout information. Figure 4a As stated, the Figure 4a The task interface shown is when there are three anchors participating in the live broadcast room. Figure 4b As stated, the Figure 4b The task interface shown is when there are 4 anchors participating in the live broadcast room. Figure 4c As stated, the Figure 4c The task interface shown is when there are 5 anchors participating in the live broadcast room. Figure 4d As stated, the Figure 4d What is shown is the task interface when there are 5 anchors participating in the live broadcast room.
[0150] In one implementation, after the server determines the main anchor and the auxiliary anchor in each task in the target task, the anchor role allocation result can be output on the live broadcast room interface, or the specific main anchor and auxiliary anchor allocation in each task can be shown on the live broadcast room interface, so that the user can clearly understand the anchor role allocation. Figure 3f Interfaces 319, 320, and 321 are role allocation interfaces for different anchor allocation situations, and each interface shows a schematic diagram of the allocation of main anchors and auxiliary anchors in each group of the game battle. Before the group selection interface jumps to the task interface for the target task, the group selection interface can first jump to a role allocation interface, on which the anchor roles corresponding to each anchor are marked; then, the role allocation interface jumps to the task interface for the target task.
[0151] Optionally, first, the anchor role allocation information sent by the server can be received. The anchor role allocation information can include the anchor role corresponding to each anchor in each group. The anchor role can include a main role or an auxiliary role. There is an anchor with a main role in any group. Then, the group selection interface can be jumped to the role allocation interface based on the anchor role allocation information. After the display time of the role allocation interface reaches the preset time, the role allocation interface can be jumped to the task interface for the target task. The preset time can be pre-set, such as 3 seconds, 5 seconds, etc., and the specific time is not limited.
[0152] In one implementation, in order to more prominently display the virtual image corresponding to the anchor with the greatest contribution in each group on the interface of the live broadcast room, the virtual image corresponding to the anchor with the greatest contribution can be displayed in the display area of the main anchor on the interface of the live broadcast room, so that the virtual image corresponding to the target anchor is displayed in a larger position of the display area for display, or in other words, a large screen display. In a specific implementation, the client can receive a display area exchange instruction for the virtual image sent by the server, and the display area exchange instruction can be used to indicate that for any group, the display area of the virtual image corresponding to the target anchor in any group and the virtual image corresponding to the anchor of the main role in any group on the task interface are exchanged; the target anchor is the anchor corresponding to the maximum task contribution value in any group. After receiving the display area exchange instruction, the task interface can be jumped to the target interface based on the display area exchange instruction. Among them, the display area of the virtual image corresponding to the target anchor in any group on the target interface is larger than the display area of the virtual image corresponding to the main anchor in any group. Compared with the task interface, the display area of the virtual image of the target anchor is exchanged with the display area of the virtual image corresponding to the main anchor.
[0153] It should be noted that, for any group, the target anchor can be the main anchor or the auxiliary anchor. If the target anchor is the main anchor in any group, the virtual image corresponding to the main anchor can be directly displayed in the display area of the main anchor. If the target anchor is not the main anchor in any group, that is, the target anchor is an auxiliary anchor, the display areas of the virtual images corresponding to the target anchor and the main anchor on the live broadcast room interface can be swapped. For example, see Figure 6a What is shown is a target interface of a live broadcast room, on which the virtual image corresponding to the anchor with the highest vote contribution value in the red team and the blue team can display a large picture by default.
[0154] In an embodiment of the present application, the virtual image corresponding to the anchor of the main role can be displayed on a large screen to highlight the virtual image corresponding to the anchor of the main role on the live broadcast room interface, so that the virtual image of the anchor can be displayed differently based on the anchor role, thereby improving the display effect of the virtual image; through this differentiated display, users can also quickly locate the anchor they want to follow, thereby improving the user's viewing effect.
[0155] See also Figure 8 , is a flowchart of another interactive method for a live broadcast room provided in an embodiment of the present application. The present application embodiment mainly describes the interaction between the server and the client, and the client may refer to the client corresponding to any anchor among the anchors participating in the live broadcast room; see Figure 8The interactive method of the live broadcast room may include the following steps S801-S806:
[0156] S801, when the client receives a task instruction for a target task, a group selection interface is displayed in the live broadcast room on the client.
[0157] S802, the server determines multiple groups of the target task based on the group selections made by the hosts participating in the live broadcast room connection on the group selection interface.
[0158] S803, the server obtains the anchor role of each anchor in each group.
[0159] S804, the server determines layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room based on the anchor role of each anchor in each group.
[0160] S805: The server sends the layout information to the client.
[0161] S806, the client receives the layout information sent by the server, and jumps the group selection interface to the task interface for the target task based on the layout information.
[0162] The specific implementation of steps S801-S806 can refer to the relevant descriptions in the above embodiments, which will not be repeated here.
[0163] In an embodiment of the present application, the virtual image corresponding to the anchor of the main role can be displayed on a large screen to highlight the virtual image corresponding to the anchor of the main role on the live broadcast room interface, so that the virtual image of the anchor can be displayed differently based on the anchor role, thereby improving the display effect of the virtual image; through this differentiated display, users can also quickly locate the anchor they want to follow, thereby improving the user's viewing effect.
[0164] See also Fig. 9 , is a schematic diagram of the structure of an interactive device for a live broadcast room provided in an embodiment of the present application. Optionally, the interactive device may be configured in an electronic device, such as in the above-mentioned server. The interactive device for a live broadcast room described in this embodiment includes:
[0165] A grouping unit 901 is used to determine multiple groups of target tasks based on the anchors participating in the live broadcast room;
[0166] An acquisition unit 902 is used to acquire the anchor role of each anchor in each group, where the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group;
[0167] The determining unit 903 is used to determine, based on the anchor role of each anchor in each group, layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room; the layout information includes: the display area of the virtual image corresponding to the anchor of the main role in any group on the task interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0168] The sending unit 904 is used to send the layout information to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor is displayed based on the layout information.
[0169] In one implementation, the acquiring unit 902 is specifically configured to:
[0170] The number of anchors in each group is obtained, and the maximum number of anchors among the number of anchors in each group is used as the task number of the target task;
[0171] For any group, if the number of anchors in any group is equal to the number of tasks, then one anchor is selected from any group as the main role for each task, and the anchor corresponding to the main role in each task is different;
[0172] If the number of anchors in any group is less than the number of tasks, then one anchor is selected from any group as the main role for each task, and it is ensured that each anchor in any group serves as the main role at least once.
[0173] In one implementation, the acquiring unit 902 is further configured to:
[0174] For any group, if there is a need for an anchor to play a main role in at least two tasks, then the historical virtual resources received by each anchor in the group within the historical duration are obtained;
[0175] Determine a reference value of each anchor based on the historical virtual resources of each anchor;
[0176] The anchor corresponding to the maximum reference value among the reference values of the anchors is determined as the anchor who needs to play a main role in at least two tasks.
[0177] In one implementation, the determining unit 903 is further configured to:
[0178] For any task, obtain the virtual resources received by the anchor of the main role in each group within the first duration of the task, and the virtual resources received by the anchor of the auxiliary role within the second duration; the second duration is a time period in the first duration of the task;
[0179] Determine the task value of each group in the task according to the virtual resources received by the anchor of the main role in each group within the first duration of the task and the virtual resources received by the anchor of the auxiliary role within the second duration;
[0180] Based on the task value of each group in each task, the total task value of each group is obtained;
[0181] The task result of the target task is determined based on the total task value of each group.
[0182] In one implementation, the determining unit 903 is specifically configured to:
[0183] For any group among the multiple groups, determining a main force value of any group according to virtual resources received by a host of a main role in any group within a first duration of any task;
[0184] Determining the assistance value of any one of the groups according to the virtual resources received by the anchor of the auxiliary role in any one of the groups within the second time period;
[0185] The task value of any one of the groups in any one of the tasks is determined according to the main value and the auxiliary value.
[0186] In one implementation, the sending unit 904 is further configured to:
[0187] For any group, based on the virtual resources received by each anchor in the group, determine the task contribution value of each anchor to the total task value;
[0188] Determine the maximum task contribution value from the task contribution values of the respective hosts;
[0189] If the target anchor corresponding to the maximum task contribution value is not the anchor of the main role in any of the groups, a display area interchange instruction for the virtual image is sent to the client of each of the anchors, and the display area interchange instruction is used to instruct that for any of the groups, the display area of the virtual image corresponding to the target anchor in any of the groups and the virtual image corresponding to the anchor of the main role in any of the groups are interchanged on the task interface of the live broadcast room.
[0190] In one implementation, the grouping unit 901 is specifically configured to:
[0191] Receive group selection information sent by a client corresponding to each anchor participating in the live broadcast room, wherein the group selection information includes an anchor identifier and a group identifier;
[0192] Based on the anchor identifier and the group identifier, counting the number of anchors in each group;
[0193] If the number of anchors in each group meets the preset grouping condition, the anchors corresponding to the group selection information with the same group identifier are divided into one group using a division rule to obtain multiple groups.
[0194] In one implementation, the grouping unit 901 is further configured to:
[0195] Obtain the total number of reference task participants carried in the live broadcast task request, and perform a number verification based on the total number of anchors in the multiple groups and the total number of reference task participants;
[0196] If the total number of anchors in the multiple groups is the same as the total number of anchors in the reference task, then the number verification is passed, and the division rule of dividing the anchors corresponding to the group selection information with the same group identifier into one group is triggered to obtain the step of obtaining multiple groups;
[0197] If the total number of anchors in the multiple groups is different from the total number of anchors in the reference task, the number verification fails and a prompt message of failure to participate in the target task is output.
[0198] It is understood that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The functional units in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0199] See also Fig.10 , is a structural diagram of another interactive device for a live broadcast room provided in an embodiment of the present application. Optionally, the interactive device may be configured in an electronic device, such as in the above-mentioned client. The interactive device for a live broadcast room described in this embodiment includes:
[0200] The first display unit 1001 is used to display a group selection interface in the live broadcast room on the client when receiving a task instruction for a target task, wherein the group selection interface is used for the anchor corresponding to the client to select a group;
[0201] The receiving unit 1002 is used to receive layout information sent by the server after the anchors participating in the live broadcast room microphone connection complete the group selection operation on their respective group selection interfaces; the layout information includes: for any group of multiple groups of the target task, the display area of the virtual image corresponding to the anchor of the main role on the task interface of the live broadcast room is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0202] The second display unit 1003 is used to jump the group selection interface to the task interface for the target task based on the layout information.
[0203] In one implementation, the device further includes a third display unit 1004, which is specifically configured to:
[0204] Receive a live broadcast room live broadcast instruction from a host corresponding to the client;
[0205] Responding to the microphone connection instruction, and displaying a microphone connection interface in the live broadcast room; the microphone connection interface displays virtual images of various hosts participating in the microphone connection in the live broadcast room, the display areas of the virtual images of various hosts are of the same size and arranged in sequence, and the display area of the virtual image of the host corresponding to the client is in the first place in the arrangement;
[0206] When a task instruction for a target task is received, the microphone connection interface is redirected to the group selection interface.
[0207] In one implementation, the group selection interface includes selection time prompt information for the anchor to select a group; the first display unit 1001 is also used to:
[0208] If a group selection operation for the anchor corresponding to the client is received within the time duration indicated by the selection duration prompt information, the group selection operation is regarded as a valid group selection operation;
[0209] The group selection information corresponding to the group selection operation is sent to the server, so that the server determines multiple groups of the target task based on the group selection information, wherein the group selection information includes an anchor identifier and a group identifier.
[0210] In one implementation, the second display unit 1003 is specifically configured to:
[0211] receiving anchor role allocation information sent by a server, wherein the anchor role allocation information includes an anchor role corresponding to each anchor in each group, wherein the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group;
[0212] Based on the anchor role allocation information, the group selection interface is redirected to a role allocation interface, where the anchor roles corresponding to the anchors are marked on the role allocation interface;
[0213] After the display time of the role allocation interface reaches a preset time, the role allocation interface is jumped to a task interface for the target task based on the layout information.
[0214] In one implementation, the second display unit 1003 is further used for:
[0215] receiving a display area exchange instruction for a virtual image sent by a server, wherein the display area exchange instruction is used to instruct, for any group, to exchange a display area on the task interface between a virtual image corresponding to a target anchor in any group and a virtual image corresponding to an anchor of a main role in any group; the target anchor is an anchor corresponding to a maximum task contribution value in any group;
[0216] The task interface is jumped to the target interface based on the display area exchange instruction; the display area of the virtual image corresponding to the target anchor in any group on the target interface is larger than the display area of the virtual image corresponding to the main anchor in any group.
[0217] It is understood that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The functional units in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0218] See also Fig.11 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be the above-mentioned server and / or client, or may execute some or all of the steps executed by the above-mentioned server and / or client. The electronic device described in this embodiment includes: a processor 1101, a memory 1102, and a network interface 1103. The above-mentioned processor 1101, the memory 1102, and the network interface 1103 may exchange data.
[0219] The processor 1101 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0220] The memory 1102 may include a read-only memory and a random access memory, and provide program instructions and data to the processor 1101. A portion of the memory 1102 may also include a non-volatile random access memory.
[0221] Optionally, in some embodiments, the electronic device may be a server, or may execute some or all of the steps executed by the server. For example, when the processor 1101 calls the program instruction, it is used to execute:
[0222] Determine multiple groups of target tasks based on the anchors participating in the live broadcast room;
[0223] Obtaining the anchor role of each anchor in each group, wherein the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group;
[0224] Determine layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room based on the anchor role of each anchor in each group; the layout information includes: the display area of the virtual image corresponding to the anchor of the main role in any group on the task interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0225] The layout information is sent to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor is displayed based on the layout information.
[0226] In one implementation, the processor 1101 is specifically configured to:
[0227] The number of anchors in each group is obtained, and the maximum number of anchors among the number of anchors in each group is used as the task number of the target task;
[0228] For any group, if the number of anchors in any group is equal to the number of tasks, then one anchor is selected from any group as the main role for each task, and the anchor corresponding to the main role in each task is different;
[0229] If the number of anchors in any group is less than the number of tasks, then one anchor is selected from any group as the main role for each task, and it is ensured that each anchor in any group serves as the main role at least once.
[0230] In one implementation, the processor 1101 is further configured to:
[0231] For any group, if there is a need for an anchor to play a main role in at least two tasks, then the historical virtual resources received by each anchor in the group within the historical duration are obtained;
[0232] Determine a reference value of each anchor based on the historical virtual resources of each anchor;
[0233] The anchor corresponding to the maximum reference value among the reference values of the anchors is determined as the anchor who needs to play a main role in at least two tasks.
[0234] In one implementation, the processor 1101 is further configured to:
[0235] For any task, obtain the virtual resources received by the anchor of the main role in each group within the first duration of the task, and the virtual resources received by the anchor of the auxiliary role within the second duration; the second duration is a time period in the first duration of the task;
[0236] Determine the task value of each group in the task according to the virtual resources received by the anchor of the main role in each group within the first duration of the task and the virtual resources received by the anchor of the auxiliary role within the second duration;
[0237] Based on the task value of each group in each task, the total task value of each group is obtained;
[0238] The task result of the target task is determined based on the total task value of each group.
[0239] In one implementation, the processor 1101 is specifically configured to:
[0240] For any group among the multiple groups, determining a main force value of any group according to virtual resources received by a host of a main role in any group within a first duration of any task;
[0241] Determining the assistance value of any one of the groups according to the virtual resources received by the anchor of the auxiliary role in any one of the groups within the second time period;
[0242] The task value of any one of the groups in any one of the tasks is determined according to the main value and the auxiliary value.
[0243] In one implementation, the processor 1101 is further configured to:
[0244] For any group, based on the virtual resources received by each anchor in the group, determine the task contribution value of each anchor to the total task value;
[0245] Determine the maximum task contribution value from the task contribution values of the respective hosts;
[0246] If the target anchor corresponding to the maximum task contribution value is not the anchor of the main role in any of the groups, a display area interchange instruction for the virtual image is sent to the client of each of the anchors, and the display area interchange instruction is used to instruct that for any of the groups, the display area of the virtual image corresponding to the target anchor in any of the groups and the virtual image corresponding to the anchor of the main role in any of the groups are interchanged on the task interface of the live broadcast room.
[0247] In one implementation, the processor 1101 is specifically configured to:
[0248] Receive group selection information sent by a client corresponding to each anchor participating in the live broadcast room, wherein the group selection information includes an anchor identifier and a group identifier;
[0249] Based on the anchor identifier and the group identifier, counting the number of anchors in each group;
[0250] If the number of anchors in each group meets the preset grouping condition, the anchors corresponding to the group selection information with the same group identifier are divided into one group using a division rule to obtain multiple groups.
[0251] In one implementation, the processor 1101 is further configured to:
[0252] Obtain the total number of reference task participants carried in the live broadcast task request, and perform a number verification based on the total number of anchors in the multiple groups and the total number of reference task participants;
[0253] If the total number of anchors in the multiple groups is the same as the total number of anchors in the reference task, then the number verification is passed, and the division rule of dividing the anchors corresponding to the group selection information with the same group identifier into one group is triggered to obtain the step of multiple groups;
[0254] If the total number of anchors in the multiple groups is different from the total number of anchors in the reference task, the number verification fails and a prompt message of failure to participate in the target task is output.
[0255] Optionally, in some embodiments, the electronic device may be a client, or may execute some or all of the steps executed by the client. For example, when the processor 1101 calls the program instruction, it is used to execute:
[0256] When a task instruction for a target task is received, a group selection interface is displayed in the live broadcast room on the client, and the group selection interface is used for the anchor corresponding to the client to select a group;
[0257] After the anchors participating in the live broadcast room microphone connection complete the group selection operation on their respective group selection interfaces, receiving layout information sent by the server; the layout information includes: for any group of multiple groups of the target task, the display area of the virtual image corresponding to the anchor of the main role on the task interface of the live broadcast room is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface;
[0258] The group selection interface is redirected to a task interface for the target task based on the layout information.
[0259] In one implementation, the processor 1101 is further configured to:
[0260] Receive a live broadcast room live broadcast instruction from a host corresponding to the client;
[0261] Responding to the microphone connection instruction, and displaying a microphone connection interface in the live broadcast room; the microphone connection interface displays virtual images of various hosts participating in the microphone connection in the live broadcast room, the display areas of the virtual images of various hosts are of the same size and arranged in sequence, and the display area of the virtual image of the host corresponding to the client is in the first place in the arrangement;
[0262] When a task instruction for a target task is received, the microphone connection interface is redirected to the group selection interface.
[0263] In one implementation, the group selection interface includes selection duration prompt information for the anchor to select a group; the processor 1101 is further configured to:
[0264] If a group selection operation for the anchor corresponding to the client is received within the time duration indicated by the selection duration prompt information, the group selection operation is regarded as a valid group selection operation;
[0265] The group selection information corresponding to the group selection operation is sent to the server, so that the server determines multiple groups of the target task based on the group selection information, wherein the group selection information includes an anchor identifier and a group identifier.
[0266] In one implementation, the processor 1101 is specifically configured to:
[0267] receiving anchor role allocation information sent by a server, wherein the anchor role allocation information includes an anchor role corresponding to each anchor in each group, wherein the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group;
[0268] Based on the anchor role allocation information, the group selection interface is redirected to a role allocation interface, where the anchor roles corresponding to the anchors are marked on the role allocation interface;
[0269] After the display time of the role allocation interface reaches a preset time, the role allocation interface is jumped to a task interface for the target task based on the layout information.
[0270] In one implementation, the processor 1101 is further configured to:
[0271] receiving a display area exchange instruction for a virtual image sent by a server, wherein the display area exchange instruction is used to instruct, for any group, to exchange a display area on the task interface between a virtual image corresponding to a target anchor in any group and a virtual image corresponding to an anchor of a main role in any group; the target anchor is an anchor corresponding to a maximum task contribution value in any group;
[0272] The task interface is jumped to the target interface based on the display area exchange instruction; the display area of the virtual image corresponding to the target anchor in any group on the target interface is larger than the display area of the virtual image corresponding to the main anchor in any group.
[0273] The present application also provides a computer storage medium in which program instructions are stored. When the program is executed, it may include: Figure 2 or Figure 5 or Figure 7 or Figure 8 Part or all of the steps of the interactive method of the live broadcast room in the corresponding embodiment.
[0274] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0275] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0276] The embodiment of the present application also provides a computer program product or computer program, which includes program instructions, and the program instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the program instructions from the computer-readable storage medium, and the processor executes the program instructions, so that the electronic device performs the steps performed in the embodiments of the above methods.
[0277] The above is a detailed introduction to an interactive method, electronic device and storage medium for a live broadcast room provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and scope of application. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for interactive broadcasting room. It is characterized in that Applied to a server, the method comprises: Determine multiple groups of target tasks based on the anchors participating in the live broadcast room; Obtain the number of anchors in each group, and use the maximum number of anchors among the numbers of anchors in each group as the task number of the target task, wherein the number of anchors in each group is the same or different; Obtaining the anchor role of each anchor in each group, wherein the anchor role includes a main role or an auxiliary role, and there is an anchor with a main role in any group, including: for any group, if there is a demand for an anchor who needs to serve as a main role in at least two tasks, obtaining the historical virtual resources received by each anchor in the group within the historical duration; determining the reference value of each anchor based on the historical virtual resources of each anchor; determining the anchor corresponding to the maximum reference value among the reference values of each anchor as the anchor who needs to serve as a main role in at least two tasks, wherein each anchor in any group serves as an anchor with a main role in at least one task; Determine layout information of the virtual image corresponding to each anchor in each group on the task interface of the live broadcast room based on the anchor role of each anchor in each group; the layout information includes: the display area of the virtual image corresponding to the anchor of the main role in any group on the task interface is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface; The layout information is sent to the client corresponding to each anchor, so that the task interface of the live broadcast room on the client corresponding to each anchor is displayed based on the layout information.
2. The method according to claim 1, It is characterized in that Also includes: The step of obtaining the anchor role of each anchor in each group includes: For any group, if the number of anchors in any group is equal to the number of tasks, then one anchor is selected from any group as the main role for each task, and the anchor corresponding to the main role in each task is different; If the number of anchors in any group is less than the number of tasks, then one anchor is selected from any group as the main role for each task, and it is ensured that each anchor in any group serves as the main role at least once.
3. The method according to claim 2, It is characterized in that Also includes: For any task, obtain the virtual resources received by the anchor of the main role in each group within the first duration of the task, and the virtual resources received by the anchor of the auxiliary role within the second duration; the second duration is a time period in the first duration of the task; Determine the task value of each group in the task according to the virtual resources received by the anchor of the main role in each group within the first duration of the task and the virtual resources received by the anchor of the auxiliary role within the second duration; Based on the task value of each group in each task, the total task value of each group is obtained; The task result of the target task is determined based on the total task value of each group.
4. The method according to claim 3, It is characterized in that Determining the task value of each group in any task according to the virtual resources received by the anchor of the main role in each group within the first duration of the task and the virtual resources received by the anchor of the auxiliary role within the second duration, includes: For any group among the multiple groups, determining a main force value of any group according to virtual resources received by a host of a main role in any group within a first duration of any task; Determining the assistance value of any one of the groups according to the virtual resources received by the anchor of the auxiliary role in any one of the groups within the second time period; The task value of any one of the groups in any one of the tasks is determined according to the main value and the auxiliary value.
5. The method according to claim 3, It is characterized in that Also includes: For any group, based on the virtual resources received by each anchor in the group, determine the task contribution value of each anchor to the total task value; Determine the maximum task contribution value from the task contribution values of the respective hosts; If the target anchor corresponding to the maximum task contribution value is not the anchor of the main role in any of the groups, a display area interchange instruction for the virtual image is sent to the client of each of the anchors, and the display area interchange instruction is used to instruct that for any of the groups, the display area of the virtual image corresponding to the target anchor in any of the groups and the virtual image corresponding to the anchor of the main role in any of the groups are interchanged on the task interface of the live broadcast room.
6. The method according to claim 1, It is characterized in that The method of determining a plurality of groups based on the anchors participating in the live broadcast room connection includes: Receive group selection information sent by a client corresponding to each anchor participating in the live broadcast room, wherein the group selection information includes an anchor identifier and a group identifier; Based on the anchor identifier and the group identifier, counting the number of anchors in each group; If the number of anchors in each group meets the preset grouping condition, the anchors corresponding to the group selection information with the same group identifier are divided into one group using a division rule to obtain multiple groups.
7. The method according to claim 6, It is characterized in that Also includes: Obtain the total number of reference task participants carried in the live broadcast task request, and perform a number verification based on the total number of anchors in the multiple groups and the total number of reference task participants; If the total number of anchors in the multiple groups is the same as the total number of anchors in the reference task, then the number verification is passed, and the division rule of dividing the anchors corresponding to the group selection information with the same group identifier into one group is triggered to obtain the step of multiple groups; If the total number of anchors in the multiple groups is different from the total number of anchors in the reference task, the number verification fails and a prompt message of failure to participate in the target task is output.
8. A method for interactive broadcasting room. It is characterized in that Applied to a client, the method comprises: When a task instruction for a target task is received, a group selection interface is displayed in the live broadcast room on the client, and the group selection interface is used for the anchor corresponding to the client to select a group, and the number of anchors in each group is the same or different; After the anchors participating in the live broadcast room microphone connection complete the group selection operation on their respective group selection interfaces, receiving layout information sent by the server; the layout information includes: for any group of multiple groups of the target task, the display area of the virtual image corresponding to the anchor of the main role on the task interface of the live broadcast room is larger than the display area of the virtual image corresponding to the anchor of the auxiliary role on the task interface; Jumping the group selection interface to the task interface for the target task based on the layout information includes: receiving anchor role allocation information sent by a server, the anchor role allocation information includes the anchor role corresponding to each anchor in each group, the anchor role includes a main role or an auxiliary role, there is an anchor with a main role in any group, the maximum number of anchors among the anchors in each group is used as the task number of the target task, each anchor in any group serves as the anchor of the main role in at least one task, and there is an anchor who needs to serve as the main role in at least two tasks in any group; jumping the group selection interface to the role allocation interface based on the anchor role allocation information, the role allocation interface is marked with the anchor roles corresponding to each anchor; after the display time of the role allocation interface reaches a preset time, jumping the role allocation interface to the task interface for the target task based on the layout information.
9. The method according to claim 8, It is characterized in that Also includes: Receive a live broadcast room live broadcast instruction from a host corresponding to the client; Responding to the microphone connection instruction, and displaying a microphone connection interface in the live broadcast room; the microphone connection interface displays virtual images of various hosts participating in the microphone connection in the live broadcast room, the display areas of the virtual images of various hosts are of the same size and arranged in sequence, and the display area of the virtual image of the host corresponding to the client is in the first place in the arrangement; When a task instruction for a target task is received, the microphone connection interface is redirected to the group selection interface.
10. The method according to claim 8, It is characterized in that The group selection interface includes selection time prompt information for the anchor to select a group; and also includes: If a group selection operation for the anchor corresponding to the client is received within the time duration indicated by the selection duration prompt information, the group selection operation is regarded as a valid group selection operation; The group selection information corresponding to the group selection operation is sent to the server, so that the server determines multiple groups of the target task based on the group selection information, wherein the group selection information includes an anchor identifier and a group identifier.
11. The method according to claim 8, It is characterized in that Also includes: receiving a display area exchange instruction for a virtual image sent by a server, wherein the display area exchange instruction is used to instruct, for any group, to exchange a display area on the task interface between a virtual image corresponding to a target anchor in any group and a virtual image corresponding to an anchor of a main role in any group; The target anchor is the anchor corresponding to the maximum task contribution value in any group; Jumping the task interface to the target interface based on the display area exchange instruction; The display area of the virtual image corresponding to the target anchor in any group on the target interface is larger than the display area of the virtual image corresponding to the main anchor in any group.
12. An electronic device, It is characterized in that The method comprises a processor, a memory and a network interface, wherein the processor, the memory and the network interface are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 11.
13. A computer storage medium, It is characterized in that The computer storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, a server having the processor executes the method according to any one of claims 1 to 11.
