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

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

Info

Publication number
CN114268812B
CN114268812B CN202111675431.4A CN202111675431A CN114268812B CN 114268812 B CN114268812 B CN 114268812B CN 202111675431 A CN202111675431 A CN 202111675431A CN 114268812 B CN114268812 B CN 114268812B
Authority
CN
China
Prior art keywords
virtual resource
resource
replaceable
client
replacement
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.)
Active
Application number
CN202111675431.4A
Other languages
Chinese (zh)
Other versions
CN114268812A (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

Abstract

The application relates to the technical field of network live broadcast, and provides a live broadcast room virtual resource giving method, a live broadcast room virtual resource giving device, computer equipment and a storage medium, wherein the method comprises the following steps: a first client side joining a live broadcasting room sends a virtual resource replacement giving request to a server side; the server side binds more than two first clients sending requests in a matching way, and generates and sends replaceable virtual resource set data to each first client; displaying a replaceable virtual resource selection component in a live broadcasting room interface, acquiring selection information of an image of the replaceable resource 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, and generates and sends replaceable virtual resource presentation data to the client joining the live broadcasting room; and displaying the corresponding giving effect in the live broadcasting room interface. The method and the device can improve the audience retention rate and enhance the interactive interest of the user.

Description

Live broadcast room virtual resource giving method, device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of network live broadcasting, in particular to a live broadcasting room virtual resource giving method, a live broadcasting room virtual resource giving device, computer equipment and a storage medium.
Background
With the rapid development of internet technology and streaming media technology, network live broadcast is becoming an entertainment means that is becoming popular. More and more users begin to participate in the live process, experiencing multiple types of online interactions within the live room, such as: during the process of watching live broadcast, users may be attracted by the live highlight content to give gifts to the host in the live broadcast room.
One common way of live room interaction is the presentation of virtual resources, for example, a viewer presents a virtual gift to a host, and when the viewer wants to present a virtual gift to the host, the viewer can click on a gift selection control in the live room interface, then select a virtual gift in the pop-up gift bar, and after clicking confirmation, the viewer presents the virtual gift to the host. However, in the above process, after the audience selects the virtual gift, the virtual gift is immediately presented to the anchor, and the interaction only occurs between the audience and the anchor, and other users cannot be attracted to participate, so that the participation enthusiasm of other users on the interaction of the live broadcasting room is affected, and the audience retention rate of the live broadcasting room is further affected.
Disclosure of Invention
The embodiment of the application provides a live broadcasting room virtual resource presentation method, a live broadcasting room virtual resource presentation device, computer equipment and a storage medium, which can promote the interactive experience of users in a live broadcasting room, improve the participation degree and the retention rate of audiences and enhance the unknowns and the interestingness of gift sending, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for presenting virtual resources in a living room, including the steps of:
a first client side joining a live broadcasting room sends a virtual resource replacement giving request to a server side, wherein the virtual resource replacement giving 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;
the server side matches and binds more than two first clients sending the virtual resource replacement giving request, generates replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients matched and bound, and sends the replaceable virtual resource set data to the first clients matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients and user identifiers corresponding to the first clients, wherein the replaceable virtual resource identifiers are matched and bound;
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, the replaceable virtual resource selection component displays a plurality of replaceable resource images, and each replaceable resource image corresponds to a replaceable virtual resource identifier in at least one replaceable virtual resource set data;
the first client acquires selection information of the replacement resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to a server, wherein the resource selection request comprises a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to the selected replacement resource image;
the server binds the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replacement resource image according to the resource selection request sent by each first client; generating resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, and sending the resource state update information to each first client in matched binding; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier;
Each first client receives the resource state update information, and sets a corresponding replacement resource image in the replaceable virtual resource selection component to be in a bound state or an unbound state according to the resource state update information;
the server generates corresponding replaceable virtual resource presentation data of each first client and sends the data to the client joining the live broadcasting room, wherein each 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 a second client receiving the virtual resource;
and the client side joining the live broadcasting room receives the replaceable virtual resource presentation data, and displays the corresponding replaceable virtual resource presentation effect in the live broadcasting room interface.
In a second aspect, an embodiment of the present application also provides a method for giving virtual resources to a living room, including the steps of:
receiving a virtual resource replacement gift request sent by a first client joining a live broadcasting room, wherein the virtual resource replacement gift 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 receiving the virtual resource;
Matching and binding more than two first clients sending the virtual resource replacement giving request, generating replaceable virtual resource set data for replacing the virtual resource according to the replaceable virtual resource identifiers sent by the first clients in the matching and binding, and sending the replaceable virtual resource set data to the first clients in the matching and binding; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients which 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 replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to a replaceable virtual resource identifier in at least one 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 replacement resource image;
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 resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, and sending the resource state update information to each first client in matched binding; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier; the resource state update information is used for enabling the first client to set the corresponding replacement resource image in the replaceable virtual resource selection component to be in a bound state or an unbound state; generating corresponding replaceable virtual resource presentation data of each first client, and sending the data to the client joining the live broadcasting room, wherein each 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 a second client receiving the virtual resource.
In a third aspect, an embodiment of the present application provides a device for presenting virtual resources in a living room, including:
The system comprises a replacement presentation request acquisition module, a virtual resource replacement presentation module and a virtual resource replacement management module, wherein the replacement presentation request acquisition module is used for receiving a virtual resource replacement presentation request sent by a first client joining a live broadcast room, and 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 receiving virtual resources;
the replacement resource set data control module is used for matching and binding more than two first clients sending the virtual resource replacement gift request, generating replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients in the matching and binding, and sending the replaceable virtual resource set data to the first clients in the matching and binding; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients which 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 replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to a replaceable virtual resource identifier in at least one replaceable virtual resource set data;
A selection request acquisition 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 replacement resource image;
the presentation 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 resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, and sending the resource state update information to each first client in matched binding; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier; the resource state update information is used for enabling the first client to set the corresponding replacement resource image in the replaceable virtual resource selection component to be in a bound state or an unbound state; generating corresponding replaceable virtual resource presentation data of each first client, and sending the data to the client joining the live broadcasting room, wherein each 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 a second client receiving the virtual resource.
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, the processor implementing the steps of the method as in the first or second aspect when the computer program is executed.
In a fifth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps of a method as in the first or second aspect.
According to the method and the device for the virtual resource replacement presentation, after the first client side joining the live broadcasting room sends the virtual resource replacement presentation request, the first client side sending the virtual resource replacement presentation request is matched through the server side in response to the request of the first client side, the successfully matched first client sides can replace the virtual resources mutually to carry out presentation, and finally the replaced virtual resources are respectively sent out. The virtual resource replacement giving method can improve the interactive experience of users in the living 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 an application scenario schematic diagram of a live room virtual resource giving method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a live room interface in a general live room virtual resource presentation scenario;
fig. 3 is a flowchart of a method for giving virtual resources to a living room according to a first embodiment of the present application;
FIG. 4 is a schematic diagram showing a list of replaceable virtual resources in a live room interface according to a first embodiment of the present disclosure;
fig. 5 is a schematic display diagram of a payment page provided in the first embodiment of the present application in a live room interface;
FIGS. 6 and 7 are schematic diagrams illustrating a display of a replaceable virtual resource selection component in a live room interface according to a first embodiment of the present application;
fig. 8 is a partial flow chart of a virtual resource giving method in a living broadcast room according to the first embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a display of countdown hint information in a live room interface of another replaceable virtual resource selection component according to the first embodiment of the present application;
FIG. 10 is a flowchart illustrating another part of the method for presenting virtual resources in a living room according to the first embodiment of the present application;
FIG. 11 is another schematic illustration of a replaceable virtual resource selection component provided in accordance with a first embodiment of the present application in a live room interface;
Fig. 12 is a partial flow chart of a virtual resource giving method in a living broadcasting room according to a second embodiment of the present application;
FIG. 13 is a schematic view of a virtual resource presentation component in a live room interface according to a second embodiment of the present application;
fig. 14 is a schematic display diagram of a common virtual resource list in a live room interface according to a second embodiment of the present application;
fig. 15 is a flowchart of a live room virtual resource giving method according to a third embodiment of the present application;
fig. 16 is a schematic structural diagram of a live room virtual resource presenting apparatus 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 exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present 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 or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" 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 devices that include only wireless signal receiver devices without transmitting capabilities and devices that include receiving and transmitting hardware that include devices capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device such as a personal computer, tablet, or the like, having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; a PCS (PersonalCommunications Service, personal communication system) that may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant ) that can include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar and/or GPS (Global PositioningSystem ) receiver; a conventional laptop and/or palmtop computer or other appliance that has and/or includes a radio frequency receiver. As used herein, "client," "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, at any other location(s) on earth and/or in space. As used herein, a "client," "terminal device," or "terminal device" may also be a communication terminal, an internet terminal, or a music/video playing terminal, for example, a PDA, a MID (Mobile Internet Device ), and/or a mobile phone with music/video playing function, or may also be a device such as a smart tv, a set top box, or the like.
The hardware referred to by the names "server," "client," "service node," and the like in the present application is essentially a computer device with the performance of a personal computer, and is a hardware device with necessary components disclosed by von neumann principles such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device, where a computer program is stored in the memory, and the central processing unit invokes a program stored in the external memory to run in the memory, 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 this application is also extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but may be invoked through interfaces, or may be integrated into a physical computer or a set of computers. Those skilled in the art will appreciate this variation and should not be construed as limiting the implementation of the network deployment approach of the present application.
Referring to fig. 1, fig. 1 is a schematic application scenario of a live room virtual resource gifting method provided in an embodiment of the present application, where the application scenario includes a first client 101, a server 102, and a second client 103 provided in an embodiment of the present application, where the first client 101 and the second client 103 interact through the server 102.
The first client 101 refers to an end that gives a virtual resource, and may be a client used by a viewer (i.e., a live audience user) watching a video in a live broadcast, or a client used by a host (i.e., a live host user) in a live broadcast.
The second client 103 refers to the end that receives the virtual resource, typically the client employed by the anchor in the webcast (i.e., the live anchor user).
The hardware to which the first client 101 and the second client 103 are directed essentially refers to a computer device, in particular, as shown in fig. 1, which may be a smart phone, a smart interactive tablet, a personal computer, or the like. The first client 101 and the second client 103 can access the internet through a well-known network access manner, and establish a data communication link with the server 102.
The service end 102 serves as a service server, and may be responsible for further connecting to related audio data servers, video streaming servers, other servers providing related support, etc., to form a logically related service cluster for providing services to related terminal devices, such as the first client 101 and the second client 103 shown in fig. 1.
In this embodiment of the present application, the first client 101 and the second client 103 may join the same live broadcast room (i.e. live broadcast channel), where the live broadcast room refers to a chat room implemented by means of internet technology, and generally has an audio/video playing control function. The anchor user can live in the live broadcast room through the live broadcast client, and the audience of the audience client can log in the server 102 to watch live broadcast in the live broadcast room.
In a live broadcasting room, interaction between a host and a spectator can be realized through well-known online interaction modes such as voice, video, characters and the like, generally, a host user takes a form of providing an audio and video stream to perform a program for the spectator, and resource interaction behaviors can be generated in the interaction process, for example: viewers may be attracted to the live highlights while watching the live broadcast, giving virtual resources, such as virtual gifts, to the anchor of the live broadcast room.
Specifically, the process of viewing a live broadcast by a viewer is as follows: the audience can click to access a live broadcast application program installed on the audience client, select to enter any live broadcast room, trigger the audience client to load a live broadcast room interface for the audience, and the live broadcast room interface comprises a plurality of interaction components, so that the audience can watch live broadcast in the live broadcast room and perform various online interactions by loading the interaction components.
In the interaction process that the audience presents the virtual gift to the host, the audience selects the virtual gift which is wanted to be presented from a gift knapsack on the interface of the living broadcast room, a server receives a presentation request of a client of the audience and a corresponding user identifier and a gift identifier, and issues the user identifier and the gift identifier to the client which is added into the living broadcast room, and the client of the living broadcast room displays gift user information and a corresponding gift effect.
Referring to fig. 2, fig. 2 is a schematic diagram of a live room interface in a general virtual resource gifting scenario. Included in the live room interface shown in fig. 2 is a virtual resource presentation component 20, the virtual resource presentation component 20 comprising a virtual resource list 21, a quantity selection control 22, and a confirmation selection control 23. When the user wants to give the virtual gift to the anchor, the user can click on the icon of the virtual resource giving component 20 in the live interface, then select a certain virtual gift in the pop-up virtual resource list 21, click the number selection control 22 to determine the number of virtual gifts given, and finally click the confirmation selection control 23 to give the virtual gift to the anchor.
In the virtual gift giving process, after the user selects the virtual gift, the user gives the virtual gift to the anchor, and interaction only occurs between the user and the anchor and cannot attract other users to participate, so that the participation enthusiasm of the other users on the interaction between the live broadcasting room is influenced, and the audience retention rate of the live broadcasting room is further influenced.
Example 1
Based on the above, the embodiment of the application provides a method for giving virtual resources to a living broadcast room. Referring to fig. 3, fig. 3 is a flowchart of a live room virtual resource gifting method according to a first embodiment of the present application, the method includes the following steps:
s101: a first client side joining a live broadcasting room sends a virtual resource replacement gift request to a server side, wherein the virtual resource replacement gift 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 the virtual resource.
S102: the server side matches and binds more than two first clients sending the virtual resource replacement giving request, generates replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients matched and bound, and sends the replaceable virtual resource set data to the first clients matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients 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; and the replaceable virtual resource selection component displays a plurality of replaceable resource images, and each replaceable resource image corresponds to a replaceable virtual resource identifier in at least one replaceable virtual resource set data.
S104: the first client acquires selection information of the replacement resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to a server, wherein the resource selection request comprises a user identifier corresponding to the first client, a replaceable virtual resource identifier corresponding to the selected replacement resource image and a user identifier corresponding to a second client for receiving 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 replacement resource image according to the resource selection request sent by each first client, generates corresponding replaceable virtual resource presentation data, and sends the corresponding replaceable virtual resource presentation data to the client joining the live broadcasting room, wherein each replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier and the user identifier corresponding to the second client for receiving the virtual resource.
S106: and the client side joining the live broadcasting room receives the replaceable virtual resource presentation data, and displays the corresponding replaceable virtual resource presentation effect in the live broadcasting room interface.
In this embodiment, the method for giving virtual resources to the living broadcasting room is described from two execution subjects of the client and the server. The steps S101 to S106 will be described in detail below.
In step S101, a first client joining a live room issues a virtual resource replacement gift request to a server.
The first client added into the live broadcasting room is a client adopted by a user entering the current live broadcasting room. The user may be a viewer user entering a live broadcast room or other anchor user entering the live broadcast room.
The virtual resource replacement giving 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 resource. The second client is a client adopted by a host of the current live broadcasting room.
The user identifier corresponding to the first client may be a user ID (Identity document, identity number) logged in by the live user, or may be a device ID of the live user, or a corresponding communication identifier thereof, etc.
The replaceable virtual resource identifier may be a tag in a replaceable virtual resource attribute field, a custom 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 of the live broadcast anchor login, or may be a device ID of the live broadcast anchor, or a corresponding communication identifier thereof.
Please refer to fig. 4, which is a schematic diagram illustrating a display of a list of replaceable virtual resources in the live room interface in the present embodiment. After the user enters the live broadcasting room, selecting a replaceable virtual resource 401 which is wanted to be replaced and presented from the replaceable virtual resource list 40; the first client corresponding to the user respectively acquires a field 'A' from a virtual resource name corresponding to the replaceable virtual resource 401 as a replaceable virtual resource identifier, acquires a user ID '2345678' from a user ID402 as a user identifier corresponding to the first client, and acquires a anchor ID '1234567' from an anchor ID402 as a user identifier corresponding to the second client; and then, the first client generates a virtual resource replacement giving request from 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 giving request is generated.
In another alternative embodiment, before the first client joining the living room issues the virtual resource replacement gift request to the server, the method further includes the steps of:
the first client 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, the first client directly pays, and after the payment is successful, a virtual resource replacement giving request is sent to the server; if the balance of the user is smaller than the total value of the replaceable virtual resources selected by the user, jumping to a payment page, automatically calling and locking a 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 desired gift from the list of available virtual resources 40 and clicks the number selection control 404 to determine the number of gifts for the available virtual resources. Then after the user clicks the confirm 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 finish payment, and after the payment is successful, a virtual resource replacement giving request is sent to the server; if the balance of the user is smaller than the total value of the replaceable virtual resources selected by the user, jumping to the payment page 50, inputting the recharged amount in the payment amount display box 501, finally clicking the payment selection control 502 to finish the payment, and sending a virtual resource replacement gift request to the server after the payment is successful.
In an alternative embodiment, the user may also jump to payment page 50 for user balance recharge by clicking recharge select control 406.
Regarding step 102, the server side matches and binds more than two first clients sending the virtual resource replacement gift request, generates replaceable virtual resource set data for the current virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients of the matched and bound, and sends the replaceable virtual resource set data to the first clients of the matched and bound.
The two or more first clients sending the virtual resource replacement gift request may be two or more spectators joining a living room, other anchor, or a combination of spectators and other anchor.
Specifically, more than two first clients respectively start replacing gift playing methods, and after selecting respective replaceable virtual resources, the virtual resource replacing gift request is sent to a server. And then the server side carries out matching binding on more than two first clients sending the virtual resource replacement giving request, wherein the binding mode can be communication identification binding through each first client, equipment identification binding through each first client, corresponding user identification binding with each first client and the like.
In the step that the server binds more than two first clients sending the virtual resource replacement gift requests in a matching way, a threshold of the number of lowest matching people can be preset, and the server determines whether to bind the first clients in a matching way by judging whether the number of the received virtual resource replacement gift requests reaches the threshold of the preset number of the lowest matching people.
Specifically, if the number of the virtual resource replacement giving 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 giving requests received by the server does not reach the preset minimum matching number threshold, sending matching failure information to the corresponding first client.
The matching failure information is sent to each first client, and after each first client receives the matching failure information, matching failure prompt information is displayed in each live broadcasting room interface to prompt that the number of people participating in resource replacement is insufficient. The user can start another virtual resource replacement giving request through the first user terminal, and the server terminal matches again according to the request of the first user terminal.
After the server side carries out matching binding on the first clients, the server side generates replaceable virtual resource set data for replacing the virtual resource according to the replaceable virtual resource identifiers sent by the first clients in the matching binding, and sends the replaceable virtual resource set data to the first clients in the matching binding.
The replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients 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 clients and a user identifier corresponding to the second client. If the user identifier corresponding to each first client is included, after receiving the data of the replaceable virtual resource set, the client may display user information giving the replaceable virtual resource when displaying the corresponding replaceable virtual resource.
With respect to step 103, each of the first clients displays a replaceable virtual resource selection component in a live room interface according to the replaceable virtual resource set data.
The replaceable virtual resource selection component is used for providing all or part of the 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 of the replacement resource images corresponds to a replaceable virtual resource identifier in at least one of the replaceable virtual resource set data.
The replacement resource image may be an image of a gift box, a vase, or the like, and the display style thereof is not limited herein.
Each of the replacement resource images may correspond to a replaceable virtual resource identifier in one of the replaceable virtual resource set data, or may correspond to replaceable virtual resource identifiers in more than two of the replaceable virtual resource set data. In the latter case, when the replacement resource image corresponding to the replaceable virtual resource selection component is selected, it is equivalent to selecting two or more replaceable virtual resources simultaneously, and acquiring the respective replaceable virtual resource identifiers of the two or more replaceable virtual resources simultaneously.
The replacement resource image is an alternate image to the replaceable virtual resource in the process of exchanging the replaceable virtual resource, and preferably each replacement resource image is identical. When the user selects the replacement resource image, the user does not know what the corresponding replaceable virtual resource is in advance, and the interestingness of the replaceable virtual resource exchange is enhanced.
Specifically, please refer to fig. 6, which is a schematic diagram of a replaceable virtual resource selection component according to an embodiment of the present application. In fig. 6, the replaceable virtual resource is a replaceable virtual gift, and after each of the first clients receives the replaceable virtual resource set data sent by the server, a replaceable virtual resource selection component 60 is displayed in the live room interface according to the replaceable virtual resource set data. The replaceable virtual resource selection component 60 includes a plurality of replaceable resource selection controls 601, each of which displays a replaceable resource image, for example, a gift box, and a user can select one of the gift boxes through the replaceable resource selection control, which is equivalent to selecting to obtain the replaceable virtual resource identifier corresponding to the gift box.
In a preferred embodiment, the user can also know the replaceable virtual resource corresponding to the replacement resource image in advance by using a prop or the like.
The user side obtains an instruction for using perspective prop for the replacement resource image, wherein the instruction for using 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 replaceable virtual resource identifier corresponding to the replacement resource image.
In step 104, the first client obtains selection information of the replacement 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 replaceable 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 replacement resource image, and a user identifier corresponding to a second client that receives the virtual resource. The user identifier corresponding to the first client and the user identifier corresponding to the second client receiving the virtual resource can be sent to the server in advance when the first client sends a virtual resource replacement giving request and stored by the server, and after receiving the resource selection request, the server binds the user identifier corresponding to the first client, the replaceable virtual resource identifier corresponding to the selected replacement resource image and the user identifier corresponding to the second client receiving the virtual resource.
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 active state, the replacement resource image 601 in the replaceable virtual resource selection 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 cannot be selected, as shown in FIG. 7.
Specifically, referring to fig. 8, after the server binds more than two first clients sending the virtual resource replacement gift request, the method further includes the following steps:
s201: and the server generates the selection sequence of the replaceable virtual resources by each first client according to each first client which is bound in a matching way.
S202: and sending resource selection instructions to the corresponding first clients in turn according to the selection sequence.
S203: the first client side obtains the selection information of the replacement resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to a server side, and the method comprises the following steps of:
s2031: the first client 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: the first client receiving the resource selection instruction obtains selection information of the replacement resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to a 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 the replaceable virtual resources by each first client.
The selection sequence generated by the server is used as a sequence basis for the server to send the resource selection instruction to the first client. The resource selection instruction is used for indicating the first clients to display resource selection prompt information, and after each first client 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 the selection of the replaceable virtual resource. The resource selection prompt information is used for prompting a user to select the replaceable virtual resource.
The selection order generated by the server may be generated according to the order in which the first client sends the virtual resource replacement giving request to the server, or may be generated randomly, and the manner of generation is not limited herein.
The resource selection prompt information displayed by the first client in the live broadcasting room interface can be a text prompt, a pattern prompt or a mode of combining text and pattern.
In an optional embodiment, the resource selection prompt information 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, randomly selecting one replacement resource image to generate 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 room 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 to select a replacement resource image during the countdown, the first client corresponding to the user randomly selects one replacement resource image to generate selection information of 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 replacement resource image according to the resource selection request sent by each first client, generates corresponding replaceable virtual resource presentation data, and sends the corresponding replaceable virtual resource presentation data to the client joining the live broadcasting room.
Each piece of replaceable virtual resource presentation data comprises a user identifier corresponding to a first client, a bound replaceable virtual resource identifier, and a user identifier corresponding to a second client for receiving the virtual resource. The clients joining the living room comprise audience clients in the living room and anchor clients in the living room.
In an alternative embodiment, referring to fig. 10, after binding the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replacement resource image according to the resource selection request sent by each first client, the server further includes steps S301 to S305, specifically as follows:
s301: and the server generates resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image and sends the resource state update information to each first client in matched binding.
S302: and the first client receives the resource state updating information, and sets the corresponding replacement resource image in the replaceable virtual resource selection component to be in 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 client sides.
S3032: if the replaceable virtual resource identifier in the received resource selection request is already bound with another user identifier, the binding relation 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 received resource selection request.
S3033: and the server generates the resource state updating information and sends the resource state updating information to each first user terminal which is matched and bound.
S304: and sending the resource selection instruction again to the first client corresponding to the other user identifier.
S305: and after the first client corresponding to the other user identifier receives the resource selection instruction, displaying resource selection prompt information on a live broadcasting room interface, setting the replaceable virtual resource selection component to be in an activated state, acquiring selection information of the replaceable resource image through the replaceable virtual resource selection component, generating a resource selection request and sending the resource selection request to a server.
With respect to step S301, the resource status update information includes a user identifier corresponding to the first client, a replaceable virtual resource identifier corresponding to the first client, and status information of the virtual resource, where the status information may be selected or unselected.
With respect to step S302, the bound state and unbound state of the replacement resource image are used to prompt whether the corresponding replaceable resource has been selected.
In an alternative embodiment, the first client displays the replacement resource image in the unbound state as a uniform universal resource image; and the first client displays the replacement resource image in the bound state as a replaceable virtual resource image corresponding to the replaceable virtual resource identifier.
Specifically, the first client receives resource status update information sent by the server, and sets the selected replacement resource image as a bound status according to selection information of the replacement resource image by a user in the resource status update information, wherein the replacement resource image in the bound status is displayed as a replaceable virtual resource image corresponding to the replaceable virtual resource identifier; and setting the unselected replacement resource image to be in an unbound state, wherein the replacement resource image in the unbound state is displayed as a uniform universal resource image.
The universal resource image is used for indicating that the corresponding replacement resource is not selected by the user. The universal resource figures may be displayed in a unified manner in a gift box, a vase, a bouquet, etc., and the manner of display thereof is not limited herein.
Displaying the corresponding replaceable virtual resource image is used for representing that the corresponding replaceable resource image representation is selected by a user, such as a specific gift displayed after the gift box is opened. The first client can attach information of the user identifier bound with the corresponding replaceable virtual resource identifier on the replacement resource image in the bound state.
The information of the user identifier bound with the corresponding replaceable virtual resource identifier can be user information such as an ID, a name, an avatar and the like corresponding to the user.
Regarding steps 3031 to 3033, the other user identifier is the user identifier currently bound to the replaceable virtual resource identifier corresponding to the currently selected replacement resource image, that is, the user identifier bound to the replaceable virtual resource identifier corresponding to the last selected replacement resource image.
Specifically, the server side sequentially receives the resource selection requests sent by the first client sides, if the replacement resource image selected by the user in the received resource selection request is in a bound state, the state of the replacement resource image is changed into 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, new resource state update information is generated and sent to the first client sides matched and bound. The user at this time is the user with the user identification bound in the received resource selection request at this time. The process realizes the robbery of the user on the replacement resource image selected by the other user, and enhances the interest of the user interaction in the live broadcasting room.
In step 304, after the last selected replacement resource image of the other user identifier is robbed by the current user, the server side will send a resource selection instruction again to the first client corresponding to the other user identifier, so as to prompt the other user to select the replacement resource image again.
In step 305, after the first client corresponding to the other user identifier receives the resource selection instruction, a resource selection prompt message is displayed in a live broadcast room interface, the replaceable virtual resource selection component is set to be in an activated state, selection information of the replacement resource image is obtained through the replaceable virtual resource selection component of the first client corresponding to the other user identifier, a resource selection request is generated and sent to a server, and the replaceable virtual resource selection component is set to be in an inactive state.
And 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, and generates new resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image and sends the new resource state update information to each first client matched and bound, and then the next round of replacement resource image selection is carried out.
In an alternative embodiment, referring to FIG. 11, the replaceable virtual resource component 60 includes 4 replacement resource images 601. Wherein the replacement resource image 601a has been selected by the user A, displayed as a specific gift, such as "love", and information of the user identifier, such as user A ID, bound to the corresponding replaceable virtual resource identifier is attached to the selected replacement resource image 601 a; the other 3 replacement resource images are not selected to be displayed as unified universal resource images, such as gift boxes. When the replacement resource image selected by the user B is the replacement resource image 601a selected by the user A, the server side releases the binding relation 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 with the user B identifier, generates new resource state update information, and sends the new resource state update information to each first user side matched and bound.
And then the server sends the resource selection instruction to the user A again, after the user A receives the resource selection instruction, the user A displays resource selection prompt information in the live broadcast room interface, sets the replaceable virtual resource selection component 60 to be in an activated state, acquires the 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 sets the replaceable virtual resource selection component 60 to be in an inactive state. And the server generates new resource state update information according to the replaceable virtual resource identifier corresponding to the replacement resource image selected by the user A, sends the new resource state update information to each first client in matched binding, and then enters the selection of the next replacement resource image.
Regarding step 106, the client joining the living broadcast room receives the replaceable virtual resource gifting data, and displays the corresponding replaceable virtual resource gifting effect in the living broadcast room interface.
Specifically, the replaceable virtual resource presentation effect may be displayed according to different virtual resource attributes. Such as displaying special effects like streamer, fireworks, etc.
In an alternative embodiment, each of the 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 each of the replaceable virtual resources. And the client side joining the live broadcasting room receives the replaceable virtual resource presentation data, and displays corresponding replaceable virtual resource presentation effects in the live broadcasting room interface in sequence according to the presentation sequence.
The presentation order of the respective replaceable virtual resources is used as a display order of the replaceable virtual resources in the live room interface.
The presentation sequence of each replaceable virtual resource can be arranged from large to small according to the value quantity corresponding to each replaceable virtual resource identifier; the order of the replaceable virtual resources can be arranged according to the selection of the user; or arranged according to a preset gift number, etc.
According to the method, a brand new virtual resource giving method can be provided for users giving virtual resources in a living broadcast room, replaceable virtual resources needing to be given are selected through the first client, the server responds to virtual resource replacement giving requests of the first client, more than two first clients sending the virtual resource replacement giving requests are bound in a matching mode, the first clients which are bound in a matching mode are used for carrying out virtual resource replacement, and finally each first client gives the replaced virtual resources to a second client in the living broadcast room. The method can effectively improve the interactive experience of the user in the live broadcasting room, and improve the participation degree and the retention rate of the audience.
Example 2
Referring to fig. 12, fig. 12 is a flow chart of a live-room virtual resource presenting method according to a second embodiment of the present application, wherein the live-room virtual resource presenting method according to the present embodiment is 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 live-room virtual resource presenting method further includes the following steps:
S401: the first client displays a virtual resource presentation component in a live broadcast room interface; the virtual resource presentation component includes a replaceable virtual resource presentation component and a generic virtual resource presentation component.
S402: the first client acquires selection information of the common virtual resources through the common virtual resource giving component, generates a resource selection request and sends the resource selection request to the server, wherein the resource selection request comprises a user identifier corresponding to the first client, a common virtual resource identifier corresponding to the selected common virtual resource image and a user identifier corresponding to a second client for receiving the virtual resources.
S403: the server binds the user identification corresponding to the first client with the common virtual resource identification 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 client joining the living broadcast room, wherein each common virtual resource presentation data comprises the user identification corresponding to the first client, the bound common virtual resource identification, and the user identification corresponding to the second client for receiving the virtual resource.
S404: and the client side joining the live broadcasting room receives the common virtual resource presentation data, and displays the corresponding common virtual resource presentation effect in the live broadcasting room interface.
In this embodiment, if the user selects the method for presenting the replaceable virtual resource corresponding to the replaceable virtual resource presenting component, specific steps of the method are the same as steps S101 to S106 in the first embodiment, and a description thereof will not be repeated, specifically, refer to the first embodiment.
Specifically, after the user enters the live broadcast room, the first client side fully pulls the virtual resource configuration data, and filters out the replaceable virtual resource through the replaceable virtual resource identifier.
Referring to fig. 13, the virtual resource donation component 110 includes a replaceable virtual resource donation component 111 and a normal virtual resource donation component 112.
If the user opens the virtual resource gifting component 110 and clicks on the replaceable virtual resource gifting component 111 icon, a list of replaceable virtual resources is presented. The user selects the replaceable virtual resource which is wanted to be presented from the replaceable virtual resource list, the first client side responds to the selected information of the replaceable virtual resource in the replaceable virtual resource list, obtains the corresponding replaceable virtual resource identification, the user identification corresponding to the first user side and the user identification corresponding to the second client side which receives the virtual resource, and generates the virtual resource replacement presentation request and sends the virtual resource replacement presentation request to the server side. The virtual resource replacement giving method according to the first embodiment is described in steps S101 to S106.
Referring to fig. 14, if the user opens the virtual resource presenting component 110 and clicks on the icon of the normal virtual resource presenting component 112, the normal 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 room interface.
The virtual resource presentation component comprises a replaceable virtual resource presentation component for providing virtual resource replacement play for a user and a common virtual resource presentation component for providing common virtual resource presentation play for the user.
The common virtual resource presentation component is used for providing common virtual resources for users to select, and a plurality of common virtual resource images are displayed in the common virtual resource presentation component.
With regard to step S402, the first client obtains selection information of the common virtual resource through the common virtual resource gifting component, generates a resource selection request, and sends the resource selection request to the server.
The selection information of the common virtual resources 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 playing methods according to wish: the method comprises the traditional common virtual resource presentation playing method and the newly proposed virtual resource replacement playing method, so that the virtual resource presentation method in the live broadcasting room can be further enriched, and the interactive experience of users is improved.
Example 3
Referring to fig. 15, fig. 15 is a flow chart of a live room virtual resource giving method according to a third embodiment of the present application, where the live room virtual resource giving method is applicable to a server, and includes the following steps:
s501: receiving a virtual resource replacement gift request sent by a first client joining a live broadcasting room, wherein the virtual resource replacement gift 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 receiving the virtual resource;
s502: matching and binding more than two first clients sending the virtual resource replacement giving request, generating replaceable virtual resource set data for replacing the virtual resource according to the replaceable virtual resource identifiers sent by the first clients in the matching and binding, and sending the replaceable virtual resource set data to the first clients in the matching and binding; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients and user identifiers corresponding to the first clients, wherein the replaceable virtual resource identifiers 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 replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to a replaceable virtual resource identifier in at least one 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 replacement resource image;
s504: 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 corresponding replaceable virtual resource presentation data to the client joining the live broadcasting room, wherein each replaceable virtual resource presentation data comprises the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and the user identifier corresponding to the second client receiving the virtual resource.
In this embodiment, the method for giving virtual resources to the living broadcasting room is described by taking the server as the execution subject, and the detailed description of steps S501 to S504 can be referred to the detailed description of embodiments 1 and 2, and will not be repeated here.
Example 4
Referring to fig. 16, fig. 16 is a schematic structural diagram of a live room virtual resource presenting apparatus according to a fourth embodiment of the present application. The apparatus may be implemented as all or part of a server by software, hardware, or a combination of both. The apparatus 10 comprises:
A replacement presentation request acquisition 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;
the replacement resource set data control module 12 is configured to match and bind two or more first clients sending the virtual resource replacement gift request, generate replaceable virtual resource set data for the current virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients that match and bind, and send the replaceable virtual resource set data to the first clients that match and bind; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients and user identifiers corresponding to the first clients, wherein the replaceable virtual resource identifiers 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 replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to a replaceable virtual resource identifier in at least one 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 the selected replacement resource image;
and the presentation data control module 14 is configured to bind 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, generate corresponding replaceable virtual resource presentation data, and send the corresponding replaceable virtual resource presentation data to the client joining the living broadcast room, where each replaceable virtual resource presentation data includes the user identifier corresponding to the first client, the bound replaceable virtual resource identifier, and the user identifier corresponding to the second client that receives the virtual resource.
It should be noted that, when the live room virtual resource presenting device provided in the foregoing embodiment executes the live room virtual resource presenting method, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation 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 room virtual resource presentation device and the live room virtual resource presentation method provided in the above embodiments belong to the same concept, which embody detailed implementation processes in method embodiments 1 and 2, and 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 executable on the processor 151, for example: live room virtual resource giving program; the processor 151 implements the steps of the above-described embodiments when executing the computer program 153.
Wherein the processor 151 may comprise one or more processing cores. The processor 151 connects various portions of 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 invoking data in the memory 152, and alternatively, the processor 151 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programble Logic Array, PLA). The processor 151 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the touch display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 151 and may be implemented by a single chip.
The Memory 152 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 152 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 152 may be used to store instructions, programs, code sets, or instruction sets. The memory 152 may include a stored program area and a stored data area, wherein the stored program 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, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 152 may also optionally be at least one storage device located remotely from the aforementioned processor 151.
The embodiment of the present application further provides a computer readable storage medium, where a plurality of instructions may be stored, where the instructions are suitable for being loaded by a processor and executed by a processor, and a specific execution process may refer to a specific description of the foregoing embodiment, which is not repeated herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a 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 process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of each method embodiment described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc.
The present invention is not limited to the above-described embodiments, but, if various modifications or variations of the present invention are not departing from the spirit and scope of the present invention, the present invention is intended to include such modifications and variations as fall within the scope of the claims and the equivalents thereof.

Claims (13)

1. A method for presenting virtual resources in a living room, the method comprising the steps of:
a first client side joining a live broadcasting room sends a virtual resource replacement giving request to a server side, wherein the virtual resource replacement giving 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;
the server side matches and binds more than two first clients sending the virtual resource replacement giving request, generates replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients matched and bound, and sends the replaceable virtual resource set data to the first clients matched and bound; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients and user identifiers corresponding to the first clients, wherein the replaceable virtual resource identifiers are matched and bound;
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, the replaceable virtual resource selection component displays a plurality of replaceable resource images, and each replaceable resource image corresponds to a replaceable virtual resource identifier in at least one replaceable virtual resource set data;
the first client acquires selection information of the replacement resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to a server, wherein the resource selection request comprises a user identifier corresponding to the first client and a replaceable virtual resource identifier corresponding to the selected replacement resource image;
the server binds the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replacement resource image according to the resource selection request sent by each first client; generating resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, and sending the resource state update information to each first client in matched binding; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier;
Each first client receives the resource state update information, and sets a corresponding replacement resource image in the replaceable virtual resource selection component to be in a bound state or an unbound state according to the resource state update information;
the server generates corresponding replaceable virtual resource presentation data of each first client and sends the data to the client joining the live broadcasting room, wherein each 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 a second client receiving the virtual resource;
and the client side joining the live broadcasting room receives the replaceable virtual resource presentation data, and displays the corresponding replaceable virtual resource presentation effect in the live broadcasting room interface.
2. The method of claim 1, wherein the step of the server binding more than two first clients sending the virtual resource replacement gift request in a matching manner comprises:
if the number of the virtual resource replacement giving 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 giving requests received by the server does not reach the preset minimum matching number threshold, sending matching failure information to the corresponding first client.
3. The live room virtual resource gifting method of claim 1, wherein:
the first client displays a virtual resource presentation component on a live broadcast room interface, wherein the virtual resource presentation component comprises a replaceable virtual resource presentation component and a common virtual resource presentation component;
the first client responds to the selected information of the replaceable virtual resource in the replaceable virtual resource presentation component, acquires a corresponding replaceable virtual resource identifier and a user identifier corresponding to the first client, generates the virtual resource replacement presentation request and sends the virtual resource replacement presentation request to a server;
the first client side responds to the selected information of the common virtual resources in the common virtual resource presentation component, acquires a corresponding common virtual resource identifier and a user identifier corresponding to the first client side, generates a common virtual resource presentation request and sends the common virtual resource presentation request to a server side; the common virtual resource presentation 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;
After receiving the common virtual resource presentation request, the server generates corresponding virtual resource presentation data and sends the virtual resource presentation data to the client joining the live broadcasting room, wherein the virtual resource presentation data comprises a user identifier corresponding to a first client, a common virtual resource identifier and a user identifier corresponding to a second client receiving the virtual resource.
4. The live room virtual resource presentation method of claim 1, wherein the replaceable virtual resource selection component is settable to an active state and an inactive state; in an active state, a replacement resource persona in the replaceable virtual resource selection component may be selected; in an inactive state, the replacement resource image in the replaceable virtual resource selection component cannot be selected;
after the server side binds more than two first clients sending the virtual resource replacement giving requests in a matching way, the method further comprises the following steps:
the server side binds each first client side according to matching, and generates a selection sequence of each first client side for 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 replacement resource image through the replaceable virtual resource selection component, generates a resource selection request and sends the resource selection request to a server side, and the method comprises the following steps of:
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 replacement resource image through the replaceable virtual resource selection component, generates a resource selection request, sends the resource selection request to a server side, and sets the replaceable virtual resource selection component to be in an inactive state;
the first client not receiving the resource selection instruction sets the replaceable virtual resource selection component to an inactive state.
5. The method of claim 4, wherein the resource selection hint information displayed by the first client in the live 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, randomly selecting one replacement resource image to generate the selection information of the replacement resource image.
6. The live room virtual resource presentation method as claimed in any one of claims 1 to 5, wherein the step of setting the corresponding replacement resource persona in the replaceable virtual resource selection component to a bound state or an unbound state by the first client according to the resource status 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.
7. The live room virtual resource presentation method of any one of claims 1 to 5, wherein the step of the first client setting the corresponding replacement resource persona 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 replacement resource image in the bound state.
8. The living room virtual resource presentation method according to any one of claims 1 to 5, wherein the step of binding the user identifier corresponding to the first client with the replaceable virtual resource identifier corresponding to the selected replacement resource figure by the server according to the resource selection request sent by each of the first clients includes:
The server side sequentially receives the resource selection requests sent by the first client sides, if the replaceable virtual resource identifiers in the received resource selection requests are already bound with another user identifier, the binding relation between the corresponding replaceable virtual resource identifiers and the other user identifier is released, the replaceable virtual resource identifiers and the user identifiers in the received resource selection requests are bound, the resource state update information is generated, and the resource state update information is sent to the first user sides which are matched and bound;
and re-sending a resource selection instruction to the first client corresponding to the other user identifier;
and after the first client corresponding to the other user identifier receives the resource selection instruction, displaying resource selection prompt information on a live broadcasting room interface, setting the replaceable virtual resource selection component to be in an activated state, acquiring selection information of the replaceable resource image through the replaceable virtual resource selection component, generating a resource selection request and sending the resource selection request to a server.
9. The live room virtual resource presentation method of claim 1, wherein the replaceable virtual resource presentation data further comprises a presentation order for each replaceable virtual resource;
The step of receiving the replaceable virtual resource presentation data by the client joining the living broadcast room and displaying the corresponding replaceable virtual resource presentation effect in the living broadcast room interface comprises the following steps:
and the client side added into the living broadcast room sequentially displays corresponding replaceable virtual resource giving effects in the living broadcast room interface according to the giving sequence.
10. A method for presenting virtual resources in a living room, the method comprising the steps of:
receiving a virtual resource replacement gift request sent by a first client joining a live broadcasting room, wherein the virtual resource replacement gift 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 receiving the virtual resource;
matching and binding more than two first clients sending the virtual resource replacement giving request, generating replaceable virtual resource set data for replacing the virtual resource according to the replaceable virtual resource identifiers sent by the first clients in the matching and binding, and sending the replaceable virtual resource set data to the first clients in the matching and binding; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients and user identifiers corresponding to the first clients, wherein the replaceable virtual resource identifiers 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 replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to a replaceable virtual resource identifier in at least one 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 replacement resource image;
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 resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, and sending the resource state update information to each first client in matched binding; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier; the resource state update information is used for enabling the first client to set the corresponding replacement resource image in the replaceable virtual resource selection component to be in a bound state or an unbound state; generating corresponding replaceable virtual resource presentation data of each first client, and sending the data to the client joining the live broadcasting room, wherein each 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 a second client receiving the virtual resource.
11. A live room virtual resource presentation apparatus, comprising:
the system comprises a replacement presentation request acquisition module, a virtual resource replacement presentation module and a virtual resource replacement management module, wherein the replacement presentation request acquisition module is used for receiving a virtual resource replacement presentation request sent by a first client joining a live broadcast room, and 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 receiving virtual resources;
the replacement resource set data control module is used for matching and binding more than two first clients sending the virtual resource replacement gift request, generating replaceable virtual resource set data for the virtual resource replacement according to the replaceable virtual resource identifiers sent by the first clients in the matching and binding, and sending the replaceable virtual resource set data to the first clients in the matching and binding; the replaceable virtual resource set data at least comprises replaceable virtual resource identifiers sent by the first clients and user identifiers corresponding to the first clients, wherein the replaceable virtual resource identifiers 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 replacement resource images are displayed in the replaceable virtual resource selection component, and each replacement resource image corresponds to a replaceable virtual resource identifier in at least one replaceable virtual resource set data;
A selection request acquisition 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 replacement resource image;
the presentation 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 resource state update information according to the replaceable virtual resource identifier corresponding to the selected replacement resource image, and sending the resource state update information to each first client in matched binding; the resource state updating information comprises a user identifier corresponding to the first client and a corresponding bound replaceable virtual resource identifier; the resource state update information is used for enabling the first client to set the corresponding replacement resource image in the replaceable virtual resource selection component to be in a bound state or an unbound state; generating corresponding replaceable virtual resource presentation data of each first client, and sending the data to the client joining the live broadcasting room, wherein each 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 a second client receiving the virtual resource.
12. A computer device, comprising: a processor, a 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 one of claims 1 to 5, any one of claims 6 to 9 or claim 10 when the computer program is executed.
13. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 5, any one of claims 6 to 9 or claim 10.
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 CN114268812A (en) 2022-04-01
CN114268812B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105160522A (en) * 2015-07-31 2015-12-16 腾讯科技(深圳)有限公司 Virtual resource transfer method, related device 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN114268812A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN114268812B (en) Live broadcast room virtual resource giving method, device, computer equipment and storage medium
CN113949892B (en) Live broadcast interaction method, system, equipment and medium based on virtual resource consumption
CN113840154B (en) Live broadcast interaction method and system based on virtual gift and computer equipment
CN113727130B (en) Message prompting method, system and device for live broadcasting room and computer equipment
CN113613027B (en) Live broadcast room recommendation method and device and computer equipment
CN113038228B (en) Virtual gift transmission and request method, device, equipment and medium thereof
CN113573083A (en) Live wheat-connecting interaction method and device and computer equipment
CN114007094A (en) Voice microphone-connecting interaction method, system, medium and computer equipment for live broadcast room
CN113824976A (en) Method and device for displaying approach show in live broadcast room and computer equipment
CN114666672B (en) Live fight interaction method and system initiated by audience and computer equipment
CN113596504A (en) Live broadcast room virtual gift presenting method and device and computer equipment
CN113840156A (en) Live broadcast interaction method and device based on virtual gift and computer equipment
CN113840155B (en) Virtual gift replacement method, system and computer equipment
CN113938696B (en) Live broadcast interaction method and system based on custom virtual gift and computer equipment
CN113573105B (en) Live broadcast interaction method based on virtual gift of screen and computer equipment
CN114630155A (en) Live broadcast interaction method, system and device based on user identity and computer equipment
CN114007095A (en) Voice microphone-connecting interaction method, system, medium and computer equipment for live broadcast room
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
CN114650440A (en) Virtual item sharing method and device for live broadcast room, computer equipment and medium
CN115314727A (en) Live broadcast interaction method and device based on virtual object and electronic equipment
CN114760502A (en) Live broadcast room approach show merging and playing method and device and computer equipment
CN114885191A (en) Interaction method, system, device and equipment based on exclusive nickname of live broadcast room
CN114302165B (en) Live broadcast room virtual gift giving method, device, computer equipment and storage medium
CN114302162B (en) Message bubble display method, system 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