CN114268812A - Live broadcast room virtual resource presenting method and device, computer equipment and storage medium - Google Patents

Live broadcast room virtual resource presenting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114268812A
CN114268812A CN202111675431.4A CN202111675431A CN114268812A CN 114268812 A CN114268812 A CN 114268812A CN 202111675431 A CN202111675431 A CN 202111675431A CN 114268812 A CN114268812 A CN 114268812A
Authority
CN
China
Prior art keywords
virtual resource
replaceable
resource
client
live broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111675431.4A
Other languages
Chinese (zh)
Other versions
CN114268812B (en
Inventor
张保磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Cubesili Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cubesili Information Technology Co Ltd filed Critical Guangzhou Cubesili Information Technology Co Ltd
Priority to CN202111675431.4A priority Critical patent/CN114268812B/en
Publication of CN114268812A publication Critical patent/CN114268812A/en
Application granted granted Critical
Publication of CN114268812B publication Critical patent/CN114268812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to the technical field of network live broadcast, and provides a method and a device for presenting virtual resources in a live broadcast room, computer equipment and a storage medium, wherein the method comprises the following steps: a first client side joining a live broadcast room sends a virtual resource replacement presentation request to a server side; the server side matches and binds more than two first clients sending requests, and generates and sends replaceable virtual resource set data to each first client; displaying a replaceable virtual resource selection component in a live broadcast room interface, acquiring selection information of a replaceable resource image through the replaceable virtual resource selection component, generating a resource selection request and sending the resource selection request to a server; the server binds the user identifier corresponding to the first client with the corresponding replaceable virtual resource identifier, generates and sends replaceable virtual resource presentation data to the client joining the live broadcast room; and displaying the corresponding presentation effect in the live broadcast room interface. The application can improve the retention rate of audiences and enhance the interest of user interaction.

Description

Live broadcast room virtual resource presenting method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of network live broadcast, in particular to a live broadcast room virtual resource presentation method and device, computer equipment and a storage medium.
Background
With the rapid development of internet technology and streaming media technology, live webcasting is becoming an entertainment means that is becoming popular. More and more users are beginning to participate in the live process, experience multiple types of online interactions within the live room, such as: the user may be attracted by the live highlight content during the live broadcast watching process, and gifts are given to the main broadcast of the live broadcast room.
A common live broadcast room interaction method is presentation of virtual resources, for example, when an audience presents a virtual gift to a main broadcast, the audience can click a gift selection control in a live broadcast room interface, then select a virtual gift in a popped gift bar, and after clicking confirmation, the audience presents the virtual gift to the main broadcast. However, in the above process, after the audience selects the virtual gift, the virtual gift is given to the anchor, and the interaction only occurs between the audience and the anchor, and cannot attract other users to participate, so that the participation enthusiasm of other users on the interaction of the live broadcast room is influenced, and the audience retention rate of the live broadcast room is further influenced.
Disclosure of Invention
The embodiment of the application provides a method, a device, computer equipment and a storage medium for presenting virtual resources in a live broadcast room, which can improve the interactive experience of a user in the live broadcast room, improve the participation and retention rate of audiences, enhance the unknown and interesting of gift presentation, and have the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for presenting virtual resources in a live broadcast room, including:
a first client side joining a live broadcast room sends a virtual resource replacement presentation request to a server side, wherein the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side for receiving virtual resources;
the server matches and binds more than two first clients which send the virtual resource replacement presentation requests, generates replaceable virtual resource set data used for virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients which are matched and bound, and sends the replaceable virtual resource set data to the first clients which are matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifications sent by each first client in matching binding;
each first client displays a replaceable virtual resource selection component in a live broadcast room interface according to the replaceable virtual resource set data; wherein, a plurality of replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
the first client side obtains selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server side, wherein the resource selection request comprises a user identifier corresponding to the first client side and a replaceable virtual resource identifier corresponding to the selected replaced resource image;
the server binds the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replaceable resource image according to the resource selection request sent by each first client, generates corresponding replaceable virtual resource presentation data, and sends the replaceable virtual resource presentation data to the clients joining the live broadcast room, wherein each replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving virtual resources;
and the client side added into the live broadcast room receives the replaceable virtual resource presentation data and displays the corresponding replaceable virtual resource presentation effect in the live broadcast room interface.
In a second aspect, an embodiment of the present application also provides a method for giving away virtual resources in a live broadcast room, including the steps of:
receiving a virtual resource replacement presentation request sent by a first client side joining a live broadcast room, wherein the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side receiving virtual resources;
matching and binding more than two first clients which send the virtual resource replacement presentation requests, generating replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients which are matched and bound, and sending the replaceable virtual resource set data to the first clients which are matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifications sent by each first client in matching binding; the replaceable virtual resource set data is used for enabling the first client to display a replaceable virtual resource selection component in a live broadcast room interface; a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component, and each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
receiving a resource selection request sent by each first client, wherein the resource selection request comprises a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to the selected replaceable resource image;
and binding the user identifier corresponding to the first client with the selected replaceable virtual resource identifier according to the resource selection request sent by each first client, generating corresponding replaceable virtual resource presentation data, and sending the replaceable virtual resource presentation data to the clients joining the live broadcast room, wherein each piece of replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving the virtual resources.
In a third aspect, an embodiment of the present application provides a device for presenting virtual resources in a live broadcast room, including:
the system comprises a replacement presentation request acquisition module, a replacement presentation request generation module and a presentation module, wherein the replacement presentation request acquisition module is used for receiving a virtual resource replacement presentation request sent by a first client side joining a live broadcast room, and the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side for receiving virtual resources;
a resource replacement set data control module, configured to match and bind more than two first clients that send the virtual resource replacement presentation requests, generate replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifier sent by each first client that is matched and bound, and send the replaceable virtual resource set data to each first client that is matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifications sent by each first client in matching binding; the replaceable virtual resource set data is used for enabling the first client to display a replaceable virtual resource selection component in a live broadcast room interface; a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component, and each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
a selection request obtaining module, configured to receive a resource selection request sent by each first client, where the resource selection request includes a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to a selected replaceable resource image;
and the donation data control module is used for binding the user identifier corresponding to the first client with the selected replaceable virtual resource identifier according to the resource selection request sent by each first client, generating corresponding replaceable virtual resource donation data and sending the data to the clients joining the live broadcast room, wherein each piece of replaceable virtual resource donation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier and a user identifier corresponding to a second client for receiving the virtual resources.
In a fourth aspect, embodiments of the present application provide 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 according to the first aspect or the second aspect when executing the computer program.
In a fifth aspect, the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of the method according to the first or second aspect.
According to the embodiment of the application, after the first client side joining the live broadcast room sends the virtual resource replacement presentation request, the server side responds to the request of the first client side, the first client side sending the virtual resource replacement presentation request is matched, the first client sides which are successfully matched can mutually replace the virtual resources to present, and finally, the replaced virtual resources are respectively sent out. The virtual resource replacement presentation method can improve the interactive experience of the user in the live broadcast room and improve the participation degree and the retention rate of audiences.
For a better understanding and implementation, the technical solutions of the present application are described in detail below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic view of an application scenario of a method for presenting virtual resources in a live broadcast room according to an embodiment of the present application;
FIG. 2 is a schematic view of a live broadcast room interface in a scenario of virtual resource donation in a general live broadcast room;
fig. 3 is a schematic flowchart of a method for giving away virtual resources in a live broadcast room according to a first embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a display of a replaceable virtual resource list in a live broadcast room interface according to a first embodiment of the present application;
fig. 5 is a schematic display diagram of a payment page provided in the first embodiment of the present application in a live broadcast room interface;
fig. 6 and fig. 7 are schematic display diagrams of a replaceable virtual resource selection component provided in the first embodiment of the present application in a live broadcast room interface;
fig. 8 is a partial flowchart of a method for gifting virtual resources in a live broadcast room according to a first embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a display of countdown prompting information in a live broadcast interface of another replaceable virtual resource selecting component according to the first embodiment of the present application;
fig. 10 is a flowchart illustrating another part of a method for gifting virtual resources in a live broadcast room according to the first embodiment of the present application;
FIG. 11 is a schematic diagram of another display of a replaceable virtual resource selection component in a live broadcast room interface according to the first embodiment of the present application;
fig. 12 is a partial flowchart of a method for gifting virtual resources in a live broadcast room according to a second embodiment of the present application;
FIG. 13 is a schematic view of a display of a virtual resource gifting component in a live view interface provided by the second embodiment of the present application;
fig. 14 is a schematic view of a display of a common virtual resource list in a live broadcast interface according to a second embodiment of the present application;
fig. 15 is a flowchart illustrating a method for gifting virtual resources in a live broadcast room according to a third embodiment of the present application;
fig. 16 is a schematic structural diagram of a live broadcast room virtual resource gifting device according to a fourth embodiment of the present application;
fig. 17 is a schematic structural diagram of a computer device according to a fifth embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As will be appreciated by those skilled in the art, the terms "client," "terminal device," and "terminal device" as used herein include both wireless signal receiver devices, which include only wireless signal receiver devices without transmit capability, and receiving and transmitting hardware devices, which include receiving and transmitting hardware devices capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (personal communications Service), which may combine voice, data processing, facsimile and/or data communications capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global positioning system) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. is essentially a computer device with the performance of a personal computer, and is a hardware device having necessary components disclosed by the von neumann principle of a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, etc., wherein a computer program is stored in the memory, and the central processing unit calls a program stored in an external memory into the internal memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing a specific function.
It should be noted that the concept of "server" in the present application can also be extended to the case of server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be invoked through an interface, or may be integrated into a physical computer or a set of computer clusters. Those skilled in the art will appreciate this variation and should not be so limited as to restrict the implementation of the network deployment of the present application.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a live broadcast virtual resource donation method according to an embodiment of the present application, where the application scenario includes a first client 101, a server 102, and a second client 103, and the first client 101 and the second client 103 interact with each other through the server 102.
The first client 101 is an end that presents virtual resources, and may be a client used by an audience who watches a video in live webcasting (i.e., a live audience user), or a client used by a main webcasting in live webcasting (i.e., a live main webcasting user).
The second client 103 is an end that receives a virtual resource, and is generally a client used by a host (i.e., a live host user) in live webcasting.
The hardware to which the first client 101 and the second client 103 are directed essentially refers to a computer device, which may be, in particular, a computer device of the type of a smartphone, a smart interactive tablet, a personal computer, and the like, as shown in fig. 1. The first client 101 and the second client 103 can both access the internet through a known network access manner, and establish a data communication link with the server 102.
The server 102 is a business server, and may be responsible for further connecting with related audio data servers, video streaming servers, and other servers providing related support, so as to form a logically associated server cluster to provide services for related terminal devices, such as the first client 101 and the second client 103 shown in fig. 1.
In this embodiment of the application, the first client 101 and the second client 103 may join the same live broadcast room (i.e., a live broadcast channel), where the live broadcast room is a chat room implemented by means of an internet technology, and generally has an audio/video broadcast control function. The anchor user carries out live broadcast in the live broadcast room through the live broadcast client, and audiences of the audience client can log in the server 102 to enter the live broadcast room to watch the live broadcast.
In a live broadcast room, interaction between a main broadcast and audiences can be realized through known online interaction modes such as voice, video, text and the like, generally, a main broadcast user shows programs for the audiences in a form of shooting and providing audio and video streams, and resource interaction behaviors can also be generated in the interaction process, for example: the audience may be attracted by the highlight of the live broadcast during the live broadcast, and present virtual resources, such as virtual gifts, to the main broadcast of the live broadcast room.
Specifically, the viewer watches live broadcast as follows: the method comprises the steps that a spectator can click and access a live broadcast application program installed on a spectator client, and select to enter any one live broadcast room, the spectator client is triggered to load a live broadcast room interface for the spectator, a plurality of interaction components are arranged in the live broadcast room interface, the spectator can watch live broadcast in the live broadcast room by loading the interaction components, and various online interactions are carried out.
In the interaction process of presenting virtual gifts to a main broadcast by audiences, the audiences select the virtual gifts to be presented from a gift backpack on a live broadcast room interface, a server receives presentation requests of audience client sides and corresponding user identifications and gift identifications, issues the user identifications and the gift identifications to the client sides which are added into the live broadcast room, and displays gift user information and corresponding gift effects on the client sides of the live broadcast room.
Referring to fig. 2, fig. 2 is a schematic view of a live broadcast interface in a general virtual resource presentation scenario. The live air interface shown in fig. 2 includes a virtual resource gifting component 20, and the virtual resource gifting component 20 includes a virtual resource list 21, a quantity selection control 22, and a confirmation selection control 23. When a user wants to present a virtual gift to the anchor, the user may click on the icon of the virtual resource presenting component 20 in the live interface, select a virtual gift from the popped-up virtual resource list 21, click on the quantity selection control 22 to determine the number of the presented virtual gifts, and finally click on the confirmation selection control 23 to present the virtual gift to the anchor.
In the virtual gift presenting process, after the user selects the virtual gift, the virtual gift is presented to the anchor broadcast immediately, interaction only occurs between the user and the anchor broadcast, and other users cannot be attracted to participate, so that the participation enthusiasm of other users on interaction of the live broadcast room is influenced, and the audience retention rate of the live broadcast room is further influenced.
Example 1
Based on the above, the embodiment of the application provides a method for presenting virtual resources in a live broadcast room. Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for gifting virtual resources in a live broadcast room according to a first embodiment of the present application, where the method includes the following steps:
s101: a first client side joining a live broadcast room sends a virtual resource replacement presentation request to a server side, wherein the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side for receiving virtual resources.
S102: the server matches and binds more than two first clients which send the virtual resource replacement presentation requests, generates replaceable virtual resource set data used for virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients which are matched and bound, and sends the replaceable virtual resource set data to the first clients which are matched and bound; wherein the replaceable virtual resource set data at least comprises replaceable virtual resource identifications sent by each first client which are matched and bound.
S103: each first client displays a replaceable virtual resource selection component in a live broadcast room interface according to the replaceable virtual resource set data; wherein, a plurality of replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data.
S104: the first client side obtains the selection information of the replaceable resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server side, wherein the resource selection request comprises the user identification corresponding to the first client side, the replaceable virtual resource identification corresponding to the selected replaceable resource image and the user identification corresponding to the second client side for receiving the virtual resources.
S105: and the server binds the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replaceable resource image according to the resource selection request sent by each first client, generates corresponding replaceable virtual resource presentation data, and sends the replaceable virtual resource presentation data to the clients joining the live broadcast room, wherein each replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving the virtual resources.
S106: and the client side added into the live broadcast room receives the replaceable virtual resource presentation data and displays the corresponding replaceable virtual resource presentation effect in the live broadcast room interface.
In this embodiment, the live broadcast virtual resource donation method is described from two execution subjects, i.e., the client and the server. The following will describe in detail steps S101 to S106.
In step S101, a first client joining a live broadcast room issues a virtual resource replacement donation request to a server.
And the first client joining the live broadcast room is a client adopted by a user entering the current live broadcast room. The user may be a viewer user entering a live room or may be another anchor user entering the live room.
The virtual resource replacement presentation request comprises a user identifier corresponding to the first client, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client for receiving the virtual resources. And the second client is a client adopted by the anchor of the current live broadcast room.
The user identifier corresponding to the first client may be an Identity Document (ID) of the live broadcast user, or an equipment ID of the live broadcast user, or a communication identifier corresponding to the equipment ID.
The replaceable virtual resource identifier may be a mark in a replaceable virtual resource attribute field, a self-defined replaceable virtual resource number, or the like.
The user identifier corresponding to the second client for receiving the virtual resource may be a user ID logged in by the live broadcast anchor, or an equipment ID of the live broadcast anchor, or a communication identifier corresponding thereto.
Please refer to fig. 4, which is a schematic diagram illustrating a display of a replaceable virtual resource list in a live broadcast interface according to the present embodiment. After entering a live broadcast room, a user selects replaceable virtual resources 401 which are to be replaced and given from a replaceable virtual resource list 40; the first client corresponding to the user acquires a field "a" from the virtual resource name corresponding to the replaceable virtual resource 401 as a replaceable virtual resource identifier, acquires a user ID "2345678" from the user ID402 as a user identifier corresponding to the first client, and acquires an anchor ID "1234567" from the anchor ID402 as a user identifier corresponding to the second client, respectively; and then, the first client generates a virtual resource replacement presentation request according to the acquired user identifier corresponding to the first client, the replaceable virtual resource identifier and the user identifier corresponding to the second client, and the virtual resource replacement presentation request is sent.
In another optional embodiment, before the first client joining the live broadcast room sends out the virtual resource replacement donation request to the server, the method further includes the following steps:
the first client side judges whether the balance of the user is sufficient according to the replaceable virtual resources selected by the user, if the balance of the user meets the total value of the replaceable virtual resources selected by the user, payment is directly carried out, and a virtual resource replacement presentation request is sent to the server side after the payment is successful; and if the balance of the user is less than the total value of the replaceable virtual resource selected by the user, jumping to a payment page, automatically calling a locking replaceable virtual resource presentation interface after successful payment, and sending a virtual resource replacement presentation request to the server.
Specifically, referring to fig. 4 and 5, the user selects a replaceable virtual resource that is desired to be donated from the list of replaceable virtual resources 40, and clicks on the quantity selection control 404 to determine the donation quantity of the replaceable virtual resource. Then after the user clicks the confirmation selection control 405, the first client corresponding to the user judges whether the current balance of the user is sufficient, if the balance of the user meets the total value of the replaceable virtual resource selected by the user, the total value of the replaceable virtual resource is directly deducted from the balance of the user to complete payment, and a virtual resource replacement presentation request is sent to the server after the payment is successful; if the balance of the user is less than the total value of the replaceable virtual resources selected by the user, jumping to a payment page 50, inputting the charged amount in a payment amount display frame 501, finally clicking a payment selection control 502 to complete payment, and sending a virtual resource replacement donation request to the server after the payment is successful.
In an alternative embodiment, the user may also jump to the payment page 50 for a user balance recharge by clicking on the recharge selection control 406.
In step 102, the server matches and binds two or more first clients that send the virtual resource replacement donation requests, generates replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients that are matched and bound, and sends the replaceable virtual resource set data to the first clients that are matched and bound.
The two or more first clients sending the virtual resource replacement presentation request may be two or more audience terminals joining a live broadcast room, other anchor terminals, or a combination of the audience terminals and the other anchor terminals.
Specifically, more than two first clients respectively start a gift replacing playing method, and send virtual resource replacing and giving requests to the server after respective replaceable virtual resources are selected. And then the server side matches and binds more than two first clients sending the virtual resource replacement donation requests, wherein the binding mode can be through communication identifiers of all the first clients, or through equipment identifiers of all the first clients, or through corresponding user identifiers bound with all the first clients.
The method comprises the steps that a server side matches and binds more than two first client sides sending virtual resource replacement presentation requests, a minimum matching number threshold value can be preset, and the server side determines whether to match and bind each first client side or not by judging whether the number of the received virtual resource replacement presentation requests reaches the preset minimum matching number threshold value or not.
Specifically, if the number of virtual resource replacement presentation requests received by the server reaches a preset minimum matching number threshold, matching and binding the corresponding first client; and if the number of the virtual resource replacement donation requests received by the server side does not reach the preset minimum matching number threshold, sending matching failure information to the corresponding first client side.
The matching failure information is respectively sent to each first client, and after each first client receives the matching failure information, matching failure prompt information is displayed in a respective live broadcast room interface to prompt that the number of people participating in resource replacement is insufficient. The user can start another virtual resource replacement donation request through the first user side, and the server side performs matching again according to the request of the first user side.
After the first clients are matched and bound by the server, the server generates replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by each first client which is matched and bound, and sends the replaceable virtual resource set data to each first client which is matched and bound.
Wherein the replaceable virtual resource set data at least comprises replaceable virtual resource identifications sent by each first client which are matched and bound.
The replaceable virtual resource set data may further include at least one of a user identifier corresponding to each of the first client and a user identifier corresponding to the second client. If the client includes the user identifier corresponding to each first client, after receiving the set of replaceable virtual resources, the client may also display user information presenting the replaceable virtual resources when displaying the corresponding replaceable virtual resources.
With respect to step 103, each of said first clients displays a disposable virtual resource selection component in a live broadcast room interface according to said disposable virtual resource set data.
The replaceable virtual resource selection component is used for providing all or part of replaceable virtual resource data in the replaceable virtual resource set data for a user, and a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component for the user to select; each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data.
The resource replacing image can be a gift box, a vase and the like, and the display style of the resource replacing image is not limited herein.
Each replaceable resource image may correspond to one replaceable virtual resource identifier in the replaceable virtual resource set data, or may correspond to more than two replaceable virtual resource identifiers in the replaceable virtual resource set data. In the latter case, when the replacement resource image corresponding to the replaceable virtual resource selecting component is selected, it is equivalent to simultaneously selecting two or more replaceable virtual resources, and simultaneously obtaining the respective replaceable virtual resource identifiers of the two or more replaceable virtual resources.
The replaceable resource image is a substitute image for the replaceable virtual resource in the replaceable virtual resource exchange process, and preferably, each replaceable resource image is the same. When the user selects the replaceable resource image, the user does not know what the corresponding replaceable virtual resource is in advance, and the interest of replaceable virtual resource exchange is enhanced.
Specifically, please refer to fig. 6, which is a schematic diagram of a replaceable virtual resource selecting component according to an embodiment of the present application. In fig. 6, the replaceable virtual resource is a replaceable virtual gift, and after each first client receives the replaceable virtual resource set data sent by the server, the replaceable virtual resource selecting component 60 is displayed in the live broadcast interface according to the replaceable virtual resource set data. The replaceable virtual resource selecting component 60 includes a plurality of replaceable resource selecting controls 601, each of which displays a replaceable resource image, such as a gift box, and a user can select one of the gift boxes through the replaceable resource selecting controls, which is equivalent to selecting and acquiring a replaceable virtual resource identifier corresponding to the gift box.
In a preferred embodiment, the user may also know the replaceable virtual resource corresponding to the replaceable resource image in advance by using a prop or the like.
The user side obtains an instruction for using the perspective prop for the replacement resource image, wherein the instruction for using the perspective prop comprises the pointed replacement resource image;
and displaying the corresponding replaceable virtual resource at the display position of the replacement resource image according to the corresponding replaceable virtual resource identifier of the replacement resource image.
In step 104, the first client obtains the selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request, and sends the resource selection request to the server.
The selection information of the replacement resource image comprises a replacement virtual resource identifier corresponding to the selected replacement resource image. The resource selection request may include a user identifier corresponding to the first client, a replaceable virtual resource identifier corresponding to the selected replaceable resource image, and a user identifier corresponding to a second client that receives the virtual resource. The user identification corresponding to the first client and the user identification corresponding to the second client for receiving the virtual resources can be sent to the server in advance when the first client sends out a virtual resource replacement presentation request, and are stored by the server, and after the server receives the resource selection request, the user identification corresponding to the first client, the replaceable virtual resource identification corresponding to the selected replacement resource image and the user identification corresponding to the second client for receiving the virtual resources are bound.
In an alternative embodiment, referring to FIG. 7, the replaceable virtual resource selection component may be set to an active state and an inactive state; in the activated state, the replacement resource image 601 in the replaceable virtual resource selecting component 60 is highlighted and can be selected, as shown in fig. 6; in the inactive state, the replacement resource image 601 in the replaceable virtual resource selection component 60 is darkened and not selectable, as shown in FIG. 7.
Specifically, referring to fig. 8, after the server matches and binds two or more first clients that send the virtual resource replacement donation request, the method further includes the following steps:
s201: and the server generates a selection sequence of each first client to the replaceable virtual resource according to each first client bound in a matching manner.
S202: and sequentially sending resource selection instructions to the corresponding first clients according to the selection sequence.
S203: the first client side obtains the selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server side, and the method comprises the following steps:
s2031: the first client side receiving the resource selection instruction displays resource selection prompt information in a live broadcast room interface, and sets the replaceable virtual resource selection component to be in an activated state; the first client which does not receive the resource selection instruction sets the replaceable virtual resource selection component to be in an inactive state;
s2032: and the first client receiving the resource selection instruction acquires the selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server, and then sets the replaceable virtual resource selection component to be in an inactive state.
The state of the replaceable virtual resource selection component can be switched according to the selection sequence of each first client to the replaceable virtual resources.
And the selection sequence generated by the server is used as a sequential basis for the server to send the resource selection instruction to the first client. The resource selection instruction is used for indicating the first client sides to display resource selection prompt information, and after each first client side receives the resource selection instruction, the replaceable virtual resource selection component is set to be in an activated state, the resource selection prompt information is displayed, and a user is prompted to start selection of replaceable virtual resources. The resource selection prompt information is used for prompting a user to select replaceable virtual resources.
The selection order generated by the server may be generated according to the order in which the first client sends the virtual resource replacement donation request to the server, or may be generated randomly, and the generation method is not limited herein.
The resource selection prompt information displayed in the live broadcast interface by the first client can be a text prompt, a pattern prompt or a combination of text and pattern prompt.
In an optional embodiment, the resource selection prompt message displayed in the live broadcast interface by the first client includes a countdown set according to a preset selection time threshold; and if the countdown is finished and the selection information of the replacement resource image is not obtained yet, randomly selecting one replacement resource image and generating the selection information of the replacement resource image.
Specifically, referring to fig. 9, the resource selection prompt information displayed by the first client in the live broadcast interface includes a countdown 602 set according to a preset selection time threshold, and if the user does not click the replacement resource selection control 601 in the countdown to select a replacement resource image, the first client corresponding to the user randomly selects one replacement resource image to generate selection information for the replacement resource image.
Regarding step S105: and the server binds the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replaceable resource image according to the resource selection request sent by each first client, generates corresponding replaceable virtual resource presentation data, and sends the replaceable virtual resource presentation data to the clients joining the live broadcast room.
Each piece of replaceable virtual resource presentation data comprises a user identifier corresponding to the first client, a bound replaceable virtual resource identifier, and a user identifier corresponding to the second client which receives the virtual resources. The client sides joining the live broadcast room comprise audience client sides in the live broadcast room and anchor client sides in the live broadcast room.
In an optional embodiment, referring to fig. 10, after the server binds, according to the resource selection request sent by each first client, the user identifier corresponding to the first client and the replaceable virtual resource identifier corresponding to the selected replaceable resource image, the method further includes steps S301 to S305, which are specifically as follows:
s301: and the server generates resource state updating information according to the replaceable virtual resource identifier corresponding to the selected replaceable resource image and sends the resource state updating information to each first client side which is matched and bound.
S302: and the first client receives the resource state updating information and sets the corresponding replaceable resource image in the replaceable virtual resource selection component into a bound state or an unbound state according to the resource state updating information.
S3031: and the server side sequentially receives the resource selection requests sent by the first clients.
S3032: if the replaceable virtual resource identifier in the resource selection request received this time is already bound with another user identifier, the binding relationship between the corresponding replaceable virtual resource identifier and the other user identifier is released, and the replaceable virtual resource identifier is bound with the user identifier in the resource selection request received this time.
S3033: and the server generates the resource state updating information and sends the resource state updating information to each first user end which is matched and bound.
S304: and sending the resource selection instruction to the first client corresponding to the other user identification again.
S305: and after receiving the resource selection instruction, the first client corresponding to the other user identifier displays resource selection prompt information on a live broadcast interface, sets the replaceable virtual resource selection component to be in an activated state, acquires selection information of the replaceable resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server.
Regarding step S301, the resource status update information includes a user identifier corresponding to the first client, and a replaceable virtual resource identifier corresponding to the bound, and status information of the virtual resource, where the status information may be selected or unselected.
Regarding step S302, the bound state and the unbound state of the replacement resource image are used to prompt whether the corresponding replaceable resource has been selected.
In an optional embodiment, the first client displays the replacement resource image in an unbound state as a uniform universal resource image; and the first client displays the bound replacement resource image as a replaceable virtual resource image corresponding to the replaceable virtual resource identifier.
Specifically, the first client receives resource state update information sent by the server, and sets the selected replacement resource image to be a bound state according to selection information of a user on the replacement resource image in the resource state update information, wherein the replacement resource image in the bound state is displayed as a replaceable virtual resource image corresponding to the replaceable virtual resource identifier; and setting the unselected replacement resource image as an unbound state, wherein the replacement resource image in the unbound state is displayed as a uniform universal resource image.
Wherein the universal resource image is used for indicating that the corresponding permutation resource is not selected by the user. The universal resource image can uniformly display a gift box, a vase, a bouquet and the like, and the display mode is not limited herein.
Displaying the corresponding replaceable virtual resource image for representing that the corresponding replaceable virtual resource image represents the specific gift displayed after the user selects, for example, the gift box is opened. And the first client can attach the information of the user identifier bound with the corresponding replaceable virtual resource identifier to the replacement resource image in the bound state.
The information of the user identifier bound with the corresponding replaceable virtual resource identifier may be user information such as an ID, a name, an avatar, and the like corresponding to the user.
In steps 3031 to 3033, the another user identifier is a user identifier bound with the replaceable virtual resource identifier corresponding to the currently selected replacement resource image, that is, the user identifier bound with the replaceable virtual resource identifier corresponding to the replacement resource image which is selected last time.
Specifically, the server receives the resource selection requests sent by the first clients in sequence, if the replacement resource image selected by the user in the resource selection request received this time is in a bound state, the state of the replacement resource image is changed to an unbound state for the user to select, the replaceable virtual resource identifier corresponding to the replacement resource image is bound with the identifier corresponding to the user, and new resource state update information is generated and sent to each first client matched and bound. The user is the user bound to the user identifier in the resource selection request received this time. Through the process, the user robs the resource replacing image selected by the other user, and the interest of user interaction in the live broadcast room is enhanced.
In step 304, after the replacement resource image selected last time by the another user identifier is snatched by the user of this time, the server will send a resource selection instruction to the first client corresponding to the another user identifier again, and prompt the another user to perform the reselection of the replacement resource image.
In step 305, after receiving the resource selection instruction, the first client corresponding to the another user identifier displays a resource selection prompt message in a live broadcast interface, sets the replaceable virtual resource selection component to an active state, obtains the selection information of the replaceable resource image through the replaceable virtual resource selection component of the first client corresponding to the another user identifier, generates a resource selection request, and sends the resource selection request to the server, and sets the replaceable virtual resource selection component to an inactive state.
Then, the server binds the other user identifier with the replaceable virtual resource identifier corresponding to the selected replacement resource image according to the resource selection request sent by the first client corresponding to the other user identifier, generates new resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, sends the new resource state update information to each first client matched and bound, and then enters the next round of selection of replacement resource images.
In an alternative embodiment, referring to fig. 11, the replaceable virtual resource assembly 60 includes 4 replaceable resource images 601. The replacement resource image 601a is selected by the user A, displayed as a specific gift, such as 'love', and information of a user identifier bound with the corresponding replaceable virtual resource identifier, such as a user A ID, is attached to the selected replacement resource image 601 a; the other 3 replacement resource images are not selected to be displayed as a unified universal resource image, such as a gift box. When the replacement resource image selected by the user B is the replacement resource image 601a selected by the user A, the server removes the binding relationship between the replaceable virtual resource identifier corresponding to the replacement resource image 601a and the user A identifier, binds the replaceable virtual resource identifier corresponding to the replacement resource image 601a and the user B identifier, generates new resource state updating information, and sends the new resource state updating information to each first user end matched and bound.
And then the server sends a resource selection instruction to the user A again, after receiving the resource selection instruction, the user A displays resource selection prompt information in a live broadcast room interface, sets the replaceable virtual resource selection component 60 to be in an activated state, acquires selection information of the replaceable resource image 601 through the replaceable virtual resource selection component 60, generates a resource selection request and sends the resource selection request to the server, and then sets the replaceable virtual resource selection component 60 to be in an inactivated state. And the server generates new resource state updating information according to the replaceable virtual resource identifier corresponding to the replaced resource image selected by the user A, sends the new resource state updating information to each first client side which is matched and bound, and then enters the next round of selection of replacing the resource image.
Regarding step 106, the client joining the live broadcast room receives the replaceable virtual resource present data, and displays the corresponding replaceable virtual resource present effect in the live broadcast room interface.
Specifically, the effect display may be performed according to different virtual resource attributes by using the presentation effect of the replaceable virtual resource. Such as showing special effects like streamer and fireworks.
In an optional embodiment, each piece of replaceable virtual resource gifting data includes a user identifier corresponding to the first client, a bound replaceable virtual resource identifier, a user identifier corresponding to the second client that receives the virtual resource, and a gifting order of the replaceable virtual resources. And the client added into the live broadcast room receives the presentation data of the replaceable virtual resources, and displays the presentation effect of the corresponding replaceable virtual resources in the interface of the live broadcast room in sequence according to the presentation sequence.
And the presentation sequence of each replaceable virtual resource is used as the display sequence of the replaceable virtual resource in the live broadcast interface.
The presentation sequence of each replaceable virtual resource can be arranged from large to small according to the value amount corresponding to each replaceable virtual resource identifier; or the replaceable virtual resources can be arranged according to the sequence selected by the user; or arranged according to a pre-set gift serial number, etc.
The method for presenting the virtual resources comprises the steps that replaceable virtual resources to be presented are selected by the first client side, the server side responds to a virtual resource replacement presentation request of the first client side, more than two first client sides sending the virtual resource replacement presentation request are matched and bound, the matched and bound first client sides carry out replacement of the virtual resources, and finally each first client side presents the replaced virtual resources to the second client side of the live broadcast room. The above mode can effectively promote the interactive experience of the user in the live broadcast room, and improve the participation and retention rate of audiences.
Example 2
Referring to fig. 12, fig. 12 is a schematic flow chart of a live broadcast virtual resource presenting method according to a second embodiment of the present application, and the method for presenting a virtual resource in a live broadcast according to the present embodiment is mainly different from the first embodiment in that the virtual resource presenting component created by the first client includes a replaceable virtual resource presenting component and a common virtual resource presenting component, and the method for presenting a virtual resource in a live broadcast further includes the following steps:
s401: the first client displays a virtual resource presenting component in a live broadcast room interface; the virtual resource gifting component comprises a replaceable virtual resource gifting component and a common virtual resource gifting component.
S402: the first client side obtains selection information of the common virtual resources through the common virtual resource presenting component, generates a resource selection request and sends the resource selection request to the server side, wherein the resource selection request comprises a user identification corresponding to the first client side, a common virtual resource identification corresponding to the selected common virtual resource image and a user identification corresponding to a second client side for receiving the virtual resources.
S403: and the server binds the user identifier corresponding to the first client with the common virtual resource identifier corresponding to the selected common virtual resource image according to the resource selection request sent by each first client, generates corresponding common virtual resource presentation data, and sends the corresponding common virtual resource presentation data to the clients joining the live broadcast room, wherein each common virtual resource presentation data comprises the user identifier corresponding to the first client, the bound common virtual resource identifier, and the user identifier corresponding to the second client for receiving the virtual resources.
S404: and the client joining the live broadcast room receives the common virtual resource presentation data and displays the corresponding common virtual resource presentation effect in the interface of the live broadcast room.
In this embodiment, if the user selects the replaceable virtual resource presenting method corresponding to the replaceable virtual resource presenting component, the specific steps of the method are the same as steps S101 to S106 in the first embodiment, and a repeated explanation is not repeated here, which may specifically refer to the first embodiment.
Specifically, after the user enters the live broadcast room, the first client will pull the virtual resource configuration data in full, and filter out the replaceable virtual resource through the replaceable virtual resource identifier.
Referring to fig. 13, the virtual resource gifting component 110 includes a replaceable virtual resource gifting component 111 and a common virtual resource gifting component 112.
If the user opens virtual resource gifting component 110 and clicks on the replaceable virtual resource gifting component 111 icon, the list of replaceable virtual resources will be presented. And the first client responds to the selected information of the replaceable virtual resources in the replaceable virtual resource list, acquires corresponding replaceable virtual resource identifiers, user identifiers corresponding to the first client and user identifiers corresponding to the second clients receiving the virtual resources, generates a virtual resource replacement presentation request and sends the virtual resource replacement presentation request to the server. The virtual resource replacement donation method according to the first embodiment described in steps S101 to S106.
Referring to FIG. 14, if the user opens the virtual resource gifting component 110 and clicks the icon of the common virtual resource gifting component 112, a common virtual resource list 1121 is displayed in the page.
With respect to step S401, the first client displays a virtual resource gifting component in a live view interface.
The virtual resource presenting component comprises a replaceable virtual resource presenting component for providing a virtual resource replacing playing method for a user and a common virtual resource presenting component for providing a common virtual resource presenting playing method for the user.
The common virtual resource presenting component is used for providing common virtual resources for a user to select, and a plurality of common virtual resource images are displayed in the common virtual resource presenting component.
In step S402, the first client obtains the selection information of the common virtual resource through the common virtual resource presenting component, generates a resource selection request, and sends the resource selection request to the server.
The selection information of the common virtual resource comprises a common virtual resource identifier corresponding to the selected common virtual resource image and a user identifier corresponding to the first user terminal.
In this embodiment, the user may select different play methods according to the desire: the method comprises a traditional common virtual resource presentation playing method and a newly proposed virtual resource replacement playing method, so that the virtual resource presentation method of the live broadcast room can be further enriched, and the interactive experience of a user is improved.
Example 3
Referring to fig. 15, fig. 15 is a schematic flow chart of a live broadcast virtual resource presenting method according to a third embodiment of the present application, where the live broadcast virtual resource presenting method according to the present embodiment is applied to a server, and includes the following steps:
s501: receiving a virtual resource replacement presentation request sent by a first client side joining a live broadcast room, wherein the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side receiving virtual resources;
s502: matching and binding more than two first clients which send the virtual resource replacement presentation requests, generating replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients which are matched and bound, and sending the replaceable virtual resource set data to the first clients which are matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by each first client and user identifiers corresponding to the first clients, wherein the replaceable virtual resource set data are matched and bound; the replaceable virtual resource set data is used for enabling the first client to display a replaceable virtual resource selection component in a live broadcast room interface; a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component, and each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
s503: receiving a resource selection request sent by each first client, wherein the resource selection request comprises a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to the selected replaceable resource image;
s504: and binding the user identifier corresponding to the first client with the selected replaceable virtual resource identifier according to the resource selection request sent by each first client, generating corresponding replaceable virtual resource presentation data, and sending the replaceable virtual resource presentation data to the clients joining the live broadcast room, wherein each piece of replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving the virtual resources.
In this embodiment, the method for giving virtual resources to a live broadcast room is described with the server as the executing entity, and for the detailed description of steps S501 to S504, reference may be made to the detailed description of embodiments 1 and 2, and the description will not be repeated here.
Example 4
Referring to fig. 16, fig. 16 is a schematic structural diagram of a live broadcast room virtual resource gifting device according to a fourth embodiment of the present application. The apparatus may be implemented as all or a portion of the server by software, hardware, or a combination of both. The apparatus 10 comprises:
a replacement presentation request obtaining module 11, configured to receive a virtual resource replacement presentation request sent by a first client joining a live broadcast room, where the virtual resource replacement presentation request includes a user identifier corresponding to the first client, a selected replaceable virtual resource identifier, and a user identifier corresponding to a second client that receives a virtual resource;
a replacement resource set data control module 12, configured to match and bind more than two first clients that send the virtual resource replacement presentation requests, generate replaceable virtual resource set data for this virtual resource replacement according to the replaceable virtual resource identifier sent by each first client that is matched and bound, and send the replaceable virtual resource set data to each first client that is matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by each first client and user identifiers corresponding to the first clients, wherein the replaceable virtual resource set data are matched and bound; the replaceable virtual resource set data is used for enabling the first client to display a replaceable virtual resource selection component in a live broadcast room interface; a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component, and each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
a selection request obtaining module 13, configured to receive a resource selection request sent by each first client, where the resource selection request includes a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to a selected replaceable resource image;
and the donation data control module 14 is configured to bind, according to the resource selection request sent by each first client, the user identifier corresponding to the first client and the selected replaceable virtual resource identifier, generate corresponding replaceable virtual resource donation data, and send the donation data to the clients joining the live broadcast room, where each replaceable virtual resource donation data includes a user identifier corresponding to the first client, a bound replaceable virtual resource identifier, and a user identifier corresponding to a second client that receives virtual resources.
It should be noted that, when the live broadcast virtual resource presenting device provided in the foregoing embodiment executes the live broadcast virtual resource presenting method, only the division of the functional modules is described as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the live broadcast room virtual resource presenting device and the live broadcast room virtual resource presenting method provided by the above embodiments belong to the same concept, and the implementation process is detailed in method embodiments 1 and 2, which are not described herein again.
Example 5
Fig. 17 is a schematic structural diagram of a computer device according to a fifth embodiment of the present application. As shown in fig. 17, the computer device 150 may include: a processor 151, a memory 152, and a computer program 153 stored in the memory 152 and operable on the processor 151, such as: a live broadcast room virtual resource presentation program; the steps in the above embodiments are implemented when the processor 151 executes the computer program 153.
The processor 151 may include one or more processing cores, among others. The processor 151 connects various parts within the computer device 150 using various interfaces and lines, performs various functions of the computer device 150 and processes data by executing or executing instructions, programs, code sets or instruction sets stored in the memory 152 and calling data within the memory 152, and optionally, the processor 151 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 151 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 151, but may be implemented by a single chip.
The Memory 152 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 152 includes a non-transitory computer-readable medium. The memory 152 may be used to store instructions, programs, code sets, or instruction sets. The memory 152 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 various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 152 may optionally be at least one memory device located remotely from the processor 151.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing embodiment, and a specific execution process may refer to specific descriptions of the foregoing embodiment, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc.
The present invention is not limited to the above-described embodiments, and various modifications and variations of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.

Claims (14)

1. A method for presenting virtual resources in a live broadcast room is characterized by comprising the following steps:
a first client side joining a live broadcast room sends a virtual resource replacement presentation request to a server side, wherein the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side for receiving virtual resources;
the server matches and binds more than two first clients which send the virtual resource replacement presentation requests, generates replaceable virtual resource set data used for virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients which are matched and bound, and sends the replaceable virtual resource set data to the first clients which are matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifications sent by each first client in matching binding;
each first client displays a replaceable virtual resource selection component in a live broadcast room interface according to the replaceable virtual resource set data; wherein, a plurality of replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
the first client side obtains selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server side, wherein the resource selection request comprises a user identifier corresponding to the first client side and a replaceable virtual resource identifier corresponding to the selected replaced resource image;
the server binds the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replaceable resource image according to the resource selection request sent by each first client, generates corresponding replaceable virtual resource presentation data, and sends the replaceable virtual resource presentation data to the clients joining the live broadcast room, wherein each replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving virtual resources;
and the client side added into the live broadcast room receives the replaceable virtual resource presentation data and displays the corresponding replaceable virtual resource presentation effect in the live broadcast room interface.
2. The live broadcast room virtual resource gifting method of claim 1, wherein the step of the server matching and binding two or more first clients sending the virtual resource replacement gifting request comprises:
if the number of the virtual resource replacement presentation requests received by the server side reaches a preset minimum matching number threshold, matching and binding the corresponding first client side;
and if the number of the virtual resource replacement donation requests received by the server side does not reach the preset minimum matching number threshold, sending matching failure information to the corresponding first client side.
3. The live broadcast room virtual resource gifting method as claimed in claim 1, wherein:
the first client displays a virtual resource presenting component on a live broadcast interface, wherein the virtual resource presenting component comprises a replaceable virtual resource presenting component and a common virtual resource presenting component;
the first client side responds to the selected information of the replaceable virtual resources in the replaceable virtual resource presenting component, acquires corresponding replaceable virtual resource identifiers and user identifiers corresponding to the first user side, generates the virtual resource replacement presenting request and sends the virtual resource replacement presenting request to the server side;
the first client responds to the selected information of the common virtual resources in the common virtual resources (common virtual resource presentation components), acquires corresponding common virtual resource identifiers and user identifiers corresponding to the first user side, generates common virtual resource presentation requests and sends the common virtual resource presentation requests to the server side; the common virtual resource presenting request comprises a user identifier corresponding to the first client, a common virtual resource identifier selected by the first client, and a user identifier corresponding to a second client for receiving virtual resources;
and after receiving the common virtual resource presenting request, the server generates corresponding virtual resource presenting data and sends the corresponding virtual resource presenting data to the client joining the live broadcast room, wherein the virtual resource presenting data comprise a user identifier corresponding to the first client, a common virtual resource identifier and a user identifier corresponding to the second client for receiving the virtual resource.
4. The live broadcast room virtual resource gifting method of claim 1 wherein the replaceable virtual resource selection component is settable to an active state and an inactive state; in an activated state, a replacement resource image in the replaceable virtual resource selection component can be selected; in an inactive state, a replacement resource image in the replaceable virtual resource selection component is not selectable;
after the server side matches and binds more than two first client sides which send the virtual resource replacement donation requests, the method further comprises the following steps:
the server binds each first client according to matching, and generates a selection sequence of each first client to the replaceable virtual resource;
sequentially sending resource selection instructions to the corresponding first clients according to the selection sequence;
the first client side obtains the selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server side, and the method comprises the following steps:
the first client side receiving the resource selection instruction displays resource selection prompt information in a live broadcast room interface, sets the replaceable virtual resource selection component to be in an activated state, acquires selection information of the replaceable resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server side, and then sets the replaceable virtual resource selection component to be in an inactivated state;
the first client that does not receive the resource selection instruction sets the replaceable virtual resource selection component to an inactive state.
5. The live broadcast room virtual resource gifting method of claim 4, wherein the resource selection prompt displayed by the first client in the live broadcast room interface includes a countdown set according to a preset selection time threshold; and if the countdown is finished and the selection information of the replacement resource image is not obtained yet, randomly selecting one replacement resource image and generating the selection information of the replacement resource image.
6. The live broadcast room virtual resource donation method according to any one of claims 1 to 5, wherein the first client acquires selection information of the replaced resource image through the replaceable virtual resource selection component, generates a resource selection request, and sends the resource selection request to the server;
the server generates resource state updating information according to the replaceable virtual resource identifier corresponding to the selected replaceable resource image and sends the resource state updating information to each first client side which is matched and bound; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier;
and the first client receives the resource state updating information and sets the corresponding replaceable resource image in the replaceable virtual resource selection component into a bound state or an unbound state according to the resource state updating information.
7. The live broadcast room virtual resource gifting method of claim 6, wherein the step of the first client setting the corresponding replacement resource image in the replaceable virtual resource selection component to a bound state or an unbound state according to the resource state update information comprises:
and the first client displays the replacement resource image in the unbound state as a uniform universal resource image, and displays the replacement resource image in the bound state as a replaceable virtual resource image corresponding to the replaceable virtual resource identifier.
8. The live broadcast room virtual resource gifting method of claim 6, wherein the step of the first client setting the corresponding replacement resource image in the replaceable virtual resource selection component to a bound state further comprises:
and the first client adds the information of the user identifier bound with the corresponding replaceable virtual resource identifier on the bound replaceable resource image.
9. The method as claimed in claim 6, wherein the step of the server binding the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replaceable resource image according to the resource selection request sent by each first client comprises:
the server side receives the resource selection requests sent by the first client sides in sequence, if a replaceable virtual resource identifier in the resource selection request received this time is bound with another user identifier, the binding relationship between the corresponding replaceable virtual resource identifier and the other user identifier is released, the replaceable virtual resource identifier is bound with the user identifier in the resource selection request received this time, the resource state updating information is generated, and the resource state updating information is sent to each first client side which is bound in a matching mode;
and sending the resource selection instruction again to the first client corresponding to the other user identifier;
and after receiving the resource selection instruction, the other first client displays resource selection prompt information on a live broadcast interface, sets the replaceable virtual resource selection component to be in an activated state, acquires selection information of the replaceable resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to the server.
10. The live broadcast room virtual resource gifting method according to claim 1, wherein the replaceable virtual resource gifting data further includes a gifting order of each replaceable virtual resource;
the step that the client added into the live broadcast room receives the presentation data of the replaceable virtual resources and displays the corresponding presentation effect of the replaceable virtual resources in the interface of the live broadcast room comprises the following steps:
and the client-side added into the live broadcast room displays the corresponding presentation effects of the replaceable virtual resources in the live broadcast room interface in sequence according to the presentation sequence.
11. A method for presenting virtual resources in a live broadcast room is characterized by comprising the following steps:
receiving a virtual resource replacement presentation request sent by a first client side joining a live broadcast room, wherein the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side receiving virtual resources;
matching and binding more than two first clients which send the virtual resource replacement presentation requests, generating replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients which are matched and bound, and sending the replaceable virtual resource set data to the first clients which are matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by each first client and user identifiers corresponding to the first clients, wherein the replaceable virtual resource set data are matched and bound; the replaceable virtual resource set data is used for enabling the first client to display a replaceable virtual resource selection component in a live broadcast room interface; a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component, and each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
receiving a resource selection request sent by each first client, wherein the resource selection request comprises a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to the selected replaceable resource image;
and binding the user identifier corresponding to the first client with the selected replaceable virtual resource identifier according to the resource selection request sent by each first client, generating corresponding replaceable virtual resource presentation data, and sending the replaceable virtual resource presentation data to the clients joining the live broadcast room, wherein each piece of replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving the virtual resources.
12. A live broadcast room virtual resource presentation device, comprising:
the system comprises a replacement presentation request acquisition module, a replacement presentation request generation module and a presentation module, wherein the replacement presentation request acquisition module is used for receiving a virtual resource replacement presentation request sent by a first client side joining a live broadcast room, and the virtual resource replacement presentation request comprises a user identifier corresponding to the first client side, a selected replaceable virtual resource identifier and a user identifier corresponding to a second client side for receiving virtual resources;
a resource replacement set data control module, configured to match and bind more than two first clients that send the virtual resource replacement presentation requests, generate replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifier sent by each first client that is matched and bound, and send the replaceable virtual resource set data to each first client that is matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by each first client and user identifiers corresponding to the first clients, wherein the replaceable virtual resource set data are matched and bound; the replaceable virtual resource set data is used for enabling the first client to display a replaceable virtual resource selection component in a live broadcast room interface; a plurality of replaceable resource images are displayed in the replaceable virtual resource selection component, and each replaceable resource image corresponds to at least one replaceable virtual resource identifier in the replaceable virtual resource set data;
a selection request obtaining module, configured to receive a resource selection request sent by each first client, where the resource selection request includes a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to a selected replaceable resource image;
and the donation data control module is used for binding the user identifier corresponding to the first client with the selected replaceable virtual resource identifier according to the resource selection request sent by each first client, generating corresponding replaceable virtual resource donation data and sending the data to the clients joining the live broadcast room, wherein each piece of replaceable virtual resource donation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier and a user identifier corresponding to a second client for receiving the virtual resources.
13. A computer device, comprising: processor, memory and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5, 7 to 10 or 11 when executing the computer program.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5, 7 to 10 or 11.
CN202111675431.4A 2021-12-31 2021-12-31 Live broadcast room virtual resource giving method, device, computer equipment and storage medium Active CN114268812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111675431.4A CN114268812B (en) 2021-12-31 2021-12-31 Live broadcast room virtual resource giving method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111675431.4A CN114268812B (en) 2021-12-31 2021-12-31 Live broadcast room virtual resource giving method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114268812A true CN114268812A (en) 2022-04-01
CN114268812B CN114268812B (en) 2024-01-19

Family

ID=80832400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111675431.4A Active CN114268812B (en) 2021-12-31 2021-12-31 Live broadcast room virtual resource giving method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114268812B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174945A (en) * 2022-05-13 2022-10-11 北京达佳互联信息技术有限公司 Resource processing method and device, electronic equipment and storage medium
CN115484489A (en) * 2022-09-14 2022-12-16 抖音视界有限公司 Resource processing method, resource processing device, electronic device, storage medium, and program product
CN116097654A (en) * 2022-09-16 2023-05-09 广州酷狗计算机科技有限公司 Live interaction method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170134825A1 (en) * 2015-11-09 2017-05-11 Le Holdings (Beijing) Co., Ltd. Method and device for processing panoramic live broadcast video resources
US20180096416A1 (en) * 2015-07-31 2018-04-05 Tencent Technology (Shenzhen) Company Limited Virtual resource transfer method, client device, application server, and system
CN111672131A (en) * 2020-06-05 2020-09-18 腾讯科技(深圳)有限公司 Virtual article acquisition method, device, terminal and storage medium
CN113365086A (en) * 2021-05-31 2021-09-07 北京达佳互联信息技术有限公司 Live data interaction method and device, electronic equipment, server and storage medium
CN113438490A (en) * 2021-05-27 2021-09-24 广州方硅信息技术有限公司 Live broadcast interaction method, computer equipment and storage medium
CN113840155A (en) * 2021-09-22 2021-12-24 广州方硅信息技术有限公司 Method and system for replacing virtual gift and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096416A1 (en) * 2015-07-31 2018-04-05 Tencent Technology (Shenzhen) Company Limited Virtual resource transfer method, client device, application server, and system
US20170134825A1 (en) * 2015-11-09 2017-05-11 Le Holdings (Beijing) Co., Ltd. Method and device for processing panoramic live broadcast video resources
CN111672131A (en) * 2020-06-05 2020-09-18 腾讯科技(深圳)有限公司 Virtual article acquisition method, device, terminal and storage medium
CN113438490A (en) * 2021-05-27 2021-09-24 广州方硅信息技术有限公司 Live broadcast interaction method, computer equipment and storage medium
CN113365086A (en) * 2021-05-31 2021-09-07 北京达佳互联信息技术有限公司 Live data interaction method and device, electronic equipment, server and storage medium
CN113840155A (en) * 2021-09-22 2021-12-24 广州方硅信息技术有限公司 Method and system for replacing virtual gift and computer equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174945A (en) * 2022-05-13 2022-10-11 北京达佳互联信息技术有限公司 Resource processing method and device, electronic equipment and storage medium
CN115174945B (en) * 2022-05-13 2024-03-26 北京达佳互联信息技术有限公司 Resource processing method and device, electronic equipment and storage medium
CN115484489A (en) * 2022-09-14 2022-12-16 抖音视界有限公司 Resource processing method, resource processing device, electronic device, storage medium, and program product
CN116097654A (en) * 2022-09-16 2023-05-09 广州酷狗计算机科技有限公司 Live interaction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114268812B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
CN114268812B (en) Live broadcast room virtual resource giving method, device, computer equipment and storage medium
CN113727130B (en) Message prompting method, system and device for live broadcasting room and computer equipment
CN113840154B (en) Live broadcast interaction method and system based on virtual gift and computer equipment
CN113949892B (en) Live broadcast interaction method, system, equipment and medium based on virtual resource consumption
CN112714334B (en) Music gift giving method and device, equipment and medium thereof
CN113453029B (en) Live broadcast interaction method, server and storage medium
CN113573083A (en) Live wheat-connecting interaction method and device and computer equipment
CN113038228B (en) Virtual gift transmission and request method, device, equipment and medium thereof
CN113824976A (en) Method and device for displaying approach show in live broadcast room and computer equipment
CN113596504A (en) Live broadcast room virtual gift presenting method and device and computer equipment
CN114666672B (en) Live fight interaction method and system initiated by audience and computer equipment
CN113613027A (en) Live broadcast room recommendation method and device and computer equipment
CN113840156A (en) Live broadcast interaction method and device based on virtual gift and computer equipment
CN115484489A (en) Resource processing method, resource processing device, electronic device, storage medium, and program product
CN113938696B (en) Live broadcast interaction method and system based on custom virtual gift and computer equipment
CN113840155B (en) Virtual gift replacement method, system and computer equipment
CN113824984A (en) Virtual gift pipelining display method, system, device and computer equipment
CN115134624B (en) Live broadcast continuous wheat matching method, system, device, electronic equipment and storage medium
CN113891162B (en) Live broadcast room loading method and device, computer equipment and storage medium
CN115314727A (en) Live broadcast interaction method and device based on virtual object and electronic equipment
CN114650440A (en) Virtual item sharing method and device for live broadcast room, computer equipment and medium
CN114885191A (en) Interaction method, system, device and equipment based on exclusive nickname of live broadcast room
CN114760502A (en) Live broadcast room approach show merging and playing method and device and computer equipment
CN114302165B (en) Live broadcast room virtual gift giving method, device, computer equipment and storage medium
CN113938700B (en) Live broadcast room switching method and device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant