Live broadcast room business pop-up display method, device, system, medium and equipment
By using the mutex management module in the live broadcast room business pop-up window display system to determine the pop-up window display permissions, the problem of pop-up windows covering each other on the live broadcast room page is solved, the user experience and retention rate are improved, and code maintenance is simplified.
Patent Information
- Application Number
- CN202211674255.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-12-26
AI Technical Summary
In complex business scenarios, there are a large number of business pop-up windows on the live broadcast room page, causing the pop-up windows to cover each other, affecting the user experience and reducing user retention rate.
By introducing the live broadcast room mutex management module into the live broadcast room business pop-up window display system, each business pop-up window module monitors the triggering conditions and sends request information. The mutex lock module determines whether the lock is successful and decides whether to display the pop-up window, thereby avoiding Pop-ups overlap each other.
It effectively avoids the problem of pop-up windows covering each other, improves user experience and retention rate, simplifies code maintenance, and ensures the flexibility of pop-up window triggering.
Smart Images

Figure CN115914723B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network live broadcast technology, and in particular, to a method, device, system, storage medium and electronic device for displaying pop-up windows of live broadcast services. Background Art
[0002] Applications running on mobile devices often use pop-ups as a means of human-computer interaction in business scenarios where they need to attract the user's attention or guide the user to complete specific operations. For example, in online live broadcast applications, pop-ups such as youth mode prompts, bubble notifications for following the anchor, and activity pop-ups will pop up on the homepage, personal center page, and live broadcast room page to achieve human-computer interaction.
[0003] However, in complex business scenarios, such as the home page and live broadcast room page of hot zone pages, due to the large number of business pop-up windows, in actual operations, there will be chaos of business pop-up windows overlapping each other, which greatly affects the user experience and reduces the user retention rate. Summary of the invention
[0004] In order to overcome the problems existing in the related technology, the present application provides a live broadcast room business pop-up display method, device, system, storage medium and electronic device to avoid the problem of multiple business pop-ups on the same business page overlapping each other, improve user experience, and increase user retention rate.
[0005] According to a first aspect of an embodiment of the present application, a live broadcast room service pop-up window display system is provided, including a plurality of live broadcast room service pop-up window modules and a live broadcast room mutex lock management module;
[0006] Each of the live broadcast room service pop-up window modules monitors whether a trigger condition is met, and the first live broadcast room service pop-up window module that monitors that the trigger condition is met sends a live broadcast room pop-up window request message to the live broadcast room mutex lock management module; the live broadcast room pop-up window request message includes a first live broadcast room service page identifier that displays the first live broadcast room service pop-up window;
[0007] The live broadcast room mutex management module sends the corresponding first live broadcast room display mutex module to the first live broadcast room business pop-up window module according to the first live broadcast room business page identifier;
[0008] When the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, the lock failure information is fed back to the first live broadcast room business pop-up window module; when the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored, the lock success information is fed back to the first live broadcast room business pop-up window module;
[0009] If the first live broadcast room business pop-up window module receives the locking failure information, the first live broadcast room business pop-up window will not be displayed; if the locking success information is received, the first live broadcast room business pop-up window will be displayed.
[0010] According to a second aspect of an embodiment of the present application, a live broadcast room service pop-up window display method is provided, which is applied to a live broadcast room service pop-up window module, wherein the live broadcast room service pop-up window module is used to display a first live broadcast room service pop-up window; the method comprises the following steps:
[0011] When the trigger condition is met, a live broadcast room pop-up window request message is sent to the live broadcast room mutex lock management module; the live broadcast room pop-up window request message includes a first live broadcast room business page identifier that needs to be displayed in the first live broadcast room business pop-up window;
[0012] Obtain the first live broadcast room display mutex lock module sent by the live broadcast room mutex lock management module according to the first live broadcast room business page identifier; monitor the information transmitted by the first live broadcast room display mutex lock module;
[0013] If the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, the feedback lock failure information will not be displayed, and the first live broadcast room business pop-up window will not be displayed; if the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored, the feedback lock success information will be displayed, and the first live broadcast room business pop-up window will be displayed.
[0014] According to a third aspect of an embodiment of the present application, a live broadcast room service pop-up window display device is provided, which is applied to a live broadcast room service pop-up window module, wherein the live broadcast room service pop-up window module is used to display a first live broadcast room service pop-up window; the device comprises the following steps:
[0015] The first monitoring unit is configured to send a live broadcast room pop-up window request information to the live broadcast room mutex lock management module when monitoring that a trigger condition is met; the live broadcast room pop-up window request information includes a first live broadcast room business page identifier that needs to be displayed in the first live broadcast room business pop-up window;
[0016] The second monitoring unit is used to obtain the first live broadcast room display mutex lock module sent by the live broadcast room mutex lock management module according to the first live broadcast room business page identifier; monitor the information transmitted by the first live broadcast room display mutex lock module;
[0017] The pop-up display unit is used for not displaying the first live broadcast room business pop-up window if the feedback of locking failure information is received when the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored; and displaying the first live broadcast room business pop-up window if the feedback of locking success information is received when the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored.
[0018] According to a fourth aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory; the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the live broadcast room business pop-up display method as described above.
[0019] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the live broadcast room business pop-up window display method as described above is implemented.
[0020] On the one hand, the embodiments of the present application can avoid the problem of poor flexibility caused by unifying the trigger conditions of the business pop-up window modules of each live broadcast room by monitoring whether the trigger conditions are met, and ensure the flexibility of triggering each business pop-up window. Even when the number of business pop-up windows is too large, the problem of excessive expansion or even explosion of business page code can be avoided, which facilitates code maintenance. On the other hand, when the trigger conditions are met, the embodiments of the present application determine whether to display a new business pop-up window on the business page by judging the locking status of the live broadcast room display mutex lock module corresponding to the business page that needs to display the business pop-up window, thereby abstracting the interaction of the mutually exclusive pop-up of the business pop-up window into the competition for display resources among multiple business pop-up windows, thereby avoiding the problem of multiple business pop-up windows on the same business page overlapping each other, improving user experience, and improving user retention rate.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0022] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A schematic block diagram of the application environment of the live broadcast room business pop-up display system provided in the embodiment of the present application;
[0025] Figure 2 A schematic block diagram of a live broadcast room service pop-up window display system provided in the first embodiment of the present application;
[0026] Figure 3 A flowchart of a method for displaying a pop-up window in a live broadcast room business provided in the second embodiment of the present application;
[0027] Figure 4 A schematic block diagram of a live broadcast room service pop-up window display device provided in the third embodiment of the present application;
[0028] Figure 5 This is a schematic block diagram of the structure of an electronic device provided in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0030] It should be clear that 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 ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0031] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include the majority form, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0032] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0033] Those skilled in the art will appreciate that the "client", "terminal" and "terminal device" used in this application include both wireless signal transmitter devices, which are wireless signal transmitter devices with only transmission capabilities, wireless signal receiver devices, which are wireless signal receiver devices with only reception capabilities, and also include receiving and transmitting hardware devices, which have receiving and transmitting hardware devices capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.
[0034] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially a computer device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.
[0035] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.
[0036] The pop-up display method of the embodiment of the present application can be applied to various applications. The pop-up display method of the present application is explained below using the application in a live broadcast scenario as an example.
[0037] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of a live broadcast room business pop-up display system provided in an embodiment of the present application, wherein the application scenario includes an anchor client 110, an audience client 120, and a server 130.
[0038] The host client 110 interacts with the viewer client 120 through the server 130. Specifically, the host client 110 and the viewer client 120 can access the Internet through a network access method and establish a data communication link with the server 130. The network can be a communication medium of various connection types that can realize communication between the host client 110 and the server 130 and between the viewer client 120 and the server 130, such as a wired communication link, a wireless communication link, or an optical fiber cable, etc., which is not limited in this application.
[0039] It should be noted that the client proposed in the embodiment of the present application includes an anchor client 110 and a viewer client 120.
[0040] It should be pointed out that there are various understandings of the concept of "client" in the prior art. For example, it can be understood as an application installed in a computer device, or it can also be understood as a hardware device corresponding to a server.
[0041] In the embodiments of the present application, the so-called "client" refers to a hardware device corresponding to a server, and more specifically, refers to a computer device, such as a smart phone, a smart interactive tablet, and a personal computer.
[0042] When the client is a mobile device such as a smartphone or smart interactive tablet, the user can install a matching mobile application on the client or access a Web application on the client.
[0043] When the client is a non-mobile device such as a personal computer (PC), the user can install a matching PC-side application on the client, and can also access the Web-side application on the client.
[0044] Among them, mobile applications refer to applications that can be installed on mobile devices, PC applications refer to applications that can be installed on non-mobile devices, and Web applications refer to applications that need to be accessed through a browser.
[0045] Specifically, web applications can be divided into mobile versions and PC versions based on the differences in client types. The page layout methods and server support that can be provided between the two may be different.
[0046] In the embodiment of the present application, the types of live broadcast applications provided to users are divided into mobile live broadcast applications, PC live broadcast applications and Web live broadcast applications. Users can choose the way to participate in the live broadcast independently according to the different types of clients they use.
[0047] This application divides the client into the anchor client 110 and the audience client 130 according to the different user identities of the client entering the live broadcast room. It should be noted that in actual applications, the same client can perform the functions of the audience client 120 and the anchor client 110 at different times. Therefore, the same client can act as the audience client 120 when watching a live broadcast, and can act as the anchor client 110 when publishing a live video.
[0048] The anchor client 110 refers to the end that sends the live broadcast video, and is usually the client used by the anchor user in the live broadcast. The hardware pointed to by the anchor client 110 is essentially a computer device, specifically, Figure 1 As shown, it can be a computer device of the type of a smart phone, a smart interactive tablet, a personal computer, etc.
[0049] The viewer client 120 refers to a terminal for receiving and viewing live webcast videos, and is generally a client used by viewers who view videos during live webcasts. The hardware referred to by the viewer client 120 is essentially a computer device, specifically, Figure 1 As shown, it can be a computer device of the type of a smart phone, a smart interactive tablet, a personal computer, etc.
[0050] The server 130 can be used as a business server, which can be responsible for further connecting related audio data servers, video stream servers and other servers that provide related support, so as to form a logically related service cluster to provide
[0051] Related terminal equipment, such as Figure 1 The host client 110 and the audience client 120 shown in FIG. 1 provide services.
[0052] In the embodiment of the present application, the anchor client 110 and the audience client 120 can join the same live broadcast room (i.e., live broadcast channel). The live broadcast room refers to a chat room implemented by Internet technology and the server 130, which usually has
[0053] The host user broadcasts live in the live broadcast room through the host client 110, and the audience user of the audience client 0 120 can log in to the server 130 to enter the live broadcast room to watch the live broadcast.
[0054] In the live broadcast room, the host user and the audience users can interact with each other through well-known online interactive methods such as voice, video, and text. Generally, the host user performs for the audience users in the form of audio and video streams. At the same time, the audience users can interact with the host user through text or by giving virtual gifts, and economic transactions can also be generated during the interaction. Of course, the application form of the live broadcast room is not limited to online entertainment, but can also be extended to other related scenarios.
[0055] Specifically, the process of the audience watching the live broadcast is as follows: the audience can click to access the video installed on the audience client 120
[0056] The live broadcast application on the live broadcast room is opened, and any live broadcast room is selected to trigger the audience client 120 to load the live broadcast room interface for the audience user. The live broadcast room interface includes several interactive components, such as: video component, virtual gift bar component and public screen component, etc. By loading these interactive components, the audience user can watch the live broadcast in the live broadcast room and conduct various online interactions. The online interaction methods include but are not limited to giving virtual gifts, participating in live broadcast activities, and speaking and chatting on the public screen.
[0057] 0It is worth mentioning that Figure 1 The application scenario in the present invention is only an exemplary application scenario and is not intended to limit the scope of the present invention.
[0058] The solution of the present invention can also be applied to other forms of network live broadcast application scenarios, which will not be described one by one.
[0059] In the online live broadcast application, business pop-ups such as youth mode reminder pop-ups, follow-up anchor broadcast notification bubbles, activity pop-ups, etc. will pop up on the home page and live broadcast room page to achieve human-computer interaction.
[0060] However, in complex business scenarios, such as the homepage and live broadcast room page of the hot zone, due to the large number of business pop-up windows, in actual operation, there will be chaos of business pop-up windows covering each other, which greatly affects the user experience.
[0061] Reduce user retention rate.
[0062] To solve the above problem, in a related solution, the hot zone page holds the instance of each pop-up window, and the hot zone page implements the trigger logic of each pop-up window and records the pop-up status of each pop-up window. Although this solution can solve the problem of pop-ups overlapping each other, it will cause the business logic of the hot zone page itself and the business logic of each pop-up window to be coupled together. In addition, when there are too many pop-ups, the hot zone page will also have the problem of excessive code expansion or even explosion, which is not conducive to code maintenance.
[0063] To solve the above problems, another related solution is to build a pop-up queue in the application, and each pop-up window implements and manages the trigger logic by itself. When the trigger condition is monitored, a pop-up task is added to the pop-up queue, waiting for the pop-up team to pop up the corresponding pop-up according to the pop-up task. Although this solution can also solve the problem of pop-ups overlapping each other, it requires that each pop-up window has a unified trigger condition, which will cause each pop-up window to lose a certain degree of flexibility. However, in actual business scenarios, the trigger conditions of different business pop-ups often have different requirements. Some only require to be triggered on the homepage after entering the live broadcast room a times, and some require to be triggered on the homepage after entering the live broadcast room a times and browsing c recommended anchors on the homepage. Therefore, it is difficult to unify the trigger conditions.
[0064] Based on the above problems, the present application embodiment provides a live broadcast room service pop-up window display system. Figure 2 , Figure 2 A schematic block diagram of a live broadcast room service pop-up window display system provided in the first embodiment of the present application. The live broadcast room service pop-up window display system 10 provided in the embodiment of the present application includes a plurality of live broadcast room service pop-up window modules 101 and a live broadcast room mutex lock management module 102.
[0065] Each live broadcast room service pop-up window module 101 monitors whether the trigger condition is met; the first live broadcast room service pop-up window module 110 that monitors the trigger condition is met sends the live broadcast room pop-up window request information to the live broadcast room mutex lock management module 102; the live broadcast room pop-up window request information includes the first live broadcast room service page identifier that displays the first live broadcast room service pop-up window;
[0066] The live broadcast room mutex management module 102 sends the corresponding first live broadcast room display mutex module 120 to the first live broadcast room business pop-up window module 110 according to the first live broadcast room business page identifier;
[0067] When the first live broadcast room display mutex lock module 120 determines that the second holder identity identifier is stored, it feeds back locking failure information to the first live broadcast room business pop-up window module 110; when the first live broadcast room display mutex lock module 120 determines that the second holder identity identifier is not stored, it feeds back locking success information to the first live broadcast room business pop-up window module 110;
[0068] If the first live broadcast room service pop-up window module 110 receives a lock failure message, the first live broadcast room service pop-up window will not be displayed; if the lock success message is received, the first live broadcast room service pop-up window will be displayed.
[0069] Among them, in the live broadcast scenario, the live broadcast room business pop-up window module can be a youth mode prompt pop-up window, a notification bubble for following the anchor start, an activity pop-up window, and other abstract modules for implementing business pop-ups. Its specific implementation can be a method class implemented in any coding language.
[0070] Each live broadcast room business pop-up window module stores its own business pop-up window trigger information, business pop-up window logic information, and business pop-up window information. Each live broadcast room business pop-up window module monitors whether its own triggering conditions are met according to the business pop-up window trigger information, and each live broadcast room business pop-up window module is used to execute the corresponding business pop-up window logic according to the business pop-up window logic information, and pop up the corresponding business pop-up window according to the business pop-up window information. It can be understood that the first live broadcast room business pop-up window module 110 is a live broadcast room business pop-up window module that monitors the meeting of the trigger conditions.
[0071] The live broadcast room business page identifier is used to uniquely identify the page that needs to display the business pop-up window. In the live broadcast application scenario, it can be the home page, personal center page, live broadcast room page, etc. In the specific implementation, the live broadcast room business page identifier is a unique constant string defined by the developer. It can be understood that the first live broadcast room business page identifier is the unique identifier of the business page that displays the first live broadcast room business pop-up window.
[0072] Among them, the live broadcast room mutex lock management module 102 is an abstract module that manages the mutex lock modules of each business page. Its specific implementation can be a method class implemented in any coding language.
[0073] The live broadcast room mutex lock management module 102 is used to create, store and search for mutex lock modules. Specifically, the live broadcast room mutex lock management module 102 is used to create a corresponding mutex lock module according to the live broadcast room business page identifier, and store the relationship between the live broadcast room business page identifier and the mutex lock module. When it is necessary to find the first mutex lock module corresponding to the first live broadcast room business page identifier, the live broadcast room mutex lock management module 102 can find the corresponding first mutex lock module according to the relationship.
[0074] Among them, the live broadcast room display mutex lock module is an abstract module that controls whether the corresponding business page displays a business pop-up window. Its specific implementation can be a method class implemented in any coding language. It can be understood that the first live broadcast room display mutex lock module 120 is the live broadcast room display mutex lock module corresponding to the first live broadcast room business page identifier.
[0075] It should be understood that the holder identity is a unique identifier of a pop-up window created by the first live broadcast room display mutex lock module 120 according to different business pop-ups at different times, that is, for different business pop-ups, the holder identity created by the first live broadcast room display mutex lock module 120 is different, and for business pop-ups at different times, the holder identity created by the first live broadcast room display mutex lock module 120 is also different. After the holder identity is created, the corresponding business pop-up window will hold the first live broadcast room display mutex lock module 120. It can be understood that the second holder identity is a holder identity corresponding to the business pop-up window stored in the first live broadcast room display mutex lock module and holding the first live broadcast room display mutex lock module 120.
[0076] Among them, when the first live broadcast room display mutex lock module 120 stores the second holder identity, that is, there is a second live broadcast room business pop-up window module holding the first live broadcast room display mutex lock module 120, when the second business pop-up window has been displayed on the first business page, the first live broadcast room display mutex lock module 120 feedbacks the lock failure information to the first live broadcast room business pop-up window module 110, and the first live broadcast room business pop-up window module 110 continues to monitor and wait for the next trigger condition. When the first live broadcast room display mutex lock module 120 does not store the second holder identity, that is, there is no second live broadcast room business pop-up window module holding the first live broadcast room display mutex lock module 120, when no business pop-up window is displayed on the first business page, the lock success information is fed back to the first live broadcast room business pop-up window module, and the first live broadcast room business pop-up window module 110 displays the corresponding first live broadcast room business pop-up window, thereby avoiding the problem of displaying multiple business pop-ups on the same business page, resulting in the pop-ups covering each other.
[0077] On the one hand, the embodiments of the present application can avoid the problem of poor flexibility caused by unifying the trigger conditions of the business pop-up window modules of each live broadcast room by monitoring whether the trigger conditions are met, and ensure the flexibility of triggering each business pop-up window. Even when the number of business pop-up windows is too large, the problem of excessive expansion or even explosion of business page code can be avoided, which facilitates code maintenance. On the other hand, when the trigger conditions are met, the embodiments of the present application determine whether to display a new business pop-up window on the business page by judging the locking status of the live broadcast room display mutex lock module corresponding to the business page that needs to display the business pop-up window, thereby abstracting the interaction of the mutually exclusive pop-up of the business pop-up window into the competition for display resources among multiple business pop-up windows, thereby avoiding the problem of multiple business pop-up windows on the same business page overlapping each other, improving user experience, and improving user retention rate.
[0078] In an optional embodiment, when the live broadcast room mutex lock management module 102 sends the corresponding first live broadcast room display mutex lock module 120 to the first live broadcast room business pop-up module 110 according to the live broadcast room business page identifier, it includes: when the live broadcast room mutex lock management module 102 determines that the corresponding first live broadcast room display mutex lock module 120 is not stored according to the first live broadcast room business page identifier, it creates a new first live broadcast room display mutex lock module 120; when the live broadcast room mutex lock management module 102 determines that the corresponding first live broadcast room display mutex lock module 120 is stored according to the first live broadcast room business page identifier, it obtains the stored first live broadcast room display mutex lock module 120 and sends the first live broadcast room display mutex lock module 120 to the first live broadcast room business pop-up module 110.
[0079] Specifically, the live broadcast room mutex lock management module 102 uses the first live broadcast room business page identifier as the key value to find out whether there is a corresponding first live broadcast room display mutex lock module 120. If not, a new first live broadcast room display mutex lock module 120 is created, and the first live broadcast room business page identifier is used as the key value to store the first live broadcast room display mutex lock module 120. Finally, the first live broadcast room display mutex lock module 120 is sent to the first live broadcast room business pop-up module 110 for holding; if not, the first live broadcast room business pop-up module 110 corresponding to the key value is taken out, and the first live broadcast room business pop-up module 110 is directly returned to the first live broadcast room business pop-up module 110 for holding.
[0080] In the embodiment of the present application, when the live broadcast room mutex management module 102 stores the corresponding first live broadcast room display mutex module 120, it directly obtains the stored first live broadcast room display mutex module 120. When the corresponding first live broadcast room display mutex module 120 is not stored, a new first live broadcast room display mutex module 120 is created. This lazy loading method loads the first live broadcast room display mutex module 120, which can save resources.
[0081] In an optional embodiment, when the first live broadcast room display mutex lock module 120 determines that the second holder identity is not stored, it will also lock the first live broadcast room display mutex lock module 120, generate and store the first holder identity corresponding to the first live broadcast room business pop-up module 110, and send the first holder identity to the first live broadcast room business pop-up module 110.
[0082] The first live broadcast room business pop-up window module 110 stores the first holder identity, and in response to a close trigger operation on the first live broadcast room business pop-up window, closes the first live broadcast room business pop-up window and sends the first holder identity to the first live broadcast room display mutex lock module 120.
[0083] When the first live broadcast room display mutex lock module 120 determines that the received first holder identity identifier is the same as the stored first holder identity identifier, the stored first holder identity identifier is deleted and the first live broadcast room display mutex lock module 120 is unlocked.
[0084] It can be understood that the first holder identity is the unique identity of the first live broadcast room display mutex lock module 120 based on the first live broadcast room business pop-up module 110 and the first live broadcast room business pop-up module created at the current moment.
[0085] Among them, the first live broadcast room display mutex lock module 120 provides a locking API (Application Programming Interface) and an unlocking API for the first live broadcast room business pop-up window module 110. The first live broadcast room display mutex lock module 120 and the first live broadcast room business pop-up window module 110 have the following calling convention: before executing the pop-up logic, the first live broadcast room business pop-up window module 110 first calls the locking API of the first live broadcast room display mutex lock module 120 to lock the first display mutex lock. After the locking is successful, the pop-up logic is executed to display the first live broadcast room business pop-up window. If the locking is unsuccessful, the pop-up logic is not executed and the first live broadcast room business pop-up window is not displayed. When the first live broadcast room business pop-up window module 110 executes the pop-up closing business pop-up window, it also calls the unlocking API of the first live broadcast room display mutex lock module 120 to unlock the first live broadcast room display mutex lock module 120, so that the control display of the business pop-up window is realized through the mutual cooperation between the first live broadcast room display mutex lock module 120 and the first live broadcast room business pop-up window module 110.
[0086] In an optional embodiment, the live broadcast room pop-up window request information also includes the display life cycle of the first live broadcast room business pop-up window.
[0087] When the first live broadcast room display mutex lock module 120 determines that the received first holder identity identifier is different from the stored first holder identity identifier, if the display time of the first live broadcast room business pop-up module 110 stored in the first live broadcast room display mutex lock module 120 reaches the display life cycle, the stored first business pop-up module identifier is deleted and the first live broadcast room display mutex lock module 120 is unlocked.
[0088] It can be seen from the agreed logic between the first live broadcast room business pop-up window and the first live broadcast room display mutex lock module 120 that before the first live broadcast room business pop-up window pops up, the first holder identity identifier sent by the first display mutex lock module will be stored. However, due to code errors, data errors or other reasons, the first holder identity identifier received by the first live broadcast room display mutex lock module 120 is different from the stored first holder identity identifier, which results in the stored first holder identity identifier actually not having a corresponding business pop-up window. At this time, in order to avoid the first live broadcast room display mutex lock module 120 from entering a deadlock situation, it is determined whether the display time of the first live broadcast room business pop-up window module 110 has reached the display life cycle. If the display life cycle has not been reached, the first live broadcast room display mutex lock module 120 continues to remain locked. If the display life cycle has been reached, the first live broadcast room display mutex lock module 120 will be unlocked, thereby avoiding the first live broadcast room display mutex lock module 120 from entering a deadlock situation due to code errors, data errors or other reasons.
[0089] In an optional embodiment, the live broadcast room pop-up request information also includes the priority of the first live broadcast room business pop-up; when the first live broadcast room display mutex lock module 120 determines that the second holder identity identifier is stored, if the priority corresponding to the first holder identity identifier is less than or equal to the priority corresponding to the second holder identity identifier, the lock failure information is fed back to the first live broadcast room business pop-up module 110; if the priority corresponding to the first holder identity identifier is greater than the priority corresponding to the second holder identity identifier, the second live broadcast room business pop-up module corresponding to the second holder identity identifier is forcibly closed, the second holder identity identifier is deleted, the unlocking operation is performed, and then the locking operation is performed, and the locking success information is fed back to the first live broadcast room business pop-up module 110.
[0090] Among them, when the first live broadcast room display mutex lock module 120 stores the second holder identity, that is, other live broadcast room business pop-up modules hold the first live broadcast room display mutex lock module 120, when the business pop-up window has been displayed on the first business page, the first live broadcast room display mutex lock module 120 will also compare the priority corresponding to the stored second holder identity with the priority corresponding to the first holder identity. When the priority corresponding to the stored second holder identity is greater than or equal to the priority corresponding to the first holder identity, the locking operation is directly terminated, and the locking failure information is fed back to the first live broadcast room business pop-up module 110. When the priority corresponding to the stored second holder identity is lower than the priority corresponding to the first holder identity, indicating that the first live broadcast room business pop-up module 110 is more important, the second live broadcast room business pop-up module corresponding to the second holder identity is forcibly closed, the first display mutual exclusion module is unlocked, resources are released, and then the first display mutual exclusion module is locked, and the locking success information is fed back to the first live broadcast room business pop-up module 110, thereby avoiding the problem of multiple business pop-ups being displayed on the same business page, resulting in the pop-ups covering each other, and the first live broadcast room business pop-up window with a higher priority can also be displayed.
[0091] See also Figure 3 , which is a flow chart of the live broadcast room service pop-up window display method provided by the second embodiment of the present application. The live broadcast room service pop-up window display method provided by the second embodiment of the present application is executed by the live broadcast room service pop-up window module as the execution subject. Specifically, the method includes the following steps:
[0092] Step S201: When the trigger condition is monitored to be met, a live broadcast room pop-up window request information is sent to the live broadcast room mutex lock management module; the live broadcast room pop-up window request information includes the first live broadcast room business page identifier that needs to be displayed in the first live broadcast room business pop-up window.
[0093] Step S202: Obtain the first live broadcast room display mutex lock module sent by the live broadcast room mutex lock management module according to the first live broadcast room business page identifier; monitor the information transmitted by the first live broadcast room display mutex lock module.
[0094] Step S203: If the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, the feedback of locking failure information will not be displayed, and the first live broadcast room business pop-up window will not be displayed; if the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored, the feedback of locking success information will be displayed, and the first live broadcast room business pop-up window will be displayed.
[0095] It should be noted that the live broadcast room business pop-up window display method provided in the second embodiment of the present application is a method executed by the live broadcast room business pop-up window module as the execution subject. The live broadcast room business pop-up window display method provided in the second embodiment of the present application and the live broadcast room business pop-up window display system provided in the first embodiment of the present application belong to the same concept. The implementation process is detailed in the system embodiment and will not be repeated here.
[0096] See also Figure 4 , which is a structural diagram of a live broadcast room service pop-up window display device provided in the third embodiment of the present application. The live broadcast room service pop-up window display device 30 is applied to a live broadcast room service pop-up window module, and the live broadcast room service pop-up window module is used to display a first live broadcast room service pop-up window. The live broadcast room service pop-up window display device includes:
[0097] The first monitoring unit 301 is used to send a live broadcast room pop-up window request information to the live broadcast room mutex lock management module when monitoring that a trigger condition is met; the live broadcast room pop-up window request information includes the first live broadcast room business page identifier that needs to be displayed in the first live broadcast room business pop-up window.
[0098] The second monitoring unit 302 is used to obtain the first live broadcast room display mutex lock module sent by the live broadcast room mutex lock management module according to the first live broadcast room business page identifier; and monitor the information transmitted by the first live broadcast room display mutex lock module.
[0099] 303, for if the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, the feedback of locking failure information is not displayed, and the first live broadcast room business pop-up window is not displayed; if the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored, the feedback of locking success information is displayed, and the first live broadcast room business pop-up window is displayed.
[0100] It should be noted that the live broadcast room business pop-up window display device provided in the third embodiment of the present application only uses the division of the above-mentioned functional modules as an example when executing the live broadcast room business pop-up window display method. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the live broadcast room business pop-up window display device provided in the third embodiment of the present application and the live broadcast room business pop-up window display system in the first embodiment of the present application are of the same concept. The implementation process is detailed in the system embodiment and will not be repeated here.
[0101] The embodiment of the live broadcast room business pop-up display device of the third embodiment of the present application can be applied to a computer device, such as a server or a client. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the file processing in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory for operation. From a hardware perspective, the computer device in which it is located may include a processor, a network interface, a memory, and a non-volatile memory, which are interconnected through a data bus or other known methods.
[0102] See also Figure 5 , is a schematic diagram of the structure of an electronic device provided in the fourth embodiment of the present application. Figure 5 As shown, the electronic device 16 may include: a processor 160, a memory 161, and a computer program 162 stored in the memory 161 and executable on the processor 160, such as: an application program for displaying pop-up windows of live broadcast room services; when the processor 160 executes the computer program 162, the steps in the above-mentioned second embodiment are implemented.
[0103] Among them, the processor 160 may include one or more processing cores. The processor 160 uses various interfaces and lines to connect various parts in the computer device 16, and executes various functions and processes data of the computer device 16 by running or executing instructions, programs, code sets or instruction sets stored in the memory 161, and calling the data in the memory 161. Optionally, the processor 160 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 160 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 160, and it can be implemented by a single chip.
[0104] Among them, the memory 161 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 161 includes a non-transitory computer-readable storage medium. The memory 161 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 161 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 161 may also be optionally at least one storage device located away from the aforementioned processor 160.
[0105] The embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the method steps of the above embodiment. The specific execution process can be found in the specific description of the above embodiment, which will not be repeated here.
[0106] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0107] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0108] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0109] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0112] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0113] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A pop-up window display system for live broadcast room business, It is characterized in that Includes several live broadcast room business pop-up modules and live broadcast room mutex lock management modules; Each of the live broadcast room business pop-up window modules monitors whether a trigger condition is met, and the first live broadcast room business pop-up window module that monitors that the trigger condition is met sends a live broadcast room pop-up window request information to the live broadcast room mutex lock management module; The live broadcast room pop-up window request information includes a first live broadcast room business page identifier for displaying a first live broadcast room business pop-up window; The live broadcast room mutex management module sends the corresponding first live broadcast room display mutex module to the first live broadcast room business pop-up window module according to the first live broadcast room business page identifier; When the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, it feeds back locking failure information to the first live broadcast room business pop-up window module; When the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored, the first live broadcast room business pop-up window module feeds back locking success information; If the first live broadcast room business pop-up window module receives the locking failure information, the first live broadcast room business pop-up window will not be displayed; if the locking success information is received, the first live broadcast room business pop-up window will be displayed.
2. According to claim 1, the live broadcast room business pop-up display system, Features: When the first live broadcast room display mutual exclusion lock module determines that the second holder identity is not stored, it will also lock the first live broadcast room display mutual exclusion lock module, generate and store the first holder identity corresponding to the first live broadcast room business pop-up module, and send the first holder identity to the first live broadcast room business pop-up module.
3. The live broadcast room business pop-up window display system according to claim 2, Features: The first live broadcast room service pop-up window module stores the first holder identity, and in response to a close trigger operation on the first live broadcast room service pop-up window, closes the first live broadcast room service pop-up window, and sends the first holder identity to the first live broadcast room display mutex lock module; When the first live broadcast room display mutex lock module determines that the received first holder identity identifier is the same as the stored first holder identity identifier, the stored first holder identity identifier is deleted and the first live broadcast room display mutex lock module is unlocked.
4. The live broadcast room business pop-up window display system according to claim 3, Features: The live broadcast room pop-up window request information also includes the display life cycle of the first live broadcast room business pop-up window; When the first live broadcast room display mutex lock module determines that the received first holder identity identifier is different from the stored first holder identity identifier, if the display time of the first live broadcast room business pop-up module stored in the first live broadcast room display mutex lock module has reached the display life cycle, the stored first business pop-up module identifier is deleted and the first live broadcast room display mutex lock module is unlocked.
5. The live broadcast room business pop-up display system according to claim 2, Features: The live broadcast room pop-up window request information also includes the priority of the first live broadcast room service pop-up window; When the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, if the priority corresponding to the first holder identity identifier is less than or equal to the priority corresponding to the second holder identity identifier, the lock failure information is fed back to the first live broadcast room business pop-up window module; if the priority corresponding to the first holder identity identifier is greater than the priority corresponding to the second holder identity identifier, the second live broadcast room business pop-up window module corresponding to the second holder identity identifier is forcibly closed, the stored second holder identity identifier is deleted, the first live broadcast room display mutual exclusion lock module is unlocked, and then the first live broadcast room display mutual exclusion lock module is locked, and the lock success information is fed back to the first live broadcast room business pop-up window module.
6. The live broadcast room business pop-up window display system according to any one of claims 1 to 5, Features: The live broadcast room mutex management module sends the corresponding first live broadcast room display mutex module to the first live broadcast room business pop-up window module according to the first live broadcast room business page identifier, including: When the live broadcast room mutex lock management module determines that the corresponding first live broadcast room display mutex lock module is not stored according to the first live broadcast room business page identifier, it creates a new first live broadcast room display mutex lock module; when the live broadcast room mutex lock management module determines that the corresponding first live broadcast room display mutex lock module is stored according to the first live broadcast room business page identifier, it obtains the stored first live broadcast room display mutex lock module; and sends the first live broadcast room display mutex lock module to the first live broadcast room business pop-up module.
7. A live broadcast room service pop-up window display method, applied to a live broadcast room service pop-up window module, wherein the live broadcast room service pop-up window module is used to display a first live broadcast room service pop-up window; It is characterized in that The method comprises the following steps: When the trigger condition is met, a live broadcast room pop-up window request message is sent to the live broadcast room mutex lock management module; the live broadcast room pop-up window request message includes a first live broadcast room business page identifier that needs to be displayed in the first live broadcast room business pop-up window; Obtain the first live broadcast room display mutex lock module sent by the live broadcast room mutex lock management module according to the first live broadcast room business page identifier; Monitoring the information transmitted by the first live broadcast room display mutex module; If the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is stored, the feedback lock failure information will not be displayed, and the first live broadcast room business pop-up window will not be displayed; if the first live broadcast room display mutual exclusion lock module determines that the second holder identity identifier is not stored, the feedback lock success information will be displayed, and the first live broadcast room business pop-up window will be displayed.
8. A live broadcast room service pop-up window display device, applied to a live broadcast room service pop-up window module, wherein the live broadcast room service pop-up window module is used to display a first live broadcast room service pop-up window; It is characterized in that The device comprises: The first monitoring unit is configured to send a live broadcast room pop-up window request information to the live broadcast room mutex lock management module when monitoring that a trigger condition is met; the live broadcast room pop-up window request information includes a first live broadcast room business page identifier that needs to be displayed in the first live broadcast room business pop-up window; The second monitoring unit is used to obtain the first live broadcast room display mutex lock module sent by the live broadcast room mutex lock management module according to the first live broadcast room business page identifier; monitor the information transmitted by the first live broadcast room display mutex lock module; The pop-up display unit is used for not displaying the first live broadcast room business pop-up window if the first live broadcast room display mutual exclusion lock module receives the feedback of locking failure information when it determines that the second holder identity identifier is stored; and for displaying the first live broadcast room business pop-up window if the first live broadcast room display mutual exclusion lock module receives the feedback of locking success information when it determines that the second holder identity identifier is not stored.
9. A computer device comprising a processor and a memory; It is characterized in that The memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the live broadcast room business pop-up display method as described in claim 7.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by the processor, it implements the live broadcast room business pop-up display method as described in claim 7.
