CN109104641B - Method and device for presenting virtual gift in multi-main broadcast live broadcast room - Google Patents

Method and device for presenting virtual gift in multi-main broadcast live broadcast room Download PDF

Info

Publication number
CN109104641B
CN109104641B CN201811151958.5A CN201811151958A CN109104641B CN 109104641 B CN109104641 B CN 109104641B CN 201811151958 A CN201811151958 A CN 201811151958A CN 109104641 B CN109104641 B CN 109104641B
Authority
CN
China
Prior art keywords
user client
live broadcast
virtual gift
broadcast room
anchor
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
CN201811151958.5A
Other languages
Chinese (zh)
Other versions
CN109104641A (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 CN201811151958.5A priority Critical patent/CN109104641B/en
Publication of CN109104641A publication Critical patent/CN109104641A/en
Application granted granted Critical
Publication of CN109104641B publication Critical patent/CN109104641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof

Abstract

The application provides a method and a device for giving a virtual gift in a multi-anchor live broadcast room, wherein the method comprises the following steps: randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room; and playing the animation for giving the virtual gift to the user client side for receiving the virtual gift. According to the method and the system, the user client side which receives the virtual gifts is randomly selected, the gifting animation is played after the target of the gifting is randomly determined, so that the user can realize random gifting, random selection can be provided for the user under the condition that the user does not determine which anchor is required to be gifted, and the problem that when the audience does not know which anchor is selected as the object for gifting the gifts, the audience is often trapped in the confusion of selection is solved. Meanwhile, the method and the system can help the user in the multi-main-broadcast live broadcast room to select a temporary topic center in a random gift sending mode, and the beneficial effect of breaking a cold field is achieved.

Description

Method and device for presenting virtual gift in multi-main broadcast live broadcast room
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for presenting a virtual gift in a multi-main-broadcast live broadcast room.
Background
In internet live broadcast applications, presenting virtual gifts is the main form of audience interaction with the anchor, and is also the main way for the anchor to obtain revenue.
When a plurality of guests are invited to connect to the wheat in the live broadcasting room of the anchor, and a multi-person audio/video is formed, the live broadcasting is performed in the same live broadcasting room as a plurality of anchors, and the audio/video of each anchor is displayed on the same live broadcasting room interface, as shown in fig. 1. In the system architecture, the user clients (including the viewer client and the anchor client) are connected to the server, as shown in fig. 2. When the viewer wants to gift a virtual gift to the anchor, the gift is generally given in the form of "select gift-select amount-select anchor-gift". In a multi-anchor live room scenario, it is often trapped in the confusion of selection when the viewer does not know which anchor to select as the subject for gifting the gift. At the moment, a cold field is generated, and the situation of embarrassment is caused, so that the live broadcast interaction effect is poor.
Disclosure of Invention
The invention provides a method and a device for presenting a virtual gift in a multi-main-broadcast live broadcast room, which are used for improving the interaction effect and solving the problem of poor live broadcast interaction effect caused by a cold field during multi-main-broadcast live broadcast.
In view of the above, a first aspect of the present application provides a method for gifting a virtual gift in a multi-anchor live broadcast room, including:
randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room;
and playing the animation for giving the virtual gift to the user client side for receiving the virtual gift.
Preferably, the randomly selecting, from the candidate user clients in the multi-anchor live broadcast room, the user client that accepts the virtual gift according to the random gift giving instruction sent by the user client in the multi-anchor live broadcast room specifically includes:
determining a user client side for sending a random virtual gift giving instruction according to a first user client side ID in the random virtual gift giving instruction sent by the user client side in the multi-anchor live broadcast room;
acquiring user client ID sets of all user clients in a multi-anchor live broadcast room;
removing IDs, which are the same as the IDs of the first user clients, in the user client ID sets of all the user clients in the multi-anchor live broadcast room to obtain a candidate user client ID set in the multi-anchor live broadcast room;
and randomly selecting the user client ID from the candidate user client ID set through a random algorithm to serve as a second user client ID for receiving the virtual gift.
Preferably, the user clients include a viewer client and an anchor client, and the randomly selecting the user client accepting the virtual gift further includes:
and removing the user client with the user client type as the audience client from the candidate user clients in the multi-anchor live broadcast room.
Preferably, after randomly selecting a user client that accepts the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift-giving instruction sent by the user client in the multi-anchor live broadcast room, and before playing an animation that gives the virtual gift to the user client that accepts the virtual gift, the method further includes:
judging whether the number of the virtual gifts in the virtual gift giving instruction is larger than a preset first threshold value, if so, playing the special effect of the random turntable and then executing the next step (playing the animation giving the virtual gift to the user client receiving the virtual gift), and if not, directly executing the next step (playing the animation giving the virtual gift to the user client receiving the virtual gift);
the playing random carousel special effect specifically includes:
and determining the live broadcast room interface position corresponding to the candidate user client, and continuously playing the animation of the selection identifier rotating at the live broadcast room interface position corresponding to the candidate user client for a preset time so that the selection identifier stops at the live broadcast room interface position corresponding to the user client receiving the virtual gift.
Preferably, the candidate user client when determining the live broadcast interface position corresponding to the candidate user client is a candidate user client corresponding to the randomly selected user client who accepts the virtual gift.
Preferably, the playing animation that the selection identifier rotates at the live broadcast interface position corresponding to the candidate user client for the preset duration, so that the stopping of the selection identifier at the live broadcast interface position corresponding to the user client that accepts the virtual gift specifically includes:
calculating an initial position of a selection identifier according to a live broadcast room interface position, preset time and a preset rotation animation speed corresponding to a user client receiving the virtual gift;
and playing the rotation animation according to the initial position of the selection identifier, the preset time and the preset rotation animation speed.
Preferably, the playing the animation that presents the virtual gift to the user client that accepts the virtual gift specifically includes:
generating an animation path by taking a live broadcast interface position corresponding to a user client side which sends a random virtual gift giving instruction as a starting point and a randomly selected live broadcast interface position corresponding to a user client side which receives the virtual gift as an end point;
and displaying the animation of the virtual gift moving from the starting point to the end point according to the animation path.
Preferably, the animation path is generated by taking the interface position of the live broadcast room corresponding to the user client side which sends the instruction of randomly giving the virtual gift as a starting point and taking the interface position of the live broadcast room corresponding to the user client side which receives the virtual gift which is randomly selected as an end point; the step of displaying the animation of the virtual gift moving from the starting point to the ending point according to the animation path specifically comprises the following steps:
acquiring the type of a user client side sending a random gift giving instruction;
when the type of the user client sending the random gift giving instruction is the audience client, determining a first display starting point of the virtual gift in an audience area of the live broadcast room according to the identification of the audience client, determining a first display end point of the virtual gift in a target anchor area of the live broadcast room according to the identification of the user client receiving the virtual gift, and generating a first animation path of the virtual gift between the audience area and the target anchor area based on the first display starting point and the first display end point;
when the type of the user client sending the random gifting virtual gift instruction is an anchor client, determining a second display starting point of the virtual gift in a non-target anchor area of the live broadcast room according to the identifier of the anchor client, determining a second display end point of the virtual gift in a target anchor area of the live broadcast room according to the identifier of the user client receiving the virtual gift, and generating a second animation path of the virtual gift between the non-target anchor area and the target anchor area based on the second display starting point and the second display end point.
A second aspect of the present application provides an apparatus for gifting a virtual gift in a multi-anchor live broadcast room, which is performed according to the method for gifting a virtual gift in a multi-anchor live broadcast room as described in the first aspect, and includes:
the random selection module is used for randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room;
and the animation playing module is used for playing the animation which presents the virtual gift to the user client side which receives the virtual gift.
A third aspect of the present application provides an apparatus for gifting a virtual gift in a multi-cast live broadcast room, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of gifting a virtual gift between a multi-podcast live broadcast room of the first aspect in accordance with instructions in the program code.
A fourth aspect of the present application provides a system for presenting a virtual gift in a multi-anchor live broadcast room, comprising a server and a user client;
the user client side is used for randomly selecting a user client side for receiving the virtual gift from candidate user client sides in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client side in the multi-anchor live broadcast room, and then playing animation for giving the virtual gift to the user client side for receiving the virtual gift;
the server is used for synchronizing the animation data to other user clients so that the other user clients play the animation which presents the virtual gift to the user client which receives the virtual gift.
A fifth aspect of the present application provides a computer-readable storage medium for storing program code for executing the method for gifting a virtual gift between a multi-cast live broadcast room of the first aspect.
According to the technical scheme, the invention has the following advantages:
the application provides a method for presenting a virtual gift in a multi-anchor live broadcast room, which comprises the following steps: randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room; and playing the animation for giving the virtual gift to the user client side for receiving the virtual gift. According to the method and the system, the user client side which receives the virtual gifts is randomly selected, the gifting animation is played after the target of the gifting is randomly determined, so that the user can realize random gifting, random selection can be provided for the user under the condition that the user does not determine which anchor is required to be gifted, and the problem that when the audience does not know which anchor is selected as the object for gifting the gifts, the audience is often trapped in the confusion of selection is solved. Meanwhile, the method and the system can help the user in the multi-main-broadcast live broadcast room to select a temporary topic center in a random gift sending mode, and the beneficial effect of breaking a cold field is achieved.
Drawings
In order to illustrate the embodiments of the invention more clearly, the drawings that are needed for describing the embodiments or the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic diagram of the effect in a multi-anchor live broadcast room of the present application;
FIG. 2 is an architecture diagram of a system for gifting a virtual gift between a multi-cast live broadcast room in the present application;
FIG. 3 is a flow diagram of a method for gifting a virtual gift between multiple live broadcast bays according to one embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of another embodiment of a method for gifting a virtual gift between multiple live broadcast bays as provided by the present application;
FIG. 5 is a diagram of an interaction interface of a live broadcast room in an embodiment of a method for gifting a virtual gift in a multi-anchor live broadcast room according to the present application;
fig. 6 is a schematic diagram illustrating a special effect of a play carousel in an interactive interface diagram of a live broadcast room in an embodiment of a method for presenting a virtual gift in a multi-main broadcast live broadcast room according to the present application;
fig. 7 is a schematic diagram illustrating a situation in which a gifted gift is played in a live broadcast room interactive interface diagram in an embodiment of a method for gifting a virtual gift in a multi-host live broadcast room provided by the present application;
fig. 8 is a schematic view illustrating another situation of playing a gifted gift in a live broadcast room interactive interface diagram in an embodiment of a method for gifting a virtual gift in a multi-host live broadcast room provided by the present application.
Detailed Description
The invention provides a method and a device for presenting a virtual gift in a multi-main-broadcast live broadcast room, which are used for improving the interaction effect and solving the problem of poor live broadcast interaction effect caused by a cold field during multi-main-broadcast live broadcast.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that please refer to fig. 2 for a live broadcast scene in the present application, fig. 2 is a live broadcast scene diagram in the present application embodiment, as shown in fig. 2, fig. 2 includes a terminal device, a server device, and the like, wherein an anchor client 103 may be installed on the terminal device 101, an anchor client 104 may be installed on the terminal device 102, and the anchor client 104 may call a camera to record a video, take a picture, or make a live broadcast picture in other manners, and then send the live broadcast picture to the server device 110 through a network, and show the live broadcast scene in the multi-anchor live broadcast room shown in fig. 1. The server device 110 is used to provide a background service for live video, store the correspondence between the anchor client and each channel (live room), and the like, and the viewer client 124 is installed on the terminal device 121, the viewer client 125 is installed on the terminal device 122, and the viewer client 126 is installed on the terminal device 123. The user clients include a anchor client and a viewer client, and the types of the user clients (anchor client and viewer client) may be interchanged. The terminal device of the present application may include: smart phones, tablet computers, notebook computers, desktop computers, servers, and the like; it is to be understood that the present application is not limited to the type of terminal device.
The application designs a method for presenting virtual gifts in a multi-anchor live broadcast room, which comprises the steps of randomly selecting a user client side for receiving the virtual gifts, randomly determining a target of the gifts, playing gifts animation, enabling the user to realize random gifts, providing random selection for the user under the condition that the user does not determine which anchor needs to be presented, and solving the problem that when audiences do not know which anchor is selected as an object for presenting the gifts, the audiences are often trapped in the confusion of the selection.
For easy understanding, please refer to fig. 3, fig. 3 is a flowchart of a method of presenting a virtual gift between multiple main broadcast live broadcast rooms according to an embodiment of the present application, and as shown in fig. 3, the method specifically includes:
201: randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room;
202: and playing the animation for giving the virtual gift to the user client side for receiving the virtual gift.
The user client in the multi-main broadcast live broadcast room refers to the user client associated with the live broadcast room. The random gifting virtual gift instruction is an instruction sent by the user client, and the instruction can be an instruction in the user client or an instruction sent to the server. The candidate user client in the multi-main broadcast live broadcast room refers to a candidate user client associated with the live broadcast room, and can be preset or determined by calculation according to a random virtual gift giving instruction. The user clients may include a anchor client and a viewer client, which are installed on the terminal device and connected through a server.
The random selection method can be that the candidate user client is numbered, then a random number is calculated from the number through a random number algorithm, and the user client receiving the virtual gift can be determined according to the calculated random number.
After determining the user client that accepts the virtual gift, an animation can be played that gifts the virtual gift to the user client that accepts the virtual gift. The animation may be any animation, such as an animation flying from one place to another, or may be a common gift animation.
Therefore, the embodiment can randomly select the user client side receiving the virtual gifts, randomly determine the gifting targets, and then play the gifting animation, so that the user can realize random gifting, can provide random selection for the user under the condition that the user does not determine which anchor broadcast needs to be gifted, and solve the problem that the audience is often trapped in the confusion of selection when the audience does not know which anchor broadcast is selected as the object for gifting the gifting gifts.
The above is a detailed description of an embodiment of a method for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application, and the following is a detailed description of another embodiment of the method for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application.
Referring to fig. 4, another embodiment of a method for gifting a virtual gift in a multi-host live broadcast room according to the present application includes:
301: determining a user client side for sending a random virtual gift giving instruction according to a first user client side ID in the random virtual gift giving instruction sent by the user client side in the multi-anchor live broadcast room;
it should be noted that the content in the random gifting virtual gift instruction sent by the user client may include, but is not limited to: presenting a gift triggering instruction, a user client ID (namely a first user client ID) for sending the instruction, a random gift presenting identifier, the number of virtual gifts, the type of the virtual gifts, a user client ID set of all user clients in the current multi-anchor live broadcast room, and a target terminal (terminal equipment or server) for sending the instruction;
the act of the user client sending the random gifting virtual gift instruction may be initiated by the user touching a "random send" button on the client. Referring to fig. 5, fig. 5 is an interactive screen of a live broadcast room, wherein anchor 1 to anchor 6 correspond to user client IDs {1, 2, 3, 4, 5, 6} respectively, and a lower rectangular box for random sending corresponds to user client ID { X }, and a "random sending" button is at the lower right corner of fig. 5.
302: acquiring user client ID sets of all user clients in a multi-anchor live broadcast room;
the user client ID sets of all user clients in the multi-anchor live broadcast room can be stored in a server, and can also be issued to all user clients in the multi-anchor live broadcast room after the live broadcast room is established.
303: removing IDs, which are the same as the IDs of the first user clients, in the user client ID sets of all the user clients in the multi-anchor live broadcast room to obtain a candidate user client ID set in the multi-anchor live broadcast room;
for example, the user client IDs of all user clients in the multi-anchor live broadcast room are {1, 2, 3, 5, X }, where the user client types corresponding to the user client IDs of 1, 2, 3, 5 are anchor clients, the user client types corresponding to X (which may be a range, such as 100-500) are audience clients, the user client types may be interchanged and may be identified by an anchor client identifier, where if the anchor client identifier is 1, the audience client identifier is 0, and may also be identified in the form of an anchor client database, and if the user client listed in the anchor client database that the user client IDs are 1, 2, 3, 4, 5 are anchor clients, the anchor client may be identified.
After the IDs of the user clients of all the user clients in the multi-anchor live broadcast room are removed, the problem that the system is disordered due to the fact that the user sends the virtual gift to the user can be solved.
304: removing the ID of the user client with the type of the user client as the audience client from the ID set of the candidate user clients in the multi-anchor live broadcast room;
the user client ID of the user client type which is the audience client is intensively removed from the candidate user client ID in the multi-anchor live broadcast room, so that the virtual gifts can be prevented from being sent to the audience by the anchor broadcast or being sent to the audience by the audience.
It should be noted that, as shown in fig. 1, in the live broadcast room, the position corresponding to the anchor client is similar to the positions of "anchor red", "anchor bright", "anchor short liu", and "anchor bright" in fig. 1 (the live broadcast room interface position corresponding to the anchor client), and the position corresponding to the viewer client is in the lower area in fig. 1, for example, in the chat input box, and may be specifically set according to specific situations.
305: randomly selecting a user client ID from the candidate user client ID set through a random algorithm as a second user client ID for receiving the virtual gift;
the random algorithm generally adopts a random number selection algorithm, and randomly selects m elements (m < n) from the n elements, that is, the user client IDs can be randomly selected from the candidate user client ID set, wherein the second user client ID generally selects one user client, that is, only one user client is selected as an object for presenting the virtual gift. The second user client ID is the user client ID that accepts the virtual gift.
306: judging whether the number of virtual gifts in the random virtual gift giving instruction is larger than a preset first threshold value, if so, playing a special effect of a random turntable and then executing a step 307, and if not, directly executing the step 307;
it should be noted that the specific playing of the random carousel specifically includes:
and determining the live broadcast room interface position corresponding to the candidate user client, and continuously playing the animation of the selection identifier rotating at the live broadcast room interface position corresponding to the candidate user client for a preset time so that the selection identifier stops at the live broadcast room interface position corresponding to the user client receiving the virtual gift.
For example, if the candidate user client is {2, 3, 5}, the live broadcast interface position corresponding to the candidate user client can be determined, and the identifier is selected to rotate at the live broadcast interface position corresponding to the candidate user client {2, 3, 5 }. The effect of playing the random rotary plate special effect (namely rotary animation or rotary plate animation) is similar to the effect of nine-square lottery, the lottery special effect is played, the cool and dazzling effect of presenting gifts can be increased, and the live broadcast atmosphere is enhanced.
Referring to fig. 6, fig. 6 is a schematic diagram of a carousel special effect, wherein a dashed box is encircled around an area of the anchor 1, and the dashed box is a "selection identifier", and the dashed box rotates clockwise or counterclockwise between the anchor 2, the anchor 3, and the anchor 5 (live broadcast room interfaces corresponding to candidate user clients {2, 3, 5 }), rotates among the candidate user clients, and finally stays on a user client receiving a virtual gift, indicating that the user client is selected at random.
Moreover, the implementation manner of the special effect of the random carousel playing may be: receiving a live broadcast room interface position, preset time and a preset rotation animation speed corresponding to a user client of the virtual gift, and calculating a selection identifier initial position; and playing the rotation animation according to the initial position of the selection identifier, the preset time and the preset rotation animation speed. Since the user client accepting the virtual gift has already been determined in step 305, the live-air interface location corresponding to the user client accepting the virtual gift can be directly determined, and the live-air interface location corresponding to the candidate user client, e.g., {2, 3, 5}, can be determined. And the speed and time of the rotation animation are preset, for example, the time is 5 seconds, and the speed is the position of the anchor client (such as the position of the anchor in fig. 1) that the selective identifier rotates one anchor per second, then the position of the selective identifier of the rotation animation at the beginning of the rotation animation can be calculated. The animation can be played according to a predetermined schedule.
It should be noted that the speed of playing the carousel animation may be from fast to slow, for example, the position of five anchor clients per second turn is selected and identified at the beginning, then the speed is gradually slowed down, and finally the position of 0.5 anchor clients per second turn is identified for selection (i.e., the position of one anchor client is rotated in two seconds). The mode of playing the rotary disk animation from high speed to low speed can increase the expression effect when playing the rotary disk animation.
It should be noted that the candidate user client when determining the position of the live broadcast interface corresponding to the candidate user client is the candidate user client corresponding to the user client that randomly selects the virtual gift receiving user client. Since the candidate user clients may change at any time, for example, when the ID set of the user client is {1, 2, 3, 5, X }, the anchor client with ID 1 that sends the virtual gift is, at this time, the candidate user clients are {2, 3, 5}, when the anchor client with ID 5 goes down (exits the anchor position, i.e., becomes the viewer client or exits the live room), 1, 2, 3 remain at the anchor client in the multi-anchor live room, then the candidate user clients are {2, 3}, for example, when the anchor client with ID 4 goes up (logs on the anchor position, i.e., enters the live room and becomes the anchor client) after the anchor client with ID 5 goes down, 1, 2, 3, 4 remain at the anchor client in the multi-anchor room, then the candidate user clients are {2, 3, 4}, but, in this embodiment, when determining the position of the live broadcast room interface corresponding to the candidate user client, the candidate user client is a candidate user client corresponding to the randomly selected user client that accepts the virtual gift, that is, when randomly selecting the user client that accepts the virtual gift, if the candidate user client is {2, 3, 5}, whether the anchor client with the ID of 5 is offline or the anchor client with the ID of 4 is online will not affect the determination of the position of the live broadcast room interface corresponding to the candidate user client when playing the random carousel special effect, that is, the selection identifier will also rotate in {2, 3, 5}, and will not rotate in other positions.
The selection mark is generally a selection frame, and may have a cool and dazzling effect, or may be other figures such as an arrow and a love.
307: generating an animation path by taking a live broadcast interface position corresponding to a user client side which sends a random virtual gift giving instruction as a starting point and a randomly selected live broadcast interface position corresponding to a user client side which receives the virtual gift as an end point; and displaying the animation of the virtual gift moving from the starting point to the end point according to the animation path.
For example, if the user client sending the random gift instruction is {2} and the user client receiving the virtual gift is {1}, the virtual gift will fly from {2} to {1}, as shown in fig. 8. Referring to fig. 7 and 8, two ways of presenting gifts are shown, fig. 7 shows a case where the audience presents gifts to the anchor, and fig. 8 shows a case where the anchor presents gifts to the anchor. As can be seen from fig. 7, if the user client sending the instruction to give a virtual gift randomly is X (i.e., the viewer client) and the user client receiving the virtual gift is 1, the virtual gift will fly from X to 1.
It should be noted that the virtual gift may be a lip, love, or other figure, and the virtual gift may be additionally rotated, turned, or other motions during the motion process, and the virtual gift may not move linearly during the motion process, and may move randomly or regularly in the live broadcast room screen, and finally move to the end point and stop. After the virtual gift moves to the terminal and stops, the virtual gift can be continuously displayed at the terminal for a period of time.
Further, generating an animation path by taking a live broadcast room interface position (an audience area, a target anchor area or a non-target anchor area) corresponding to the user client side which sends the instruction of randomly giving the virtual gift as a starting point and taking a live broadcast room interface position (the audience area, the target anchor area or the non-target anchor area) corresponding to the user client side which receives the virtual gift which is randomly selected as an end point; the step of displaying the animation of the virtual gift moving from the starting point to the ending point according to the animation path specifically comprises the following steps:
acquiring the type of a user client side sending a random gift giving instruction;
when the type of the user client sending the random gifting virtual gift instruction is an audience client { X }, determining a first display starting point of the virtual gift in an audience area of the live broadcast room according to the identification of the audience client, determining a first display end point of the virtual gift in a target anchor area of the live broadcast room according to the identification of the user client receiving the virtual gift, and generating a first animation path of the virtual gift between the audience area and the target anchor area based on the first display starting point and the first display end point;
when the type of the user client sending the random gifting virtual gift instruction is a main broadcasting client {1, 2, 3, 4, 5}, determining a second display starting point of the virtual gift in a non-target main broadcasting area of the live broadcasting room according to the identifier of the main broadcasting client, determining a second display end point of the virtual gift in a target main broadcasting area of the live broadcasting room according to the identifier of the user client receiving the virtual gift, and generating a second animation path of the virtual gift between the non-target main broadcasting area and the target main broadcasting area based on the second display starting point and the second display end point.
The foregoing is a detailed description of another embodiment of a method for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application, and the following is a detailed description of an embodiment of an apparatus for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application.
An embodiment of an apparatus for presenting a virtual gift between a multi-anchor live broadcast room, comprising:
the random selection module is used for randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room;
and the animation playing module is used for playing the animation which presents the virtual gift to the user client side which receives the virtual gift.
The above is a detailed description of an embodiment of an apparatus for gifting a virtual gift between multi-anchor live broadcast rooms provided in the present application, and the following is a detailed description of another embodiment of an apparatus for gifting a virtual gift between multi-anchor live broadcast rooms provided in the present application.
Another embodiment of an apparatus for gifting a virtual gift in a multi-anchor live broadcast room, comprising:
the system comprises a gift sending end determining unit, a virtual gift sending unit and a virtual gift receiving unit, wherein the gift sending end determining unit is used for determining a user client end sending a random gift giving instruction according to a first user client end ID in the random gift giving instruction sent by the user client end in a multi-main broadcast live broadcast room;
the system comprises a user client ID set acquisition unit, a multi-anchor live broadcast room acquisition unit and a multi-anchor live broadcast room acquisition unit, wherein the user client ID set acquisition unit is used for acquiring user client ID sets of all user clients in the multi-anchor live broadcast room;
the self ID eliminating unit is used for eliminating IDs, which are the same as the ID of the first user client, in the user client ID sets of all the user clients in the multi-main broadcast live broadcast room to obtain a candidate user client ID set in the multi-main broadcast live broadcast room;
the audience ID removing unit is used for removing the user client ID of which the type is the audience client from the candidate user client IDs in the multi-anchor live broadcast room in a centralized manner;
the gift receiving end determining unit is used for randomly selecting a user client ID from the candidate user client ID set through a random algorithm to serve as a second user client ID for receiving the virtual gift;
the judging unit is used for judging whether the number of the virtual gifts in the random virtual gift giving instruction is larger than a preset first threshold value or not, if so, playing the special effect of the random turntable and then executing the animation playing unit, and if not, directly executing the animation playing unit;
the animation playing unit is used for generating an animation path by taking the interface position of the live broadcast room corresponding to the user client side which sends the random virtual gift giving instruction as a starting point and taking the interface position of the live broadcast room corresponding to the user client side which receives the randomly selected virtual gift as an end point; and displaying the animation of the virtual gift moving from the starting point to the end point according to the animation path.
The specific effect of playing the random carousel specifically includes:
and determining the live broadcast room interface position corresponding to the candidate user client, and continuously playing the animation of the selection identifier rotating at the live broadcast room interface position corresponding to the candidate user client for a preset time so that the selection identifier stops at the live broadcast room interface position corresponding to the user client receiving the virtual gift.
The foregoing is a detailed description of another embodiment of an apparatus for gifting a virtual gift between multi-anchor live broadcast rooms provided in the present application, and the following is a detailed description of an embodiment of an apparatus for gifting a virtual gift between multi-anchor live broadcast rooms provided in the present application.
An embodiment of an apparatus for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the method of gifting a virtual gift between a multi-cast live broadcast room of the above embodiments according to instructions in the program code.
The above is a detailed description of an embodiment of an apparatus for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application, and the following is a detailed description of an embodiment of a system for gifting a virtual gift in a multi-anchor live broadcast room provided by the present application.
Referring to fig. 2, one embodiment of a system for presenting a virtual gift between multi-anchor live rooms includes a server and a user client;
the user client side is used for randomly selecting a user client side for receiving the virtual gift from candidate user client sides in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client side in the multi-anchor live broadcast room, and then playing animation for giving the virtual gift to the user client side for receiving the virtual gift;
the server is used for synchronizing the animation data to other user clients so that the other user clients play the animation which presents the virtual gift to the user client which receives the virtual gift.
The foregoing is a detailed description of one embodiment of a system for gifting a virtual gift between multi-cast live rooms as provided herein, and the following is a detailed description of one embodiment of a computer-readable storage medium as provided herein.
An embodiment of a computer-readable storage medium for storing program code for performing a method of gifting a virtual gift between a multi-cast live broadcast room of the above-described embodiments is provided.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for presenting a virtual gift in a multi-anchor live broadcast room is characterized by comprising the following steps:
determining a user client side for sending a random virtual gift giving instruction according to a first user client side ID in the random virtual gift giving instruction sent by the user client side in the multi-anchor live broadcast room;
acquiring user client ID sets of all user clients in a multi-anchor live broadcast room;
removing IDs, which are the same as the IDs of the first user clients, in the user client ID sets of all the user clients in the multi-anchor live broadcast room to obtain a candidate user client ID set in the multi-anchor live broadcast room;
randomly selecting one user client ID from the candidate user client ID set as a second user client ID for receiving the virtual gift;
judging whether the number of the virtual gifts in the instruction for randomly presenting the virtual gifts is larger than a preset first threshold value, if so, playing a special effect of a random turntable, then playing an animation for presenting the virtual gifts to the user client side for receiving the virtual gifts, and if not, directly playing the animation for presenting the virtual gifts to the user client side for receiving the virtual gifts;
the playing random carousel special effect specifically includes:
determining the live broadcast room interface position corresponding to the candidate user client, and continuously playing animation of the selection identifier rotating at the live broadcast room interface position corresponding to the candidate user client for a preset time so that the selection identifier stops at the live broadcast room interface position corresponding to the user client receiving the virtual gift;
the playing animation of the selection identifier rotating at the live broadcast interface position corresponding to the candidate user client continuously for the preset time so that the stopping of the selection identifier at the live broadcast interface position corresponding to the user client receiving the virtual gift specifically comprises:
calculating an initial position of a selection identifier according to a live broadcast room interface position, preset time and a preset rotation animation speed corresponding to a user client receiving the virtual gift;
and playing the rotation animation according to the initial position of the selection identifier, the preset time and the preset rotation animation speed.
2. The method of claim 1, wherein the user clients comprise an audience client and an anchor client, and wherein randomly selecting a user client ID as the second user client ID for accepting the virtual gift further comprises:
and removing the user client with the user client type as the audience client from the candidate user clients in the multi-anchor live broadcast room.
3. The method as claimed in claim 1, wherein the candidate user client for determining the position of the interface in the live broadcast room corresponding to the candidate user client is a candidate user client corresponding to a user client randomly selected to receive the virtual gift.
4. The method of claim 1, wherein the playing the animation that presents the virtual gift to the user client that accepts the virtual gift specifically comprises:
generating an animation path by taking a live broadcast interface position corresponding to a user client side which sends a random virtual gift giving instruction as a starting point and a randomly selected live broadcast interface position corresponding to a user client side which receives the virtual gift as an end point;
and displaying the animation of the virtual gift moving from the starting point to the end point according to the animation path.
5. The method for presenting a virtual gift between multiple main broadcast live broadcast rooms as claimed in claim 4, wherein the animation path is generated by using the live broadcast room interface position corresponding to the user client end sending the random virtual gift presenting instruction as a starting point and the randomly selected live broadcast room interface position corresponding to the user client end receiving the virtual gift as an ending point; the step of displaying the animation of the virtual gift moving from the starting point to the ending point according to the animation path specifically comprises the following steps:
acquiring the type of a user client side sending a random gift giving instruction;
when the type of the user client sending the random gift giving instruction is the audience client, determining a first display starting point of the virtual gift in an audience area of the live broadcast room according to the identification of the audience client, determining a first display end point of the virtual gift in a target anchor area of the live broadcast room according to the identification of the user client receiving the virtual gift, and generating a first animation path of the virtual gift between the audience area and the target anchor area based on the first display starting point and the first display end point;
when the type of the user client sending the random gifting virtual gift instruction is an anchor client, determining a second display starting point of the virtual gift in a non-target anchor area of the live broadcast room according to the identifier of the anchor client, determining a second display end point of the virtual gift in a target anchor area of the live broadcast room according to the identifier of the user client receiving the virtual gift, and generating a second animation path of the virtual gift between the non-target anchor area and the target anchor area based on the second display starting point and the second display end point.
6. An apparatus for gifting a virtual gift between multi-anchor live broadcast rooms, which is performed according to the method for gifting a virtual gift between multi-anchor live broadcast rooms of any one of claims 1 to 5, comprising:
the random selection module is used for randomly selecting a user client for receiving the virtual gift from candidate user clients in the multi-anchor live broadcast room according to a random gift giving instruction sent by the user client in the multi-anchor live broadcast room;
and the animation playing module is used for playing the animation which presents the virtual gift to the user client side which receives the virtual gift.
7. An apparatus for gifting a virtual gift between a multi-cast live broadcast room, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of gifting a virtual gift between a multi-podcast live broadcast room of any one of claims 1-5 in accordance with instructions in the program code.
8. A system for presenting virtual gifts in a multi-anchor live broadcast room is characterized by comprising a server and a user client;
determining a user client side for sending a random virtual gift giving instruction according to a first user client side ID in the random virtual gift giving instruction sent by the user client side in the multi-anchor live broadcast room;
acquiring user client ID sets of all user clients in a multi-anchor live broadcast room;
removing IDs, which are the same as the IDs of the first user clients, in the user client ID sets of all the user clients in the multi-anchor live broadcast room to obtain a candidate user client ID set in the multi-anchor live broadcast room;
randomly selecting one user client ID from the candidate user client ID set as a second user client ID for receiving the virtual gift;
judging whether the number of the virtual gifts in the instruction for randomly presenting the virtual gifts is larger than a preset first threshold value, if so, playing a special effect of a random turntable, then playing an animation for presenting the virtual gifts to the user client side for receiving the virtual gifts, and if not, directly playing the animation for presenting the virtual gifts to the user client side for receiving the virtual gifts;
the playing random carousel special effect specifically includes:
determining the live broadcast room interface position corresponding to the candidate user client, and continuously playing animation of the selection identifier rotating at the live broadcast room interface position corresponding to the candidate user client for a preset time so that the selection identifier stops at the live broadcast room interface position corresponding to the user client receiving the virtual gift;
the playing animation of the selection identifier rotating at the live broadcast interface position corresponding to the candidate user client continuously for the preset time so that the stopping of the selection identifier at the live broadcast interface position corresponding to the user client receiving the virtual gift specifically comprises:
calculating an initial position of a selection identifier according to a live broadcast room interface position, preset time and a preset rotation animation speed corresponding to a user client receiving the virtual gift;
playing the rotation animation according to the initial position of the selection identifier, the preset time and the preset rotation animation speed;
the server is used for synchronizing the animation data to other user clients so that the other user clients play the animation which presents the virtual gift to the user client which receives the virtual gift.
9. A computer-readable storage medium for storing program code for performing the method of multi-cast live room gifting a virtual gift recited in any one of claims 1-5.
CN201811151958.5A 2018-09-29 2018-09-29 Method and device for presenting virtual gift in multi-main broadcast live broadcast room Active CN109104641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811151958.5A CN109104641B (en) 2018-09-29 2018-09-29 Method and device for presenting virtual gift in multi-main broadcast live broadcast room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811151958.5A CN109104641B (en) 2018-09-29 2018-09-29 Method and device for presenting virtual gift in multi-main broadcast live broadcast room

Publications (2)

Publication Number Publication Date
CN109104641A CN109104641A (en) 2018-12-28
CN109104641B true CN109104641B (en) 2021-02-12

Family

ID=64868231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811151958.5A Active CN109104641B (en) 2018-09-29 2018-09-29 Method and device for presenting virtual gift in multi-main broadcast live broadcast room

Country Status (1)

Country Link
CN (1) CN109104641B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381352B (en) * 2019-07-19 2022-01-28 北京字节跳动网络技术有限公司 Virtual gift display method and device, electronic equipment and readable medium
CN111083505B (en) * 2019-11-19 2021-12-28 广州方硅信息技术有限公司 Live broadcast room virtual gift interaction method, electronic equipment and device
CN111010585B (en) * 2019-12-06 2021-10-22 广州方硅信息技术有限公司 Virtual gift sending method, device, equipment and storage medium
JP6766246B1 (en) * 2019-12-19 2020-10-07 株式会社ドワンゴ Management server, user terminal, gift system and information processing method
CN111450538B (en) * 2020-03-31 2022-10-21 腾讯科技(深圳)有限公司 Virtual item transfer system, method, device, equipment and medium
CN111918078B (en) * 2020-07-24 2022-09-13 腾讯科技(深圳)有限公司 Live broadcast method and device
CN111897483A (en) * 2020-08-11 2020-11-06 网易(杭州)网络有限公司 Live broadcast interaction processing method, device, equipment and storage medium
CN113064531B (en) * 2021-04-25 2022-06-03 腾讯科技(深圳)有限公司 Virtual resource interaction method and device, storage medium and electronic equipment
CN113128906B (en) * 2021-05-11 2024-02-27 广州博冠信息科技有限公司 Live broadcast data processing method and device, electronic equipment and computer readable medium
CN113467677B (en) * 2021-05-31 2023-03-28 北京达佳互联信息技术有限公司 Virtual space operation method and device, electronic equipment and storage medium
CN116521038A (en) * 2022-01-24 2023-08-01 腾讯科技(深圳)有限公司 Data processing method, device, computer equipment and readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514771A (en) * 2012-06-26 2014-01-15 黄庆凯 Personal hand-held terminal networking-based classroom teaching communication network system
US10258881B2 (en) * 2012-12-26 2019-04-16 Sony Interactive Entertainment America Llc Systems and methods for tagging content of shared cloud executed mini-games and tag sharing controls
CN103414627A (en) * 2013-04-10 2013-11-27 广州华多网络科技有限公司 Virtual gift display method and system
CN105872830B (en) * 2016-05-31 2019-04-09 广州华多网络科技有限公司 Interactive approach and device in direct broadcast band
CN107241636A (en) * 2017-05-25 2017-10-10 北京潘达互娱科技有限公司 A kind of virtual gift display method and device
CN107547947B (en) * 2017-08-24 2020-06-02 北京小米移动软件有限公司 Method and device for presenting virtual gift in live broadcast room
CN108230028A (en) * 2017-12-29 2018-06-29 广州华多网络科技有限公司 More main broadcaster's direct broadcasting rooms give the method, apparatus and electronic equipment of virtual present
CN108260021B (en) * 2018-03-08 2021-02-05 香港乐蜜有限公司 Live broadcast interaction method and device

Also Published As

Publication number Publication date
CN109104641A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109104641B (en) Method and device for presenting virtual gift in multi-main broadcast live broadcast room
CN107680157B (en) Live broadcast-based interaction method, live broadcast system and electronic equipment
US10897637B1 (en) Synchronize and present multiple live content streams
CN109257631B (en) Video carousel playing method and device, computer equipment and storage medium
US20190394146A1 (en) Method and device for processing live commenting messages and terminal
US8888592B1 (en) Voice overlay
CN111773667A (en) Live game interaction method and device, computer readable medium and electronic equipment
WO2023279917A1 (en) On-screen comment displaying method and apparatus, on-screen comment transmitting method and apparatus, computer device, computer readable storage medium, and computer program product
WO2016074327A1 (en) Control method, apparatus and system of media stream
US20170171509A1 (en) Method and electronic apparatus for realizing two-person simultaneous live video
US20230039978A1 (en) Video data processing method and apparatus, computer device, and storage medium
WO2017113577A1 (en) Method for playing game scene in real-time and relevant apparatus and system
WO2021204139A1 (en) Video displaying method, device, equipment, and storage medium
CN113271472B (en) Game live broadcast method and device, electronic equipment and readable storage medium
CN114257875B (en) Data transmission method, device, electronic equipment and storage medium
WO2023279937A1 (en) Interaction method and apparatus based on live-streaming video, and device and storage medium
CN104998412A (en) Single-player game realization method and apparatus
CN112511849A (en) Game display method, device, equipment, system and storage medium
CN111569436A (en) Processing method, device and equipment based on interaction in live broadcast fighting
CN111225287A (en) Bullet screen processing method and device, electronic equipment and storage medium
CN106385613B (en) Control the method and device that barrage plays
US11889127B2 (en) Live video interaction method and apparatus, and computer device
CN112135159B (en) Public screen broadcasting method and device, intelligent terminal and storage medium
US10328336B1 (en) Concurrent game functionality and video content
CN112717422B (en) Real-time information interaction method and device, equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20210112

Address after: 510000 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 28th floor, block B1, Wanda Plaza, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant