Virtual gift giving method, system, device, equipment and storage medium
By using sliding events to obtain sliding track information in online live broadcasts and generating second virtual gift gift information, the problem of cumbersome virtual gift gift gift process is solved, and the live broadcast interactive experience and user participation is improved.
Patent Information
- Application Number
- CN202111405427.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The virtual gift gift process in existing live broadcasts is cumbersome, which affects the enthusiasm of the audience and the anchor to interact.
The viewer side obtains the sliding track information in response to the sliding event and sends the relevant data to the server side. The server generates the second virtual gift gift information according to the preset virtual gift response gift rules and returns it to the audience side. The viewer side gives the second virtual gift to the user corresponding to the user ID of the given object based on the information.
The virtual gift gift process has been simplified, the live interactive experience and user participation have been improved, and the interaction between the audience and the anchor has been enhanced.
Smart Images

Figure CN114025194B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network live broadcast technology, and in particular to a virtual gift giving method, system, device, equipment and storage medium. Background Art
[0002] With the advancement of network communication technology, live streaming has become a new form of online interaction. It is also loved by more and more audiences because of its real-time and interactive features.
[0003] Currently, when viewers send virtual gifts to anchors, they often need to complete a series of operations such as selecting the virtual gifts to be sent, entering the gift quantity, and clicking to confirm the gift before the virtual gifts are sent. This operation is inconvenient and affects the enthusiasm of viewers to interact with the anchors. Summary of the invention
[0004] Based on this, the purpose of this application is to provide a virtual gift giving method, system, device, equipment and storage medium, and to propose a virtual gift giving method that can improve the live broadcast interactive experience and user participation.
[0005] According to a first aspect of an embodiment of the present application, a virtual gift giving method is provided, the virtual gift giving method comprising:
[0006] The audience end responds to the sliding event of the first virtual gift giving information issued in the live broadcast room, obtains the sliding track information corresponding to the sliding event, and sends the first virtual gift identifier corresponding to the first virtual gift giving information, the user identifier of the gift recipient, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end;
[0007] The server side obtains the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, generates the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift recipient user identifier, the first gift quantity and the user identifier corresponding to the audience side, and sends it to the audience side; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0008] The audience terminal presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information.
[0009] According to a second aspect of an embodiment of the present application, a virtual gift giving system is provided, including a server end and a viewer end;
[0010] The audience end, in response to a sliding event of the first virtual gift giving information issued in the live broadcast room, obtains sliding track information corresponding to the sliding event, and sends the first virtual gift identifier, the gift recipient user identifier, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end;
[0011] The server side obtains the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, generates the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience side, and sends it to the audience side; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0012] The audience terminal presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information.
[0013] According to a third aspect of an embodiment of the present application, a virtual gift giving device is provided, the device comprising:
[0014] A sliding track information acquisition module is used to respond to a sliding event of the first virtual gift giving information issued in the live broadcast room, obtain the sliding track information corresponding to the sliding event, and send the first virtual gift identifier corresponding to the first virtual gift giving information, the user identifier of the gift recipient, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end;
[0015] The gift information acquisition module is used to acquire the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, and generate the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience end, and send it to the audience end; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0016] The gifting module is used to give the second virtual gift to the user corresponding to the gift object user identifier according to the second virtual gift giving information.
[0017] According to a fourth aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing any one of the virtual gift giving methods described.
[0018] According to a fifth aspect of an embodiment of the present application, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any one of the virtual gift giving methods described is implemented.
[0019] In the present application, the audience side responds to the sliding event of the first virtual gift giving information issued in the live broadcast room, obtains the sliding track information corresponding to the sliding event, and the server side obtains the response giving rule corresponding to the sliding track information according to the preset virtual gift response giving rule, and generates the second virtual gift giving information and sends it to the audience side according to the response giving rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience side. The audience side can follow the first virtual gift giving information and quickly give the second virtual gift to the user corresponding to the gift object user identifier, thereby simplifying the gift giving process and improving the gift giving efficiency and interactive experience.
[0020] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0021] For better understanding and implementation, the present application is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of an application environment of a virtual gift giving method provided by an embodiment of the present application;
[0023] Figure 2 A flowchart of a method for giving a virtual gift provided in one embodiment of the present application;
[0024] Figure 3 An example diagram of a live broadcast room display interface provided by one embodiment of the present application;
[0025] Figure 4 An example diagram of a live broadcast room display interface provided by another embodiment of the present application;
[0026] Figure 5 An example diagram of a live broadcast room display interface provided by another embodiment of the present application;
[0027] Figure 6 A schematic diagram of the structure of a virtual gift giving device provided in one embodiment of the present application;
[0028] Figure 7 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0030] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0031] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0032] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said", and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination". In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0033] See also Figure 1 , Figure 1 The present invention provides a schematic diagram of an application scenario of a virtual gift giving method according to an embodiment of the present invention, wherein the application scenario includes a host terminal 20, a server terminal 10, and an audience terminal 30 provided in the present invention. The host terminal 20 and the audience terminal 30 interact with each other through the server terminal 10.
[0034] The host end 20 refers to an end for sending live network video, which is usually the audience end used by the host in live network broadcast.
[0035] The audience end 30 refers to an end for receiving and watching live network video, and is generally the audience end used by viewers who watch videos in live network broadcasts.
[0036] The hardware pointed to by the host terminal 20 and the audience terminal 30 is essentially a computer device, specifically, Figure 1 As shown, it can be a computer device of the type of a smart phone, a smart interactive tablet, a personal computer, etc. The host terminal 20 and the audience terminal 30 can both access the Internet through a known network access method and establish a data communication link with the server terminal 10.
[0037] The server end 10 is a service server, which can be responsible for further connecting related audio data servers, video streaming 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 terminal 20 and the audience terminal 30 shown in FIG. 1 provide services.
[0038] The audience terminal 30 responds to the sliding event of the first virtual gift giving information issued in the live broadcast room, obtains the sliding track information corresponding to the sliding event, and sends the first virtual gift identifier, the gift recipient user identifier, the first gift quantity, the sliding track information and the user identifier corresponding to the audience terminal to the server terminal 10;
[0039] The server 10 obtains the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, generates the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience end, and sends it to the audience end; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0040] The audience terminal 30 presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information.
[0041] Embodiment 1:
[0042] A virtual gift giving method provided in an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0043] See also Figure 2 The present application embodiment provides a virtual gift giving method, comprising the following steps:
[0044] S101: In response to a sliding event of first virtual gift giving information issued in a live broadcast room, the audience end obtains sliding track information corresponding to the sliding event, and sends a first virtual gift identifier, a gift recipient user identifier, a first gift quantity, the sliding track information, and a user identifier corresponding to the first virtual gift giving information to the server end;
[0045] The first virtual gift giving information may be the flow information displayed in the live broadcast room after the viewer end in the live broadcast room gives the first virtual gift to the anchor end. It should be noted that the viewer end in the live broadcast room includes all viewer ends in the live broadcast room, including the current viewer end and other viewer ends in the live broadcast room.
[0046] Specifically, the first virtual gift giving information may include a first virtual gift identifier, a gift recipient user identifier, and a first gift quantity. The first virtual gift identifier may be used to determine a specific virtual gift. Specifically, the first virtual gift identifier may be the uid of the first virtual gift. The gift recipient user identifier may be used to determine a specific gift recipient. The gift recipient user identifier may include at least one gift recipient uid. The gift recipient may be an anchor or host in a live broadcast room.
[0047] A sliding event may be a touch event in which one or more fingers of a user slide on a device with a touch function, in which case the sliding track information may be the touch track of one or more fingers of the user sliding on the device with a touch function. Alternatively, a sliding event may be an operation event in which a user slides on a display device using an interactive device, and the sliding track information may be the sliding track of the interactive device or the cursor of the interactive device on the display device; wherein the sliding track information may include information such as the sliding direction and distance. A device with a touch function may be a touch screen, a mobile phone, or other device, and an interactive device may be a mouse, a laser pen, or the like.
[0048] In the embodiment of the present application, the sliding event is an operation event in which a user uses a terminal connected to a display to press a mouse and then slide the mouse, and the sliding track information is the sliding track of the mouse cursor on the display. Specifically, the sliding track information includes sliding direction information;
[0049] The step of obtaining sliding track information corresponding to the sliding event in response to the sliding event of the first virtual gift giving information issued in the live broadcast room comprises:
[0050] The audience responds to the long press event of the first virtual gift giving information sent in the live broadcast room, and if the duration of the long press event reaches a preset time length, the audience obtains the initial position point and the end position point of the long press event within the preset time interval;
[0051] Sliding direction information is acquired according to the initial position point and the end position point.
[0052] When the audience detects that the mouse cursor moves to the location of the first virtual gift giving information and the mouse is pressed, the time the mouse is pressed begins to be calculated. At this time, the time the mouse is pressed is the duration of the long press event. When the time the mouse is pressed reaches the preset duration, it is considered that a sliding event for the first virtual gift giving information is triggered. The preset duration can be set according to actual needs, for example, it can be set to 500ms. Preferably, in an embodiment of the present application, a countdown component can be set to determine whether the duration of the long press event reaches the preset duration, wherein the countdown duration is the preset duration. When it is detected that the mouse is pressed, the countdown component is triggered to count down. When it is detected that the remaining countdown time of the countdown component is 0, it is determined that the duration of the long press event reaches the preset duration.
[0053] The initial position point of the long press event can be the position information after the duration of the long press event reaches the preset duration. When the countdown component is used to determine whether the duration of the long press event reaches the preset duration, the initial position point of the long press event can be the position of the mouse cursor when the remaining countdown time of the countdown component is 0.
[0054] The end point of the long press event may be the position where the user's finger or the cursor of the interactive device is located when the long press event ends.
[0055] According to the position movement of the initial position point and the end position point, the sliding direction of the audience end on the live broadcast room screen is determined to obtain the sliding direction information.
[0056] Specifically, a coordinate system can be established with the display interface of the display device as a plane, the horizontal direction as the X-axis, and the direction perpendicular to the ground as the Y-axis, and the coordinate information (x1, y1) and (x2, y2) of the initial position point and the end position point in the coordinate system are obtained. According to the coordinate information of the initial position point and the end position point in the coordinate system, the sliding direction of the audience end on the live broadcast room screen is obtained; the sliding direction includes sliding up, sliding down, sliding to the left, and sliding to the right;
[0057] If y1=y2, x1>x2, the sliding direction is to the left; if y1=y2, x1<x2, the sliding direction is to the right.
[0058] If x1=x2, y1>y2, the sliding direction is downward sliding; if x1=x2, y1<y2, the sliding direction is upward sliding;
[0059] If y1≠y2, x1≠x2, let diffx=x1-x2, diffy=y1-y2;
[0060] If |diffx|>|diffy|, it is considered as left-right sliding; if x1>x2, the sliding direction is sliding to the left, and if x1<x2, the sliding direction is sliding to the right;
[0061] If |diffx|<|diffy|, it is considered to be sliding upward or downward; if y1>y2, the sliding direction is sliding downward; if y1<y2, the sliding direction is sliding upward.
[0062] S102: The server side obtains the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, generates second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift recipient user identifier, the gift quantity and the user identifier corresponding to the audience side, and sends the second virtual gift gift information to the audience side; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0063] The virtual gift response giving rules are used to obtain the second virtual gift identifier and the second gift quantity based on the first virtual gift identifier sent by the audience, the user identifier of the gift recipient, the gift quantity and the user identifier corresponding to the audience, and generate the second virtual gift giving information, so that the audience can give a virtual gift to the user corresponding to the user identifier of the gift recipient according to the second virtual gift giving information.
[0064] The second virtual gift identifier and the second gift quantity determined according to the response gift rule and the first virtual gift identifier, the gift recipient user identifier, the first gift quantity and the user identifier corresponding to the audience end can be the same as the first virtual gift identifier and the first gift quantity, or can be partially the same, for example, the second virtual gift identifier is the same as the first virtual gift identifier, and the second gift quantity is different from the first gift quantity, or the second virtual gift identifier is different from the first virtual gift identifier, and the second gift quantity is the same as the first gift quantity; or, it can also be completely different, that is, the second virtual gift identifier is different from the first virtual gift identifier, and the second gift quantity is different from the first gift quantity. The second virtual gift giving information can be generated according to the virtual gift response gift rules specifically set by the user, and the corresponding second virtual gift giving information is generated according to the corresponding virtual gift response gift rules.
[0065] S103: The audience terminal presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information.
[0066] The user ID of the recipient of the gift is used to determine the user who receives the second virtual gift. In the embodiment of the present application, the user who receives the second virtual gift is the same as the user who receives the first virtual gift. The second virtual gift information is generated on the server side according to the sliding track information of the first virtual gift information sent in the live broadcast room by the audience side. The audience side gives the second virtual gift to the user corresponding to the user ID of the recipient of the gift according to the second virtual gift information, thereby simplifying the gift giving steps and improving the efficiency and enthusiasm of gift giving.
[0067] After presenting a corresponding number of second virtual gifts to the corresponding anchor terminal, the following steps are also included:
[0068] The audience terminal displays a special gift effect of presenting the second virtual gift.
[0069] The audience end can generate a gift effect for giving the second virtual gift based on the gift effect data stored locally or in the cloud, so as to improve the user's live interactive experience and increase audience stickiness. The gift effect data may include one or more elements such as video data, animation data, music data, text data, and picture data.
[0070] like Figure 3-4 As shown, it is an example diagram of the display interface of a live broadcast room in an embodiment. In this embodiment, the first virtual gift identifier is the same as the second virtual gift identifier; the second gift quantity is determined by the server side according to the sliding direction information of the audience side.
[0071] Specifically, the server generates the second virtual gift giving information according to the response giving rule and the first virtual gift identifier, the user identifier of the gift recipient, the gift quantity, and the user identifier corresponding to the viewer, including:
[0072] According to the sliding direction information, determining the sliding direction of the viewer end on the live broadcast room screen; wherein the sliding direction includes sliding upward, sliding downward, sliding left and sliding right;
[0073] If the sliding direction of the audience end on the live broadcast room screen is to the left or to the right, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is to the left or to the right, and the second virtual gift gift information is generated;
[0074] or,
[0075] If the audience slides upward or downward on the live broadcast room screen, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is upward or downward, and the second virtual gift gift information is generated.
[0076] The user can set the second gift quantity to be determined according to the left-right sliding direction or the up-down direction according to actual needs.
[0077] If the second gift quantity is determined based on the left or right swiping direction, you can set it to increase the second gift quantity when swiping left, decrease the second gift quantity when swiping right, or make the second gift quantity the same as the first gift quantity; or, conversely, set it to decrease the second gift quantity when swiping left, or make the second gift quantity the same as the first gift quantity, and increase the second gift quantity when swiping right.
[0078] Specifically, in the embodiment of the present application, according to whether the sliding direction is sliding to the left or sliding to the right, the step of determining the second gift quantity includes:
[0079] If the sliding direction is sliding to the left, the second gift quantity is set to be the same as the first gift quantity;
[0080] If the sliding direction is rightward, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity;
[0081] or,
[0082] If the sliding direction is sliding to the left, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity;
[0083] If the sliding direction is rightward, the second gift quantity is set to be the same as the first gift quantity;
[0084] If the second gift quantity is determined based on the up and down sliding direction, you can set it to increase the second gift quantity when sliding up, decrease the second gift quantity when sliding down, or the second gift quantity is the same as the first gift quantity; or, conversely, set it to decrease the second gift quantity when sliding up or the second gift quantity is the same as the first gift quantity, and increase the second gift quantity when sliding down.
[0085] Specifically, according to whether the sliding direction is upward sliding or downward sliding, the step of determining the second gift quantity includes:
[0086] If the sliding direction is upward sliding, the second gift quantity is made the same as the first gift quantity;
[0087] If the sliding direction is downward sliding, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity;
[0088] or,
[0089] If the sliding direction is upward sliding, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity;
[0090] If the sliding direction is downward sliding, the second gift quantity is made the same as the first gift quantity.
[0091] The increase value of the second gift quantity can be set to a natural number greater than 1 according to the actual needs of the user, for example, it can be set to 1.
[0092] like Figure 3 As shown, when user B long presses the first virtual gift giving information 401 in the live broadcast room and slides to the left, the second virtual gift giving information is generated with the same first virtual gift identifier, gift recipient user identifier, and first gift quantity as the first virtual gift information 401.
[0093] After user B sends one flower to user a corresponding to the user ID of the gift recipient, the display interface of the live broadcast room displays the second virtual gift gift information 402 including the user ID "user B" corresponding to the audience end, the user ID "user a" of the gift recipient, the second virtual gift dynamic image and the gift serial number "1". The gift serial number can be determined by the second gift quantity.
[0094] like Figure 4 As shown, when user C long presses the first virtual gift giving information 401 in the live broadcast room and slides to the right, the second virtual gift giving information is generated with the same first virtual gift identifier and gift recipient user identifier as the first virtual gift information 401, wherein the second gift quantity is obtained by adding 1 to the first gift quantity.
[0095] After user C sends two flowers to user a, the display interface of the live broadcast room displays the second virtual gift giving information including the user ID "user C" corresponding to the audience, the user ID of the gift recipient "user a", the second virtual gift ID and the second gift quantity.
[0096] It should be noted that, in the embodiment of the present application, every time a flower is given, the display interface of the live broadcast room will display the second virtual gift giving information including the user identification "user B" corresponding to the audience, the user identification "user a" of the gift recipient, the second virtual gift dynamic image and the gift serial number.
[0097] In this application, user C sends two flowers to user a, and the display interface of the live broadcast room generates and displays the second virtual gift information 403 including the user ID "user C" corresponding to the audience end, the user ID "user a" of the gift recipient, the second virtual gift dynamic image and the gift serial number "1", and the second virtual gift information 404 including the user ID "user B" corresponding to the audience end, the user ID "user a" of the gift recipient, the second virtual gift dynamic image and the gift serial number "2". According to the gift serial number, it can be determined that user C sent two flowers to user a.
[0098] When interacting in the live broadcast room, users can send negative gifts to the anchor to express their dissatisfaction. After receiving the negative gifts, the anchor's charm value will be reduced. Other users in the live broadcast room can send positive gifts to the anchor to keep the anchor's charm value unaffected. However, in the prior art, users are often required to select virtual gifts and enter the gift quantity before sending virtual gifts. Especially when the live broadcast room is in a PK activity, the failure to offset the negative impact of negative gifts in time may affect the rating of the live broadcast room, resulting in PK failure and affecting the audience's interactive experience.
[0099] In view of the above problems, the present application proposes a virtual gift giving method for quickly sending a counter gift, such as Figure 5 As shown, it is a schematic diagram of the display interface of a live broadcast room in an embodiment. In this embodiment, the second virtual gift identifier and the second gift quantity are determined by the server according to the sliding direction information of the audience, the response gift rules and the first virtual gift identifier.
[0100] Specifically, the server generates the second virtual gift giving information according to the response giving rule and the first virtual gift identifier, the user identifier of the gift recipient, the gift quantity, and the user identifier corresponding to the viewer, including:
[0101] According to the sliding direction information, determining the sliding direction of the viewer end on the live broadcast room screen; wherein the sliding direction includes sliding upward, sliding downward, sliding left and sliding right;
[0102] If the sliding direction of the audience end on the live broadcast room screen is upward or downward, searching the preset virtual gift information table, obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generating the second virtual gift gift information;
[0103] Alternatively, if the viewer slides left or right on the live broadcast room screen, the preset virtual gift information table is searched to obtain the second virtual gift and the second gift quantity corresponding to the first virtual gift, and the second virtual gift gift information is generated.
[0104] The virtual gift information table is used to obtain the second virtual gift. The gift attributes of each virtual gift in the virtual gift information table include bonus attributes and effect values; wherein the bonus attributes refer to attributes such as experience or charm that will be increased or decreased for the user who receives the virtual gift; the bonus attributes include two opposite bonus attributes, increase and decrease, and the effect value refers to the increased or decreased experience value or charm value, which includes a specific numerical value. The gift attributes of the virtual gift can be obtained by reading the information of the virtual gift in the virtual gift database.
[0105] As shown in Table 1 below, the preset virtual gift information table includes a number of first virtual gift identifiers giftId, bonus attributes giftProperty, effect values giftValue of a single first virtual gift, and an opposing virtual gift identifier oppsiteId corresponding to each first virtual gift identifier;
[0106] The additional attribute of the counter-virtual gift corresponding to the counter-virtual gift identifier oppsiteId is opposite to the additional attribute of the first virtual gift corresponding to the first virtual gift identifier giftId;
[0107] Table 1 Virtual gift information table
[0108]
[0109] As shown in Table 1, the virtual gift "pill" with a virtual gift identifier of "1" has a counter virtual gift identifier of "2", that is, the counter virtual gift of the virtual gift "pill" is "bomb", and so on. The virtual gifts and their corresponding counter virtual gifts in Table 1 can be set according to the actual operational needs of the user, and are only shown here for example.
[0110] The step of searching a preset virtual gift information table to obtain a second virtual gift identifier and a second gift quantity corresponding to the first virtual gift identifier includes:
[0111] According to the first virtual gift identifier, obtaining the bonus attribute of the first virtual gift, the single first virtual gift effect value and the counter virtual gift identifier corresponding to the first virtual gift from the preset virtual gift information table;
[0112] Using the counter virtual gift identifier as the second virtual gift identifier, obtaining the effect value of a single second virtual gift;
[0113] The total effect value of the first virtual gift is obtained according to the first gift quantity and the single effect value of the first virtual gift, and the second gift quantity is obtained according to the total effect value of the first virtual gift and the single effect value of the second virtual gift.
[0114] Specifically, the second gift quantity is calculated in the following manner:
[0115]
[0116] Among them, giftCount2 is the second gift quantity, giftCount1 is the first gift quantity, giftValue1 is the effect value of a single first virtual gift, and giftValue2 is the effect value of a single second virtual gift.
[0117] In one embodiment, if the first virtual gift identifier is not in the preset virtual gift information table, then the second virtual gift is stopped from being presented to the user corresponding to the recipient user identifier.
[0118] In a preferred embodiment, the additional attribute of the virtual gift in the virtual gift information table corresponds to the sliding direction of the viewer terminal on the live broadcast room screen; wherein each additional attribute corresponds to a sliding direction. Specifically, before the counter virtual gift identifier is used as the second virtual gift identifier, the following steps are also included:
[0119] If the sliding direction of the viewer on the live broadcast room screen corresponds to the bonus attribute of the first virtual gift, the counter virtual gift identifier is used as the second virtual gift identifier; otherwise, the second virtual gift is stopped from being given to the user corresponding to the gift recipient user identifier;
[0120] Among them, the sliding direction of the audience end on the live broadcast room screen can correspond to the additional attribute of the counter-virtual gift of the first virtual gift, that is, the sliding direction of the audience end on the live broadcast room screen and the additional attribute of the first virtual gift can be in an opposite corresponding relationship.
[0121] Specifically, if the bonus attribute of the virtual gift in the virtual gift information table corresponds to the upward or downward sliding direction of the audience end on the live broadcast room screen, it can be set that if the sliding direction of the audience end on the live broadcast room screen is upward, a positive virtual gift with an increased effect value is sent. That is, at this time, the bonus attribute of the counter-virtual gift corresponding to the first virtual gift is an increase of "1", and the bonus attribute of the first virtual gift is a decrease of "-1". At this time, if the bonus attribute of the first virtual gift corresponding to the first virtual gift in the first virtual gift giving information is an increase of "1", the counter-virtual gift with a bonus attribute of an increase of "1" cannot be obtained, and the second virtual gift is stopped from being given to the user corresponding to the gift object user identifier.
[0122] like Figure 5As shown, when user B long presses the first virtual gift giving information 406 in the live broadcast room and slides upwards, the first virtual gift giving information 406 includes "User A gives user a a rotten egg", and the server side searches the preset virtual gift information table to obtain that the counter-virtual gift for the rotten eggs is flowers, and the second gift quantity calculated according to the gift quantity of rotten eggs, the effect value of rotten eggs and the effect value of flowers is 2, and the second virtual gift giving information is generated.
[0123] In this application, user B sends two flowers to user a, and the display interface of the live broadcast room generates and displays the second virtual gift information 406 including the user ID "user B" corresponding to the audience end, the user ID "user a" of the gift recipient, the second virtual gift dynamic image and the gift serial number "1", and the second virtual gift information 407 including the user ID "user B" corresponding to the audience end, the user ID "user a" of the gift recipient, the second virtual gift dynamic image and the gift serial number "2". According to the gift serial number, it can be determined that user B sent two flowers to user a.
[0124] In another embodiment, the sliding direction of the viewer on the live broadcast room screen is upward or downward sliding, and the sliding direction of the viewer on the live broadcast room screen is left or right sliding, which respectively correspond to two different response gift rules. Specifically, the server generates the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift recipient user identifier, the gift quantity, and the user identifier corresponding to the viewer, including:
[0125] According to the sliding direction information, determining the sliding direction of the viewer end on the live broadcast room screen; wherein the sliding direction includes sliding upward, sliding downward, sliding left and sliding right;
[0126] If the sliding direction of the audience end on the live broadcast room screen is upward or downward, searching the preset virtual gift information table, obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generating the second virtual gift gift information;
[0127] If the sliding direction of the audience end on the live broadcast room screen is to the left or to the right, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is to the left or to the right, and the second virtual gift gift information is generated;
[0128] or,
[0129] If the sliding direction of the audience end on the live broadcast room screen is upward or downward, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is upward or downward, and the second virtual gift gift information is generated;
[0130] If the viewer slides to the left or right on the live broadcast room screen, the preset virtual gift information table is searched to obtain the second virtual gift and the second gift quantity corresponding to the first virtual gift identifier, and the second virtual gift gift information is generated.
[0131] In the embodiment of the present application, two different response and gifting rules are set for the two different sliding directions of up and down sliding and left and right sliding, so that the audience can send a second virtual gift with opposite bonus attributes of the first virtual gift when sliding up and down, thereby quickly offsetting the impact of the first virtual gift on the user receiving the gift, and improving the fun and user stickiness of the live interactive activities.
[0132] The two different response and gift rules set for the two different sliding directions of up and down sliding and left and right sliding in the embodiment of the present application are roughly the same as the response and gift rules of the above embodiment. For details not disclosed in this embodiment, please refer to the above embodiment of the present application, which will not be repeated here.
[0133] In an embodiment of the present application, the audience end responds to a sliding event of the first virtual gift giving information issued in the live broadcast room, obtains the sliding track information corresponding to the sliding event, and the server end obtains the response giving rule corresponding to the sliding track information according to the preset virtual gift response giving rule, and generates the second virtual gift giving information and sends it to the audience end according to the response giving rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience end. The audience end can follow the first virtual gift giving information and quickly give the second virtual gift to the user corresponding to the gift object user identifier, thereby simplifying the gift giving process and improving the gift giving efficiency and the user's interactive experience.
[0134] This embodiment also provides a virtual gift giving system, such as Figure 1 As shown, it includes a host end 20, a server end 10 and a viewer end 30. For details not disclosed in this embodiment, please refer to the method embodiment of the present application.
[0135] The audience end 30 responds to the sliding event of the first virtual gift giving information issued in the live broadcast room, obtains the sliding track information corresponding to the sliding event, and sends the first virtual gift identifier corresponding to the first virtual gift giving information, the user identifier of the gift recipient, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end;
[0136] The server 10 obtains the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, generates the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience end, and sends it to the audience end; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0137] The audience terminal 30 presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information.
[0138] This embodiment provides a virtual gift giving device, which can be used to execute the virtual gift giving method of the embodiment of the present application. For details not disclosed in this embodiment, please refer to the method embodiment of the present application.
[0139] See also Figure 6 , Figure 6 : is a structural diagram of a virtual gift giving device disclosed in an embodiment of the present application. The virtual gift giving device comprises:
[0140] The sliding track information acquisition module 501 is used to respond to the sliding event of the first virtual gift giving information issued in the live broadcast room, obtain the sliding track information corresponding to the sliding event, and send the first virtual gift identifier corresponding to the first virtual gift giving information, the user identifier of the gift recipient, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end;
[0141] The gift information acquisition module 502 is used to acquire the response gift rule corresponding to the sliding track information according to the preset virtual gift response gift rule, and generate the second virtual gift gift information according to the response gift rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience end, and send it to the audience end; wherein the second virtual gift gift information includes the second virtual gift identifier and the second gift quantity;
[0142] The giving module 503 is used to give the second virtual gift to the user corresponding to the giving target user identifier according to the second virtual gift giving information.
[0143] This embodiment provides an electronic device that can be used to execute all or part of the steps of the virtual gift giving method of Embodiment 1 of this application. For details not disclosed in this embodiment, please refer to Embodiment 1 of this application.
[0144] See also Figure 7 , Figure 7The electronic device 900 may be, but is not limited to, a combination of one or more of various servers, personal computers, laptops, smart phones, tablet computers, and the like.
[0145] In a preferred embodiment of the present application, the electronic device 900 includes a memory 901 , at least one processor 902 , at least one communication bus 903 and a transceiver 904 .
[0146] Those skilled in the art should understand that Figure 7 The structure of the electronic device shown does not constitute a limitation of the embodiments of the present application, and may be either a bus structure or a star structure. The electronic device 900 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.
[0147] In some embodiments, the electronic device 900 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 900 may also include client devices, which include but are not limited to any electronic product that can interact with a client through a keyboard, mouse, remote control, touchpad, or voice-controlled device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0148] It should be noted that the electronic device 900 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0149] In some embodiments, the memory 901 stores a computer program, and when the computer program is executed by the at least one processor 902, all or part of the steps in the virtual gift giving method of the first embodiment are implemented. The memory 901 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0150] In some embodiments, the at least one processor 902 is the control core (Control Unit) of the electronic device 900, and uses various interfaces and lines to connect the various components of the entire electronic device 900, and executes or executes the programs or modules stored in the memory 901, and calls the data stored in the memory 901 to execute various functions and process data of the electronic device 900. For example, when the at least one processor 902 executes the computer program stored in the memory, it implements all or part of the steps of the virtual gift giving method described in the embodiment of the present application; or implements all or part of the functions of the virtual gift giving device. The at least one processor 902 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors, and various control chips.
[0151] In some embodiments, the at least one communication bus 903 is configured to implement connection and communication between the memory 901 and the at least one processor 902, etc.
[0152] The electronic device 900 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0153] This embodiment provides a computer-readable storage medium on which a computer program is stored. The instructions are suitable for being loaded by a processor and executing the virtual gift giving method of the first embodiment of the present application. The specific execution process can be found in the specific description of the first embodiment and will not be repeated here.
[0154] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present application scheme. Ordinary technicians in this field can understand and implement it without paying creative work.
[0155] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0156] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0157] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for giving a virtual gift, characterized in that: The method comprises: The audience end responds to the sliding event of the first virtual gift giving information issued in the live broadcast room, obtains the sliding track information corresponding to the sliding event, and sends the first virtual gift identifier corresponding to the first virtual gift giving information, the user identifier of the gift recipient, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end; The server side obtains the response giving rule corresponding to the sliding track information according to the preset virtual gift response giving rule, generates the second virtual gift giving information according to the response giving rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience side, and sends it to the audience side; wherein, the second virtual gift giving information includes the second virtual gift identifier and the second gift quantity; the sliding track information includes sliding direction information; the second virtual gift identifier is determined according to the sliding direction information, the response giving rule and the first virtual gift identifier; the first virtual gift identifier is the same as the second virtual gift identifier; or, the first virtual gift identifier is different from the second virtual gift identifier, and the second virtual gift identifier is a counter-virtual gift identifier; the added attribute of the counter-virtual gift corresponding to the counter-virtual gift identifier is opposite to the added attribute of the first virtual gift corresponding to the first virtual gift identifier; The audience terminal presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information; The server generates second virtual gift giving information according to the response giving rule and the first virtual gift identifier, the user identifier of the gift recipient, the gift quantity, and the user identifier corresponding to the viewer, including: Determine the sliding direction of the viewer terminal on the live broadcast room screen according to the sliding direction information; According to the sliding direction of the audience on the live broadcast room screen, the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier are obtained, and the second virtual gift gift information is generated; the second virtual gift identifier has a corresponding relationship with the sliding direction of the audience on the live broadcast room screen.
2. The virtual gift giving method according to claim 1, characterized in that: The step of obtaining sliding track information corresponding to the sliding event in response to the sliding event of the first virtual gift giving information issued in the live broadcast room comprises: The audience responds to the long press event of the first virtual gift giving information sent in the live broadcast room, and if the duration of the long press event reaches a preset time length, the audience obtains the initial position point and the end position point of the long press event within the preset time interval; Sliding direction information is acquired according to the initial position point and the end position point.
3. The virtual gift giving method according to claim 1, characterized in that: The sliding direction includes sliding upward, sliding downward, sliding left and sliding right; according to the sliding direction of the viewer terminal on the live broadcast room screen, the steps of obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier and generating the second virtual gift gift information include: If the sliding direction of the audience end on the live broadcast room screen is to the left or to the right, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is to the left or to the right, and the second virtual gift gift information is generated; or, If the audience slides upward or downward on the live broadcast room screen, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is upward or downward, and the second virtual gift gift information is generated.
4. The virtual gift giving method according to claim 3, characterized in that: According to whether the sliding direction is sliding to the left or sliding to the right, the step of determining the second gift quantity includes: If the sliding direction is sliding to the left, the second gift quantity is made the same as the first gift quantity; If the sliding direction is rightward, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity; or, If the sliding direction is sliding to the left, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity; If the sliding direction is rightward, the second gift quantity is set to be the same as the first gift quantity; According to whether the sliding direction is upward sliding or downward sliding, the step of determining the second gift quantity includes: If the sliding direction is upward sliding, the second gift quantity is made the same as the first gift quantity; If the sliding direction is downward sliding, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity; or, If the sliding direction is upward sliding, the second gift quantity is increased according to a preset increase value, so that the second gift quantity is greater than the first gift quantity; If the sliding direction is downward sliding, the second gift quantity is made the same as the first gift quantity.
5. The virtual gift giving method according to claim 1, characterized in that: The sliding direction includes sliding upward, sliding downward, sliding left and sliding right; according to the sliding direction of the viewer end on the live broadcast room screen, obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generating the second virtual gift gift information includes: if the sliding direction of the viewer end on the live broadcast room screen is sliding upward or downward, searching the preset virtual gift information table, obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generating the second virtual gift gift information; Alternatively, if the viewer slides left or right on the live broadcast room screen, the preset virtual gift information table is searched to obtain the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and the second virtual gift gift information is generated.
6. The virtual gift giving method according to claim 5, characterized in that: The preset virtual gift information table includes a plurality of first virtual gift identifiers, bonus attributes, an effect value of a single first virtual gift, and a counter virtual gift identifier corresponding to each first virtual gift identifier; The step of searching a preset virtual gift information table to obtain a second virtual gift identifier and a second gift quantity corresponding to the first virtual gift identifier includes: According to the first virtual gift identifier, obtaining the bonus attribute of the first virtual gift, the single first virtual gift effect value and the counter virtual gift identifier corresponding to the first virtual gift from the preset virtual gift information table; Using the counter virtual gift identifier as the second virtual gift identifier, obtaining the effect value of a single second virtual gift; The total effect value of the first virtual gift is obtained according to the first gift quantity and the single effect value of the first virtual gift, and the second gift quantity is obtained according to the total effect value of the first virtual gift and the single effect value of the second virtual gift.
7. The virtual gift giving method according to claim 6, characterized in that: The additional attribute of the virtual gift in the virtual gift information table corresponds to the sliding direction of the viewer terminal on the live broadcast room screen; Before using the counter virtual gift identifier as the second virtual gift identifier, the method further includes the following steps: If the sliding direction of the audience on the live broadcast room screen corresponds to the bonus attribute of the first virtual gift, the counter-virtual gift identifier is used as the second virtual gift identifier; otherwise, the second virtual gift is stopped from being given to the user corresponding to the gift recipient user identifier.
8. The virtual gift giving method according to claim 1, characterized in that: The sliding direction includes sliding upward, sliding downward, sliding left and sliding right; according to the sliding direction of the viewer terminal on the live broadcast room screen, the steps of obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier and generating the second virtual gift gift information include: If the sliding direction of the audience end on the live broadcast room screen is upward or downward, searching the preset virtual gift information table, obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generating the second virtual gift gift information; If the sliding direction of the audience end on the live broadcast room screen is to the left or to the right, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is to the left or to the right, and the second virtual gift gift information is generated; or, If the sliding direction of the audience end on the live broadcast room screen is upward or downward, the second virtual gift identifier is made the same as the first virtual gift identifier, and the second gift quantity is determined according to whether the sliding direction is upward or downward, and the second virtual gift gift information is generated; If the audience slides to the left or right on the live broadcast room screen, the preset virtual gift information table is searched to obtain the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and the second virtual gift gift information is generated.
9. The method for giving a virtual gift according to any one of claims 1 to 8, characterized in that: After presenting a corresponding number of second virtual gifts to the corresponding anchor terminal, the following steps are also included: The audience terminal displays a gifting special effect of the second virtual gift.
10. A virtual gift giving system, comprising a server end and a viewer end, characterized in that: The audience end, in response to a sliding event of the first virtual gift giving information issued in the live broadcast room, obtains sliding track information corresponding to the sliding event, and sends the first virtual gift identifier, the gift recipient user identifier, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end; The server side obtains the response giving rule corresponding to the sliding trajectory information according to the preset virtual gift response giving rule, generates the second virtual gift giving information according to the response giving rule and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience side, and sends it to the audience side; wherein the second virtual gift giving information includes the second virtual gift identifier and the second gift quantity; the sliding trajectory information includes sliding direction information; the second virtual gift identifier is determined according to the sliding direction information, the response giving rule and the first virtual gift identifier; the first virtual gift identifier is the same as the second virtual gift identifier; or, the first virtual gift identifier is different from the second virtual gift identifier, and the first virtual gift identifier is different from the second virtual gift identifier. The second virtual gift identifier is a counter-virtual gift identifier; the added attribute of the counter-virtual gift corresponding to the counter-virtual gift identifier is opposite to the added attribute of the first virtual gift corresponding to the first virtual gift identifier; according to the response gift rule and the first virtual gift identifier, the gift recipient user identifier, the gift quantity, and the user identifier corresponding to the audience end, the second virtual gift gift information is generated, including: according to the sliding direction information, determining the sliding direction of the audience end on the live broadcast room screen; according to the sliding direction of the audience end on the live broadcast room screen, obtaining the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generating the second virtual gift gift information; the second virtual gift identifier has a corresponding relationship with the sliding direction of the audience end on the live broadcast room screen; The audience terminal presents the second virtual gift to the user corresponding to the gift recipient user identifier according to the second virtual gift presenting information.
11. A virtual gift giving device, characterized in that: The device comprises: A sliding track information acquisition module is used to respond to a sliding event of the first virtual gift giving information issued in the live broadcast room, obtain the sliding track information corresponding to the sliding event, and send the first virtual gift identifier corresponding to the first virtual gift giving information, the user identifier of the gift recipient, the first gift quantity, the sliding track information and the user identifier corresponding to the audience end to the server end; A gift information acquisition module, used to obtain the response gift rules corresponding to the sliding trajectory information according to the preset virtual gift response gift rules, and generate second virtual gift gift information according to the response gift rules and the first virtual gift identifier, the gift object user identifier, the first gift quantity and the user identifier corresponding to the audience end, and send it to the audience end; wherein the second virtual gift information includes the second virtual gift identifier and the second gift quantity; the sliding trajectory information includes sliding direction information; the second virtual gift identifier is determined according to the sliding direction information, the response gift rules and the first virtual gift identifier; the first virtual gift identifier is the same as the second virtual gift identifier; or The first virtual gift identifier is different from the second virtual gift identifier, and the second virtual gift identifier is an opposing virtual gift identifier; the additional attribute of the opposing virtual gift corresponding to the opposing virtual gift identifier is opposite to the additional attribute of the first virtual gift corresponding to the first virtual gift identifier; the gift information acquisition module is used to determine the sliding direction of the audience end on the live broadcast room screen according to the sliding direction information; according to the sliding direction of the audience end on the live broadcast room screen, obtain the second virtual gift identifier and the second gift quantity corresponding to the first virtual gift identifier, and generate the second virtual gift gift information; the second virtual gift identifier has a corresponding relationship with the sliding direction of the audience end on the live broadcast room screen; The gifting module is used to give the second virtual gift to the user corresponding to the gift object user identifier according to the second virtual gift giving information.
12. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the virtual gift giving method as described in any one of claims 1 to 9.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the virtual gift giving method as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Gift giving method and device, equipment and storage medium
CN112130945A