Live broadcast interface display method and device
By configuring a combo interaction framework in live broadcast technology, receiving and processing combo interaction information, the problems of complex user operations and independent interactive behavior data in the existing technology are solved, and the combo interaction special effects and rapid development and interaction are realized in the user interface. Functional effect.
Patent Information
- Application Number
- CN202411647489.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-18
AI Technical Summary
In the existing live broadcast technology, when users like, follow, share, send barrage and other interactive behaviors, they need to find the relevant user interface to operate, and the data of various interactive behaviors in the live broadcast room are independent of each other and cannot quickly trigger combos. Interactive effect.
By configuring the combo interaction framework, receive combo interaction information for the target live broadcast room, import the corresponding combo bar management module according to the interaction type, and update the combo special effects of the combo bar through the public logic processing module to realize the user interface Showcase combo interactive effects.
It realizes the display of combo interaction special effects on the user interface through the combo interaction framework, simplifies user operation process, and supports the rapid development and launch of new interactive functions.
Smart Images

Figure CN119484924A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular, to a live broadcast interface display method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of the live broadcast industry, more and more users are participating in various interactive activities. They not only obtain content by watching live broadcasts, but also communicate with anchors and other viewers in real time through various interactive behaviors such as sending bullet comments, liking, sharing, and sending gifts. When the above interactive behaviors are triggered within a certain period of time, the combo interactive effect will be displayed in the user interface.
[0003] However, in the prior art, when performing interactive behaviors such as liking, following, sharing, and sending bullet comments, it is necessary to find a relevant user interface to operate. In addition, the data of various interactive behaviors in the live broadcast room trigger combo interactive effects independently. When similar interactive behaviors need to trigger combo interactive effects, it is impossible to quickly develop and launch them.
[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 live broadcast interface display method, apparatus, computer equipment, 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 live broadcast interface display method for a client, wherein the client is configured with a combo interaction framework, wherein the combo interaction framework includes a plurality of combo bar management modules and a common logic processing module; the method includes: Receive combo interaction information for a target live broadcast room, wherein the combo interaction information includes an interaction type and combo data; According to the interaction type, the combo data is imported into a target combo bar management module among the multiple combo bar management modules; wherein different combo bar management modules are respectively used to manage different types of combo bars; Determine whether the target live broadcast room has a target combo bar through the target combo bar management module; In the case where the target combo bar exists, the combo data is transferred to the common logic processing module through the target combo bar management module, so as to update the combo effect of the target combo bar through the common logic processing module.
[0007] Optionally, the method further comprises: In the absence of the target combo bar, the target combo bar management module is used to notify the public logic processing module to create the target combo bar so as to display the target combo bar in the target area of the target live broadcast room.
[0008] Optionally, displaying the target combo bar in a target area of the target live broadcast room includes: Rendering the target combo bar to an invisible area outside the target live broadcast room through the common logic processing module; The target combo bar is moved from the invisible area to the target area through the target combo bar management module, and the target area is located in the target live broadcast room.
[0009] Optionally, when the combo interaction information includes a stop display instruction, the target combo bar management module is used to notify the public logic processing module to destroy the target combo bar so that the target combo bar disappears from the target area of the target live broadcast room.
[0010] Optionally, making the target combo bar disappear from the target area of the target live broadcast room includes: By means of the target combo bar management module, the target combo bar is moved from the target area to an invisible area outside the target live broadcast room; When the target combo bar is located in an invisible area outside the target live broadcast room, the common logic processing module destroys the target combo bar.
[0011] Optionally, the combo bar management module is used to manage the life cycle, displayability judgment, and element display and hiding of the corresponding combo bar.
[0012] The public logic processing module is used to configure and display the corresponding combo bar according to the interaction type, update the combo effects of the corresponding combo bar, and manage the interactive animation logic.
[0013] Optionally, the common logic processing module is further provided with a timer; The timer is used to control and update the combo special effect progress of the corresponding combo bar.
[0014] Another aspect of the embodiment of the present application provides a live broadcast interface display device, the device is used for a client, the client is configured with a combo interaction framework, the connection interaction framework includes a plurality of combo bar management modules, and a common logic processing module; the device includes: A receiving module, used to receive combo interaction information for a target live broadcast room, wherein the combo interaction information includes an interaction type; an import module, configured to import the combo interaction information into a target combo bar management module among the plurality of combo bar management modules according to the interaction type; wherein different combo bar management modules are respectively configured to manage different types of combo bars; A determination module, used to determine whether the target live broadcast room has a target combo bar through the target combo bar management module; An updating module is used to transmit the combo interaction information to the common logic processing module through the target combo bar management module when the target combo bar exists, so as to update the combo effects of the target combo bar through the common logic processing module.
[0015] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled 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 so that the at least one processor can execute the method as described above.
[0016] 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.
[0017] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0018] The embodiment of the present application adopts the above technical solution, which may include the following advantages: through the configured combo interaction framework, the combo interaction information is imported into the corresponding combo bar management module according to the interaction type, and the combo special effects of the target combo bar are updated through the common logic processing module, thereby realizing the display of the combo interaction special effects in the user interface through the combo interaction framework. In addition, when other functions of the user interface need to add combo interaction, they can be quickly developed and launched through the combo interaction framework. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0020] Figure 1 The operating environment diagram of the live broadcast interface display method according to the first embodiment of the present application is schematically shown; Figure 2 The flowchart of the live broadcast interface display method according to the first embodiment of the present application is schematically shown; Figure 3 The newly added flow chart of the live broadcast interface display method according to the first embodiment of the present application is schematically shown; Figure 4 The newly added flow chart of the live broadcast interface display method according to the first embodiment of the present application is schematically shown; Figure 5 A diagram schematically shows an application example of the live broadcast interface display method according to the first embodiment of the present application; Figure 6 A diagram schematically shows an application example of the live broadcast interface display method according to the first embodiment of the present application; Figure 7 A diagram schematically shows an application example of the live broadcast interface display method according to the first embodiment of the present application; Figure 8 A diagram schematically shows an application example of the live broadcast interface display method according to the first embodiment of the present application; Fig. 9 A block diagram of a live broadcast interface display device according to Embodiment 2 of the present application is schematically shown; and Fig.10 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0022] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0023] In the description of this application, it should be understood that the numerical labels before the steps do not indicate the order of execution of the steps. They are only used to facilitate the description of this application and distinguish each step, and thus should not be construed as a limitation to this application.
[0024] First, provide the term explanations involved in this application: UI: The User Interface (abbreviated as UI, also known as the user interface) is the medium for interaction and information exchange between the system and the user, and it realizes the conversion between the internal form of information and the form acceptable to humans.
[0025] Combo: (Abbreviation of Combination, which can be called "continuous combo", "连击", "连打", etc. in Chinese) refers to a series of action instructions executed continuously. These instructions usually have strict time limits, and completing them can obtain a large number of scores or advantages.
[0026] Secondly, to facilitate the understanding of the technical solutions provided by the embodiments of this application by those skilled in the art, the related technologies are described below. The applicant has learned that: in the prior art, UI separation: when performing operations such as liking, following, sharing, sending bullet screens, etc., it is necessary to find the relevant UI in the live broadcast room for operation. Incomplete support for Combo: The original live broadcast room did not utilize the data of corresponding interactive operations for integrated processing and then trigger interactive combos. Weak scalability: When similar functions need to be added to the Combo in the target area, it is impossible to quickly develop and go live.
[0027] For this reason, the embodiments of this application provide a technical solution for live broadcast interface display. In this technical solution: a combo bar is displayed on the page through a combo interaction framework, and users can participate in combo interactions such as giving gifts, liking, following, sharing, and sending bullet screens by clicking on this combo bar. See the following text for details.
[0028] Finally, for the convenience of understanding, an exemplary operating environment is provided below.
[0029] As Figure 1 shown, the host can start live broadcast of Live Room A on the corresponding client, and each user can enter Live Room A from their respective clients to perform interactive operations such as giving gifts, liking, following, sending bullet screens, and sharing. When the user performs an interactive operation, the user side will report the interactive operation event to the server side, and the server side will implement statistics on the numerical values of the corresponding interactive operation events. According to the rule that y people trigger the corresponding interactive operation event within x time, when the corresponding interactive operation event reaches the threshold of this interactive operation event, the server side can send the corresponding combo interaction information through room broadcast.
[0030] The following describes the technical solution of the present application through multiple embodiments, taking the client as the execution subject. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.
[0031] Embodiment 1 Figure 2 The flowchart of the live broadcast interface display method according to the first embodiment of the present application is schematically shown.
[0032] The live interface display method is used for a client, and the client is configured with a combo interaction framework, and the connection interaction framework includes multiple combo bar management modules and a common logic processing module. The live interface display method may include steps S200 to S206, wherein: Step S200, receiving combo interaction information for a target live broadcast room, wherein the combo interaction information includes an interaction type.
[0033] Step S202, importing the combo interaction information into a target combo bar management module among the multiple combo bar management modules according to the interaction type; wherein different combo bar management modules are respectively used to manage different types of combo bars.
[0034] Step S204, determining whether the target live broadcast room has a target combo bar through the target combo bar management module.
[0035] Step S206, in the case where the target combo bar exists, the combo interaction information is transmitted to the common logic processing module through the target combo bar management module, so as to update the combo effect of the target combo bar through the common logic processing module.
[0036] The live interface display method provided in this embodiment imports the combo interaction information into the corresponding combo bar management module according to the interaction type through the configured combo interaction framework, and updates the combo special effects of the target combo bar through the public logic processing module, thereby realizing the display of the combo interaction special effects in the user interface through the combo interaction framework. In addition, when other functions of the user interface need to add combo interaction, they can be quickly developed and launched through the combo interaction framework.
[0037] The following combination Figure 2 , each step in steps S200~S206 and other optional steps are described in detail.
[0038] Step S200 , receiving combo interaction information for a target live broadcast room, wherein the combo interaction information includes an interaction type.
[0039] Exemplarily, combo interaction information can be sent by the server through room broadcast. Room broadcast means that in a real-time live broadcast or interactive platform, the server can send certain information to all users in a live broadcast room by broadcasting. The characteristic of broadcasting is one-to-many, that is, the information is sent by the server at one time, and all users in the room can receive this information at the same time. Combo interaction information can use the same data structure, and the combo interaction information of different interaction types is partially differentiated. The interaction type can be Combo barrage, Combo like, Combo gift, Combo follow and Combo share. Combo interaction information may include interaction ID and Combo count, etc. The interaction ID can be used to uniquely identify each interactive behavior. The Combo count is the total number of combos.
[0040] Step S202 , according to the interaction type, importing the combo interaction information into a target combo bar management module among the multiple combo bar management modules; wherein different combo bar management modules are respectively used to manage different types of combo bars.
[0041] Exemplarily, the combo interaction information is parsed, and the corresponding combo bar management module is selected according to the interaction type. The multiple combo bar management modules can be a gift combo bar management module, a like combo bar management module, a follow combo bar management module, a bullet comment combo bar management module, and a share combo bar management module. In some embodiments, when the interaction type is Combo follow, the combo interaction information of the Combo follow is imported into the follow combo bar management module.
[0042] Step S204 , determine whether the target live broadcast room has a target combo bar through the target combo bar management module.
[0043] For example, the target combo bar management module determines whether the combo interaction information is imported for the first time. If it is imported for the first time, there is no corresponding UI, but if it is not the first time, there is a target combo bar. For example, when the attention combo interaction information is imported into the attention combo bar management module, the attention combo bar management module determines whether there is a general UI component corresponding to the Combo attention event in the current UI.
[0044] Step S206 In the case where there is the target combo bar, the combo interaction information is transmitted to the public logic processing module through the target combo bar management module, so as to update the combo effects of the target combo bar through the public logic processing module.
[0045] Exemplarily, the target combo bar management module transmits the combo interaction information to the public logic. Transparent transmission refers to the direct transmission of data or information from one module to another without any modification or processing. Updating the combo effect can be to update the number of combos (the total number of combos), and update the updated number of combos and display it on the combo number slot. Updating the combo effect can also update the updated number of combos and display it in other areas as needed, such as the anti-brushing area. The anti-brushing area can be a monitoring area set up to prevent users from abusing interactive behaviors.
[0046] In this embodiment, the combo interaction information is imported into the corresponding combo bar management module according to the interaction type through the configured combo interaction framework, and the combo special effects of the target combo bar are updated through the common logic processing module, thereby realizing the display of the combo interaction special effects in the user interface through the combo interaction framework. In addition, when other functions of the user interface need to add combo interaction, they can be quickly developed and launched through the combo interaction framework.
[0047] In an optional embodiment, the method further includes: in the absence of the target combo bar, notifying the public logic processing module through the target combo bar management module to create the target combo bar, so as to display the target combo bar in the target area of the target live broadcast room.
[0048] Exemplarily, when combo interaction information is first imported, there is no corresponding combo bar in the user interface. Initialize the public logic processing module, and the public logic processing module filters and assembles corresponding data according to the combo interaction information. The assembled corresponding data is used to prepare for displaying the combo bar. In some embodiments, assembling corresponding data can configure general combo bar data, fill in corresponding slot data, and configure combo bar animation. The target area can be a fixed place in the visible area of the live broadcast room.
[0049] In this embodiment, the target combo bar management module notifies the public logic processing module to create a target combo bar, thereby creating a target combo bar and displaying the corresponding combo interactive effects when there is no target combo bar in the user interface.
[0050] In an optional embodiment, displaying the target combo bar in a target area of the target live broadcast room includes: Step S300, rendering the target combo bar to an invisible area outside the target live broadcast room through the common logic processing module.
[0051] Step S302, moving the target combo bar from the invisible area to the target area through the target combo bar management module, and the target area is located in the target live broadcast room.
[0052] Exemplarily, through the common logic processing module, the common UI data is configured, the data of the corresponding slots is filled, the corresponding UI elements are added to the view tree, and the target combo bar is displayed in the invisible area of the target live broadcast room. The view tree is a mechanism for managing and organizing the hierarchy of interface elements. The common logic processing module can also configure the combo bar animation. Through the target combo bar management module, the combo bar animation (transition animation) can be used to move the target combo bar from the invisible area of the live broadcast room to the target area visible in the live broadcast room. The process of moving through the combo bar animation can be a process of pushing upward and gradually appearing.
[0053] In this embodiment, since the combo bar display is dynamic, a transition animation is required, while the general UI is a static element and does not require a transition animation. By preparing the UI elements before the combo bar animation (transition animation) starts, the combo bar content can be fully displayed during the animation display process, and a smoother transition experience is provided to the user.
[0054] In an optional embodiment, the method further includes: when the combo interaction information includes a stop display instruction, notifying the public logic processing module through the target combo bar management module to destroy the target combo bar so that the target combo bar disappears from the target area of the target live broadcast room.
[0055] Exemplarily, the stop display instruction may be a status parameter in the combo interaction information broadcasted by the server indicating the end of the current combo, or the end of a timer (the progress bar of the combo bar has run out). The stop display instruction may also be a user click, such as when a user triggers another interaction type with a higher priority and replaces the current interaction type with a lower priority. In some embodiments, a higher priority gift combo bar may replace a lower priority like combo bar.
[0056] In an optional embodiment, when the combo interaction information stops displaying the instruction instruction, the target combo bar disappears from the target area of the target live broadcast room, thereby realizing automatic destruction of the target combo bar, avoiding waste of UI resources, and realizing dynamic response and visual consistency of the user interface.
[0057] In an optional embodiment, making the target combo bar disappear from the target area of the target live broadcast room includes: step S400, moving the target combo bar from the target area to an invisible area outside the target live broadcast room through the target combo bar management module. Step S402, when the target combo bar is located in the invisible area outside the target live broadcast room, the common logic processing module destroys the target combo bar.
[0058] Exemplarily, disappearance can also have a corresponding transition animation, which also requires a common logic processing module to configure. The disappearance transition animation and the display transition animation are opposite in some parameters. For example, the position parameters and animation speed parameters are opposite. If the UI element disappears before the disappearance transition animation, it will cause the UI content to disappear in advance during the disappearance transition animation, which appears unnatural. However, through the disappearance transition animation, the target combo bar is first transitioned to a position invisible to the user, and then the UI disappears at a position invisible to the user, which appears more natural and has a better display effect.
[0059] In this embodiment, by destroying and releasing the UI element after the disappearing transition animation ends, the integrity of the disappearing transition animation can be achieved, thereby making the user's visual experience more natural and coherent and improving the display effect.
[0060] In an optional embodiment, the combo bar management module is used to manage the life cycle, displayability judgment, and display and hide animation of the corresponding combo bar. The various time nodes experienced by the life cycle from creation to destruction. According to the specific usage scenarios and requirements, these nodes can be defined as abstract states at the code level, and each state can perform corresponding operations. In some embodiments, the time nodes can be initialization, to be displayed, already displayed, running (most user interactions are in this state), about to disappear, and already disappeared. These time nodes are all definable abstract time nodes at the code level, and each node can do the corresponding time. For example, the time node to be displayed notifies the public logic processing module to prepare the UI component. Displayability judgment can be used to determine whether the display conditions are met, such as whether the display timing is met or whether the content is ready. The display and hide animation can be a transition animation from invisible to visible for the target combo bar, and a fade-out animation when the target combo bar disappears from a visible state.
[0061] The public logic processing module is used to configure the corresponding combo bar according to the interaction type and display it, update the combo special effects of the corresponding combo bar, and manage the interactive animation logic. The public logic processing module can integrate the original data model of the combo interaction information into a configuration model available to the UI, and then logically allocate the integrated configuration model to the corresponding UI display position (the configuration model can be configured to the corresponding slot of the general UI). The interactive animation logic can be an animation effect of enlarging or shrinking the corresponding text when the user clicks. Since the general UI in the public logic processing module is built based on the elastic layout, it can facilitate the display and hiding control of UI elements (combo bars), and the hidden elements will not affect the layout. When an element is hidden, other visible elements will automatically adjust their positions and sizes to fill the gap. UI elements are elastic and can form the size of the enclosing area based on the content, without paying special attention to the size of each UI element. It is highly scalable. When a slot cannot be used, a new slot needs to be added, and the UI element can be directly inserted at a certain position. The elastic layout is similar to the concept of elastic boxes in the front end. By defining the main axis and cross axis, the arrangement of elements is dynamically arranged. Elements in a flexible layout can be easily replaced. For example, you can easily replace an old UI component with a new one without redesigning or modifying the entire layout structure.
[0062] In this embodiment, the combo bar management module can be used to correctly display and remove the combo bar at the appropriate time. At the same time, by using the display and hide animation, the combo bar can appear and disappear more smoothly, improving the display effect and user experience. The public logic processing module can be used to configure the corresponding combo bar, and interactive animation effects can be displayed, such as the animation effect of the corresponding text enlarging or shrinking when the user clicks.
[0063] In an optional embodiment, the common logic processing module is further provided with a timer. The timer is used to control and update the combo special effect progress of the corresponding combo bar. The timer can be a multi-terminal multiplexed timer declared based on the KMM method. KMM is a technology that allows code sharing on multiple platforms. The timer is used to control the progress of the combo bar. When there is no new corresponding Combo event after the progress bar is completed, the corresponding combo bar will disappear. When there is a new corresponding Combo event before the progress bar is completed, the progress bar is updated.
[0064] In this embodiment, the timer can be used to effectively control the display time of the combo bar, so as to avoid the combo bar being displayed in the live broadcast room and occupying resources when the combo bar is not updated. At the same time, the timer can be used to allow users to see the progress of the connection bar in real time.
[0065] In order to make this application easier to understand, the following Figure 5-8 An exemplary application is provided.
[0066] In this exemplary application, Figure 5 As shown, the combo interaction information (data source) is broadcasted in the live broadcast room and distributed by the Combo data source distribution administrator. The Combo data source distribution administrator distributes the combo interaction information (data source) to the corresponding combo bar management module (e.g., Figure 5 The first-layer attention logic processing module, the first-layer like logic processing module, etc.). Then the corresponding combo bar management module transmits the combo interaction information (data source) to the public logic processing module (i.e., the second-layer public logic processing module).
[0067] In this exemplary application, Figure 6 As shown, taking the Combo attention event as an example, the attention combo interaction information (the data model of Combo attention) is imported into the attention combo bar management module (the first-level attention logic processing module).
[0068] S1: The public logic processing module is initialized (init). The public logic module initialization can be used for general UI initialization and layout.
[0069] At the code level: some logic that will not be frequently changed after a single initialization is suitable to be placed here.
[0070] S2: Trigger updateDataModel.
[0071] Specifically, the updating data model is to update its own status according to the combo interaction information. Since the broadcast is frequently triggered by the server, the combo interaction information will change frequently. For example, the Combo data will change within 1 second, so it needs to be updated in real time on the interface.
[0072] The updated data model can be used to update the number of combos, so that it can be displayed in the corresponding combo number slots later, or displayed in other areas as needed, such as the anti-brushing area. The updated data model can also synchronize the combo interaction status and perform corresponding operations based on the combo interaction status, such as removing the combo bar when the combo ends.
[0073] S3: The focus streak bar management module checks whether there is a focus streak bar in the user interface (ie, whether the general UI component exists).
[0074] If there is a focus combo bar, go to step S4, otherwise go to step S5.
[0075] S4: The combo bar management module updates the combo effects of the combo bar through the common logic processing module (the common UI component updates the combo value).
[0076] S5: The public logic processing module configures the universal UI component (WillAppear). The configured universal UI component is rendered and displayed in an area that is invisible to users in the live broadcast room.
[0077] Configuring the general UI component may include configuring general UI data, filling slot data, adding the general UI to the view tree, configuring combo bar animation and combo bar status update, etc.
[0078] S6: The combo bar management module moves the combo bar from the user-invisible area to a user-visible position.
[0079] During the movement, the combo bar animation can be displayed (didAppear).
[0080] S7: When the interaction status is changed (statusChanged), the attention combo bar management module determines whether the attention combo bar needs to disappear (needDisappear).
[0081] The situation where the interaction status changes (statusChanged) and the combo bar disappears (needDisappear) may be when the status parameter in the broadcast triggered by the server indicates that the current combo ends, the timer ends (that is, the progress bar runs out), etc.
[0082] S8: The focus combo bar management module transitions the focus combo bar from the user visible area to the user invisible area (willDisAppear) through a disappearing transition animation.
[0083] S9: When the focus combo bar is located in an area that is not visible to the user, the common logic processing module destroys (didDisAppear) the focus combo bar (common UI component).
[0084] In this exemplary application, Figure 7 As shown, the public logic processing module can configure the original data model (combo interaction information) into a configuration model related to UI components, and then configure the configuration model related to UI components to the corresponding slots of the general UI components (UIstackView is a UI layout container). And through the ability of ViewModel, it can configure and update UI components, configure Combo animations, and callback user interaction events. ViewModel is a design pattern used to manage data and logic related to the user interface (UI) and decouple it from the data model, thereby simplifying UI updates and state management.
[0085] Through the combo interaction framework of this solution, it is possible to display combo interaction special effects in the user interface through the combo interaction framework. In addition, when other functions of the user interface need to be added with combo interaction, they can be quickly developed and launched through the combo interaction framework.
[0086] In this exemplary application, Figure 8 As shown in the figure, different types of combo bars are configured with progress bar slots, variable digital text areas, fixed text areas, icon areas and buttons in sequence. Users can participate in this Combo interaction by clicking the button on the right side of the combo bar. When the button is clicked, the click event is reported and finally distributed and processed uniformly at the data source distribution management office. For example, clicking the "Follow +1" button of the Combo follow bar will trigger the follow and report a follow event for one person at the same time.
[0087] Embodiment 2 Fig. 9 The block diagram of the live interface display device according to the second embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are 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. Fig. 9 As shown, the device 1600 is used for a client, and the client is configured with a combo interaction framework, and the combo interaction framework includes multiple combo bar management modules and a common logic processing module; the device 1600 may include: a receiving module 1610, an importing module 1620, a determining module 1630 and an updating module 1640, wherein: The receiving module 1610 is used to receive combo interaction information for a target live broadcast room, where the combo interaction information includes an interaction type.
[0088] An import module 1620, configured to import the combo data into a target combo bar management module among the plurality of combo bar management modules according to the interaction type; wherein different combo bar management modules are respectively configured to manage different types of combo bars; A determination module 1630 is used to determine whether the target live broadcast room has a target combo bar through the target combo bar management module; The updating module 1640 is used to transmit the combo interaction information to the common logic processing module through the target combo bar management module when there is the target combo bar, so as to update the combo effect of the target combo bar through the common logic processing module.
[0089] As an optional embodiment, the method further includes: In the absence of the target combo bar, the target combo bar management module is used to notify the public logic processing module to create the target combo bar so as to display the target combo bar in the target area of the target live broadcast room.
[0090] As an optional embodiment, displaying the target combo bar in the target area of the target live broadcast room includes: Rendering the target combo bar to an invisible area outside the target live broadcast room through the common logic processing module; The target combo bar is moved from the invisible area to the target area through the target combo bar management module, and the target area is located in the target live broadcast room.
[0091] As an optional embodiment, the method further includes: In the case where the combo interaction information includes a stop display instruction, the target combo bar management module is used to notify the public logic processing module to destroy the target combo bar so that the target combo bar disappears from the target area of the target live broadcast room.
[0092] As an optional embodiment, making the target combo bar disappear from the target area of the target live broadcast room includes: By means of the target combo bar management module, the target combo bar is moved from the target area to an invisible area outside the target live broadcast room; When the target combo bar is located in an invisible area outside the target live broadcast room, the common logic processing module destroys the target combo bar.
[0093] As an optional embodiment, the combo bar management module is used to manage the life cycle, displayability judgment, and display and hiding animations of the corresponding combo bar.
[0094] The public logic processing module is used to configure and display the corresponding combo bar according to the interaction type, update the combo effects of the corresponding combo bar, and manage the interactive animation logic.
[0095] As an optional embodiment, the common logic processing module is further provided with a timer; The timer is used to control and update the combo special effect progress of the corresponding combo bar.
[0096] Embodiment 3 Fig.10The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the live interface display method according to the third embodiment of the present application is shown. In some embodiments, the computer device 10000 may 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 may 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. Fig.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 through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as 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 memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can 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 can 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 memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can 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 the program code of the live interface display method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.
[0097] 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 run the program code stored in the memory 10010 or process data.
[0098] The network interface 10030 may include a wireless network interface or a wired network interface, and 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 through a network, and to establish 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 communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0099] It should be pointed out that Fig.10 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0100] In this embodiment, the live broadcast interface display 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.
[0101] Embodiment 4 An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the live broadcast interface display method in the embodiment are implemented.
[0102] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), 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, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. 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 an operating system and various application software installed on the computer device, such as the program code of the live interface display 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 to be output.
[0103] Embodiment 5 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0104] 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 by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that 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. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0105] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for displaying a live broadcast interface, characterized in that: For a client, the client is configured with a combo interaction framework, the combo interaction framework includes a plurality of combo bar management modules and a common logic processing module; the method includes: Receiving combo interaction information for a target live broadcast room, wherein the combo interaction information includes an interaction type; According to the interaction type, the combo interaction information is imported into a target combo bar management module among the multiple combo bar management modules; wherein different combo bar management modules are respectively used to manage different types of combo bars; Determine whether the target live broadcast room has a target combo bar through the target combo bar management module; In the case where the target combo bar exists, the combo interaction information is transmitted to the common logic processing module through the target combo bar management module, so as to update the combo special effects of the target combo bar through the common logic processing module.
2. The method according to claim 1, characterized in that The method further comprises: In the absence of the target combo bar, the target combo bar management module is used to notify the public logic processing module to create the target combo bar so as to display the target combo bar in the target area of the target live broadcast room.
3. The method according to claim 2, characterized in that Displaying the target combo bar in the target area of the target live broadcast room includes: Rendering the target combo bar to an invisible area outside the target live broadcast room through the common logic processing module; The target combo bar is moved from the invisible area to the target area through the target combo bar management module, and the target area is located in the target live broadcast room.
4. The method according to claim 2, characterized in that: The method further comprises: In the case where the combo interaction information includes a stop display instruction, the target combo bar management module is used to notify the public logic processing module to destroy the target combo bar so that the target combo bar disappears from the target area of the target live broadcast room.
5. The method according to claim 4, characterized in that The target combo bar disappears from the target area of the target live broadcast room, including: By means of the target combo bar management module, the target combo bar is moved from the target area to an invisible area outside the target live broadcast room; When the target combo bar is located in an invisible area outside the target live broadcast room, the common logic processing module destroys the target combo bar.
6. The method according to claim 1, characterized in that: The combo bar management module is used to manage the life cycle, displayability judgment, and display and hiding animations of the corresponding combo bar. The public logic processing module is used to configure and display the corresponding combo bar according to the interaction type, update the combo effects of the corresponding combo bar, and manage the interactive animation logic.
7. The method according to claim 1, characterized in that The common logic processing module is also provided with a timer; The timer is used to control and update the combo special effect progress of the corresponding combo bar.
8. A live broadcast interface display device, characterized in that: The device is used for a client, and the client is configured with a combo interaction framework, and the combo interaction framework includes a plurality of combo bar management modules and a common logic processing module; the device includes: A receiving module, used to receive combo interaction information for a target live broadcast room, wherein the combo interaction information includes an interaction type; an import module, configured to import the combo data into a target combo bar management module among the plurality of combo bar management modules according to the interaction type; wherein different combo bar management modules are respectively configured to manage different types of combo bars; A determination module, used to determine whether the target live broadcast room has a target combo bar through the target combo bar management module; An updating module is used to transmit the combo interaction information to the common logic processing module through the target combo bar management module when the target combo bar exists, so as to update the combo effects of the target combo bar through the common logic processing module.
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 claims 1 to 7 are implemented.