Interactive method, device, equipment and storage medium based on live broadcast room gift special effects
By displaying virtual gift special effects in online live broadcasts and displaying gift information when an action is triggered, the problem of viewers being unable to confirm the gift type is solved, the live broadcast interaction enthusiasm and user experience are improved, and the viewing retention rate and duration are improved.
Patent Information
- Application Number
- CN202210415269.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-20
AI Technical Summary
In online live broadcasts, viewers cannot confirm the type of gift given through the special effects of virtual gifts, resulting in low interaction enthusiasm and failure to improve the retention rate and duration of live broadcast viewing.
By displaying virtual gift special effects on the live broadcast room interface, and obtaining the trigger position and virtual gift identification when the operation is triggered, the corresponding virtual gift information is displayed so that users can understand the specific information of the gift and promote interactive behavior.
It improves the generation of live broadcast interactive behaviors, increases the retention rate and duration of live broadcast viewing, and improves the user experience.
Smart Images

Figure CN114760519B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network live broadcast technology, and in particular, to an interactive method, device, computer equipment and storage medium based on live broadcast room gift special effects. Background Art
[0002] Live streaming refers to the technology of sharing live audio and video streams with the audience on the Internet through the live streaming platform. Live streaming is a new form of Internet business, which reflects the open and shared characteristics of the Internet, allowing every ordinary person to have the opportunity to show their talents on the Internet. During the live streaming of the anchor's talent show, the audience will send virtual gifts in the live broadcast room, and the anchor can get a share of the gifts, thereby creating income for the anchor and allowing the anchor to work from home without leaving home. Especially for people in remote areas or who cannot go out to work normally, it has created a more convenient way to find employment and promoted social employment.
[0003] Currently, when viewers give a virtual gift with special effects to the anchor in the live broadcast room, the gift special effects corresponding to the virtual gift will be displayed at the corresponding position in the live broadcast room. Since other viewers can only watch the special effects of the virtual gift and do not know which virtual gift produced the special effects, it is difficult to increase their enthusiasm for live broadcast interaction, and thus it is impossible to improve the retention rate and viewing time of live broadcasts. Summary of the invention
[0004] The embodiment of the present application provides an interactive method, device, computer equipment and storage medium based on live broadcast room gift special effects, which can solve the technical problem that the live broadcast interactive experience is weak and the audience's enthusiasm for interaction cannot be improved. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides an interactive method based on a live broadcast room gift special effect, comprising the steps of:
[0006] In response to a display instruction of a virtual gift special effect in the live broadcast room, obtaining a first display area when the virtual gift special effect is displayed in the live broadcast room interface, and displaying the virtual gift special effect in the first display area;
[0007] In response to a trigger operation occurring in the first display area, acquiring a trigger position corresponding to the trigger operation;
[0008] When the trigger position meets the preset condition, obtaining a virtual gift identifier corresponding to the virtual gift special effect;
[0009] According to the virtual gift identifier, the corresponding virtual gift information is displayed in the live broadcast room interface.
[0010] In a second aspect, the embodiment of the present application provides an interactive device based on live broadcast room gift special effects, including:
[0011] A display area acquisition module, configured to respond to a display instruction of a virtual gift special effect in a live broadcast room, acquire a first display area when the virtual gift special effect is displayed in the live broadcast room interface, and display the virtual gift special effect in the first display area;
[0012] A trigger position acquisition module, configured to acquire a trigger position corresponding to a trigger operation in response to a trigger operation occurring in the first display area;
[0013] A virtual gift identifier acquisition module, used for acquiring a virtual gift identifier corresponding to the virtual gift special effect when the trigger position meets a preset condition;
[0014] A virtual gift information display module is used to display corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier.
[0015] In a third aspect, an embodiment of the present application provides a computer device, a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
[0017] The embodiment of the present application obtains the first display area when the virtual gift special effect is displayed in the live broadcast room interface in response to the display instruction of the virtual gift special effect in the live broadcast room, and displays the virtual gift special effect in the first display area; obtains the trigger position corresponding to the trigger operation in response to the trigger operation occurring in the first display area; obtains the virtual gift identifier corresponding to the virtual gift special effect when the trigger position meets the preset conditions; and displays the corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier. In the live broadcast scenario of the present application, when the user triggers the virtual gift special effect, the corresponding virtual gift information can be displayed to the user, which facilitates the user to understand the virtual gift, thereby promoting the generation of live interactive behavior and improving the retention rate and duration of live viewing.
[0018] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of an application scenario of an interactive method based on live broadcast room gift special effects provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of an interactive method based on live broadcast room gift special effects provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of display of a virtual gift special effect trigger provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the flow of S41 to S43 in the interactive method based on the live broadcast room gift special effects provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of the flow of S431 to S432 in the interactive method based on the live broadcast room gift special effects provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram showing a virtual gift receiving interface provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of the flow of S433 to S435 in the interactive method based on the live broadcast room gift special effects provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the display of the virtual gift bar interface provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the flow of S436 to S438 in the interactive method based on the live broadcast room gift special effects provided in an embodiment of the present application;
[0028] Fig.10 A schematic diagram of the flow of S4381 to S4382 in the interactive method based on the live broadcast room gift special effects provided in an embodiment of the present application;
[0029] Fig.11 A schematic diagram of a pop-up window displaying virtual gift information provided in an embodiment of the present application;
[0030] Fig.12 A schematic diagram of the structure of an interactive device based on live broadcast room gift special effects provided in an embodiment of the present application;
[0031] Fig.13 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0033] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0034] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0035] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of the method for playing short videos in a live broadcast room provided in an embodiment of the present application. The application scenario includes the anchor client 101, server 102 and audience client 103 provided in an embodiment of the present application. The anchor client 101 interacts with the audience client 103 through the server 102.
[0036] The client proposed in the embodiment of the present application includes the anchor client 101 and the audience client 103.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] According to the different user identities of the clients, the present application can divide the clients into anchor clients 101 and audience clients 103. It should be noted that the audience clients 103 and anchor clients 101 are only divided based on user identities. In actual applications, the same client can perform the functions of the audience client 103 and the anchor client 101 at different times. Therefore, the same client can act as the audience client 103 when watching live broadcasts, and can act as the anchor client 101 when publishing live videos.
[0045] Among them, the anchor client 101 refers to the end that sends the live broadcast video, which is usually the client used by the anchor (ie, the live broadcast anchor user) in the live broadcast.
[0046] The audience client 103 refers to an end for receiving and watching live network video, and is generally a client used by the audience (ie, live broadcast audience user) who watches the video in the live network broadcast.
[0047] The hardware pointed to by the host client 101 and the audience client 103 is essentially a computer device, specifically, Figure 1As shown, it can be a computer device of the type of a smart phone, a smart interactive tablet, a personal computer, etc. Both the host client 101 and the audience client 103 can access the Internet through a known network access method and establish a data communication link with the server 102.
[0048] Server 102 is a business server, which can be responsible for further connecting related live streaming servers, small video servers and other servers that provide related support, so as to form a logically related service cluster to serve related terminal devices, such as Figure 1 The host client 101 and the audience client 103 shown in FIG. 1 provide services.
[0049] In the embodiment of the present application, the host client 101 and the audience client 103 can join the same live broadcast room (i.e., live broadcast channel), which refers to a chat room implemented by Internet technology, usually with audio and video broadcast control functions. The host user broadcasts live in the live broadcast room through the host client 101, and the audience of the audience client 103 can log in to the server 102 to enter the live broadcast room to watch the live broadcast.
[0050] In the live broadcast room, the host and the audience can interact through known online interactive methods such as voice, video, and text. Generally, the host user performs programs for the audience in the form of audio and video streams, 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, such as: user pairing interaction scenarios, video conferencing scenarios, product promotion and sales scenarios, and any other scenarios that require similar interactions.
[0051] Specifically, the process of viewers watching live broadcasts is as follows: viewers can click to access the live broadcast application (such as YY) installed on the viewer client 103, and choose to enter any live broadcast room, triggering the viewer client 103 to load the live broadcast room interface for the viewer. The live broadcast room interface includes several interactive components. By loading these interactive components, viewers can watch the live broadcast in the live broadcast room and conduct various online interactions.
[0052] When viewers give a virtual gift with special effects to the anchor in the live broadcast room, the gift special effects corresponding to the virtual gift will be displayed at the corresponding position in the live broadcast room. However, since other viewers can only watch the special effects of the virtual gift, it is difficult to confirm which virtual gift has produced the special effects through the special effects of the virtual gift, making it difficult to increase their enthusiasm for live broadcast interaction, and thus unable to improve the retention rate and viewing time of live broadcasts.
[0053] To this end, an embodiment of the present application provides an interactive method based on live broadcast room gift special effects, with the client as the executor, and the client includes an anchor client and an audience client.
[0054] See also Figure 2 , Figure 2 A flow chart of an interactive method based on live broadcast room gift special effects provided in an embodiment of the present application, the method comprising the following steps:
[0055] S10: In response to a display instruction of a virtual gift special effect in the live broadcast room, a first display area when the virtual gift special effect is displayed in the live broadcast room interface is obtained, and the virtual gift special effect is displayed in the first display area.
[0056] In the embodiment of the present application, the first display area is used to display virtual gift special effects, the first display area is the playback area of the virtual gift special effects player, and the playback area is used to play virtual gift special effects. For example, the playback area is a rectangle, and the coordinates of its upper left corner can be expressed as (x1, y1), and the coordinates of its lower right corner can be expressed as (x2, y2).
[0057] The display instruction of the virtual gift special effect in the live broadcast room is issued by the server. Specifically, when the viewer chooses to give a virtual gift to the anchor, the viewer client generates a virtual gift giving request according to the virtual gift identifier corresponding to the virtual gift selected by the viewer, and sends the virtual gift giving request to the server. The server responds to the virtual gift giving request and sends the display instruction of the virtual gift special effect to the client in the live broadcast room.
[0058] Among them, the virtual gift special effects include static special effects and dynamic special effects. The size of the static special effects remains unchanged, and the size of the dynamic special effects is irregular and changes dynamically. For example, the static special effects can be a static picture in a two-dimensional display form, and the dynamic special effects can be an animation or video in a three-dimensional display form. In the embodiment of the present application, the virtual gift special effects are preferably three-dimensional animations, which create three-dimensional special effects, enhance the sense of reality, and improve the rendering effect of the virtual gift special effects.
[0059] The trigger operation includes any preset trigger mode such as long press trigger, double click trigger, or slide trigger. In an optional embodiment, the client responds to the display instruction of the virtual gift special effect in the live broadcast room, triggers and starts a monitoring event on the first display area where the virtual gift special effect is displayed, and the monitoring event is used to monitor whether a trigger operation occurs on the first display area, such as touch, click, etc.
[0060] Generally, the gift value of virtual gifts is different, and the corresponding virtual special effects are also different. Generally, the higher the gift value of the virtual gift, the more complex and gorgeous the virtual special effects displayed in the live room interface, and the larger the display size. In this embodiment, it can also be further configured to trigger the start of the monitoring event in response to the display instruction of a part of the virtual gift special effects; and the display instruction of the remaining virtual gift special effects does not trigger the start of the monitoring event. For example, it can be set to start the monitoring event in response to the corresponding virtual gift special effects for some virtual gifts with higher virtual gift values, and the monitoring event is used to monitor the user's triggering operation on the virtual gift special effects. When it is monitored that the user triggers the virtual gift special effect, execute step S20.
[0061] S20: In response to a trigger operation occurring in the first display area, acquiring a trigger position corresponding to the trigger operation.
[0062] In an embodiment of the present application, when a user triggers a virtual gift special effect, the client detects a trigger operation occurring in the first display area corresponding to the virtual gift special effect, and obtains a trigger position corresponding to the trigger operation. In various optional implementations, the trigger position can be an area, or a specific position coordinate point, or the area corresponding to the trigger operation is first obtained, and then the coordinate point of the specific trigger position is obtained based on the area. For example, when the trigger operation is a user's finger touch and click, the touch area is the area covered by the user's finger when the user performs a touch and click operation. The trigger position can be a representative point of the touch area, for example, the representative point is the geometric center or centroid of the touch area, and the trigger position can be expressed as (A, B).
[0063] S30: When the trigger position meets a preset condition, a virtual gift identifier corresponding to the virtual gift special effect is obtained.
[0064] In an embodiment of the present application, after obtaining the trigger position and the first display area, the client determines whether the trigger position meets the preset conditions, and the preset conditions may be: the trigger position is located in the first display area, or the trigger area corresponding to the trigger position overlaps with the first display area, or the trigger area generated according to the preset width and height with the trigger position as the center overlaps with the first display area. If the trigger position meets the above preset conditions, the virtual gift identifier corresponding to the virtual gift special effect is obtained, and the virtual gift identifier is a unique identifier of the virtual gift, and the virtual gift identifier may be the number or name of the virtual gift, etc.
[0065] S40: Displaying corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier.
[0066] In an embodiment of the present application, the virtual gift information may include interactive information of the virtual gift and / or attribute information of the virtual gift, the interactive information of the virtual gift is used to receive an interactive instruction to obtain the virtual gift, and the attribute information of the virtual gift includes one or more of the virtual gift name, the virtual gift icon, and the virtual gift value. In particular, when it is detected that the client of the triggering operation is a host client, the attribute information of the virtual gift also includes the number of virtual gifts received by the host user. When the user successfully triggers the special effect of the virtual gift, the client displays the interactive information of the corresponding virtual gift and / or the display information of the virtual gift in the live broadcast room interface according to the virtual gift identifier. If the user is an anchor, the anchor can quickly understand which viewers gave the virtual gift and the number of virtual gifts received, thereby improving the anchor user experience. If the user is a viewer, it is convenient for the viewer to directly view the virtual gift or jump from the current live broadcast room interface to the gameplay page to obtain the virtual gift, and can give the virtual gift to the anchor, thereby promoting the audience's live interactive behavior and improving the live viewing retention rate and live viewing time.
[0067] The embodiment of the present application obtains the first display area when the virtual gift special effect is displayed in the live broadcast room interface in response to the display instruction of the virtual gift special effect in the live broadcast room, and displays the virtual gift special effect in the first display area; obtains the trigger position corresponding to the trigger operation in response to the trigger operation occurring in the first display area; obtains the virtual gift identifier corresponding to the virtual gift special effect when the trigger position meets the preset conditions; and displays the corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier. In the live broadcast scenario of the present application, when the user triggers the virtual gift special effect, the corresponding virtual gift information can be displayed to the user, which facilitates the user to understand the virtual gift, thereby promoting the generation of live interactive behavior and improving the retention rate and duration of live viewing.
[0068] In an optional embodiment, when the trigger position meets the preset condition, the step of obtaining the virtual gift identifier corresponding to the virtual gift special effect determines whether the trigger position meets the preset condition, including steps S31 to S32, which are as follows:
[0069] S31: Taking the trigger position as the center, generating a trigger area according to a preset width and height;
[0070] S32: Determine an overlapping area between the trigger area and the first display area;
[0071] S33: Traversing the pixel points in the overlapping area, if the number of transparent pixel points in the pixel points is less than a preset threshold, determining that the trigger position meets the preset condition.
[0072] In an embodiment of the present application, please refer to Figure 3 , centered on the trigger position 300(A, B), a square trigger area 200 is generated with a preset width and height of 40 dp; where dp is the relative pixel unit of Android, and the upper left corner coordinates of the trigger area 200 are represented as (A - 20, B + 20), and the lower right corner coordinates are represented as (A + 20, B - 20).
[0073] According to the upper left corner coordinates and lower right corner coordinates of the trigger area 200, and the upper left corner coordinates and lower right corner coordinates of the first display area, the overlapping area between the trigger area 200 and the first display area is determined. Specifically, if A - 20 < x1, the abscissa of the upper left corner of the trigger area is transformed into x1; if A + 20 > x2, the abscissa of the lower right corner of the trigger area 200 is transformed into x2; if B - 20 < y2, the ordinate of the lower left corner of the trigger area 200 is transformed into y2; if B + 20 > y1, the ordinate of the upper left corner of the trigger area 200 is transformed into y1. After the trigger area 200 undergoes the above coordinate transformation, the overlapping area is obtained.
[0074] The areas without pixels in the transparent pixel layer are completely transparent. These areas are composed of transparent pixel points. Through the transparent pixels in the layer, the content of the layer below the layer can be seen. In an embodiment of the present application, the virtual gift special effect 100 is an mp4 transparent gift special effect. When the mp4 transparent gift special effect is displayed in the first display area, some areas of the first display area are transparently displayed due to no special effects being drawn, forming transparent areas. In order to effectively confirm that the trigger position of the virtual gift special effect falls on the virtual gift special effect and does not affect the click response of other views under the transparent area of the first display area. In an embodiment of the present application, by traversing the pixel points in the overlapping area, the total number of the pixel points and the total number of the transparent pixel points among the pixel points can be obtained. If the total number of the transparent pixel points is less than a preset threshold, for example, the ratio of the total number of the transparent pixel points to the total number of the pixel points is less than 0.7, it is determined that the trigger position 300 meets the preset conditions.
[0075] Please refer to Figure 4 , in an embodiment of the present application, the step of displaying the corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier includes sub-steps S41 to S43, specifically as follows:
[0076] S41: Obtain the user identifier corresponding to the trigger operation;
[0077] S42: Obtain the corresponding user type according to the user identifier;
[0078] S43: Displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type.
[0079] In the embodiment of the present application, the user identifier includes an anchor user identifier and an audience user identifier. The user type corresponding to the anchor user identifier is the anchor user who created the live broadcast room, and the user type corresponding to the audience user identifier is the audience user who watches the live broadcast in the live broadcast room. The client displays the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type, thereby displaying the corresponding virtual gift information corresponding to different user types, so that the display of the virtual gift information is targeted.
[0080] In an optional embodiment, the step of displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type includes sub-steps S431 to S432, such as Figure 5 As shown, the details are as follows:
[0081] S431: If the user type is a live streamer user, display a virtual gift receiving information interface of the live streamer user; wherein the virtual gift receiving information interface includes a gift-giving user ID, virtual gifts received by the live streamer, and the corresponding number of virtual gifts;
[0082] S432: Displaying the virtual gift at the top of the virtual gift receiving information interface according to the virtual gift identifier.
[0083] like Figure 6 As shown, the gift-giving user ID refers to the user ID corresponding to the viewer who gave the virtual gift, and the number of virtual gifts refers to the number of virtual gifts given by the viewer to the anchor. If the user type is an anchor user, that is, the anchor successfully triggers the virtual gift special effect in the live broadcast room interface, the anchor client will display the virtual gift receiving information interface 400 of the anchor user. The anchor can quickly understand from the virtual gift receiving information interface 400 which viewers gave the virtual gifts and the number of virtual gifts received, thereby improving the anchor user experience.
[0084] In an optional embodiment, the step of displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type includes sub-steps S433 to S435, such as Figure 7 As shown, the details are as follows:
[0085] S433: If the user type is a viewer user, obtain virtual gift column data stored on the viewer client corresponding to the viewer user;
[0086] S434: determining whether virtual gift data corresponding to the virtual gift identifier can be found from the virtual gift column data;
[0087] S435: If yes, display the virtual gift bar interface of the audience user, determine the display position of the virtual gift in the virtual gift bar interface according to the virtual gift identifier, and highlight the display position.
[0088] like Figure 8 As shown, if the user type is an audience user, that is, the audience successfully triggers the virtual gift special effect of the live broadcast room interface, the audience client obtains the virtual gift column data, and determines whether the virtual gift data corresponding to the triggered virtual gift special effect exists in the virtual gift column data. If so, the audience client displays the virtual gift column interface, and the virtual gift column interface 500 displays a number of virtual gift information, including a thumbnail of the virtual gift, the name of the virtual gift, and the value of the virtual gift. The audience can browse the virtual gifts in the virtual gift column and can choose any virtual gift to give to the anchor. The audience client locates the view component corresponding to the virtual gift according to the virtual gift identifier, and the default selected state is convenient for the audience to directly view the virtual gift, and can give the virtual gift to the anchor, thereby promoting the audience's live interactive behavior and improving the live viewing retention rate and live viewing time.
[0089] In an optional embodiment, the step of displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type includes sub-steps S436 to S438, such as Fig. 9 As shown, the details are as follows:
[0090] S436: If not, the viewer client sends a virtual gift information acquisition instruction to the server; wherein the virtual gift information acquisition instruction includes the virtual gift identifier;
[0091] S437: the server receives the acquisition instruction, obtains the virtual gift identifier according to the acquisition instruction; matches the corresponding virtual gift information from the virtual gift information library according to the virtual gift identifier, and sends the virtual gift information to the viewer client;
[0092] S438: The audience client receives the virtual gift information and displays the virtual gift information in the live broadcast room interface.
[0093] Because some virtual gifts have been removed from the shelves or are packaged gifts, the local client does not have the corresponding virtual gift data. That is, the virtual gift data corresponding to the triggered virtual gift special effect is not in the virtual gift column data of the viewer client. At this time, the viewer client can request the virtual gift information corresponding to the virtual gift special effect from the server, and the virtual gift information includes the virtual gift name, virtual gift introduction and virtual gift acquisition address, etc. Among them, the virtual gift introduction is used to indicate what kind of gift the virtual gift is, and the virtual gift acquisition address is used to indicate how to obtain the virtual gift. For virtual gifts that are not in the virtual gift column, the virtual gift information is displayed in the live broadcast room interface of the viewer client by requesting the virtual gift information from the server, so that the audience can directly view the virtual gift, and can give the virtual gift to the anchor, thereby promoting the audience's live interactive behavior and improving the live viewing retention rate and live viewing time.
[0094] In an optional embodiment, the viewer client receives the virtual gift information, and the step of displaying the virtual gift information in the live broadcast room interface includes steps S4381 to S4382, such as Fig.10 As shown, the details are as follows:
[0095] S4381: According to the virtual gift information, a pop-up window is loaded in the live broadcast room interface, and the virtual gift information is displayed in the pop-up window; wherein the pop-up window includes a control, and the control is used to jump to a gameplay page for presenting virtual gift acquisition;
[0096] S4382: In response to the audience user's triggering operation on the control, jump from the current live broadcast room interface to the gameplay page.
[0097] like Fig.11 As shown, the virtual gift information can be displayed in the form of a pop-up window 600 in the live broadcast room interface. At the same time, the pop-up window 600 includes a control 610, and the audience can trigger the control 610 to automatically and quickly jump from the current live broadcast room interface to the gameplay page. The gameplay page is used to obtain the virtual gift corresponding to the virtual gift special effect, thereby improving the audience user experience, promoting the audience's live broadcast interactive behavior, and improving the live broadcast viewing retention rate and live broadcast viewing time.
[0098] See also Fig.12 , Fig.12 The schematic diagram of the structure of the interactive device based on the live broadcast room gift special effects provided by the present application. The interactive device 8 based on the live broadcast room gift special effects provided by the present application embodiment includes:
[0099] A display area acquisition module 81 is used to respond to a display instruction of a virtual gift special effect in a live broadcast room, acquire a first display area when the virtual gift special effect is displayed in the live broadcast room interface, and display the virtual gift special effect in the first display area;
[0100] A trigger position acquisition module 82, configured to acquire a trigger position corresponding to a trigger operation in the first display area in response to the trigger operation occurring in the first display area;
[0101] A virtual gift identifier acquisition module 83, used for acquiring a virtual gift identifier corresponding to the virtual gift special effect when the trigger position meets a preset condition;
[0102] The virtual gift information display module 84 is used to display the corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier.
[0103] It should be noted that the interactive device based on the live broadcast room gift special effects provided in the above embodiment only uses the division of the above functional modules as an example when executing the interactive method based on the live broadcast room gift special effects. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the interactive device based on the live broadcast room gift special effects provided in the above embodiment and the interactive method based on the live broadcast room gift special effects belong to the same concept. The implementation process is detailed in the method embodiment, which will not be repeated here.
[0104] See also Fig.13 , is a schematic diagram of the structure of the computer device provided in this application. Fig.13 As shown, the computer device 21 may include: a processor 210, a memory 211, and a computer program 212 stored in the memory 211 and executable on the processor 210, such as: an interactive program based on gift effects in a live broadcast room; when the processor 210 executes the computer program 212, the steps in the above-mentioned embodiments are implemented.
[0105] Among them, the processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts in the computer device 21, and executes various functions and processes data of the computer device 21 by running or executing instructions, programs, code sets or instruction sets stored in the memory 211, and calling the data in the memory 211. Optionally, the processor 210 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 210 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 210, and it can be implemented by a single chip.
[0106] Among them, the memory 211 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 211 includes a non-transitory computer-readable storage medium. The memory 211 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 211 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 211 may also be optionally at least one storage device located away from the aforementioned processor 210.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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. An interactive method based on live broadcast room gift special effects, characterized in that: The steps include: In response to a display instruction of a virtual gift special effect in a live broadcast room, a first display area when the virtual gift special effect is displayed in the live broadcast room interface is obtained, and the virtual gift special effect is displayed in the first display area; wherein the first display area is a playback area of a virtual gift special effect player, and when the virtual gift special effect is displayed in the first display area, a part of the first display area is transparently displayed because no special effect is drawn, forming a transparent area, and the transparent area is composed of transparent pixels; the virtual gift special effect is a dynamic virtual gift special effect, and the size of the virtual gift special effect is irregular and changes dynamically; In response to a trigger operation occurring in the first display area, acquiring a trigger position corresponding to the trigger operation; When the trigger position meets the preset conditions, a virtual gift identifier corresponding to the virtual gift special effect is obtained; wherein, a trigger area is generated according to a preset width and height with the trigger position as the center; an overlapping area between the trigger area and the first display area is determined; pixels within the overlapping area are traversed, and if the number of transparent pixels in the pixels is less than a preset threshold, it is determined that the trigger position meets the preset conditions; According to the virtual gift identifier, the corresponding virtual gift information is displayed in the live broadcast room interface; wherein, the virtual gift information includes interactive information of the virtual gift and / or attribute information of the virtual gift, the interactive information of the virtual gift is used to receive interactive instructions to obtain the virtual gift, and the attribute information of the virtual gift includes one or more of the virtual gift name, the virtual gift icon and the virtual gift value.
2. The interactive method based on live broadcast room gift special effects according to claim 1, characterized in that: The step of displaying corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier includes: Obtaining a user identifier corresponding to the trigger operation; According to the user identifier, obtaining a corresponding user type; According to the virtual gift identifier and the user type, the virtual gift information corresponding to the user type is displayed.
3. The interactive method based on live broadcast room gift special effects according to claim 2, characterized in that: The step of displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type comprises: If the user type is a live streamer user, a virtual gift receiving information interface of the live streamer user is displayed; wherein the virtual gift receiving information interface includes a gift-giving user ID, virtual gifts received by the live streamer, and the corresponding number of virtual gifts; According to the virtual gift identifier, the virtual gift is displayed at the top of the virtual gift receiving information interface.
4. The interactive method based on live broadcast room gift special effects according to claim 2, characterized in that: The step of displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type comprises: If the user type is a viewer user, obtaining virtual gift column data stored on a viewer client corresponding to the viewer user; Determining whether virtual gift data corresponding to the virtual gift identifier can be found from the virtual gift column data; If so, the virtual gift bar interface of the audience user is displayed, and the display position of the virtual gift in the virtual gift bar interface is determined according to the virtual gift identifier, and the display position is highlighted.
5. The interactive method based on live broadcast room gift special effects according to claim 4 is characterized in that: The step of displaying the virtual gift information corresponding to the user type according to the virtual gift identifier and the user type comprises: If not, the viewer client sends a virtual gift information acquisition instruction to the server; wherein the virtual gift information acquisition instruction includes the virtual gift identifier; The server receives the acquisition instruction, obtains the virtual gift identifier according to the acquisition instruction; matches the corresponding virtual gift information from the virtual gift information library according to the virtual gift identifier, and sends the virtual gift information to the viewer client; The audience client receives the virtual gift information and displays the virtual gift information in the live broadcast room interface.
6. The interactive method based on live broadcast room gift special effects according to claim 5 is characterized in that: The step of the audience client receiving the virtual gift information and displaying the virtual gift information in the live broadcast room interface includes: According to the virtual gift information, a pop-up window is loaded in the live broadcast room interface, and the virtual gift information is displayed in the pop-up window; wherein the pop-up window includes a control, and the control is used to jump to a gameplay page for presenting virtual gift acquisition; In response to the audience user's triggering operation on the control, jump from the current live broadcast room interface to the gameplay page.
7. An interactive device based on live broadcast room gift special effects, characterized in that: include: A display area acquisition module is used to respond to a display instruction of a virtual gift special effect in a live broadcast room, acquire a first display area when the virtual gift special effect is displayed in the live broadcast room interface, and display the virtual gift special effect in the first display area; wherein the first display area is a playback area of a virtual gift special effect player, and when the virtual gift special effect is displayed in the first display area, a part of the first display area is transparently displayed because no special effect is drawn, forming a transparent area, and the transparent area is composed of transparent pixels; the virtual gift special effect is a dynamic virtual gift special effect, and the size of the virtual gift special effect is irregular and changes dynamically; A trigger position acquisition module, configured to acquire a trigger position corresponding to a trigger operation in response to a trigger operation occurring in the first display area; A virtual gift identifier acquisition module is used to acquire a virtual gift identifier corresponding to the virtual gift special effect when the trigger position meets the preset conditions; wherein, a trigger area is generated with the trigger position as the center according to a preset width and height; an overlapping area between the trigger area and the first display area is determined; and pixel points within the overlapping area are traversed, and if the number of transparent pixel points in the pixel points is less than a preset threshold, it is determined that the trigger position meets the preset conditions; A virtual gift information display module is used to display the corresponding virtual gift information in the live broadcast room interface according to the virtual gift identifier; wherein the virtual gift information includes interactive information of the virtual gift and / or attribute information of the virtual gift, the interactive information of the virtual gift is used to receive interactive instructions to obtain the virtual gift, and the attribute information of the virtual gift includes one or more of the virtual gift name, the virtual gift icon and the virtual gift value.
8. A computer device comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Live streaming-based interactive method and system
US12574576B1
