Live broadcast room UI display control method, device, electronic device and storage medium
By triggering policy update events in the live broadcast room and dynamically switching UI display strategies, the problem of flexibility and low efficiency caused by fixing UI display control strategies in the existing technology is solved, and the flexibility and efficiency improvement of UI display in the live broadcast room is achieved. Improved user experience.
Patent Information
- Application Number
- CN202311314900.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-10-11
AI Technical Summary
The UI display control strategy of existing live broadcast software is fixed and it is difficult to adjust flexibly, resulting in poor user experience and low adjustment efficiency. It is necessary to frequently update the software version to change the display method.
By triggering policy update events in the live broadcast room, dynamically switching different UI display strategies, no need for users to update software versions, real-time online adjustment of UI display control, and improving flexibility and efficiency.
It realizes the flexibility and adjustment efficiency of UI display in the live broadcast room. Users can obtain new UI display strategies without downloading new software packages, improving live broadcast interaction effect and user experience.
Smart Images

Figure CN117596418B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of live broadcast technology, and specifically to a method, device, electronic device and storage medium for controlling UI display in a live broadcast room. Background Art
[0002] With the increasing application of smart devices and the improvement of people's living standards, live broadcasting is becoming more and more widely used, and the user experience during live broadcasting is becoming more and more important. During live broadcasting, various UI display strategies can be used to control the UI elements in the live broadcast room to obtain better live broadcast interaction effects and improve user experience.
[0003] In the prior art, the control strategy used for UI display control is a fixed strategy bound to the live broadcast software. If the UI display mode needs to be changed, the live broadcast software needs to be updated, that is, a new version of the software needs to be re-released, and the user needs to download the new version of the software installation package and install it. The adjustment process is complicated, which is not conducive to improving the flexibility and adjustment efficiency of the UI display control of the live broadcast room. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for controlling the UI display of a live broadcast room. The user does not need to update the software version of the live broadcast room, and the UI display control strategy of the live broadcast room can be adjusted dynamically and flexibly online in real time. The strategy adjustment process is simple, which is conducive to improving the flexibility and adjustment efficiency of the UI display control of the live broadcast room.
[0005] A first aspect of an embodiment of the present application provides a method for controlling a UI display in a live broadcast room, the method comprising:
[0006] A live broadcast room is displayed, wherein the live broadcast room is pre-configured with a first UI display strategy;
[0007] In response to triggering a first event in the live broadcast room, displaying a UI element corresponding to the first event based on the first UI display strategy;
[0008] In response to triggering a policy update event in the live broadcast room, switching the first UI display strategy configured in the live broadcast room to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy;
[0009] In response to triggering the first event in the live broadcast room, a UI element corresponding to the first event is displayed based on the second UI display strategy.
[0010] A second aspect of an embodiment of the present application provides a live broadcast room UI display control device, the device comprising:
[0011] A live broadcast room display module, used to display the live broadcast room, wherein the live broadcast room is pre-configured with a first UI display strategy;
[0012] A first UI display module, configured to respond to triggering a first event in the live broadcast room and display a UI element corresponding to the first event based on the first UI display strategy;
[0013] A strategy switching module, configured to switch the first UI display strategy configured in the live broadcast room to a second UI display strategy in response to triggering a strategy update event in the live broadcast room, wherein the first UI display strategy is different from the second UI display strategy;
[0014] The second UI display module is used to respond to the triggering of the above-mentioned first event in the above-mentioned live broadcast room and display the UI element corresponding to the above-mentioned first event based on the above-mentioned second UI display strategy.
[0015] In some optional embodiments, the UI display strategy configured in the live broadcast room includes trigger conditions and display rules of UI elements;
[0016] The first UI display module is specifically used for:
[0017] In response to triggering a first event in the live broadcast room, determining a UI element corresponding to the first event according to a triggering condition of the UI element in the first UI display strategy;
[0018] The UI element corresponding to the first event is displayed in the live broadcast room according to the display rules in the first UI display strategy.
[0019] In some optional embodiments, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0020] The UI display strategy configured in the above live broadcast room also includes the display priority of UI elements;
[0021] The first UI display module is specifically used for:
[0022] Determine a UI display order according to the priorities of the first UI element and the second UI element;
[0023] The first UI element and the second UI element are displayed in the live broadcast room according to the UI display order and the display rules.
[0024] In some optional embodiments, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0025] The UI display strategy configured in the live broadcast room also includes a UI identifier, a display priority, and a concurrent UI identifier of the UI element, wherein the concurrent UI identifier is used to indicate a UI element that can be displayed simultaneously with the UI element;
[0026] The first UI display module is specifically used for:
[0027] If the co-existing UI identifiers of the first UI element include the UI identifier of the second UI element, then the first UI element and the second UI element are simultaneously displayed in the live broadcast room according to the display rule;
[0028] If the co-existing UI identifiers of the first UI element do not include the UI identifier of the second UI element, the target UI element that can be displayed between the first UI element and the second UI element is determined according to the display priority of the first UI element and the second UI element, and the target UI element is displayed in the live broadcast room according to the display rules.
[0029] In some optional embodiments, the live broadcast room triggers the policy update event when the number of live broadcast viewers is greater than a preset number threshold;
[0030] The display priority of the operation guidance control UI in the above second UI display strategy is higher than the display priority of the operation guidance control UI in the above second UI display strategy.
[0031] In some optional embodiments, the first UI display strategy is automatically configured in advance by the server for the live broadcast room;
[0032] Alternatively, the first UI display strategy is pre-configured according to a rule configuration operation triggered by the anchor account of the live broadcast room.
[0033] In some optional embodiments, the above-mentioned strategy switching module is specifically used for:
[0034] In response to triggering a policy update event in the live broadcast room, sending a policy update request matching the policy update event to a server corresponding to the live broadcast room, so as to trigger the server to determine a second UI display strategy according to the policy update request and issue the second UI display strategy;
[0035] Receive the second UI display strategy sent by the server, and switch the first UI display strategy configured in the live broadcast room to the second UI display strategy.
[0036] A third aspect of an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores multiple instructions; the processor loads instructions from the memory to execute the steps in the live broadcast room UI display control method provided in the first aspect of the embodiment of the present application.
[0037] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores multiple instructions. The instructions are suitable for loading by a processor to execute the steps in the live broadcast room UI display control method provided in the first aspect of the embodiments of the present application.
[0038] By adopting the scheme of the embodiment of the present application, a live broadcast room can be displayed, wherein the live broadcast room is pre-configured with a first UI display strategy; in response to triggering a first event in the live broadcast room, a UI element corresponding to the first event is displayed based on the first UI display strategy; in response to triggering a strategy update event in the live broadcast room, the first UI display strategy configured in the live broadcast room is switched to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy; in response to triggering the first event in the live broadcast room, the UI element corresponding to the first event is displayed based on the second UI display strategy.
[0039] In this way, for the live broadcast room, when the live broadcast room triggers a policy update event, the first UI display strategy configured in the live broadcast room can be switched to a different second UI display strategy, so that the corresponding UI elements are displayed according to the second UI display strategy. The new UI display strategy can be obtained and configured in real time to change the UI display situation without downloading and installing a new software installation package, which is conducive to improving the flexibility and adjustment efficiency of the live broadcast room UI display control. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in 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 only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 This is a data interaction timing diagram corresponding to a live broadcast room UI display method provided in an embodiment of the present application;
[0042] Figure 2 It is a flowchart of a live broadcast room UI display control method provided in an embodiment of the present application;
[0043] Figure 3 This is a schematic diagram of a live broadcast room interaction process provided by an embodiment of the present application;
[0044] Figure 4 This is another schematic diagram of the live broadcast room interaction process provided by an embodiment of the present application;
[0045] Figure 5It is a structural block diagram of a live broadcast room UI display control device provided in an embodiment of the present application;
[0046] Figure 6 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0048] The embodiments of the present application provide a live broadcast room UI display control method, device, electronic device and storage medium. Specifically, the live broadcast room UI display control method of the embodiments of the present application can be executed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a personal computer (PC, Personal Computer), a personal digital assistant (PDA, Personal Digital Assistant), etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0049] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0050] Figure 1 is a data interaction timing diagram corresponding to a live broadcast room UI display method provided in an embodiment of the present application. In an embodiment of the present application, the client and the server are connected according to Figure 1 Steps S1 to S7 shown perform data exchange.
[0051] It should be noted that Figure 1The client in the live broadcast room can be an audience client used by the audience in the live broadcast room and / or an anchor client used by the anchor in the live broadcast room, that is, the live broadcast room UI display control method provided in the embodiment of the present application can be applied to the audience client and / or the anchor client. Specifically, the audience client and the anchor client can both display the live broadcast room during the live broadcast process, and display the corresponding UI elements according to the UI display strategy (first UI display strategy or second UI display strategy) configured in the live broadcast room. In the embodiment of the present application, the client is a viewer client as an example for specific description, but it is not a specific limitation.
[0052] Specifically, Figure 1 As shown, the client displays a live broadcast room, and the live broadcast room is pre-configured with a first UI display strategy. When the first event is triggered in the live broadcast room, the UI element corresponding to the first event is displayed based on the first UI display strategy. When a policy update event is triggered in the live broadcast room, the client sends a policy update request to the server, and the server determines a matching second UI display strategy based on the received policy update request, and sends the second UI display strategy to the client. The client switches the first UI display strategy configured in the live broadcast room to the second UI display strategy. When the first event is triggered again in the live broadcast room, the UI element corresponding to the first event is displayed based on the second UI display strategy.
[0053] It should be noted that Figure 1 The process of determining the second UI display strategy shown in step S4 can be performed in the server or directly in the client. For example, multiple UI display strategies are pre-set in the client, and the corresponding second UI display strategy is determined according to the strategy update event. This is not specifically limited here. Further, the first display strategy pre-set in the live broadcast room can be pre-configured for the live broadcast room directly in the client, or pre-set for the live broadcast room through the server. This is not specifically limited here. Further, Figure 1 The process of switching the UI display strategy for the live broadcast room shown in step S6 can be performed on the client or on the server, and is not specifically limited here.
[0054] The first aspect of the present application embodiment provides a method for controlling the UI display of a live broadcast room. Figure 2 , Figure 2 1 is a flow chart of a method for controlling the UI display of a live broadcast room provided in an embodiment of the present application. The specific flow of the method for controlling the UI display of a live broadcast room may be as follows:
[0055] 201. Display a live broadcast room, wherein the live broadcast room is pre-configured with a first UI display strategy.
[0056] Specifically, the live broadcast room is displayed to the user (live broadcast audience or live broadcast host) through the client, and the live broadcast room is pre-configured with a first UI display strategy. It should be noted that in the embodiment of the present application, the UI display strategy can be updated for the live broadcast room in real time according to the triggered policy update event. If multiple policy update events are triggered, multiple UI display strategy updates are performed accordingly. Therefore, the above-mentioned first UI display strategy can be the initial UI display strategy pre-set for the live broadcast room, or it can be the UI display strategy after the previous round of UI display strategy update, which is not specifically limited here.
[0057] In some embodiments of the present application, the above-mentioned first UI display strategy is automatically pre-configured by the server for the above-mentioned live broadcast room; or, the above-mentioned first UI display strategy is pre-configured according to the rule configuration operation triggered by the anchor account of the above-mentioned live broadcast room.
[0058] 202. In response to triggering a first event in the live broadcast room, display a UI element corresponding to the first event based on the first UI display strategy.
[0059] The first event is an event triggered in the live broadcast room, for example, it can be an interactive event corresponding to the live broadcast audience (such as a new audience joining the live broadcast room, a live broadcast audience making a speech, a collection, etc.), and for the first event triggered in the live broadcast room, the UI element corresponding to the first event is displayed according to the first UI display strategy. For example, when a new audience joins the live broadcast room, the corresponding attention guidance pop-up window is displayed.
[0060] The UI display strategy (including the first UI display strategy and / or the second UI display strategy) configured in the above-mentioned live broadcast room is used to control the display of UI elements in the live broadcast room. In the live broadcast room, there are multiple UI elements (or UI views), such as pop-up windows, bubbles, floating windows, button animations and other UI elements, and these UI elements need to be controlled by a unified strategy for UI display. The display timing and display order of these UI elements will affect the live broadcast effect and user experience. Therefore, it is necessary to reasonably control the display of these UI elements to improve the live broadcast effect and enhance the user experience.
[0061] In the embodiment of the present application, the UI display strategy configured in the live broadcast room includes trigger conditions and display rules of UI elements;
[0062] In response to triggering the first event in the live broadcast room, displaying the UI element corresponding to the first event based on the first UI display strategy includes:
[0063] In response to triggering a first event in the live broadcast room, determining a UI element corresponding to the first event according to a triggering condition of the UI element in the first UI display strategy;
[0064] The UI element corresponding to the first event is displayed in the live broadcast room according to the display rules in the first UI display strategy.
[0065] Specifically, according to the first event and the triggering conditions of each UI element, it is determined whether the triggering conditions of each UI element are met when the first event is triggered, and the UI element that meets the triggering conditions is used as the UI element corresponding to the first event. It should be noted that the UI element corresponding to the first event may be one or more. When the first event corresponds to only one UI element, the UI element is directly displayed according to the display rules. When the first event corresponds to multiple UI elements, it is necessary to further determine whether each UI element can be displayed at the same time, or to determine the display order of each UI element.
[0066] In an application scenario, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0067] The UI display strategy configured in the above live broadcast room also includes the display priority of UI elements;
[0068] The step of displaying the UI element corresponding to the first event in the live broadcast room according to the display rules in the first UI display strategy includes:
[0069] Determine a UI display order according to the priorities of the first UI element and the second UI element;
[0070] The first UI element and the second UI element are displayed in the live broadcast room according to the UI display order and the display rules.
[0071] In another application scenario, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0072] The UI display strategy configured in the live broadcast room also includes a UI identifier, a display priority, and a concurrent UI identifier of the UI element, wherein the concurrent UI identifier is used to indicate a UI element that can be displayed simultaneously with the UI element;
[0073] The step of displaying the UI element corresponding to the first event in the live broadcast room according to the display rules in the first UI display strategy includes:
[0074] If the co-existing UI identifiers of the first UI element include the UI identifier of the second UI element, then the first UI element and the second UI element are simultaneously displayed in the live broadcast room according to the display rule;
[0075] If the co-existing UI identifiers of the first UI element do not include the UI identifier of the second UI element, the target UI element that can be displayed between the first UI element and the second UI element is determined according to the display priority of the first UI element and the second UI element, and the target UI element is displayed in the live broadcast room according to the display rules.
[0076] 203. In response to triggering a policy update event in the live broadcast room, switching the first UI display strategy configured in the live broadcast room to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy.
[0077] A set of pre-set strategies can control the display of UI elements. However, as the actual situation in the live broadcast room changes, the strategy may need to be adjusted, thereby adjusting the rules for unified management of UI elements, implementing a new UI management method, and uniformly scheduling the display timing and order of UI elements.
[0078] Specifically, the server may send the corresponding second UI display strategy to each live broadcast client associated with the live broadcast room. The live broadcast client receives the second UI display strategy sent by the live broadcast server and then performs strategy configuration.
[0079] The above-mentioned strategy update event can be triggered according to the real-time dynamic interaction information of the live broadcast room. The real-time dynamic interaction information of the live broadcast room is the interaction information that occurs in real time in the live broadcast room. For example, the above-mentioned real-time dynamic interaction information may include the user's entry interaction information into the live broadcast room, comment information, like information, interaction information, popularity increase information triggered by the anchor, etc. It may also include other information, which is not specifically limited here.
[0080] The real-time dynamic interaction information can be the interaction information of the audience or the interaction information of the anchor, and the corresponding interaction trigger object types are the audience of the live broadcast room and the anchor of the live broadcast room. According to different user needs, different UI display strategies can be set for the audience of the live broadcast room and the anchor of the live broadcast room.
[0081] For example, for the audience in the live broadcast room, you can set the UI display strategy when the number of audience interactions reaches the interaction threshold, the UI display strategy when the number of audiences in the room reaches the number threshold, and you can also set UI display strategies related to the number of comments and likes in a unit time.
[0082] For the anchor in the live broadcast room, a popularity increase button can be set up that is actively triggered by the anchor. When the anchor actively clicks the button, a corresponding UI display strategy will be set (for example, a pop-up window to guide attention will be displayed first). You can also set preset UI display strategies related to business changes such as anchor PK and live broadcast, which are not specifically limited here.
[0083] In one application scenario, each client uploads real-time dynamic interaction information, such as audience interaction information, to the live broadcast server. The live broadcast server counts the real-time dynamic interaction information uploaded by all clients to determine whether the conditions for policy update are met. If so, the corresponding UI display strategy is determined to perform policy update.
[0084] In this way, the backend can adjust the control conditions, order, priority, etc. of UI elements according to the real-time dynamic interaction information of the live broadcast room, obtain a new target UI display strategy, and send it to the corresponding live broadcast client. At the same time, the live broadcast service end (server) can perform back-end dynamic statistics on the real-time dynamic interaction information, generate different UI display strategies for different live broadcast rooms, and let users in different scenarios get a better user experience.
[0085] In some embodiments of the present application, the above-mentioned live broadcast room triggers the above-mentioned policy update event when the number of live broadcast viewers is greater than a preset number threshold; the display priority of the operation guidance control UI in the above-mentioned second UI display strategy is higher than the display priority of the operation guidance control UI in the above-mentioned second UI display strategy. Therefore, when there are more live broadcast viewers, the operation guidance control UI is displayed first, which is convenient for guiding users in the operation of the live broadcast room. For example, the operation guidance control UI can be a pop-up window for following the operation guidance UI, so as to facilitate the audience to follow the corresponding live broadcast room.
[0086] Specifically, in response to triggering a policy update event in the live broadcast room, switching the first UI display strategy configured in the live broadcast room to the second UI display strategy includes:
[0087] In response to triggering a policy update event in the live broadcast room, sending a policy update request matching the policy update event to a server corresponding to the live broadcast room, so as to trigger the server to determine a second UI display strategy according to the policy update request and issue the second UI display strategy;
[0088] Receive the second UI display strategy sent by the server, and switch the first UI display strategy configured in the live broadcast room to the second UI display strategy.
[0089] It should be noted that, based on the first UI display strategy already configured in the live broadcast room, the second UI display strategy can be an adjustment and update of the first UI display strategy, or a newly added UI display strategy, or the second UI display strategy can be used directly to replace the first UI display strategy, which is not specifically limited here.
[0090] In some embodiments of the present application, a UI display strategy configuration list corresponding to the first UI display strategy configured in the current live broadcast room is obtained, and the UI name information of the UI element corresponding to the second UI display strategy is obtained. If the UI display strategy configuration list includes a control strategy that matches the above UI name information, the control strategy is updated according to the second UI display strategy. If not included, it means that there is a new control strategy in the second UI display strategy, and a new strategy needs to be added. For example, the preset rule template field in the UI display strategy configuration list can be determined, and the preset rule template field can be updated according to the second UI display strategy. Furthermore, if the preset rule template field does not exist in the UI display strategy configuration list, an update failure prompt message is fed back.
[0091] Specifically, the above-mentioned UI display strategy configuration list is used to store the UI display strategy corresponding to the live broadcast room. The UI display strategy configuration list includes multiple control strategies. Each control strategy corresponds to a UI element (or a UI view), which is used to control the trigger conditions under which the corresponding UI element is displayed and the specific rules according to which it is displayed.
[0092] The specific control strategy code segment provided in the embodiment of the present application is as follows:
[0093]
[0094]
[0095] As shown above, in the embodiment of the present application, a corresponding id is set for each control strategy, for example, the id of the attention guide pop-up window is 1, and the id of the pk prompt bubble is 2. In the embodiment of the present application, a control strategy is stored in the form of an array according to a preset rule template for easy calling and transmission to improve processing efficiency. The id of the control strategy represents the order of the array, and can also represent the display priority of the corresponding UI element. A UI element with a high priority can cover a UI element with a low priority. It should be noted that UI elements that can coexist (i.e., can be displayed at the same time) can also be set according to actual needs.
[0096] Specifically, the above control strategy also includes the continuous display time, delayed display time, trigger conditions, rule coexistence information (ie, coexistence UI identifier) of the UI element, etc., which are not specifically limited here.
[0097] It should be noted that the number of control policies that can be stored in the UI display policy configuration list can be preset, and some blank preset rule template fields can be reserved in advance for storing new policies issued during the rule configuration process. If all preset rule template fields have been used up, new control policies can no longer be stored. At this time, an update failure prompt message is fed back to the live broadcast server to prompt the backend staff to handle it in time.
[0098] In some embodiments of the present application, the ids corresponding to the various control strategies and the array order in the UI display rule configuration list may also be adjusted according to actual needs to ensure that the ids, order, and priority match.
[0099] 204. In response to triggering the first event in the live broadcast room, display a UI element corresponding to the first event based on the second UI display strategy.
[0100] Among them, the above-mentioned first event is an event triggered according to the real-time dynamic interaction information of the live broadcast room. In this application, the same first event corresponding to the first UI display strategy is used as an example to better illustrate the use of different UI display strategies for UI display control under the same triggering event. In actual use, the live broadcast room can trigger different events, and display the UI elements corresponding to the corresponding events according to the UI display strategy configured in the live broadcast room, which is not specifically limited here.
[0101] Specifically, the process of determining the UI element corresponding to the first event and controlling the display of the corresponding UI element according to the second UI display strategy is similar to the process of controlling according to the first UI display strategy.
[0102] In some embodiments of the present application, the second UI display strategy configured in the live broadcast room includes triggering conditions and display rules of UI elements; in response to triggering the first event in the live broadcast room, displaying the UI element corresponding to the first event based on the second UI display strategy includes:
[0103] In response to triggering a first event in the live broadcast room, determining a UI element corresponding to the first event according to a triggering condition of the UI element in the second UI display strategy;
[0104] The UI element corresponding to the first event is displayed in the live broadcast room according to the display rules in the second UI display strategy.
[0105] In some embodiments of the present application, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0106] The second UI display strategy configured in the live broadcast room also includes the display priority of UI elements;
[0107] The step of displaying the UI element corresponding to the first event in the live broadcast room according to the display rules in the second UI display strategy includes:
[0108] Determine a UI display order according to the priorities of the first UI element and the second UI element;
[0109] The first UI element and the second UI element are displayed in the live broadcast room according to the UI display order and the display rules.
[0110] In some embodiments of the present application, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0111] The second UI display strategy configured in the live broadcast room also includes a UI identifier, a display priority, and a concurrent UI identifier of the UI element, wherein the concurrent UI identifier is used to indicate a UI element that can be displayed simultaneously with the UI element;
[0112] The step of displaying the UI element corresponding to the first event in the live broadcast room according to the display rules in the second UI display strategy includes:
[0113] If the co-existing UI identifiers of the first UI element include the UI identifier of the second UI element, then the first UI element and the second UI element are simultaneously displayed in the live broadcast room according to the display rule;
[0114] If the co-existing UI identifiers of the first UI element do not include the UI identifier of the second UI element, the target UI element that can be displayed between the first UI element and the second UI element is determined according to the display priority of the first UI element and the second UI element, and the target UI element is displayed in the live broadcast room according to the display rules.
[0115] It should be noted that the specific process of controlling the display of UI elements according to the second UI display strategy may refer to the control process according to the first UI display strategy, and will not be described in detail here.
[0116] In some embodiments of the present application, the first event is triggered based on the interactive behavior information of the live broadcast room, wherein the interactive behavior information of the live broadcast room is used to indicate the behavior occurring in the live broadcast room. Specifically, the first event that needs to be triggered and matches the behavior occurring in the live broadcast room is determined based on the interactive behavior information of the live broadcast room, so as to determine the displayed UI elements and the specific display method of the UI elements according to the first event and the UI display strategy configured in the live broadcast room.
[0117] In one application scenario, the server can collect statistics on interactive behavior information in the live broadcast room in real time and send it to the client. The client determines the first event triggered based on the statistical interactive behavior information.
[0118] In some optional embodiments, when the audience enters the live broadcast room or the anchor starts broadcasting, they will first request a set of pre-configured UI display strategies from the live broadcast server (i.e., the backend) through the live broadcast room interface. When some behaviors in the live broadcast room change, such as a user entering the room or the anchors starting to compete with each other, the server will detect these behaviors in real time and send them to the corresponding client through instant messages (i.e., live broadcast room interactive behavior information). These sent messages will identify specific behaviors, such as: event = join_room, which means that the server has detected that a user has entered the live broadcast room. When the client receives these messages, it will find the corresponding UI display behavior from the rule information, and at the same time, it will determine whether the corresponding UI elements can be displayed based on the priority and whether they can coexist.
[0119] When some important events occur, for example, each user entering the live broadcast room will be notified to the server by entering the instant group. When the number of people joining exceeds 50, a new rule file (i.e., the second UI display strategy) will be issued through the server. For example, in this new rule file, the highest priority can be the attention guide pop-up window, so as to improve the conversion efficiency of attention when there are many people and obtain better live broadcast effects.
[0120] It should be noted that a corresponding rule template is set in the embodiment of the present application. When a new control rule needs to be added, the rule template can be referred to to build and configure the rule, and the corresponding event and rule file to be issued can be added. The client does not need to update the software version, which is conducive to achieving the efficiency and flexibility of customized rule management.
[0121] In the embodiment of the present application, the above-mentioned live broadcast room UI display control method is also specifically described based on a specific application scenario. Figure 3 is a schematic diagram of a live broadcast room interaction process provided by an embodiment of the present application, Figure 4 2 is another schematic diagram of the live broadcast room interaction process provided by the embodiment of the present application. Specifically, Figure 3 It is the live interactive process when the live broadcast room configures the first UI display strategy. Figure 4 It is the live interactive process when the live broadcast room configures the second UI display strategy. When the number of viewers in the live broadcast room is greater than the preset threshold, the strategy update event is triggered and the first UI display strategy is updated to the second UI display strategy.
[0122] like Figure 3 As shown, when the first UI display strategy is configured, when a new user enters the live broadcast room, the first event (i.e., the new user joining event) is triggered. According to the first UI display strategy, the live broadcast room first displays the audience welcome UI view, and then displays the attention guidance UI view.
[0123] Under the second UI display strategy, the attention guidance UI view has a higher priority, so as to better guide the audience to pay attention to the live broadcast room when the number of viewers is large. Figure 4 As shown, when the second UI display strategy is configured, when a new user enters the live broadcast room, the first event (i.e., the new user joining event) is triggered. According to the second UI display strategy, the live broadcast room first displays the attention guidance UI view, and then displays the audience welcome UI view.
[0124] In this way, the UI display of the live broadcast room can be managed in a unified manner to improve the user experience. The UI display strategy can be dynamically adjusted according to the status of the live broadcast room, and different UI display strategies can be flexibly configured in different live broadcast scenarios to further improve the user experience. At the same time, flexible and highly customized UI display strategies can be provided according to user needs. The server can also add monitoring methods for the live broadcast room to adjust different UI display strategies without publishing.
[0125] By adopting the scheme of the embodiment of the present application, a live broadcast room can be displayed, wherein the live broadcast room is pre-configured with a first UI display strategy; in response to triggering a first event in the live broadcast room, a UI element corresponding to the first event is displayed based on the first UI display strategy; in response to triggering a strategy update event in the live broadcast room, the first UI display strategy configured in the live broadcast room is switched to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy; in response to triggering the first event in the live broadcast room, the UI element corresponding to the first event is displayed based on the second UI display strategy.
[0126] In this way, for the live broadcast room, when the live broadcast room triggers a policy update event, the first UI display strategy configured in the live broadcast room can be switched to a different second UI display strategy, so that the corresponding UI elements are displayed according to the second UI display strategy. The new UI display strategy can be obtained and configured in real time to change the UI display situation without downloading and installing a new software installation package, which is conducive to improving the flexibility and adjustment efficiency of the live broadcast room UI display control.
[0127] In view of the live broadcast room UI display control method provided in the first aspect of the embodiment of the present application, the second aspect of the embodiment of the present application provides a live broadcast room UI display control device, please refer to Figure 5 , Figure 5 : is a structural block diagram of a live broadcast room UI display control device provided in an embodiment of the present application, the device comprising:
[0128] A live broadcast room display module 501, used to display the live broadcast room, wherein the live broadcast room is pre-configured with a first UI display strategy;
[0129] A first UI display module 502, configured to display a UI element corresponding to the first event based on the first UI display strategy in response to triggering the first event in the live broadcast room;
[0130] A strategy switching module 503, configured to switch the first UI display strategy configured in the live broadcast room to a second UI display strategy in response to triggering a strategy update event in the live broadcast room, wherein the first UI display strategy is different from the second UI display strategy;
[0131] The second UI display module 504 is used to respond to the triggering of the above-mentioned first event in the above-mentioned live broadcast room and display the UI element corresponding to the above-mentioned first event based on the above-mentioned second UI display strategy.
[0132] In some optional embodiments, the UI display strategy configured in the live broadcast room includes trigger conditions and display rules of UI elements;
[0133] The first UI display module 502 is specifically used for:
[0134] In response to triggering a first event in the live broadcast room, determining a UI element corresponding to the first event according to a triggering condition of the UI element in the first UI display strategy;
[0135] The UI element corresponding to the first event is displayed in the live broadcast room according to the display rules in the first UI display strategy.
[0136] In some optional embodiments, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0137] The UI display strategy configured in the above live broadcast room also includes the display priority of UI elements;
[0138] The first UI display module 502 is specifically used for:
[0139] Determine a UI display order according to the priorities of the first UI element and the second UI element;
[0140] The first UI element and the second UI element are displayed in the live broadcast room according to the UI display order and the display rules.
[0141] In some optional embodiments, the UI element corresponding to the first event includes a first UI element and a second UI element;
[0142] The UI display strategy configured in the live broadcast room also includes a UI identifier, a display priority, and a concurrent UI identifier of the UI element, wherein the concurrent UI identifier is used to indicate a UI element that can be displayed simultaneously with the UI element;
[0143] The first UI display module 502 is specifically used for:
[0144] If the co-existing UI identifiers of the first UI element include the UI identifier of the second UI element, then the first UI element and the second UI element are simultaneously displayed in the live broadcast room according to the display rule;
[0145] If the co-existing UI identifiers of the first UI element do not include the UI identifier of the second UI element, the target UI element that can be displayed between the first UI element and the second UI element is determined according to the display priority of the first UI element and the second UI element, and the target UI element is displayed in the live broadcast room according to the display rules.
[0146] In some optional embodiments, the live broadcast room triggers the policy update event when the number of live broadcast viewers is greater than a preset number threshold;
[0147] The display priority of the operation guidance control UI in the above second UI display strategy is higher than the display priority of the operation guidance control UI in the above second UI display strategy.
[0148] In some optional embodiments, the first UI display strategy is automatically configured in advance by the server for the live broadcast room;
[0149] Alternatively, the first UI display strategy is pre-configured according to a rule configuration operation triggered by the anchor account of the live broadcast room.
[0150] In some optional embodiments, the strategy switching module 503 is specifically used to:
[0151] In response to triggering a policy update event in the live broadcast room, sending a policy update request matching the policy update event to a server corresponding to the live broadcast room, so as to trigger the server to determine a second UI display strategy according to the policy update request and issue the second UI display strategy;
[0152] Receive the second UI display strategy sent by the server, and switch the first UI display strategy configured in the live broadcast room to the second UI display strategy.
[0153] An embodiment of the present application discloses a live broadcast room UI display control device, which displays the live broadcast room through a live broadcast room display module 501, wherein the live broadcast room is pre-configured with a first UI display strategy; in response to triggering a first event in the live broadcast room, the first UI display module 502 displays a UI element corresponding to the first event based on the first UI display strategy; in response to triggering a policy update event in the live broadcast room, the policy switching module 503 switches the first UI display strategy configured in the live broadcast room to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy; in response to triggering the first event in the live broadcast room, the second UI display module 504 displays the UI element corresponding to the first event based on the second UI display strategy.
[0154] In this way, for the live broadcast room, when the live broadcast room triggers a policy update event, the first UI display strategy configured in the live broadcast room can be switched to a different second UI display strategy, so that the corresponding UI elements are displayed according to the second UI display strategy. The new UI display strategy can be obtained and configured in real time to change the UI display situation without downloading and installing a new software installation package, which is conducive to improving the flexibility and adjustment efficiency of the live broadcast room UI display control.
[0155] It should be noted that the division of each module in the above device can be determined according to actual needs and is not specifically limited here.
[0156] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0157] Accordingly, the embodiment of the present application also provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 6 As shown, Figure 6 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. It will be appreciated by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0158] The processor 601 is the control center of the electronic device 600, and uses various interfaces and lines to connect various parts of the entire electronic device 600. By running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, the processor 601 executes various functions of the electronic device 600 and processes data, thereby monitoring the electronic device 600 as a whole. The processor 601 can be a central processing unit CPU, a graphics processing unit GPU, a network processor (NP, Network Processor), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0159] In the embodiment of the present application, the processor 601 in the electronic device 600 will load instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 will run the application programs stored in the memory 602 to implement various functions, such as:
[0160] A live broadcast room is displayed, wherein the live broadcast room is pre-configured with a first UI display strategy;
[0161] In response to triggering a first event in the live broadcast room, displaying a UI element corresponding to the first event based on the first UI display strategy;
[0162] In response to triggering a policy update event in the live broadcast room, switching the first UI display strategy configured in the live broadcast room to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy;
[0163] In response to triggering the first event in the live broadcast room, a UI element corresponding to the first event is displayed based on the second UI display strategy.
[0164] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0165] Optional, such as Figure 6 As shown, the electronic device 600 further includes: a touch screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607, respectively. Those skilled in the art can understand that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0166] The touch display screen 603 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 601, and can receive the command sent by the processor 601 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 601 to determine the type of touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to realize the input and output functions. However, in some embodiments, the touch panel and the display panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to realize the input function.
[0167] The radio frequency circuit 604 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.
[0168] The audio circuit 605 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 605 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and converted into audio data, and then the audio data is output to the processor 601 for processing, and then sent to another electronic device through the radio frequency circuit 604, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0169] The input unit 606 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0170] The power supply 607 is used to supply power to various components of the electronic device 600. Optionally, the power supply 607 can be logically connected to the processor 601 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 607 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0171] although Figure 6 Not shown, the electronic device 600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0172] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0173] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0174] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any one of the live broadcast room UI display control methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:
[0175] A live broadcast room is displayed, wherein the live broadcast room is pre-configured with a first UI display strategy;
[0176] In response to triggering a first event in the live broadcast room, displaying a UI element corresponding to the first event based on the first UI display strategy;
[0177] In response to triggering a policy update event in the live broadcast room, switching the first UI display strategy configured in the live broadcast room to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy;
[0178] In response to triggering the first event in the live broadcast room, a UI element corresponding to the first event is displayed based on the second UI display strategy.
[0179] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0180] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0181] Since the computer program stored in the storage medium can execute the steps in any live broadcast room UI display control method provided in the embodiments of the present application, the beneficial effects that can be achieved by any live broadcast room UI display control method provided in the embodiments of the present application can be achieved. Please see the previous embodiments for details and will not be repeated here.
[0182] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations in the above embodiments.
[0183] The live broadcast room UI display control method, device, electronic device and storage medium provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article 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 technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for controlling UI display in a live broadcast room, characterized in that: include: A live broadcast room is displayed, wherein the live broadcast room is pre-configured with a first UI display strategy; In response to triggering a first event in the live broadcast room, displaying a UI element corresponding to the first event based on the first UI display strategy, wherein the first event includes a new viewer joining the live broadcast room, and the UI elements corresponding to the first event include a viewer welcome UI element and an attention guide UI element, and displaying the UI elements corresponding to the first event based on the first UI display strategy specifically includes: first displaying the viewer welcome UI element and then displaying the attention guide UI element in the live broadcast room based on the first UI display strategy; In response to triggering a policy update event in the live broadcast room, switching the first UI display strategy configured in the live broadcast room to a second UI display strategy, wherein the first UI display strategy is different from the second UI display strategy, and the policy update event is triggered when the number of live broadcast viewers in the live broadcast room is greater than a preset number threshold; In response to triggering the first event in the live broadcast room, displaying the UI element corresponding to the first event based on the second UI display strategy, specifically including: based on the second UI display strategy, first displaying the attention guiding UI element in the live broadcast room, and then displaying the audience welcome UI element.
2. The method for controlling the UI display of a live broadcast room according to claim 1, characterized in that: The UI display strategy configured in the live broadcast room includes trigger conditions and display rules of UI elements; In response to triggering a first event in the live broadcast room, displaying a UI element corresponding to the first event based on the first UI display strategy also includes: In response to triggering a first event in the live broadcast room, determining a UI element corresponding to the first event according to a triggering condition of the UI element in the first UI display strategy; The UI element corresponding to the first event is displayed in the live broadcast room according to the display rules in the first UI display strategy.
3. The method for controlling the UI display of a live broadcast room according to claim 1, characterized in that: The first UI display strategy is automatically configured in advance by the server for the live broadcast room; Alternatively, the first UI display strategy is pre-configured according to a rule configuration operation triggered by the anchor account of the live broadcast room.
4. The method for controlling the UI display of a live broadcast room according to claim 1, characterized in that: The step of switching the first UI display strategy configured in the live broadcast room to a second UI display strategy in response to triggering a strategy update event in the live broadcast room further includes: In response to triggering a policy update event in the live broadcast room, sending a policy update request matching the policy update event to a server corresponding to the live broadcast room, so as to trigger the server to determine a second UI display strategy according to the policy update request and issue the second UI display strategy; Receive the second UI display strategy sent by the server, and switch the first UI display strategy configured in the live broadcast room to the second UI display strategy.
5. A live broadcast room UI display control device, characterized in that: include: A live broadcast room display module, used to display the live broadcast room, wherein the live broadcast room is pre-configured with a first UI display strategy; A first UI display module is configured to, in response to triggering a first event in the live broadcast room, display a UI element corresponding to the first event based on the first UI display strategy, wherein the first event includes a new viewer joining the live broadcast room, and the UI elements corresponding to the first event include a viewer welcome UI element and an attention guide UI element, and the displaying of the UI elements corresponding to the first event based on the first UI display strategy specifically includes: first displaying the viewer welcome UI element in the live broadcast room, and then displaying the attention guide UI element based on the first UI display strategy; a strategy switching module, configured to switch the first UI display strategy configured in the live broadcast room to a second UI display strategy in response to triggering a strategy update event in the live broadcast room, wherein the first UI display strategy is different from the second UI display strategy, and the strategy update event is triggered when the number of live broadcast viewers in the live broadcast room is greater than a preset number threshold; The second UI display module is used to respond to the first event being triggered in the live broadcast room and display the UI element corresponding to the first event based on the second UI display strategy, specifically including: based on the second UI display strategy, first displaying the attention guiding UI element in the live broadcast room, and then displaying the audience welcome UI element.
6. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in the live broadcast room UI display control method described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, which are suitable for being loaded by a processor to execute the steps in the live broadcast room UI display control method described in any one of claims 1 to 4.
