Grouping interaction method and device
By displaying the group operation panel on the client of the video platform and refreshing the displayed content, the synchronization problem after the anchor changes the camp is solved, real-time synchronization of multiple clients is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411063084.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-01
AI Technical Summary
On the video platform, after the anchor changes the camp, some clients cannot synchronize the changed camp information in real time, resulting in poor user experience.
By displaying the group operation panel on the client, users can change the faction and refresh the display content after the change command is received, ensuring that all clients update the faction information simultaneously.
Real-time synchronization of camp information in multiple packet PK clients is achieved, improving user experience.
Smart Images

Figure CN118890516A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network technology, and in particular to a group interaction method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] At present, on video platforms, it is popular to use an interactive form in which multiple anchors form two different camps to PK and broadcast the PK process live.
[0003] When splitting into two different factions, the streamer may need to change their faction before starting a PK. However, currently, after changing the faction, the changed faction information is not synchronized with the client of each PK streamer. As a result, at least some streamers' clients still display the initial faction assignment, and they cannot see the changed faction information in real time, resulting in a poor user experience.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the Invention
[0005] The embodiments of the present application provide a group interaction method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.
[0006] One aspect of an embodiment of the present application provides a group interaction method, the method comprising:
[0007] In response to a first group interaction request, displaying a group operation panel on the first client, and displaying an initial group for the group interaction in the group operation panel, wherein the first group interaction request is initiated by one of the plurality of first clients connected, and the group operation panel is used to display users currently included in two groups and allow the user to change the current group;
[0008] In response to a group change instruction input in the group operation panel, refreshing the display content of the group operation panel in the first client, wherein the group change instruction is used to change the group currently belonging to a target user, and the target user is any user included in the group operation panel;
[0009] In response to the second group interaction request, group interaction is triggered according to the current group of the group operation panel.
[0010] Optionally, displaying a group operation panel in the first client and displaying an initial group for group interaction in the group operation panel includes:
[0011] Popping up a preset floating layer in the first client, and displaying the group operation panel in the preset floating layer;
[0012] The total number of users included in the current group interaction is determined, the users are divided into two different groups according to the total number of users, and the users corresponding to the current client are divided into preset groups.
[0013] Optionally, dividing the users into two different groups according to the total number of users includes:
[0014] Slice the users included in each group according to the slice threshold and determine the number of slices;
[0015] Creating a first view control in the first client according to the number of slices;
[0016] Determining layout information of the elements in each of the slices in the first view control according to a preset group combination style;
[0017] The data of each group is displayed in the first view control according to the layout information.
[0018] Optionally, the maximum number of users displayed by each first view control is equal to the slice threshold, and the creating the first view control in the first client according to the number of slices includes:
[0019] When the number of slices is greater than 1, the same number of first view controls as the number of slices are created in the first client, and a page indicator control is displayed at the target position of the first view control to turn pages of the first view control through the page indicator control.
[0020] Optionally, refreshing the display content of the group operation panel in the first client includes:
[0021] In the case where the group change instruction is initiated by the current client, the display content of the group operation panel in the current client is refreshed according to the group change instruction, and the refreshed data is synchronized to the rest of the first clients.
[0022] Optionally, refreshing the display content of the group operation panel in the first client further includes:
[0023] In the case that the group change instruction is initiated by another first client, refresh data sent by the first client corresponding to the initiator of the group change instruction is received, and the display content of the group operation panel in the current client is refreshed according to the refresh data.
[0024] Optionally, the receiving of refresh data sent by the first client corresponding to the group change instruction includes:
[0025] Refresh data sent by the first client corresponding to the group change instruction is received through a low-latency data link.
[0026] Another aspect of an embodiment of the present application provides a group interaction device, the device comprising:
[0027] a display module configured to display a group operation panel on the first client in response to a first group interaction request, and to display an initial group for the group interaction in the group operation panel, wherein the first group interaction request is initiated by one of the plurality of first clients connected, and the group operation panel is configured to display users currently included in two groups and allow the user to change the current group;
[0028] a refresh module, configured to refresh the display content of the group operation panel in the first client in response to a group change instruction input in the group operation panel, wherein the group change instruction is used to change the group currently belonging to a target user, and the target user is any user included in the group operation panel;
[0029] The triggering module is configured to trigger the group interaction according to the current group of the group operation panel in response to the second group interaction request.
[0030] Another aspect of an embodiment of the present application provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.
[0031] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0032] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the above-mentioned method when executed by a processor.
[0033] The above technical solution adopted in the embodiments of the present application may have the following advantages:
[0034] According to the first group interaction request, the group operation panel is displayed in multiple connected first clients, and the initial group of the group interaction is displayed in the group operation panel; according to the group change instruction, the display content of the group operation panel is refreshed in the first client, and the group interaction is triggered according to the second group interaction request and the current group of the group operation panel. This can effectively synchronize the camp information in real time in multiple group PK clients, thereby improving the user experience of group PK. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.
[0036] Figure 1 The following schematically shows an operating environment diagram of the group interaction method according to the first embodiment of the present application;
[0037] Figure 2 The following schematically shows a flow chart of a group interaction method according to the first embodiment of the present application;
[0038] Figure 3 Schematically shows Figure 2 Flowchart of sub-steps of step S200;
[0039] Figure 4 Schematically shows Figure 3 Flowchart of sub-steps of step S302;
[0040] Figure 5 A prototype diagram of a group operation panel for group interaction is schematically shown;
[0041] Figure 6 A schematic diagram showing the prototype design of the group operation panel control;
[0042] Figure 7 The group combination pattern diagram is schematically shown;
[0043] Figure 8 The following schematically shows an application flow chart of the group interaction method according to the first embodiment of the present application;
[0044] Figure 9 A block diagram schematically shows a group interaction device according to the second embodiment of the present application; and
[0045] Figure 10 The following schematically shows a hardware architecture diagram of a computer device according to the third embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of this application more clear, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0047] It should be noted that the descriptions of "first", "second", etc. in the embodiments of the present application are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0048] In the description of this application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed. They are only used to facilitate the description of this application and to distinguish each step. Therefore, they cannot be understood as limitations on this application.
[0049] First, an explanation of the terms used in this application is provided:
[0050] Multiplayer group PK: Multiple connected users are divided into two camps (groups) to compete against each other, with at least one user in each camp.
[0051] DataChannel: DataChannel is part of WebRTC and allows for the establishment of bidirectional data channels between two peers. These channels are established directly between the two peers, without going through a server. This enables faster data transfer with lower latency. DataChannel can be used for any type of data transfer, including text, binary data, and streaming media.
[0052] WebRTC (Web Real-Time Communication) is a real-time communication technology that allows web applications or sites to establish peer-to-peer connections between browsers without the help of an intermediary, enabling real-time transmission of video streams, audio streams, or any other arbitrary data.
[0053] UICollectionView: A view control used in iOS development to display serialized data. It is particularly well-suited for displaying waterfall-style layouts, such as lists of photos and magazine covers. UICollectionView provides flexible data display methods, including list and grid layouts, and allows developers to customize layouts to meet specific needs. It inherits from UIScrollView and therefore supports scrolling through data.
[0054] UIScrollView: A common view control in iOS development, it allows users to scroll to view content that exceeds the screen size. A key class in the UIKit framework, UIScrollView doesn't display any graphical content itself, but instead displays content through subviews. UIScrollView achieves scrolling by adjusting the origin of the content view. It also supports zooming, allowing users to adjust the display scale using pinch gestures.
[0055] UICollectionViewLayout: A class used in iOS development to define the layout of a UICollectionView. It belongs to the UIKit framework and is an abstract base class for UICollectionView. It manages the layout and size of cells and supplementary views in a collection view.
[0056] UICollectionViewFlowLayout: A specific subclass of UICollectionViewLayout that defines the flow layout of items in UICollectionView. It provides a simple and flexible way to arrange and display items, which can be images, text, or other custom views.
[0057] UIPageControl: A control in iOS development that displays a page indicator, typically used to indicate page swipes. Its primary function is to display the current page position during page switching and provide navigation instructions. UIPageControl typically appears as a small dot at the bottom or top of the screen, highlighting the dot depending on the current page position.
[0058] UIImageView: A control used in iOS development to display images on the interface. It is a class in the UIKit framework and inherits from UIView. The main function of UIImageView is to draw UIImage objects to the screen and supports multiple image formats.
[0059] Secondly, to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the following describes the relevant technologies:
[0060] In related technologies, after the anchor changes his or her camp before a PK, the changed camp information cannot be synchronized on the client of each PK anchor, resulting in the clients of other anchors still displaying the initial camp allocation and being unable to see the changed camp information in real time, resulting in a poor experience.
[0061] To this end, the present application provides a group interaction technology solution. In this technology solution, camp information can be synchronized in real time to improve the user experience of group PK. See below for details.
[0062] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0063] Figure 1 The following schematically shows an environmental application diagram according to an embodiment of the present application.
[0064] The environment diagram may include a service platform 2, host terminals (4A, 4B, ..., 4M), and audience terminals (6A, 6B, ..., 6N). In a live broadcast scenario, the host terminals (4A, 4B, ..., 4M) log in to the service platform 2, and the service platform 2 pushes live broadcast data to the audience terminals (6A, 6B, ..., 6N) in real time.
[0065] Service platform 2 can provide live broadcast service, which can be a single server, a server cluster or a cloud computing service center.
[0066] The host terminals (4A, 4B, ..., 4M) are used to generate live broadcast data in real time and perform streaming operations on the live broadcast data. The live broadcast data may include audio data or video data. The host terminal can be an electronic device such as a smartphone or tablet computer. Of course, the host terminal can also be a virtual computing instance within the service platform 2.
[0067] The audience terminals (6A, 6B, ..., 6N) can be configured to receive live broadcast data from the host terminal in real time. The audience terminals (6A, 6B, ..., 6N) can be any type of computing device, such as a smartphone, tablet device, laptop computer, smart TV, in-vehicle terminal, etc. The audience terminals (6A, 6B, ..., 6N) can have a built-in browser or dedicated program to receive the live broadcast data through the browser or dedicated program to output content to the user. The content can include video, audio, commentary, text data, and / or the like.
[0068] The audience terminal (6A, 6B, ..., 6N) may include a player. The player outputs (e.g., displays, presents) content to the user. The content may include video, audio, comments, text data, and / or the like. The audience terminal (6A, 6B, ..., 6N) may include an interface, which may include an input element (touch screen). For example, the input element may be configured to receive user instructions, which may cause the audience terminal (6A, 6B, ..., 6N) to perform various operations, such as sending a bullet screen, entering a comment, sending a gift, etc.
[0069] The host terminals (4A, 4B, ..., 4M), the viewer terminals (6A, 6B, ..., 6N), and the service platform 2 may be connected via a network. The network may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, and / or proxy devices. The network may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and / or the like. The network may also include wireless links, such as cellular links, satellite links, Wi-Fi links, and / or the like.
[0070] It should be noted that the number of host terminals and viewer terminals in the figure is only illustrative and is not intended to limit the scope of patent protection of this application. Depending on the actual situation, there can be any number of host terminals and viewer terminals.
[0071] The following describes the technical solutions of this application using a service platform as the execution subject through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be construed as being limited to the embodiments described here.
[0072] Example 1
[0073] Figure 2 The flowchart of the group interaction method according to the first embodiment of the present application is schematically shown.
[0074] like Figure 2 As shown, the group interaction method may include steps S200 to S204, wherein:
[0075] Step S200: In response to the first group interaction request, a group operation panel is displayed in the first client, and the initial group of the group interaction is displayed in the group operation panel, wherein the first group interaction request is initiated by one of the multiple connected first clients, and the group operation panel is used to display the users included in the current two groups and allow the user to change the current group.
[0076] Step S202 : In response to a group change instruction input in the group operation panel, refreshing the display content of the group operation panel in the first client, wherein the group change instruction is used to change the group to which the target user currently belongs, and the target user is any user included in the group operation panel.
[0077] Step S204 : In response to the second group interaction request, triggering group interaction according to the current group of the group operation panel.
[0078] The group interaction method provided in this embodiment displays a group operation panel in multiple connected first clients according to a first group interaction request, and displays the initial group of the group interaction in the group operation panel; refreshes the display content of the group operation panel in the first client according to the group change instruction, and triggers group interaction according to the second group interaction request and the current group of the group operation panel. It can effectively synchronize camp information in real time in multiple group PK clients, thereby improving the user experience of group PK.
[0079] The following combination Figure 2 , each step in steps S200 to S204 and other optional steps are described in detail.
[0080] Step S200 In response to the first group interaction request, a group operation panel is displayed in the first client, and the initial group of the group interaction is displayed in the group operation panel, wherein the first group interaction request is initiated by one of the multiple connected first clients, and the group operation panel is used to display the users included in the current two groups and allow the user to change the current group.
[0081] The first client can be the host's client. Multiple first clients can first establish a connection, and then, based on the connection, one of the first clients can initiate a group interaction request. The remaining connected first clients then join the group interaction after receiving the group interaction request. The group interaction can be a multi-person group PK, where the group is also known as the faction. Connections between multiple first clients can be established via WebRTC to improve the stability and real-time performance of connections between multiple hosts. Specifically, a first client can click a pre-set button in the application (such as a "Group PK button") to initiate a first group interaction request to the service platform. Optionally, upon receiving the first group interaction request, the service platform can verify the group interaction and the first client. If the verification is successful, the first client can request a pre-configured group interaction interface (such as a group information list interface) from the service platform and join the group interaction through this group interaction interface. The group interaction verification can include, for example, whether the number of participants meets the requirement (e.g., at least three participants) or whether the host corresponding to the first client is not in other group interactions.
[0082] When the first client joins the group interaction, a group operation panel is displayed in the first client. The group operation panel displays the initial two groups and the users included in each group. The elements displayed in the group operation panel may include the user's username and avatar.
[0083] In an optional embodiment, if Figure 3 As shown, step 200 of displaying the group operation panel in the first client and displaying the initial group for group interaction in the group operation panel may include steps S300 to S302:
[0084] In step S300 , a preset floating layer pops up in the first client, and a group operation panel is displayed in the preset floating layer.
[0085] Step S302: determining the total number of users included in the current group interaction, dividing the users into two different groups according to the total number of users, and dividing the users corresponding to the current client into a preset group.
[0086] When dividing users into two different groups based on the total number of users, the users can be divided according to a certain numbering sequence. For example, if the users corresponding to the first client are assigned seat numbers in the group interaction, the users with odd seat numbers can be divided into one group, and the users with even seat numbers can be divided into another group. The specific rules for dividing users into two different groups can be set according to actual needs and are not limited here.
[0087] The two different groups can be red and blue, and can be distinguished by red and blue backgrounds, respectively, to make the groups more distinct. When categorizing users corresponding to the current client into preset groups, the users corresponding to the current client can be categorized into the red group. In actual applications, when the two groups are distributed left and right, the users corresponding to the current client can be categorized into the group corresponding to the left, so that the current anchor always has a relatively important position in the current client.
[0088] In this optional embodiment, by popping up a preset floating layer in the first client, displaying the group operation panel in the preset floating layer, determining the total number of users included in the current group interaction, dividing the users into two different groups based on the total number of users, and dividing the users corresponding to the current client into preset groups, the initial group of the group interaction can be effectively determined and displayed.
[0089] In an optional embodiment, if Figure 4 As shown, the step S302 of dividing the users into two different groups according to the total number of users may further include steps S400 to S406:
[0090] Step S400: Slice the users included in each group according to the slice threshold to determine the number of slices.
[0091] Step S402: Create a first view control in the first client according to the number of slices.
[0092] Step S404: Determine layout information of the elements in each slice in the first view control according to a preset group combination style.
[0093] Step S406: display the data of each group in the first view control according to the layout information.
[0094] In step S400, the slice threshold can be 3, 4, or 5, etc., and can be set according to actual needs and is not limited here. For example, if the slice threshold is 4, then every 4 users in the group are divided into one slice. For example, if group A includes 6 users and the slice threshold is 4, two slices can be obtained, one slice with 4 users and the other slice with 2 users.
[0095] In step S402, the first view control may be, for example, a UICollectionView or other view controls. When creating the first view control according to the number of slices, a first view control may be created for each slice, or a first view control may be created for two or more slices.
[0096] In an exemplary embodiment, the maximum number of users displayed by each first view control is equal to the slice threshold, and the creation of the first view control in the first client according to the number of slices in step S402 may further include: when the number of slices is greater than 1, creating the same number of first view controls as the number of slices in the first client, and displaying a page indicator control at the target position of the first view control to turn pages of the first view control through the page indicator control.
[0097] The page indication control may be, for example, a UIPageControl, or other page controllers. The target position of the first view control may be, for example, the bottom.
[0098] For example, if the number of slices is 2, two first view controls are created in the first client, and a page indicator control is displayed at the bottom of the first view control, so that the user of the first client can turn the page of the first view control by clicking the page indicator control.
[0099] Please refer to Figure 5This is a prototype diagram of a group interaction group operation panel. As shown in the figure, a page indicator control in the form of a small dot can be displayed at the bottom of the first view control to turn pages of multiple first view controls. The user names and avatars in the figure are blurred.
[0100] Please refer to further Figure 6 This is a prototype diagram of the control design. As shown in the figure, in addition to the first view control, the page indicator control, and the parent view of the first view control, the background view control can also be used to set the background or background color corresponding to each group. Among them, the background view control can be, for example, a UI ImageView, the first view control can be a UICollectionView, and the parent view of the first view control can be a UIScrollView.
[0101] By creating the same number of first view controls as the number of slices when the number of slices is greater than 1, and displaying page indicator controls at the target position of the first view controls, the data of multiple slices can be displayed through the nested use of the first view controls, and the page indicator controls can be combined to achieve the effect of page turning, which can effectively realize the display and viewing of group data when there are many users included in the group.
[0102] In step S404, the preset group combination pattern can be pre-configured in combination with the slice threshold. Figure 7 , which is an example diagram of the group combination style. As shown in the figure, it shows the corresponding group combination style when the number of users is 1-8. When the slice threshold is 4 and the number of users is 5-8, the group combination style can be seen as the effect of merging two first view controls. For example, when the number of users is 5, there can be two first view controls, one first view control showing 4 of the users, and the other first view control showing the 5th user.
[0103] After determining the total number of users and the number of slices in each group, the group combination style of the current group can be determined according to the preset group combination style, and then the layout information of the elements in each slice (which may include user avatars and user names) in the first view control can be calculated according to the group combination style of the current group, where the layout information may include information such as position, size, spacing, etc. For example, when only one user is included in a first view control, the layout information can be calculated according to the group combination style of the current group. Figure 7The first group combination style shown calculates the horizontal and vertical margins for the user in the first view control, including layout information. Optionally, you can use UICollectionViewFlowLayout to calculate the layout information. The first view control can be UICollectionView. After calculating the layout information, UICollectionViewFlowLayout can pass the layout information to UICollectionView for drawing.
[0104] In actual applications, when the number of users in the first view control changes, the current view can be removed and a new view can be displayed according to the new group combination style. For example, if the group combination style is Figure 7 As shown, the number of users in the first view control changes from 1 to 2, then the current view can be removed. Figure 7 The second group combination style shown displays the new view.
[0105] In this optional embodiment, the users included in each group are sliced according to a slice threshold, the number of slices is determined, a first view control is created in the first client according to the number of slices, the layout information of the elements in each slice in the first view control is determined according to a preset group combination style, and the data of each group is displayed in the first view control according to the layout information. Differentiated display can be performed according to the different number of users in each group, thereby improving the effect of displaying group data and thus improving the user experience.
[0106] Step S202 In response to a group change instruction input in the group operation panel, the display content of the group operation panel is refreshed in the first client, wherein the group change instruction is used to change the group to which the target user currently belongs, and the target user is any user included in the group operation panel.
[0107] The group change instruction can be, for example, a click, drag, or long press on any user in the group operation panel. The specific instructions can be set according to actual needs. For example, if the group change instruction is a click, then after the user of the first client clicks on the target user in the group operation panel, it is considered that the group change instruction has been input, and the target user is moved from the current group to another group.
[0108] When the target user's group is changed, the target user's group change information can be synchronized to the remaining first clients, and the data of the group operation panels of all first clients can be refreshed, so that the data of the group operation panels in all first clients are the latest data.
[0109] In an optional embodiment, refreshing the display content of the group operation panel in the first client in step S202 may further include: when the group change instruction is initiated by the current client, refreshing the display content of the group operation panel in the current client according to the group change instruction, and synchronizing the refreshed data to the remaining first clients.
[0110] By refreshing the display content of the group operation panel in the current client according to the group change instruction when the group change instruction is initiated by the current client, and synchronizing the refreshed data to the remaining first clients, the updated data can be synchronized in real time in all first clients when the content of the group operation panel is updated, thereby improving the user experience in group interaction.
[0111] In an optional embodiment, refreshing the display content of the group operation panel in the first client in step S202 may further include: when the group change instruction is initiated by other first clients, receiving refresh data sent by the first client corresponding to the initiating group change instruction, and refreshing the display content of the group operation panel in the current client according to the refresh data.
[0112] In an exemplary embodiment, receiving refresh data sent by the first client corresponding to the initiator of the group change instruction may include: receiving the refresh data sent by the first client corresponding to the initiator of the group change instruction via a low-latency data link. The low-latency data link may be a DataChannel data link. Since DataChannel data links have low latency and good real-time performance, receiving the refresh data sent by the first client corresponding to the initiator of the group change instruction via the DataChannel data link can improve the real-time performance of data transmission.
[0113] By receiving the refresh data sent by the first client corresponding to the group change instruction when the group change instruction is initiated by other first clients, and refreshing the display content of the group operation panel in the current client according to the refresh data, the updated data can be synchronized in real time in all first clients when the content of the group operation panel is updated, thereby improving the user experience in group interaction.
[0114] Step S204 In response to the second group interaction request, the group interaction is triggered according to the current group of the group operation panel.
[0115] The second grouping request can be used to request the determination of the grouping group and to start the interaction. The second grouping interaction request can be issued through the preset control of the client. Optionally, the preset control can be set in the group operation panel (such as between two groups). The user of the first client can click the preset control to initiate the second grouping interaction request. Upon receiving the second grouping interaction request, the service platform can determine the users and related data included in the current groups of the group operation panel, and start the corresponding process of grouping interaction according to the current group data. Optionally, the service platform can verify the current group data of the group operation panel when receiving the second grouping interaction request (such as the number of users in each group is not less than 1 person), and then enter the corresponding process of grouping interaction after the verification is passed.
[0116] In order to make this application easier to understand, the following Figure 8 An exemplary application is provided. As shown in the figure, the group interaction method may generally include the following:
[0117] 1. The anchor clicks on the group PK, and the service platform verifies the anchor. After the verification is passed, the anchor's corresponding client requests the camp (group) information list interface and proceeds to step 3;
[0118] 2. The anchor operates the camp panel and requests the service platform to update the camp panel (i.e., the camp operation panel mentioned above) to update the camp panel data according to the anchor's operation, and then proceed to 3. Alternatively, if other anchors operate the camp panel, the DataChannel receiving link is triggered to receive the data after the other anchors' operation, and then proceed to 3.
[0119] 3. Refresh the displayed faction panel;
[0120] 4. Divide the data sources into two groups, red and blue, according to the anchor's group;
[0121] 5. Slice the current data source with a threshold of 4 (i.e., the slicing threshold mentioned above);
[0122] 6. Remove the current view and create a new UICollectionView based on the number of slices;
[0123] 7. Partition the number of elements in each slice;
[0124] 8. Calculate the display size of each view and the horizontal and vertical margins;
[0125] 9. The mark points to the current position;
[0126] 10. The anchor clicks "PK Now";
[0127] 11. Request the group PK activation interface from the service platform and determine whether it is activated successfully. If successful, proceed to 13; otherwise, proceed to 12.
[0128] 12. Stay on the current panel and display the corresponding prompt for failure to open the interface;
[0129] 13. The camp panel disappears, triggering the group PK process.
[0130] Example 2
[0131] Figure 9 The block diagram of the group interaction device 500 according to the second embodiment of the present application is schematically shown. The device 500 can be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 9 As shown, the apparatus 500 may include: a display module 510, a refresh module 520 and a trigger module 530, wherein:
[0132] Display module 510, configured to display a group operation panel on the first client in response to a first group interaction request, and display an initial group for the group interaction in the group operation panel, wherein the first group interaction request is initiated by one of the plurality of first clients connected, and the group operation panel is configured to display users currently included in two groups and allow the user to change the current group;
[0133] a refresh module 520 for refreshing the displayed content of the group operation panel in the first client in response to a group change instruction input in the group operation panel, wherein the group change instruction is used to change the group to which a target user currently belongs, and the target user is any user included in the group operation panel;
[0134] The triggering module 530 is configured to trigger the group interaction according to the current group of the group operation panel in response to the second group interaction request.
[0135] In an optional embodiment, the display module 510 is further configured to:
[0136] Popping up a preset floating layer in the first client, and displaying the group operation panel in the preset floating layer;
[0137] The total number of users included in the current group interaction is determined, the users are divided into two different groups according to the total number of users, and the users corresponding to the current client are divided into preset groups.
[0138] In an optional embodiment, the display module 510 is further configured to:
[0139] Slice the users included in each group according to the slice threshold and determine the number of slices;
[0140] Creating a first view control in the first client according to the number of slices;
[0141] Determining layout information of the elements in each of the slices in the first view control according to a preset group combination style;
[0142] The data of each group is displayed in the first view control according to the layout information.
[0143] In an optional embodiment, the maximum number of users displayed by each first view control is equal to the slice threshold, and the display module 510 is further configured to:
[0144] When the number of slices is greater than 1, the same number of first view controls as the number of slices are created in the first client, and a page indicator control is displayed at the target position of the first view control to turn pages of the first view control through the page indicator control.
[0145] In an optional embodiment, the refresh module 520 is further configured to:
[0146] In the case where the group change instruction is initiated by the current client, the display content of the group operation panel in the current client is refreshed according to the group change instruction, and the refreshed data is synchronized to the rest of the first clients.
[0147] In an optional embodiment, the refresh module 520 is further configured to:
[0148] In the case that the group change instruction is initiated by another first client, refresh data sent by the first client corresponding to the initiator of the group change instruction is received, and the display content of the group operation panel in the current client is refreshed according to the refresh data.
[0149] In an optional embodiment, the refresh module 520 is further configured to:
[0150] Refresh data sent by the first client corresponding to the group change instruction is received through a low-latency data link.
[0151] Example 3
[0152] Figure 10The schematic diagram of the hardware architecture of the computer device 10000 suitable for implementing the group interaction method according to the third embodiment of the present application is shown. In some embodiments, the computer device 10000 can be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 10 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other via a system bus.
[0153] The memory 10010 includes at least one type of computer-readable storage medium, including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Of course, the memory 10010 may also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed on the computer device 10000, such as program codes of the group interaction method, etc. In addition, the memory 10010 can also be used to temporarily store various data that has been output or will be output.
[0154] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to execute program code stored in the memory 10010 or process data.
[0155] The network interface 10030 may include a wireless network interface or a wired network interface. The network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal via a network, establishing a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile Communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth, or Wi-Fi.
[0156] It should be pointed out that Figure 10 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementing all of the shown components is not a requirement, and more or fewer components may alternatively be implemented.
[0157] In this embodiment, the group interaction method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0158] Example 4
[0159] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the group interaction method in the embodiment are implemented.
[0160] In this embodiment, the computer-readable storage medium includes flash memory, hard disks, multimedia cards, card-type memories (e.g., SD or DX memories), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as the hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk equipped with the computer device, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. Of course, the computer-readable storage medium may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the group interaction method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are about to be output.
[0161] Example 5
[0162] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0163] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented using general-purpose computer devices. They can be concentrated on a single computer device or distributed on a network composed of multiple computer devices. Alternatively, they can be implemented using program codes executable by the computer device, so that they can be stored in a storage device and executed by the computer device. In some cases, the steps shown or described can be performed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0164] It should be noted that the above are only preferred embodiments of the present application and do not limit the scope of patent protection of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the scope of patent protection of the present application.
Claims
1. A group interaction method, characterized in that: The method comprises: In response to a first group interaction request, a group operation panel is displayed in the first client, and an initial group of the group interaction is displayed in the group operation panel, wherein the first group interaction request is initiated by one of the first clients among the plurality of first clients connected, and the group operation panel is used to display users included in the current two groups and allow the user to change the current group; In response to a group change instruction input in the group operation panel, refreshing the display content of the group operation panel in the first client, wherein the group change instruction is used to change the group that the target user currently belongs to, and the target user is any user included in the group operation panel; In response to the second group interaction request, the group interaction is triggered according to the current group of the group operation panel.
2. The method according to claim 1, characterized in that The step of displaying a group operation panel in the first client and displaying an initial group for group interaction in the group operation panel includes: Popping up a preset floating layer in the first client, and displaying the group operation panel in the preset floating layer; The total number of users included in the current group interaction is determined, the users are divided into two different groups according to the total number of users, and the users corresponding to the current client are divided into preset groups.
3. The method according to claim 2, characterized in that The dividing the users into two different groups according to the total number of users includes: Slice the users included in each group according to the slice threshold and determine the number of slices; Creating a first view control in the first client according to the number of slices; Determining layout information of the elements in each of the slices in the first view control according to a preset group combination style; The data of each group is displayed in the first view control according to the layout information.
4. The method according to claim 3, characterized in that The maximum number of users displayed by each first view control is equal to the slice threshold, and the creating a first view control in the first client according to the number of slices includes: When the number of slices is greater than 1, the first view controls of the same number as the number of slices are created in the first client, and a page indicator control is displayed at a target position of the first view control so as to turn pages of the first view control through the page indicator control.
5. The method according to any one of claims 1 to 4, characterized in that: The refreshing of the display content of the group operation panel in the first client includes: In the case where the group change instruction is initiated by the current client, the display content of the group operation panel in the current client is refreshed according to the group change instruction, and the refreshed data is synchronized to the rest of the first clients.
6. The method according to claim 5, characterized in that The refreshing of the display content of the group operation panel in the first client further includes: In the case that the group change instruction is initiated by another first client, refresh data sent by the first client corresponding to the group change instruction is received, and the display content of the group operation panel in the current client is refreshed according to the refresh data.
7. The method according to claim 6, characterized in that The receiving of refresh data sent by the first client corresponding to the group change instruction includes: Refresh data sent by the first client corresponding to the group change instruction is received through a low-latency data link.
8. A group interaction device, characterized in that: The device comprises: A display module, configured to display a group operation panel in the first client in response to a first group interaction request, and display an initial group of the group interaction in the group operation panel, wherein the first group interaction request is initiated by one of the plurality of first clients connected, and the group operation panel is used to display users included in the current two groups and allow the user to change the current group; a refresh module, configured to refresh the display content of the group operation panel in the first client in response to a group change instruction input in the group operation panel, wherein the group change instruction is used to change the group to which the target user currently belongs, and the target user is any user included in the group operation panel; The trigger module is used to trigger the group interaction according to the current group of the group operation panel in response to the second group interaction request.
9. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
