Gift display method and device for live broadcasting room
By dynamically updating gift data and displaying special effects for viewers in live broadcasts on the Internet, the problem that viewers cannot obtain the latest data in time before the new gift is put on the shelves is solved, improving user experience and sense of participation.
Patent Information
- Application Number
- CN202411641296.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-01-10
AI Technical Summary
In online live broadcasts, the gift data pushed by the audience when entering the live broadcast room may cause some gifts to be unable to be displayed, affecting the user experience, especially the viewers who enter the live broadcast room after the new gift is put on the shelves and cannot obtain the latest gift data and display gift special effects in time.
By dynamically updating the latest gift data for the audience without requiring the audience to re-enter the live broadcast room, using preset rules to update the virtual gift objects in the gift panel during the live broadcast process, and displaying the corresponding display when the gift sending incident is responding to Special effects, ensuring that viewers get the latest gift data and play gift effects in real time.
It realizes the immediacy of audience information acquisition, improves the audience's sense of participation and experience, and ensures that viewers entering the live broadcast room before the new gift is put on the shelves can obtain the latest gift data in a timely manner and see the gift special effects.
Smart Images

Figure CN119299792A_ABST
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, computer equipment, computer-readable storage medium, and computer program product for displaying gifts in a live broadcast room. Background Art
[0002] In the field of online live streaming, platforms often put different gifts on the shelves according to different festivals, events, etc., for viewers to give to the anchors to increase the anchors' enthusiasm for live streaming.
[0003] The live broadcast platform pushes the current gift data to the audience when they enter the live broadcast room, which may cause some gifts to fail to display, affecting the user experience.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0005] The embodiments of the present application provide a gift display method, apparatus, computer equipment, computer-readable storage medium, and computer program product in a live broadcast room 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 gift display method in a live broadcast room, which is used for a viewer end, and the method includes: Enter the target live broadcast room and obtain the virtual gift object in the gift panel; During the live broadcast of the target live broadcast room, updating the virtual gift object in the gift panel based on preset rules; In response to a gift-giving event for the target live broadcast room, a display effect of a virtual gift object corresponding to the gift-giving event is displayed; the virtual gift object corresponding to the gift-giving event is any virtual gift object in the updated gift panel; wherein: The virtual gift objects are created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience terminal enters the target live broadcast room.
[0007] Optionally, updating the virtual gift object in the gift panel based on a preset rule includes: In response to opening the gift panel, determining whether a server has a newly added virtual gift object; If the server has the newly added virtual gift object, acquiring data of the newly added virtual gift object; and According to the data of the newly added virtual gift object, the newly added virtual gift object is added to the gift panel.
[0008] Optionally, the data of the newly added virtual gift object is obtained, including: Determine whether there is data of the newly added virtual gift object in the local cache of the viewer terminal; If the data of the newly added virtual gift object exists in the local cache, acquiring the data of the newly added virtual gift object from the local cache; In the case that the data of the newly added virtual gift object is not available in the local cache, a request for the latest gift data is sent to the server, so that the server returns the data of the newly added virtual gift object according to the request for the latest gift data.
[0009] Optionally, updating the virtual gift object in the gift panel based on a preset rule includes: Receiving data of a newly added virtual gift object sent by a server, where the data of the newly added virtual gift object is sent by the server based on a gift-giving behavior, where other audience clients present the newly added virtual gift object to the target live broadcast room; According to the data of the newly added virtual gift object received from the server, the newly added virtual gift object is added to the gift panel.
[0010] Optionally, the method further comprises: When the data of the newly added virtual gift object is received, the data of the newly added virtual gift object is stored in a local cache so as to display the display effects of the newly added virtual gift object according to the local cache.
[0011] Another aspect of an embodiment of the present application provides a gift display method in a live broadcast room, which is used for a server, and the method includes: In response to the viewer terminal entering the target live broadcast room, sending data of the virtual gift object; Create a new virtual gift object; In response to the latest gift data request from the viewer, the data of the newly added virtual gift object is sent to the viewer so that the viewer can update the virtual gift object in the gift panel after entering the target live broadcast room.
[0012] Optionally, the method further comprises: receiving target gift information sent by other audience terminals, wherein the target gift information corresponds to the newly added virtual gift object; and Based on the target gift information, the data of the newly added virtual gift object is sent to the audience terminal.
[0013] Another aspect of the embodiment of the present application provides a gift display device in a live broadcast room, which is used for a viewer end, and the device includes: The acquisition module is used to enter the target live broadcast room and obtain the virtual gift object in the gift panel; An updating module, used for updating the virtual gift objects in the gift panel based on preset rules during the live broadcast of the target live broadcast room; A display module is used to respond to a gift-giving event for the target live broadcast room and display a display effect of a virtual gift object corresponding to the gift-giving event; wherein: The virtual gift object corresponding to the gift giving event is any virtual gift object in the updated gift panel. The virtual gift object is created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience enters the target live broadcast room.
[0014] Another aspect of an embodiment of the present application provides a gift display device in a live broadcast room, which is used for a server, and the device includes: A sending module, used for sending data of a virtual gift object in response to a viewer terminal entering a target live broadcast room; A creation module is used to create new virtual gift objects; A first sending module, configured to send the data of the newly added virtual gift object upon receiving the latest gift data request sent by the viewer end; The second sending module is used to respond to the latest gift data request of the audience end and send the data of the newly added virtual gift object to the audience end, so that the audience end can update the virtual gift object in the gift panel after entering the target live broadcast room.
[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 above technical solution adopted in the embodiment of the present application may have the following advantages: During the live broadcast, the gift data is updated for the audience according to certain rules. That is, by dynamically updating the latest gift data for the audience without the need for the audience to re-enter the live broadcast room, the audience who enters the live broadcast room before the new gift is put on the shelf can obtain the latest gift data in time, and play the gift special effects in real time according to the latest gift data, ensuring the instantaneous information acquisition of the audience, improving the audience's sense of participation, and ensuring the audience's experience. BRIEF DESCRIPTION OF THE DRAWINGS 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.
[0019] Figure 1 The operating environment diagram of the gift display method in the live broadcast room according to the first embodiment of the present application is schematically shown; Figure 2 A flowchart of a gift display method in a live broadcast room according to Embodiment 1 of the present application is schematically shown; Figure 3 Schematically shows Figure 2 Flow chart of sub-steps of step S202; Figure 4 Schematically shows Figure 3 Flow chart of sub-steps of step S302; Figure 5 Schematically shows Figure 2 Another sub-step flow chart of step S202; Figure 6 A flowchart of a gift display method in a live broadcast room according to Embodiment 2 of the present application is schematically shown; Figure 7 A newly added flow chart of the gift display method in the live broadcast room according to the second embodiment of the present application is schematically shown; Figure 8 This is an application example diagram of the gift display method in the live broadcast room according to an embodiment of the present application; Fig. 9 A block diagram schematically shows a gift display device in a live broadcast room according to Embodiment 3 of the present application. Fig.10 A block diagram schematically shows a gift display device in a live broadcast room according to a fourth embodiment of the present application; Fig.11 The schematic diagram of the hardware architecture of the computer device according to the fifth embodiment of the present application is shown; Fig.12 Schematically shows a gift data update sequence diagram according to the first embodiment of the present application; and Fig.13 The data interaction sequence diagram in the gift-giving process according to the first embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0020] 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.
[0021] 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.
[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0023] First, the following terms are explained: Gift panel: In a live broadcast scenario, the gift panel can display all gifts that viewers can give through icons, etc. Viewers can view and give gifts through the gift panel.
[0024] Gift Package: In a live webcast scenario, a gift package can display the gifts that viewers have received. Viewers can view and send gifts through the gift panel.
[0025] Gift streak bar: In a live broadcast scenario, when a user sends the same gift continuously in a short period of time, a corresponding gift streak bar will be displayed based on the number of gifts sent, including a series of visual effects and animations.
[0026] Guest animation: In a sharing scenario, a guest usually refers to an audience member who receives or views the shared content. In a live broadcast scenario, a guest animation refers to the animation generated by other audience members in the current live broadcast room except the audience member himself.
[0027] Floating screen animation: an animation effect that floats on the live screen.
[0028] Local cache: refers to storing data on the user's local device. The data in the cache can be cleared, and the data in the cache can be set to expire within a certain period of time.
[0029] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: In online live broadcasts, when the audience enters the live broadcast room, they will immediately obtain the data of all virtual gifts currently on sale in the live broadcast room, and when the audience opens the gift panel, they can see these virtual gifts. The platform often puts various new gifts on sale from time to time according to different anchors, different festivals or activities. The inventor found that the audience who entered the live broadcast room before these new gifts were put on sale and never left did not obtain the data of these new gifts when entering the live broadcast room, nor could they update the data of virtual gifts by re-entering the live broadcast room. Naturally, they could not see the gift effects corresponding to the new gifts when other viewers sent new gifts.
[0030] To this end, the embodiment of the present application provides a technical solution for gift display in a live broadcast room. In this technical solution, by dynamically updating the latest gift data for the audience without the need for the audience to re-enter the live broadcast room, the audience who enters the live broadcast room before the new gift is put on the shelf can obtain the latest gift data in time, and play the gift special effects in real time according to the latest gift data, ensuring the immediacy of audience information acquisition, improving the audience's sense of participation, and ensuring the audience's experience. See below for details.
[0031] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0032] like Figure 1 As shown, the operating environment diagram includes: Anchor terminal 2, server 4, audience terminal (6A, 6B...6N). Anchor terminal 2 can push live broadcast data to server 4, server 4 can provide gift data and gift information to audience terminal (6A, 6B...6N), and audience terminal (6A, 6B...6N) can obtain the latest gift data from the server for update according to preset rules.
[0033] The server 4 may be a single server, a server cluster or a cloud computing service center. The server 6 may provide storage, forwarding, configuration, statistical analysis and other services. For example, it may provide storage services for gift data, gift information, etc., forwarding services for gift data, gift information, etc., and configuration services for new virtual gifts.
[0034] The host terminal 2 can be used to generate live broadcast files in real time and perform streaming operations. The live broadcast files can include audio or video. The host terminal 2 can be an electronic device such as a smart phone, a tablet computer, or a virtual computing instance.
[0035] The audience terminal (6A, 6B...6N) can be any type of computer device, such as a smart phone, a tablet device, a laptop computer, a smart TV, a car terminal, etc. The audience terminal (6A, 6B...6N) can have a built-in browser, a special program or a player for receiving data and outputting content to the audience, such as playing the live broadcast file generated by the anchor terminal 2 and displaying virtual gifts through the gift panel.
[0036] The anchor terminal 2, the server 4, and the audience terminals (6A, 6B...6N) may be connected via a network. The network may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, and / or proxy devices. The network may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and / or the like. The network may include wireless links, such as cellular links, satellite links, Wi-Fi links, and / or the like.
[0037] It should be noted that the number of the host terminal 2, server 4, and viewer terminal in the figure is only for illustration and is not used to limit the scope of patent protection of this application. According to actual conditions, there can be any number of host terminals 2, servers 4, and viewer terminals.
[0038] The technical solutions of the present application are described below through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be construed as being limited to the embodiments described here.
[0039] Embodiment 1 This method embodiment can be executed in the audience terminal (such as 6A). In the following, the audience terminal 6A is taken as the single execution subject of this process.
[0040] Figure 2 The flowchart of the gift display method in the live broadcast room according to the first embodiment of the present application is schematically shown. Figure 2 As shown, the gift display method in the live broadcast room may include steps S200 to S204, wherein: Step S200, enter the target live broadcast room and obtain the virtual gift object in the gift panel.
[0041] Step S202: During the live broadcast in the target live broadcast room, the virtual gift object in the gift panel is updated based on preset rules.
[0042] Step S204, in response to a gift-giving event for the target live broadcast room, displaying a display effect of a virtual gift object corresponding to the gift-giving event; the virtual gift object corresponding to the gift-giving event is any virtual gift object in the updated gift panel; wherein: The virtual gift objects are created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience terminal enters the target live broadcast room.
[0043] The gift display method in the live broadcast room provided by this embodiment updates the gift data for the audience according to certain rules during the live broadcast process. That is, in the embodiment of the present application, by dynamically updating the latest gift data for the audience without the need for the audience to re-enter the live broadcast room, the audience who enters the live broadcast room before the new gift is put on the shelf can obtain the latest gift data in time, and play the gift special effects in real time according to the latest gift data, ensuring the immediacy of the audience's information acquisition, improving the audience's sense of participation, and ensuring the audience's experience.
[0044] The following combination Figure 2 , each step in steps S200~S204 and other optional steps are described in detail.
[0045] Step S200 , enter the target live broadcast room, and obtain the virtual gift object in the gift panel.
[0046] When a viewer enters a live broadcast room, the data corresponding to all virtual gifts currently on the shelf will be obtained from the server through the preset interface. These virtual gifts will be displayed in the gift panel of the live broadcast room interface, and the viewer can view all virtual gifts currently on the shelf and give them as gifts through the gift panel.
[0047] During specific implementation, an icon corresponding to the virtual gift may be displayed on the gift panel. The icon of the virtual gift may be a static image or a dynamic image.
[0048] In this embodiment, by allowing the audience to obtain the current gift data when entering the live broadcast room, the immediacy of the gift data can be improved, avoiding the impact of expired data on the audience's participation in the gift interaction in the live broadcast room, which helps to improve the audience's interactive experience.
[0049] Step S202 During the live broadcast of the target live broadcast room, the virtual gift object in the gift panel is updated based on preset rules.
[0050] During the live broadcast, since the audience has not left the target live broadcast room, they cannot update the gift data they have obtained by re-entering the live broadcast room. If a new gift is put on the shelf in the live broadcast room after the audience enters the live broadcast room, the audience will not be able to see the new gift on the gift panel, and other audiences who give the new gift will not be able to see its gift giving effects.
[0051] In this embodiment, during the live broadcast process, according to preset rules, the gift data is updated for all viewers in the live broadcast room at certain times, so that the audience can update the virtual gifts displayed in the gift panel according to the latest gift data, thereby ensuring the immediacy of audience information acquisition, improving the audience's sense of participation, and ensuring the audience's interactive experience.
[0052] Some embodiments are provided below to illustrate when the viewer can update the virtual gift object in its gift panel.
[0053] In an optional embodiment, if Figure 3 As shown, step S202 may include: S300, in response to opening the gift panel, determining whether the server has a newly added virtual gift object.
[0054] S302, if the server has the newly added virtual gift object, obtaining data of the newly added virtual gift object; and S304: Add the newly added virtual gift object to the gift panel according to the data of the newly added virtual gift object.
[0055] In this embodiment, the update operation can be triggered when the panel is opened. Specifically, when the viewer opens the gift panel, the viewer terminal 6A will request the server interface and attach the version number of the gift data held by the viewer terminal 6A. Based on the difference between the gift data version numbers on the viewer terminal 6A and the server, it can be determined whether there is a new virtual gift on the shelf, that is, whether there is a new virtual gift object, such as Fig.12 When a new virtual gift is put on the shelf, the viewer terminal 6A will obtain the latest version of gift data when opening the gift panel, including the gift data of the newly put on the shelf virtual gift. According to the latest version of gift data, the newly put on the shelf virtual gift can be displayed in the gift panel.
[0056] In a specific implementation, the gift panel may include multiple option pages. According to actual needs, the viewer terminal 6A may also be configured to update the virtual gift object in the above manner or other feasible manners when switching option pages. Similarly, when the viewer terminal 6A opens a gift package or gift backpack, the virtual gift object may also be updated in the above manner or other feasible manners, such as Fig.12 shown.
[0057] In this embodiment, by dynamically updating the data of the virtual gift object for the audience when the audience opens the gift panel, it is avoided that the audience cannot see the latest gifts on the gift panel when they need to participate in gift interaction. In this way, the audience's interest can be attracted by the timely display of new gifts, and the audience's enthusiasm for participating in gift interaction can be improved. At the same time, timely updating of gift data is also conducive to personalized gift recommendations for different audiences.
[0058] In an optional embodiment, if Figure 4 As shown, step S302 may include: S400, determining whether the local cache of the viewer terminal contains data of the newly added virtual gift object.
[0059] S402: If the data of the newly added virtual gift object exists in the local cache, obtain the data of the newly added virtual gift object from the local cache.
[0060] S404, when the data of the newly added virtual gift object is not available in the local cache, sending a request for the latest gift data to the server, so that the server returns the data of the newly added virtual gift object according to the request for the latest gift data.
[0061] In order to improve the loading speed of gift data, when the viewer terminal 6A obtains the data of the newly added virtual gift object for display on the gift panel, it will first determine whether the data is already in the local cache. If it is already in the local cache, the data in the local cache can be used for display. When there is no data of the newly added virtual gift object in the local cache, the viewer terminal 6A needs to request the latest gift data from the server to obtain the data of the newly added virtual gift object for display.
[0062] In this embodiment, the viewer terminal 6A first determines whether the data of the newly added virtual gift object already exists in the local cache, and then requests the server 4 to obtain it if the data is not in the local cache. This can increase the loading speed of the gift panel, thereby improving the interactive participation experience of the audience. At the same time, it can also reduce data interaction with the server 4 and reduce the pressure on the server.
[0063] In an optional embodiment, if Figure 5 As shown, step S202 may include: S500, receiving data of a newly added virtual gift object sent by the server, wherein the data of the newly added virtual gift object is sent by the server based on a gift-giving behavior, wherein other audience clients present the newly added virtual gift object to the target live broadcast room.
[0064] S502: Add the newly added virtual gift object to the gift panel according to the data of the newly added virtual gift object received from the server.
[0065] Due to the existing gift update mechanism in the live broadcast room, the viewer terminal 6A cannot obtain the data of the new virtual gift that is put on the shelves in the live broadcast room after it enters the live broadcast room. At this time, if another viewer terminal (such as 6B) who enters the live broadcast room after the new virtual gift is put on the shelves gives the gift, the viewer terminal 6A cannot play the gift special effects of the gift, nor can it see the gift in the gift panel.
[0066] In this embodiment, the update operation can be triggered when other viewers give new gifts. Specifically, when other viewers give newly added gifts, the server broadcasts the data of the newly added virtual gift object to all viewers in the current live broadcast room. This allows all viewers in the live broadcast room to obtain the latest gift data in a timely manner, so that they can know the gift interaction in the live broadcast room in real time through the corresponding gift special effects, so as to improve timeliness, ensure that all viewers can see the special effects of new gifts, and enhance the audience's sense of participation and interactive experience.
[0067] At the same time, gift data is updated according to the actual gift-giving situation in different live broadcast rooms, and the latest gift data is pushed only when it is needed, which can avoid frequent gift data updates and improve the audience's experience. Furthermore, by pushing according to the live broadcast room, the unified data push to the audience on the entire platform can be broken down into small pieces, reducing the pressure on the server.
[0068] In an optional embodiment, the method further comprises: When the data of the newly added virtual gift object is received, the data of the newly added virtual gift object is stored in a local cache so as to display the display effects of the newly added virtual gift object according to the local cache.
[0069] In this embodiment, after acquiring the data of the newly added virtual gift object, it is stored in the local cache for later use, which can improve the resource loading speed the next time the data is used, and can also avoid frequent requests for related resources from the server, thereby reducing the pressure on the server.
[0070] The above lists the ways of updating gift data. It should be noted that the above are only exemplary and do not limit the use of other methods.
[0071] Step S204 , in response to a gift-giving event for the target live broadcast room, displaying a display effect of a virtual gift object corresponding to the gift-giving event; the virtual gift object corresponding to the gift-giving event is any virtual gift object in the updated gift panel; wherein: The virtual gift objects are created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience terminal enters the target live broadcast room.
[0072] In specific implementation, the display effects of virtual gift objects may include animation effects and sound effects. According to actual needs, it can be set to display the corresponding gift combo bar based on the display effects corresponding to the display gifts and the number of gifts given by a single user at the same time. The display effects can be in the form of guest animations, and the gift combo bar can be in the form of floating screen animations. According to actual conditions, other forms can also be used to play special effects. The data interaction process of playing special effects is as follows: Fig.13 As shown. As needed, the platform can also be set to list different new gifts for different anchors according to different festivals or activities. For example, during the Mid-Autumn Festival, an exclusive Mid-Autumn Festival gift for anchor A can be listed, and this gift can only be given in anchor A's live broadcast room.
[0073] In this embodiment, the audience can see the display effects of all gifts given in the live broadcast room (including gifts newly put on the shelves after entering the live broadcast room) without exiting and re-entering the live broadcast room. Specifically, when choosing a gift, the audience can choose the latest gift on the shelves. When other viewers give newly put on the shelves gifts, they can also see the corresponding display effects. That is, the gift-giving special effects of each audience can be fully displayed, which improves the interaction efficiency and experience, and also meets the needs of the gift-giving audience to be paid attention to, and increases the liveliness of the live broadcast room and the audience's sense of participation. At the same time, by configuring a variety of virtual gifts through the server and putting them on the shelves at different times, the richness of the gifts in the live broadcast room is improved, and the audience's expectations and freshness are also increased, thereby improving the liveliness of the live broadcast room and the audience's stickiness.
[0074] Embodiment 2 This method embodiment may be executed in the server 4. In the following, the server 4 is taken as the single execution subject of this process.
[0075] Figure 6 The flowchart of the gift display method in the live broadcast room according to the second embodiment of the present application is schematically shown. Figure 6 As shown, the gift display method in the live broadcast room may include steps S600 to S604, wherein: S600, in response to the viewer terminal entering the target live broadcast room, sending data of the virtual gift object.
[0076] S602: Create a new virtual gift object.
[0077] S604, in response to the latest gift data request from the viewer, the data of the newly added virtual gift object is sent to the viewer so that the viewer can update the virtual gift object in the gift panel after entering the target live broadcast room.
[0078] In this embodiment, the server 4 responds to the request of the viewer terminal 6A during the live broadcast process and updates the latest gift data for it. It can be achieved that the viewer terminal 6A does not exit the live broadcast room, and the data of the newly added virtual gift objects after entering the live broadcast room are sent to the viewer terminal 6A, thereby ensuring the timeliness of the viewer's acquisition of information, enhancing the viewer's sense of participation, and improving the viewer's interactive experience.
[0079] In an optional embodiment, if Figure 7 As shown, the method also includes: S700, receiving target gift information sent by other audience terminals, wherein the target gift information corresponds to the newly added virtual gift object; and S702: Based on the target gift information, data of the newly added virtual gift object is sent to the audience.
[0080] In this embodiment, when a viewer in the live broadcast room presents a newly added virtual gift, the server 4 sends the data of the newly added virtual gift object to all viewer terminals in the live broadcast room. In this way, the gift data is updated for the viewer in a timely manner, so that the viewer can know the gift interaction in the live broadcast room in real time through the corresponding gift special effects, thereby ensuring the timeliness of the viewer's acquisition of information, enhancing the viewer's sense of participation, and improving the viewer's interactive experience.
[0081] At the same time, gift data is updated according to the actual gift-giving situation in different live broadcast rooms, and the latest gift data is pushed only when it is needed, which can avoid frequent gift data updates and improve the audience's experience. Furthermore, by pushing according to the live broadcast room, the unified data push to the audience on the entire platform can be broken down into small pieces, reducing the pressure on the server.
[0082] In order to make this application easier to understand, the following Figure 8 An exemplary application is provided. S11, viewer A enters the live broadcast room and obtains gift data of all gifts that have been put on the shelves of the live broadcast room when entering the live broadcast room from the server.
[0083] S12, a new gift a is put on the server.
[0084] S13, viewer B enters the live broadcast room and obtains from the server the gift data of all gifts (including new gift a) that have been put on the shelves of the live broadcast room when entering the live broadcast room.
[0085] S14, viewer B presents a new gift a in the live broadcast room.
[0086] S15, the server sends the gift data of the new gift a to all audience terminals (including audience terminal A) in the live broadcast room.
[0087] S16, viewer terminal A receives gift data of new gift a.
[0088] S17, viewer terminal A displays the gift effects of the new gift a according to the received gift data, and stores the gift data into the local cache.
[0089] S18, viewer terminal A opens the gift panel and determines whether there is gift data of new gift a in the local cache.
[0090] S19, obtain the gift data from the local cache and display the new gift a on the gift panel.
[0091] S20, new gift b is put on the server.
[0092] S21, viewer terminal A opens the gift panel and determines that there is no gift data of the new gift b in the local cache.
[0093] S22, viewer terminal A requests gift data of new gift b from the server.
[0094] S23, viewer terminal A receives gift data of new gift b.
[0095] S24, viewer terminal A displays the new gift b in the gift panel according to the requested gift data, and stores the gift data in the local cache.
[0096] Embodiment 3 Fig. 9 The block diagram of the gift display device in the live broadcast room according to the third embodiment of the present application is schematically shown. The device is applied to the audience end. The device can be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig. 9 As shown, the device 1000 may include: an acquisition module 1100, an update module 1200, and a display module 1300, wherein: The acquisition module 1100 is used to enter the target live broadcast room and obtain the virtual gift object in the gift panel; An updating module 1200 is used to update the virtual gift object in the gift panel based on a preset rule during the live broadcast of the target live broadcast room; The display module 1300 is used to respond to a gift-giving event for the target live broadcast room and display the display effects of the virtual gift object corresponding to the gift-giving event; wherein: the virtual gift object corresponding to the gift-giving event is any virtual gift object in the updated gift panel, and the virtual gift object is created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience terminal enters the target live broadcast room.
[0097] As an optional embodiment, the updating module 1200 is further configured to: In response to opening the gift panel, determining whether a server has a newly added virtual gift object; If the server has the newly added virtual gift object, acquiring data of the newly added virtual gift object; and According to the data of the newly added virtual gift object, the newly added virtual gift object is added to the gift panel.
[0098] As an optional embodiment, the updating module 1200 is further configured to: Determine whether there is data of the newly added virtual gift object in the local cache of the viewer terminal; If the data of the newly added virtual gift object exists in the local cache, acquiring the data of the newly added virtual gift object from the local cache; In the case that the data of the newly added virtual gift object is not available in the local cache, a request for the latest gift data is sent to the server, so that the server returns the data of the newly added virtual gift object according to the request for the latest gift data.
[0099] As an optional embodiment, the updating module 1200 is further configured to: Receiving data of a newly added virtual gift object sent by a server, where the data of the newly added virtual gift object is sent by the server based on a gift-giving behavior, where other audience clients present the newly added virtual gift object to the target live broadcast room; According to the data of the newly added virtual gift object received from the server, the newly added virtual gift object is added to the gift panel.
[0100] As an optional embodiment, the device 1000 is further used for: When the data of the newly added virtual gift object is received, the data of the newly added virtual gift object is stored in a local cache so as to display the display effects of the newly added virtual gift object according to the local cache.
[0101] Embodiment 4 Fig.10The block diagram of the gift display device in the live broadcast room according to the fourth embodiment of the present application is schematically shown. The device is applied to the anchor end. The device can be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig.10 As shown, the apparatus 2000 may include: a first sending module 2100, a creating module 2200, a second sending module 2300, and a third sending module 2400, wherein: The first sending module 2100 is used to send data of a virtual gift object in response to a viewer terminal entering a target live broadcast room; A creation module 2200 is used to create a new virtual gift object; The second sending module 2300 is used to send the data of the newly added virtual gift object when receiving the latest gift data request sent by the audience end; The third sending module 2400 is used to respond to the latest gift data request from the audience end and send the data of the newly added virtual gift object to the audience end, so that the audience end can update the virtual gift object in the gift panel after entering the target live broadcast room.
[0102] As an optional embodiment, the device 2000 may also be used for: receiving target gift information sent by other audience terminals, wherein the target gift information corresponds to the newly added virtual gift object; and Based on the target gift information, the data of the newly added virtual gift object is sent to the audience terminal.
[0103] Embodiment 5 Fig.11 The hardware architecture diagram of the computer device 10000 suitable for implementing the gift display method in the live broadcast room according to the fifth embodiment of the present application is schematically shown. In some embodiments, the computer device 10000 can be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Fig.11 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 an operating system and various application software installed on the computer device 10000, such as program code of a gift display method in a live broadcast room, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or are to be output.
[0104] 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.
[0105] 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.
[0106] It should be pointed out that Fig.11 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.
[0107] In this embodiment, the gift display method in the live broadcast room 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.
[0108] Embodiment 6 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 gift display method in the live broadcast room of the embodiment are implemented.
[0109] 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 gift display method in the live broadcast room 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.
[0110] Embodiment 7 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.
[0111] 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.
[0112] 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 presenting gifts in a live broadcast room, characterized in that: For the audience, the method includes: Enter the target live broadcast room and obtain the virtual gift object in the gift panel; During the live broadcast of the target live broadcast room, updating the virtual gift object in the gift panel based on preset rules; In response to a gift-giving event for the target live broadcast room, a display effect of a virtual gift object corresponding to the gift-giving event is displayed; the virtual gift object corresponding to the gift-giving event is any virtual gift object in the updated gift panel; wherein: The virtual gift objects are created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience terminal enters the target live broadcast room.
2. The method according to claim 1, characterized in that Updating the virtual gift object in the gift panel based on a preset rule includes: In response to opening the gift panel, determining whether a server has a newly added virtual gift object; If the server has the newly added virtual gift object, acquiring data of the newly added virtual gift object; and According to the data of the newly added virtual gift object, the newly added virtual gift object is added to the gift panel.
3. The method according to claim 2, characterized in that Get the data of the newly added virtual gift object, including: Determine whether there is data of the newly added virtual gift object in the local cache of the viewer terminal; If the data of the newly added virtual gift object exists in the local cache, acquiring the data of the newly added virtual gift object from the local cache; In the case that the data of the newly added virtual gift object is not available in the local cache, a request for the latest gift data is sent to the server, so that the server returns the data of the newly added virtual gift object according to the request for the latest gift data.
4. The method according to claim 1, characterized in that: Updating the virtual gift object in the gift panel based on a preset rule includes: Receiving data of a newly added virtual gift object sent by a server, where the data of the newly added virtual gift object is sent by the server based on a gift-giving behavior, where other audience clients present the newly added virtual gift object to the target live broadcast room; According to the data of the newly added virtual gift object received from the server, the newly added virtual gift object is added to the gift panel.
5. The method according to claim 3 or 4, characterized in that: The method further comprises: When the data of the newly added virtual gift object is received, the data of the newly added virtual gift object is stored in a local cache so as to display a display effect of the newly added virtual gift object according to the local cache.
6. A method for presenting gifts in a live broadcast room, characterized in that: For a server, the method comprises: In response to the viewer terminal entering the target live broadcast room, sending data of the virtual gift object; Create a new virtual gift object; In response to the latest gift data request from the viewer, the data of the newly added virtual gift object is sent to the viewer so that the viewer can update the virtual gift object in the gift panel after entering the target live broadcast room.
7. The method according to claim 6, characterized in that The method further comprises: receiving target gift information sent by other audience terminals, wherein the target gift information corresponds to the newly added virtual gift object; and Based on the target gift information, the data of the newly added virtual gift object is sent to the audience terminal.
8. A gift display device in a live broadcast room, characterized in that: For the audience, the device comprises: The acquisition module is used to enter the target live broadcast room and obtain the virtual gift object in the gift panel; An updating module, used for updating the virtual gift objects in the gift panel based on preset rules during the live broadcast of the target live broadcast room; A display module is used to respond to a gift-giving event for the target live broadcast room and display a display effect of a virtual gift object corresponding to the gift-giving event; wherein: The virtual gift object corresponding to the gift giving event is any virtual gift object in the updated gift panel. The virtual gift object is created in the server, and the creation time of at least some of the virtual gift objects is later than the time when the audience enters the target live broadcast room.
9. A gift display device in a live broadcast room, characterized in that: For a server, the device comprises: A sending module, used for sending data of a virtual gift object in response to a viewer terminal entering a target live broadcast room; A creation module is used to create new virtual gift objects; A first sending module, configured to send the data of the newly added virtual gift object upon receiving the latest gift data request sent by the viewer end; The second sending module is used to respond to the latest gift data request of the audience end and send the data of the newly added virtual gift object to the audience end, so that the audience end can update the virtual gift object in the gift panel after entering the target live broadcast room.
10. 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.
11. 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.
12. 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.