[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113438490A - Live broadcast interaction method, computer equipment and storage medium - Google Patents

Live broadcast interaction method, computer equipment and storage medium Download PDF

Info

Publication number
CN113438490A
CN113438490A CN202110583943.1A CN202110583943A CN113438490A CN 113438490 A CN113438490 A CN 113438490A CN 202110583943 A CN202110583943 A CN 202110583943A CN 113438490 A CN113438490 A CN 113438490A
Authority
CN
China
Prior art keywords
virtual gift
live broadcast
display
live
virtual
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.)
Pending
Application number
CN202110583943.1A
Other languages
Chinese (zh)
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 CN202110583943.1A priority Critical patent/CN113438490A/en
Publication of CN113438490A publication Critical patent/CN113438490A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a live broadcast interaction method, computer equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of receiving a virtual gift message broadcasted by a server and display data of a live broadcast room interface, obtaining a display position of a receiver image corresponding to a receiver identifier in the virtual gift message in the live broadcast room interface and display data of a virtual gift corresponding to the virtual gift identifier in the virtual gift message, and adding the display data of the virtual gift into the display data of the live broadcast room interface for display, wherein the virtual gift is displayed at the display position of the live broadcast room interface. Compared with the prior art, the method and the device have the advantages that in the live broadcast interaction process, which user presents the virtual gift to the live broadcast room is clearly displayed, the experience of presenting the virtual gift is improved, and the live broadcast interaction requirements of the user are met.

Description

Live broadcast interaction method, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of network live broadcast, in particular to a live broadcast interaction method, computer equipment and a storage medium.
Background
With the progress of network communication technology, live webcasting becomes a new network interaction mode, and live webcasting is favored by more and more audiences due to the characteristics of instantaneity, interactivity and the like.
Currently, in the process of live webcasting, users frequently interact with each other to improve the interaction experience, for example: giving virtual gifts, leaving messages, interactive answers, and the like.
However, when presenting the virtual gift, if there are many users in one webcast room, it cannot be well distinguished to which user the virtual gift is presented, which results in poor interactive experience and fails to meet the interactive requirements of the users.
Disclosure of Invention
The embodiment of the application provides a live broadcast interaction method, computer equipment and a storage medium, which can solve the technical problems that the presentation experience of a virtual gift is poor and the interactive experience of a user is influenced in the process of network live broadcast, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a live broadcast interaction method, including:
the audience client-side responds to the virtual gift bar display instruction to acquire virtual gift resources; displaying the virtual gift column in a live broadcast room interface according to the virtual gift resources; acquiring a virtual gift identifier and a receiver identifier of the selected virtual gift; generating the virtual gift message according to the virtual gift identification and the receiver identification; sending the virtual gift message to the server;
the server receives the virtual gift message sent by the audience client and broadcasts the virtual gift message to all clients in a live broadcast room where the audience client is located;
all client sides in the live broadcast room receive virtual gift messages broadcasted by the server and display data of a live broadcast room interface; acquiring a display position of a receiver image corresponding to the receiver identification in the live broadcast interface; acquiring display data of the virtual gift corresponding to the virtual gift identification; adding display data of the virtual gift to display data of the live-air interface for display, wherein the virtual gift is displayed at the display position of the live-air interface.
In a second aspect, an embodiment of the present application provides a live broadcast interaction method, including:
receiving a virtual gift message broadcasted by a server and display data of a live broadcast room interface; wherein the virtual gift message comprises a recipient identification and a virtual gift identification;
acquiring a display position of a receiver image corresponding to the receiver identification in the live broadcast interface;
acquiring display data of the virtual gift corresponding to the virtual gift identification;
adding display data of the virtual gift to display data of the live-air interface for display, wherein the virtual gift is displayed at the display position of the live-air interface.
In a third aspect, an embodiment of the present application provides a computer device, including: a processor, a memory and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to the second aspect are implemented when the processor executes the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method according to the second aspect.
In the embodiment of the application, the virtual gift information broadcasted by the server and the display data of the live broadcast room interface are received, the display position of the receiver image corresponding to the receiver identifier in the virtual gift information in the live broadcast room interface is obtained, the display data of the virtual gift corresponding to the virtual gift identifier in the virtual gift information is obtained, the display data of the virtual gift is added into the display data of the live broadcast room interface to be displayed, the virtual gift is displayed at the display position of the live broadcast room interface, and therefore the fact that which user presents the virtual gift to the live broadcast room is clearly displayed in the live broadcast interaction process is achieved, the experience of presenting the virtual gift is improved, and the live broadcast interaction requirements of the user are met.
For a better understanding and implementation, the technical solutions of the present application are described in detail below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic view of an application scenario of a live broadcast interaction method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a live broadcast interaction method according to a first embodiment of the present application;
FIG. 3 is a schematic illustration of an interactive interface of a virtual gift box provided by an embodiment of the present application;
fig. 4 is a schematic flowchart of a live broadcast interaction method according to a second embodiment of the present application;
fig. 5 is a schematic flowchart of S202 in a live broadcast interaction method according to a second embodiment of the present application;
fig. 6 is another schematic flow chart of S202 in the live broadcast interaction method according to the second embodiment of the present application;
fig. 7 is a schematic view of an interactive interface of a live broadcast room in a voice mode according to an embodiment of the present application;
fig. 8 is a schematic flowchart of a live broadcast interaction method according to a third embodiment of the present application;
fig. 9 is a schematic flowchart of a live broadcast interaction method according to a fourth embodiment of the present application;
fig. 10 is a schematic flowchart of a live interaction method according to a fifth embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to a sixth embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As will be appreciated by those skilled in the art, the terms "client," "terminal device," and "terminal device" as used herein include both wireless signal receiver devices, which include only wireless signal receiver devices without transmit capability, and receiving and transmitting hardware devices, which include receiving and transmitting hardware devices capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (personal communications Service), which may combine voice, data processing, facsimile and/or data communications capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global positioning system) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. is essentially a computer device with the performance of a personal computer, and is a hardware device having necessary components disclosed by the von neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, etc., wherein a computer program is stored in the memory, and the central processing unit loads a program stored in an external memory into the internal memory to run, executes instructions in the program, and interacts with the input and output devices, thereby accomplishing specific functions.
It should be noted that the concept of "server" as referred to in this application can be extended to the case of a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be called through an interface, or may be integrated into one physical computer or a set of computer clusters. Those skilled in the art will appreciate this variation and should not be so limited as to restrict the implementation of the network deployment of the present application.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a live broadcast interaction method according to an embodiment of the present application, where the application scenario includes a client 101 and a server 102, the client 101 includes an anchor client 1011 and a viewer client 1012, and the anchor client 1011 interacts with the viewer client 1012 through the server 102.
The anchor client 1011 is a client that sends a webcast video, and is generally a client used by an anchor (i.e., a live anchor user) in webcasting.
The spectator client 1012 is the end that receives and watches the live video, and is typically the client employed by the spectator watching the video in the live network (i.e., the live spectator user).
The hardware at which the anchor client 1011 and the viewer client 1012 are directed is essentially a computer device, and in particular, as shown in fig. 1, it may be a type of computer device such as a smart phone, smart interactive tablet, and personal computer. Both the anchor client 1011 and the spectator client 1012 may access the internet via well-known network access means to establish a data communication link with the server 102.
The server 102, acting as a business server, may be responsible for further connecting related audio data servers, video streaming servers, and other servers providing related support, etc. to form a logically associated server cluster for serving related terminal devices, such as the anchor client 1011 and the viewer client 1012 shown in fig. 1.
In this embodiment, the anchor client 1011 and the audience client 1012 can join the same live broadcast room (i.e., a live broadcast channel), and the live broadcast room is a chat room implemented by means of internet technology, and generally has an audio/video broadcast control function. The anchor is live in the live room through the anchor client 1011, and the viewer at the viewer client 1012 can log in the server 102 to the live room to watch the live.
In the live broadcast room, interaction between the anchor user and the audience users can be realized through known online interaction modes such as voice, video, characters and the like, generally, the anchor user performs programs for the audience users in the form of audio and video streams, and economic transaction behaviors can also be generated in the interaction process.
For example: when watching a live broadcast in a live broadcast room, a viewer can give a virtual gift to a main broadcast, when receiving the giving operation of the virtual gift of the viewer, the viewer client 1012 acquires the related information of the selected virtual gift, generates a virtual gift message to the server 102, the server 102 analyzes the virtual gift message and broadcasts the virtual gift message to all the clients 101 in the same live broadcast room, and each client 101 renders the display of the selected virtual gift in the live broadcast room interface according to the virtual gift message, thereby completing the live broadcast interaction by giving the virtual gift once.
In this embodiment of the present application, the anchor client 1011 located in different live rooms may also establish a session connection with the live tv. For example: if the first anchor wishes to connect to the second anchor, the first anchor client can respond to the connecting operation of the first anchor, send a connecting request carrying the first anchor client identifier and the second anchor client identifier to the server 102, the server 102 receives and analyzes the connecting request, then sends the connecting request to the second anchor client corresponding to the second anchor client identifier, and after receiving the receiving response of the second anchor client, the server establishes a connecting session connection for the first anchor client and the second anchor client.
After the connection of the session is established, the audio and video streams pushed to the server 102 by the first anchor client and the second anchor client are displayed in the live broadcast room in which the first anchor client is located and the live broadcast room in which the second anchor client is located, so that audiences in different live broadcast rooms can watch the real-time live broadcasts of the first anchor and the second anchor at the same time. The mixed flow operation of the audio and video streams pushed to the server by the first anchor client and the second anchor client is not limited to be executed by the client 101 or the server 102. Wherein the second anchor comprises at least one anchor.
The embodiment of the application provides a live broadcast interaction method which is applied to the live broadcast scene and improves the experience of virtual gift giving. Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a live broadcast interaction method according to a first embodiment of the present application, where the method includes the following steps:
s101: the audience client-side responds to the virtual gift bar display instruction to acquire virtual gift resources; displaying the virtual gift column in a live broadcast room interface according to the virtual gift resources; acquiring a virtual gift identifier and a receiver identifier of the selected virtual gift; generating the virtual gift message according to the virtual gift identification and the receiver identification; and sending the virtual gift message to the server.
In this embodiment, the live interactive method is described from two execution subjects, i.e., the client and the server. Wherein the clients include a spectator client and an anchor client.
Specifically, after the viewer enters the live application (e.g., YY) through the viewer client, the viewer client may choose to enter any one of the live rooms to view the live broadcast, and the viewer client, the server, and the anchor client establish a connection.
In the embodiment of the application, the live broadcast room can be used for carrying out conventional live broadcast or live broadcast with live TV.
If the live broadcast mode is a video mode, displaying audio and video streams pushed to the server by at least two main broadcast clients connected with the wheat in a video window in a live broadcast room interface at the same time, and playing audio streams pushed to the server by at least two main broadcast clients connected with the wheat.
And if the live broadcast mode is a voice mode, displaying at least two seats in a live broadcast room interface, and playing audio streams pushed to a server by at least two main broadcast clients connected with the wheat. The display style of the agent can be a head portrait of a main broadcaster.
In an optional embodiment, when the live broadcast mode is the voice mode, the audience can also participate in the connecting microphone in the live broadcast room to display the head portrait of the audience on the unbound seats in the interface of the live broadcast room, at this time, the audience client can also push the audio stream to the server, and the server sends the audio stream to all the clients in the live broadcast room, so that the interaction effect of the audience in the live broadcast room is further improved.
When the audience receives and watches the live broadcast in the live broadcast room, the virtual gift can be given to the user in the live broadcast room. The users in the live broadcast room can be anchor users or audience users joining the live broadcast.
Specifically, in an optional embodiment, the viewer user may click on a virtual gift bar control of the live broadcast interface, trigger the virtual gift bar control to generate a virtual gift bar display instruction, and the viewer client obtains the virtual gift resources in response to the virtual gift bar display instruction.
In other alternative embodiments, since the categories of the virtual gift bar controls are different, the user may also control the virtual gift bar controls through a drag operation, a slide operation, and the like, thereby triggering the virtual gift bar controls to generate the virtual gift bar display instruction.
Specifically, from the viewpoint of execution of the audience client, the audience client acquires the position of the clicked area of the audience in the live broadcast interface, confirms the target control clicked by the audience according to the position and the display position of each control in the live broadcast interface, generates a virtual gift bar display instruction if the target control is the virtual gift bar control, and then responds to the virtual gift bar display instruction by the audience client to acquire the virtual gift resources.
It can be understood that, after confirming that the target control clicked by the user is the virtual gift bar control, the viewer client further needs to determine whether the click operation of the viewer is a virtual gift bar opening operation or a virtual gift bar closing operation according to the state of the virtual gift bar control.
The state of the virtual gift bar control may be the number of clicks, or whether a process of generating a virtual gift bar display instruction associated with the virtual gift bar control is started.
In the embodiment of the present application, before the spectator client obtains the virtual gift resource, it needs to determine whether the virtual gift resource is stored in the spectator client. If not, downloading the virtual gift resources from the server, analyzing and verifying the validity of the virtual gift resources, and then performing subsequent operations after the validity is verified.
The virtual gift resources mentioned in this embodiment refer to resources required for implementing functions of displaying, selecting, giving away, and the like of the virtual gift, and include, but are not limited to, a virtual gift list, display data of the virtual gift list, operation controls in a virtual gift bar, and the like.
The virtual gift list comprises a plurality of virtual gifts, display data of the virtual gift list can be used for determining the layout mode of the virtual gifts in the virtual gift list, the display style of the virtual gift list, the touch mode supported by the virtual gift list and the like, and operation controls in the virtual gift bar comprise a receiver selection control, a virtual gift bar sliding control, a presentation confirmation control and the like. Referring to fig. 3, fig. 3 is a schematic view of an interaction interface of a virtual gift box according to an embodiment of the present application. The virtual gift box control mentioned in the embodiment of the present application is the stamping control 300 shown in fig. 3, and the virtual gift box shown in fig. 3 is presented after the virtual gift box control is clicked, that is, the virtual gift box is presented based on the virtual gift resources, and it can be seen that the virtual gift box shown in fig. 3 includes several virtual gifts 301, a recipient selection control 302, and a virtual gift box sliding control (not shown) to give away a confirmation control 303.
The virtual gift provided by the embodiment of the application is a stamping gift, and the stamping gift is different from a common virtual gift in that when the stamping gift is displayed on the interface of a live broadcast room, all users in the live broadcast room can clearly confirm to which user the stamping gift is given.
It should be noted that, in fig. 3, the display style of the virtual gift in the virtual gift bar, the layout manner and the arrangement order of the virtual gift in the virtual gift bar, the display style of the operation control, and the layout manner of the operation control in the virtual gift bar are merely examples, and are not limiting.
After the virtual gift certificate is displayed in the live broadcast interface, the viewer client can acquire the virtual gift identifier and the receiver identifier of the selected virtual gift based on the virtual gift clicking operation, the receiver selecting operation and the presentation confirming operation of the viewer on the virtual gift certificate.
And the audience client generates the virtual gift message according to the virtual gift identification of the selected virtual gift and the receiver identification, and sends the virtual gift message to the server. It is understood that the virtual gift message is a gift sending instruction, and the server will respond accordingly after receiving the virtual gift message.
S102: and the server receives the virtual gift message sent by the audience client and broadcasts the virtual gift message to all clients in the live broadcast room where the audience client is located.
After receiving the virtual gift message sent by the audience client, the server analyzes the virtual gift message to obtain the identification of the receiver and the identification (namely the channel identification) of the live broadcast room where the receiver is located, and acquires all the clients in the live broadcast room according to the identification of the live broadcast room.
The receiver identification is the unique identification of the user, and the live broadcast room identification is the unique identification of the live broadcast room. The server may determine which clients to broadcast the virtual gift message to based on the live room identification.
S103: all client sides in the live broadcast room receive virtual gift messages broadcasted by the server and display data of a live broadcast room interface; acquiring a display position of a receiver image corresponding to the receiver identification in the live broadcast interface; acquiring display data of the virtual gift corresponding to the virtual gift identification; adding display data of the virtual gift to display data of the live-air interface for display, wherein the virtual gift is displayed at the display position of the live-air interface.
All clients within the live room include both the anchor client 1011 shown in fig. 1 and the viewer client 1012 shown in fig. 1. All the clients in the live broadcast room need to receive the virtual gift messages broadcasted by the server, and respectively display the virtual gift in the live broadcast room interface to be displayed to all the users in the live broadcast room for watching.
Specifically, the client needs to receive not only the virtual gift message broadcast by the server, but also obtain display data of the live broadcast interface. The display data of the live broadcast interface refers to data used for presenting the live broadcast interface in the client, and includes but is not limited to display style data of an interactive component in the live broadcast, layout data of the interactive component, video stream, icon data and the like.
And then, the client analyzes the virtual gift message to obtain a receiver identifier and a virtual gift identifier, and then obtains the display position of the receiver image corresponding to the receiver identifier in the live broadcast interface and the display data of the virtual gift corresponding to the virtual gift identifier.
The receiving party image can be a real image of the anchor corresponding to the receiving party identifier in the video mode; the corresponding anchor or user's avatar (i.e., the agent image) may also be identified for the recipient in audio mode.
The display data of the virtual gift refers to data for presenting the virtual gift in the live room interface, including but not limited to virtual gift image data, virtual gift shape data, virtual gift size data, virtual gift special effect data, and the like. After downloading the virtual gift resources, the client may obtain the display data of the virtual gift corresponding to the virtual gift identifier.
And the client adds the display data of the virtual gift to the display data of the live broadcast interface to display according to the display position of the receiver image on the live broadcast interface, so that the virtual gift is displayed at the display position of the live broadcast interface.
There are various implementation manners for the above-mentioned process of acquiring the display position and the process of implementing the virtual gift display, and details can be found in the explanation about step S302 in the second embodiment of the present application.
In the embodiment, the display position of the image of the receiver corresponding to the identifier of the receiver in the interface of the live broadcast room is obtained, the display data of the virtual gift is added into the display data of the interface of the live broadcast room to be displayed, so that the virtual gift is displayed at the display position of the interface of the live broadcast room, which user presents the virtual gift to the live broadcast room is clearly displayed in the live broadcast interaction process, the experience of presenting the virtual gift is improved, the interaction requirement of the user is met, especially under the situation that multiple persons are connected with the microphone, the audience and the main broadcast can better distinguish the receiver of the virtual gift, and the generation of interaction behavior is further promoted.
Referring to fig. 4, fig. 4 is a schematic flow chart of a live broadcast interaction method according to a second embodiment of the present application, where the method is mainly executed by a client 101, and includes the following steps:
s201: receiving a virtual gift message broadcasted by a server and display data of a live broadcast room interface; wherein the virtual gift message comprises a recipient identification and a virtual gift identification.
S202: and acquiring the display position of the receiver image corresponding to the receiver identification in the live broadcast interface.
S203: and acquiring display data of the virtual gift corresponding to the virtual gift identification.
S204: adding display data of the virtual gift to display data of the live-air interface for display, wherein the virtual gift is displayed at the display position of the live-air interface.
The specific execution process of step S201 and step 203 has already been described in step 103 of the first embodiment, and is not described herein again.
The following describes in detail the process of acquiring the display position in step S202 and the process of implementing the virtual gift display in step S204, specifically as follows:
in the embodiment of the application, the live mode is divided into a video mode and a voice mode.
Then, based on different live broadcast modes, the manner of the client acquiring the display position of the receiver image corresponding to the receiver identifier in the live broadcast interface is different, and the following description is separately given:
in an alternative embodiment, referring to fig. 5, step S202 includes steps S2021 to S2022, which are as follows:
s2021: if the current live broadcast mode is the video mode, positioning a video display area corresponding to the receiver identification from a video window of the live broadcast interface;
the client judges whether the current live broadcast mode is a video mode. Specifically, the client may determine whether the current live mode is the video mode based on the state parameter of the audio/video switching control, may also determine whether the current live mode is the video mode based on whether the current client pulls the video stream, and may also determine whether the current live mode is the video mode by whether a related process pulled by the video stream is invoked and executed.
And if the current live broadcast mode is the video mode, the client locates a video display area corresponding to the receiver identification from a video window of the live broadcast interface.
In the video mode, if the live broadcast is not carried out, only one video stream pushed to the server by the main broadcast client is displayed in the video window. At this time, the client can obtain the video display area corresponding to the receiver identifier according to the position information of the video window in the live interface and the size information of the video window.
And if the live broadcast is carried out, displaying the video streams pushed to the server by at least two main broadcast clients in the video window. At this time, the client needs to obtain not only the position information of the video window in the live interface, but also the position of the video display area corresponding to the receiver identifier in the video window and the size information of the video display area.
It can be understood that, before the video window displays the video streams pushed to the server by at least two anchor clients, the video streams pushed to the server by the anchor clients are mixed, and then the mixed video streams are displayed in the video window. The mixed video stream comprises a plurality of spliced video pictures.
Then, the position of the video display area corresponding to the receiver identifier in the video window is the position of the video picture corresponding to the receiver identifier in the spliced video picture; and the size information of the video display area corresponding to the receiver identification is the size information of the video picture corresponding to the receiver identification.
The client side can position the video display area corresponding to the receiver identification from the video window of the live broadcast interface according to the position information of the video window in the live broadcast interface, the position of the video display area corresponding to the receiver identification in the video window and the size information of the video display area corresponding to the receiver identification.
S2022: and identifying the face image in the video display area according to a preset face identification algorithm, and determining the position of the face image in the video display area.
And after positioning the video display area corresponding to the receiver identification from the video window of the live broadcast interface, the client identifies the face image in the video display area according to a preset face identification algorithm.
Specifically, in an optional embodiment, the client may directly intercept the image of the video display area according to the position of the video display area corresponding to the receiver identifier in the live broadcast interface.
In another optional embodiment, the client may capture the image of the live broadcast interface first, and then obtain the image of the video display area according to the position of the video display area corresponding to the recipient identifier in the live broadcast interface.
Then, the client can call a locally preset face recognition algorithm to process the image of the video display area, recognize the face image in the image of the video display area and determine the position of the face image in the video display area; or, the client may also send a face recognition instruction including an image of the video display area to the image processing server, where a face recognition algorithm is preset in the image processing server, and receive a position of the face image returned by the image processing server in the video display area.
The face recognition algorithm may be any one of existing face recognition algorithms, and is not limited herein.
The position of the face image in the video display area, the position of the video display area in the video window and the position of the video window in the live broadcast interface are obtained at the client, and the position of the face image in the live broadcast interface can be calculated.
Then, based on steps S2021 to S2022, the client adds the display data of the virtual gift to the display data of the live broadcast interface to display, in such a manner that the client overlays the display data of the virtual gift on the position of the face image in the video display area according to the position of the face image in the live broadcast interface to display.
At this time, all users in the live broadcast room can see that the virtual gift is displayed on the face of the anchor program corresponding to the receiver identifier, and the virtual gift is presented to the anchor program corresponding to the receiver identifier.
In this embodiment, when the current live broadcast mode is the video mode, the video display area corresponding to the receiver identifier is located in the video window of the live broadcast room interface, the face image in the video display area is identified according to a preset face identification algorithm, the position of the face image in the video display area is determined, and the display data of the virtual gift is overlaid on the position of the face image in the video display area for display, so that the effect that which main broadcast presents the virtual gift to the live broadcast room is clearly displayed in the video mode is achieved, the experience of presenting the virtual gift is improved, and the live broadcast interaction requirements of the user are met.
In an optional embodiment, if the client does not recognize the face image from the video display area according to a preset face recognition algorithm, the client overlays the display data of the virtual gift on the center of the video display area for display. If the video display area is a rectangular area, the width is width, and the height is height, the central position can be understood as the position corresponding to (width/2, height/2) in the video display area.
In an alternative embodiment, referring to fig. 6, step S202 includes step S2023, which is as follows:
s2023: and if the current live broadcast mode is the voice mode, positioning the position of the seat corresponding to the receiver identification from the live broadcast interface.
The client judges whether the current live broadcast mode is a voice mode. Specifically, the client may determine whether the current live mode is the voice mode based on the state parameter of the audio/video switching control, may also determine whether the current live mode is the voice mode based on whether the current client pulls the video stream, and may also determine whether the current live mode is the voice mode by whether a related process pulled by the video stream is invoked and executed.
And if the current live broadcast mode is the voice mode, the client locates the position of the seat corresponding to the receiver identification from the live broadcast room interface. The agent can be an agent control, when no user is bound with the agent, the display style of the agent in the live broadcast room interface can be a default image, and when the user is bound with the agent, the display style of the agent in the live broadcast room interface can be the head portrait of the user associated with the agent.
In the voice mode, if live broadcast is carried out in a microphone connection mode, at least two seats are displayed on a live broadcast room interface, a client needs to acquire a seat identifier corresponding to a receiver identifier first, and then a corresponding seat position is obtained according to the seat identifier.
In an optional embodiment, if the current live broadcast mode is the voice mode, the audience may also participate in connecting a microphone in the live broadcast room, the display style of a certain unbound agent is set as the head portrait of the audience, and the audience client may also push an audio stream to the server, and then the server issues the audio stream to all clients in the live broadcast room.
Based on step S2023, the client adds the display data of the virtual gift to the display data of the live broadcast interface to display, which is implemented by overlaying the display data of the virtual gift on an agent position corresponding to the receiver identifier in the live broadcast interface to display.
In an optional embodiment, the client may further overlay the display data of the virtual gift over the position of the agent corresponding to the identifier of the receiver in the live broadcast room interface to display, so as to avoid completely blocking the avatar of the user associated with the agent, and to facilitate the user in the live broadcast room to distinguish the receiver of the virtual gift.
It is understood that, when the audience participates in the live broadcast, and the display style of an unbound agent is set as the head portrait of the audience, the audience can also serve as a virtual gift receiver to receive the gifted virtual gift.
Referring to fig. 7, fig. 7 is a schematic view of an interactive interface of a live broadcast room in a voice mode according to an embodiment of the present application. Fig. 7 shows 8 seats 701 in total, and as can be seen from the display of the public screen 702, the audience in the live broadcast room sends out the virtual gift for the user with the user name of blackjack, and then according to the seat position corresponding to the user identifier, the display data of the virtual gift is overlaid to the seat position corresponding to the receiver identifier in the interface of the live broadcast room for display. Compared with the common virtual gift, the virtual gift provided by the embodiment of the application can enable all users in the live broadcast room to clearly and intuitively confirm to which user the virtual gift is given. Referring to fig. 8, fig. 8 is a flowchart illustrating a live broadcast interaction method according to a third embodiment of the present application, where the method is mainly executed by the client 101, and is different from the second embodiment in that steps S201 to S204 are followed by steps S205 to S206, which are as follows:
s205: and acquiring the display duration corresponding to the virtual gift identification.
S206: rendering the special effect of the virtual gift according to the special effect data of the virtual gift within the display duration.
In the embodiment of the present application, the corresponding display time lengths of different virtual gifts may be different. Therefore, the client can obtain the display duration corresponding to the virtual gift identifier according to the virtual gift identifier.
Before rendering the special effect of the virtual gift, the client needs to acquire the special effect data of the virtual gift from the display data of the virtual gift. The explanation of the display data on the virtual gift has been explained in detail in step S103 and will not be described in detail here. The special effect data refers to data for presenting a special effect of a virtual gift in a live broadcast room interface. The special effect of the virtual gift can be a static special effect or a dynamic special effect.
After the client acquires the display duration corresponding to the virtual gift identification and the special effect data of the virtual gift, the special effect of the virtual gift can be rendered according to the special effect data of the virtual gift within the display duration.
In an optional embodiment, the virtual gift message further includes a number of virtual gifts, the client obtains a display duration corresponding to the virtual gift identifier, obtains a total display duration of the virtual gift according to the display duration corresponding to the virtual gift identifier and the number of the virtual gifts, and repeatedly renders the special effect of the virtual gift within the total display duration according to the special effect data of the virtual gift.
It should be noted that, in general, the display duration of the virtual gift is often related to the value of the virtual gift, but in an alternative embodiment of the present application, the display duration of the virtual gift may also be related to the identifier of the sender of the virtual gift, so as to promote the interaction of the user in a targeted manner.
Referring to fig. 9, fig. 9 is a flowchart illustrating a live broadcast interaction method according to a fourth embodiment of the present application. The method is mainly executed by the client 101, and is different from the second embodiment in that after step S201, steps S207 to S209 are further included, specifically as follows:
s207: and judging whether the virtual gift resources corresponding to the virtual gift identification are stored.
S208: and if not, downloading the virtual gift resources corresponding to the virtual gift identification from the server, analyzing and verifying the validity of the virtual gift resources, and adding the virtual gift messages into a virtual gift message queue.
S209: and if the virtual gift message is stored, directly adding the virtual gift message into a virtual gift message queue.
In this embodiment, after receiving the virtual gift message broadcast by the server and the display data of the live broadcast interface, the virtual gift identifier in the virtual gift message is obtained, and it is determined whether a virtual gift resource corresponding to the virtual gift identifier is stored locally.
If the virtual gift resources are not stored, the client sends a virtual gift resource downloading instruction to the server, the server responds to the virtual gift resource downloading instruction and sends the virtual gift resources to the client, then the client stores the virtual gift resources and conducts analysis and validity check, and after the validity check is passed, the client adds the virtual gift messages into a virtual gift message queue. If so, the client adds the virtual gift message to the virtual gift message queue.
In the live broadcast process, because the act of presenting the virtual gift occurs frequently, the client may continuously receive the virtual gift message broadcasted by the server, and in order to ensure the display effect of the virtual gift and prevent the loss of the virtual gift message, in this embodiment, a virtual gift message queue is established in the client, and the client may add the virtual gift message into the virtual gift message queue according to the receiving time of the virtual gift message or the broadcast sending time of the virtual gift message.
The establishment of the virtual gift message queue may adopt any one of the existing implementation manners, for example: the establishment of the virtual gift message queue is realized by a linked list or an array, which is not limited herein.
The client sequentially realizes the display of the virtual gifts according to the sequence of the virtual gift messages in the virtual gift message queue.
It can be understood that when the previous virtual gift is not rendered, the rest of the virtual gift messages wait to be called in the virtual gift message queue until the previous virtual gift is rendered, the client terminal calls the next virtual gift message, and the virtual gift corresponding to the virtual gift identifier in the virtual gift message is displayed in the live broadcast interface, so that the display rendering effect of the virtual gift can be improved, and the interactive enthusiasm in the live broadcast is facilitated.
In this embodiment, the virtual gift message queue is established, and the virtual gift messages broadcasted by the server are sequentially added to the virtual gift message queue, so that the loss of the virtual gift messages can be effectively prevented, and the display of the virtual gift in the interface of the live broadcast room is further ensured.
In an optional embodiment, the live interaction method may further include the steps of: and the client acquires the length of the virtual gift message queue, acquires the virtual gift message to be discarded according to a preset virtual gift discarding rule if the length of the virtual gift message alignment exceeds a preset length threshold, and deletes the virtual gift message to be discarded in the virtual gift message queue.
The preset virtual gift discarding rule may be that, according to a first attribute value corresponding to the virtual gift identifier, a virtual gift message with the first attribute value lower than a preset attribute threshold is taken as a virtual gift message to be discarded.
In an alternative embodiment, the value of the corresponding virtual gift for the virtual gift identification may be identified by the corresponding first attribute value of the virtual gift identification.
In this embodiment, the length of the virtual gift message queue is preset, and when the length of the virtual gift message queue exceeds a preset length threshold, it may be determined that the received virtual gift messages are too many, at this time, the client acquires the gift information to be discarded according to a preset virtual gift discarding rule, and deletes the virtual gift message to be discarded in the virtual gift message queue, thereby further preventing the loss of the new virtual gift message, and being capable of reducing the load of the client to a certain extent.
In another optional embodiment, when deleting the to-be-discarded virtual gift message in the virtual gift message queue, the client further needs to determine whether a sender identifier included in the to-be-discarded virtual gift message is the same as an audience identifier corresponding to the local client, and if the sender identifier is the same as the audience identifier, the to-be-discarded virtual gift message in the virtual gift message queue is not deleted, so that the virtual gift sender can see the virtual gift given by the virtual gift sender, and interaction enthusiasm of the audience is effectively avoided being affected.
Referring to fig. 10, fig. 10 is a flowchart illustrating a live broadcast interaction method according to a fifth embodiment of the present application. The method is mainly executed by the client 101, and is different from the second to fourth embodiments in that the steps in the second to fourth embodiments are executed by any client 101 (which may be the anchor client 1011 or the spectator client 1012) that receives the virtual gift message in the live broadcast room, and the steps in the present embodiment are executed by the spectator client 1012 that gifts the virtual gift. Specifically, the method includes steps S210 to S214:
s210: and responding to the virtual gift bar display instruction, and judging whether the virtual gift resources are stored.
S211: if not, downloading the virtual gift resources from the server, analyzing and verifying the validity of the virtual gift resources, and displaying the virtual gift column in the live broadcast interface according to the virtual gift resources; and if the virtual gift resources are stored, displaying the virtual gift column in the live webcast interface according to the virtual gift resources.
S212: and acquiring the virtual gift identification and the receiver identification of the selected virtual gift.
S213: and generating the virtual gift message according to the virtual gift identification of the selected virtual gift and the receiver identification.
S214: and sending the virtual gift message to the server.
It should be noted that the execution sequence of steps S210 to S214 is not sequential to the execution sequence of steps S201 to S204, and the viewer client may also receive the virtual gift message broadcast by the server when responding to the virtual gift certificate display operation.
In steps S210 to S214, steps S101 in the first embodiment are described except for the step of determining whether the virtual gift resource is stored, and specific reference may be made to the detailed description of S101.
The following describes the steps of determining whether a virtual gift resource has been stored:
in this embodiment, before the spectator client obtains the virtual gift resource, it needs to determine whether the virtual gift resource is stored in the spectator client. If the virtual gift resources are not stored, sending a virtual gift resource downloading instruction to the server, responding to the virtual gift resource downloading instruction by the server, issuing the virtual gift resources to the audience client, storing the virtual gift resources by the audience client, analyzing the virtual gift resources, checking the validity, and then performing subsequent operations after the validity check is passed.
It is understood that the virtual gift resource downloading instruction includes, but is not limited to, a virtual gift resource identifier, a viewer identifier, a channel identifier, and the like. Thereby enabling the server to identify which virtual gift resource should be sent to the viewer client and to which viewer client the virtual gift resource should be sent.
In an optional embodiment, the viewer client, in response to the virtual gift bar display instruction, acquires live broadcast scene information of a live broadcast room, acquires a virtual gift related to the live broadcast scene information, and preferentially displays the virtual gift related to the live broadcast scene information in the virtual gift bar.
Based on the explanation of step S101 in the first embodiment, it can be stated that the virtual gift resources downloaded by the viewer client include a virtual gift list, which includes several virtual gifts, and the layout of each virtual gift in the virtual gift box is determined based on the display data of the virtual gift list in the conventional case. However, in some live scenarios, for example: in a happy bean scene or a life circle scene, the virtual gift related to the live scene information may be preferentially displayed in the virtual gift box. Therefore, when the audience opens the virtual gift fence, the virtual gift related to the live broadcast scene can be acquired more quickly, the gift giving operation of the audience can be simplified, and the virtual gift giving behavior can be promoted to occur.
In another optional embodiment, the viewer client, in response to the virtual gift bar display instruction, obtains the number of times of selection of each virtual gift, and sequentially displays the virtual gifts in the virtual gift bar according to the number of times of selection.
In this embodiment, the server accumulates the number of times of selection, that is, the number of gifts, of each virtual gift. Before issuing the virtual gift resources, the server sets layout data of the virtual gift on the virtual gift bar based on the number of times of selection. Thus, when the viewer client receives the virtual gift resources and displays the virtual gift on the virtual gift bar according to the layout data of the virtual gift bar in the virtual gift resources, the virtual gift is displayed in the virtual gift bar according to the selected times. Or the virtual gift resources sent by the server further comprise the number of times of selection of each virtual gift, and the client displays the virtual gifts in the virtual gift column in sequence according to the number of times of selection.
According to the mode that the virtual gifts are displayed in the virtual gift column in sequence according to the selection times of the virtual gifts, more popular virtual gifts can be recommended to audiences, the giving actions of the virtual gifts are further promoted, and the interaction effect in a live broadcast room is improved.
Fig. 11 is a schematic structural diagram of a computer device according to a sixth embodiment of the present application. As shown in fig. 11, the computer device 11 may include: a processor 110, a memory 111, and a computer program 112 stored in the memory 111 and operable on the processor 110, such as: a live broadcast interaction method; the processor 110 executes the computer program 112 to implement the steps of the second to fifth embodiments, such as the steps S201 to S204 shown in fig. 4.
The processor 110 may include one or more processing cores, among other things. The processor 110 is connected to various parts in the computer device 11 by various interfaces and lines, executes various functions of the computer device 11 and processes data by operating or executing instructions, programs, code sets or instruction sets stored in the memory 111 and calling data in the memory 111, and optionally, the processor 110 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a single chip.
The Memory 111 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 111 includes a non-transitory computer-readable medium. The memory 111 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 111 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 111 may optionally be at least one memory device located remotely from the processor 110.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and being used to execute the method steps in the embodiments shown in fig. 2, fig. 4 to fig. 6, and fig. 8 to fig. 10, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 2, fig. 4 to fig. 6, and fig. 8 to fig. 10, which are not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The present application is not limited to the above-described embodiments, and various changes and modifications to the present application are intended to be included within the scope of the claims and the equivalent technology of the present application if they do not depart from the spirit and scope of the present application.

Claims (16)

1. A live broadcast interaction method is characterized by comprising the following steps:
the audience client-side responds to the virtual gift bar display instruction to acquire virtual gift resources; displaying the virtual gift column in a live broadcast room interface according to the virtual gift resources; acquiring a virtual gift identifier and a receiver identifier of the selected virtual gift; generating the virtual gift message according to the virtual gift identification and the receiver identification; sending the virtual gift message to the server;
the server receives the virtual gift message sent by the audience client and broadcasts the virtual gift message to all clients in a live broadcast room where the audience client is located;
all client sides in the live broadcast room receive virtual gift messages broadcasted by the server and display data of a live broadcast room interface; acquiring a display position of a receiver image corresponding to the receiver identification in the live broadcast interface; acquiring display data of the virtual gift corresponding to the virtual gift identification; adding display data of the virtual gift to display data of the live-air interface for display, wherein the virtual gift is displayed at the display position of the live-air interface.
2. A live broadcast interaction method is characterized by comprising the following steps:
receiving a virtual gift message broadcasted by a server and display data of a live broadcast room interface; wherein the virtual gift message comprises a recipient identification and a virtual gift identification;
acquiring a display position of a receiver image corresponding to the receiver identification in the live broadcast interface;
acquiring display data of the virtual gift corresponding to the virtual gift identification;
adding display data of the virtual gift to display data of the live-air interface for display, wherein the virtual gift is displayed at the display position of the live-air interface.
3. The live interaction method of claim 2,
the method for acquiring the display position of the receiver image corresponding to the receiver identification in the live broadcast interface comprises the following steps:
if the current live broadcast mode is the video mode, positioning a video display area corresponding to the receiver identification from a video window of the live broadcast interface;
according to a preset face recognition algorithm, recognizing a face image in the video display area, and determining the position of the face image in the video display area;
the adding the display data of the virtual gift to the display data of the live broadcast interface for display comprises the following steps:
and overlaying the display data of the virtual gift to the position of the human face image in the video display area for display.
4. The live interaction method as claimed in claim 3, wherein the step of overlaying the display data of the virtual gift on the position of the human face image in the video display area for display comprises the steps of:
and if the face image is not recognized from the video display area according to a preset face recognition algorithm, covering the display data of the virtual gift to the center of the video display area for display.
5. The live broadcast interaction method according to claim 2, wherein the step of obtaining the display position of the receiver image corresponding to the receiver identifier in the live broadcast interface includes:
if the current live broadcast mode is the voice mode, positioning an agent position corresponding to the receiver identification from the live broadcast room interface;
the adding the display data of the virtual gift to the display data of the live broadcast interface for display comprises the following steps:
overlaying display data of the virtual gift to the seat position in the live room interface for display.
6. The live interaction method of any one of claims 2 to 5, wherein the display data of the virtual gift comprises special effects data of the virtual gift;
after the display data of the virtual gift is added into the display data of the live broadcast interface for display, the method further comprises the following steps:
acquiring display duration corresponding to the virtual gift identification;
rendering the special effect of the virtual gift according to the special effect data of the virtual gift within the display duration.
7. The live interaction method as claimed in any one of claims 2 to 5, wherein the virtual gift message further contains a number of virtual gifts, and the display data of the virtual gift comprises special effect data of the virtual gift;
after the display data of the virtual gift is added into the display data of the live broadcast interface for display, the method further comprises the following steps:
acquiring display duration corresponding to the virtual gift identification;
obtaining the total display duration of the virtual gifts according to the display duration corresponding to the virtual gift identifications and the number of the virtual gifts;
and repeatedly rendering the special effect of the virtual gift according to the special effect data of the virtual gift in the total display duration.
8. The live interaction method as claimed in any one of claims 2 to 5, wherein after receiving the virtual gift message broadcasted by the server and the display data of the live room interface, the method comprises the following steps:
judging whether a virtual gift resource corresponding to the virtual gift identification is stored or not;
if not, downloading the virtual gift resources corresponding to the virtual gift identification from the server, analyzing and verifying the validity of the virtual gift resources, and adding the virtual gift information into a virtual gift information queue;
and if the virtual gift message is stored, directly adding the virtual gift message into a virtual gift message queue.
9. The live interaction method as claimed in claim 8, wherein the method further comprises the steps of:
acquiring the length of the virtual gift message queue;
if the length of the virtual gift message alignment exceeds a preset length threshold, acquiring a virtual gift message to be discarded according to a preset virtual gift discarding rule;
deleting the to-be-discarded virtual gift messages in the virtual gift message queue.
10. The live broadcast interaction method as claimed in claim 9, wherein the step of obtaining the to-be-discarded virtual gift message according to a preset virtual gift discarding rule comprises the steps of:
and according to a first attribute value corresponding to the virtual gift identification, acquiring the virtual gift message of which the first attribute value is lower than a preset attribute threshold value as the virtual gift message to be discarded.
11. The live interaction method of claim 9, wherein the virtual gift message further comprises a sender identification;
the deleting the to-be-discarded virtual gift message in the virtual gift message queue includes the steps of:
and if the sender identification included in the virtual gift message to be discarded is the same as the audience identification corresponding to the local client, not deleting the virtual gift message to be discarded in the virtual gift message queue.
12. A live interaction method as claimed in any one of claims 2 to 5, wherein the method further comprises the steps of:
responding to the virtual gift bar display instruction, and judging whether the virtual gift resources are stored or not;
if not, downloading the virtual gift resources from the server, analyzing and verifying the validity of the virtual gift resources, and displaying the virtual gift column in the live broadcast interface according to the virtual gift resources; if the virtual gift resources are stored, displaying the virtual gift column in the live webcast room interface according to the virtual gift resources;
acquiring a virtual gift identifier and a receiver identifier of the selected virtual gift;
generating the virtual gift message according to the virtual gift identification of the selected virtual gift and the receiver identification;
and sending the virtual gift message to the server.
13. A live interaction method as claimed in any one of claims 2 to 5, further comprising the steps of:
responding to a virtual gift bar display instruction, and acquiring live broadcast scene information of a live broadcast room;
acquiring a virtual gift related to the live scene information;
preferentially displaying the virtual gift related to the live scene information in the virtual gift certificate.
14. A live interaction method as claimed in any one of claims 2 to 5, further comprising the steps of:
responding to a virtual gift bar display instruction, and acquiring the selected times of each virtual gift;
and displaying the virtual gifts in the virtual gift column in sequence according to the selected times.
15. A computer device, comprising: processor, memory and computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 2 to 14 are implemented when the processor executes the computer program.
16. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 2 to 14.
CN202110583943.1A 2021-05-27 2021-05-27 Live broadcast interaction method, computer equipment and storage medium Pending CN113438490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110583943.1A CN113438490A (en) 2021-05-27 2021-05-27 Live broadcast interaction method, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110583943.1A CN113438490A (en) 2021-05-27 2021-05-27 Live broadcast interaction method, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113438490A true CN113438490A (en) 2021-09-24

Family

ID=77802926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110583943.1A Pending CN113438490A (en) 2021-05-27 2021-05-27 Live broadcast interaction method, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113438490A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992930A (en) * 2021-10-28 2022-01-28 广州方硅信息技术有限公司 Virtual resource conversion method and device, live broadcast system, equipment and storage medium
CN114092546A (en) * 2021-11-19 2022-02-25 深圳市国华识别科技开发有限公司 Card literacy method, device, computer equipment and storage medium
CN114245157A (en) * 2021-12-01 2022-03-25 广州方硅信息技术有限公司 Live broadcast room activity data display method and device, equipment, medium and product thereof
CN114268812A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Live broadcast room virtual resource presenting method and device, computer equipment and storage medium
CN114422821A (en) * 2022-02-14 2022-04-29 广州方硅信息技术有限公司 Live broadcast home page interaction method, device, medium and equipment based on virtual gift
CN114827645A (en) * 2021-12-29 2022-07-29 广州方硅信息技术有限公司 Live broadcast room approach method and device based on mask interaction and computer equipment
CN114845129A (en) * 2022-04-26 2022-08-02 北京达佳互联信息技术有限公司 Interaction method, device, terminal and storage medium in virtual space
CN115052169A (en) * 2022-07-25 2022-09-13 抖音视界有限公司 Interaction method, device, electronic equipment and computer readable medium
CN115883860A (en) * 2022-10-09 2023-03-31 北京达佳互联信息技术有限公司 Virtual space display method, device, equipment and storage medium
CN117041628A (en) * 2023-10-09 2023-11-10 腾讯科技(深圳)有限公司 Live picture rendering method, system, device, equipment and medium
WO2024032642A1 (en) * 2022-08-09 2024-02-15 抖音视界有限公司 Message processing method and apparatus, and electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055292A1 (en) * 2007-08-23 2009-02-26 Ebay, Inc Methods and systems to facilitate a purchase of an item on a network-based marketplace
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
CN109194973A (en) * 2018-09-26 2019-01-11 广州华多网络科技有限公司 A kind of more main broadcaster's direct broadcasting rooms give the methods of exhibiting, device and equipment of virtual present
CN111083505A (en) * 2019-11-19 2020-04-28 广州华多网络科技有限公司 Live broadcast room virtual gift interaction method, electronic equipment and device
CN111182343A (en) * 2019-12-09 2020-05-19 腾讯科技(深圳)有限公司 Method and apparatus for playing animation material, storage medium, and electronic apparatus
CN111698523A (en) * 2019-12-06 2020-09-22 广州华多网络科技有限公司 Method, device, equipment and storage medium for presenting text virtual gift
CN112399192A (en) * 2020-11-03 2021-02-23 上海哔哩哔哩科技有限公司 Gift display method and system in network live broadcast

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055292A1 (en) * 2007-08-23 2009-02-26 Ebay, Inc Methods and systems to facilitate a purchase of an item on a network-based marketplace
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
CN109194973A (en) * 2018-09-26 2019-01-11 广州华多网络科技有限公司 A kind of more main broadcaster's direct broadcasting rooms give the methods of exhibiting, device and equipment of virtual present
CN111083505A (en) * 2019-11-19 2020-04-28 广州华多网络科技有限公司 Live broadcast room virtual gift interaction method, electronic equipment and device
CN111698523A (en) * 2019-12-06 2020-09-22 广州华多网络科技有限公司 Method, device, equipment and storage medium for presenting text virtual gift
CN111182343A (en) * 2019-12-09 2020-05-19 腾讯科技(深圳)有限公司 Method and apparatus for playing animation material, storage medium, and electronic apparatus
CN112399192A (en) * 2020-11-03 2021-02-23 上海哔哩哔哩科技有限公司 Gift display method and system in network live broadcast

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992930B (en) * 2021-10-28 2023-10-03 广州方硅信息技术有限公司 Virtual resource conversion method, device, live broadcast system, equipment and storage medium
CN113992930A (en) * 2021-10-28 2022-01-28 广州方硅信息技术有限公司 Virtual resource conversion method and device, live broadcast system, equipment and storage medium
CN114092546A (en) * 2021-11-19 2022-02-25 深圳市国华识别科技开发有限公司 Card literacy method, device, computer equipment and storage medium
CN114245157A (en) * 2021-12-01 2022-03-25 广州方硅信息技术有限公司 Live broadcast room activity data display method and device, equipment, medium and product thereof
CN114827645B (en) * 2021-12-29 2024-02-06 广州方硅信息技术有限公司 Live broadcasting room approach method and device based on mask interaction and computer equipment
CN114827645A (en) * 2021-12-29 2022-07-29 广州方硅信息技术有限公司 Live broadcast room approach method and device based on mask interaction and computer equipment
CN114268812A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Live broadcast room virtual resource presenting method and device, computer equipment and storage medium
CN114268812B (en) * 2021-12-31 2024-01-19 广州方硅信息技术有限公司 Live broadcast room virtual resource giving method, device, computer equipment and storage medium
CN114422821A (en) * 2022-02-14 2022-04-29 广州方硅信息技术有限公司 Live broadcast home page interaction method, device, medium and equipment based on virtual gift
CN114845129A (en) * 2022-04-26 2022-08-02 北京达佳互联信息技术有限公司 Interaction method, device, terminal and storage medium in virtual space
CN115052169A (en) * 2022-07-25 2022-09-13 抖音视界有限公司 Interaction method, device, electronic equipment and computer readable medium
WO2024032642A1 (en) * 2022-08-09 2024-02-15 抖音视界有限公司 Message processing method and apparatus, and electronic device and storage medium
CN115883860A (en) * 2022-10-09 2023-03-31 北京达佳互联信息技术有限公司 Virtual space display method, device, equipment and storage medium
CN117041628A (en) * 2023-10-09 2023-11-10 腾讯科技(深圳)有限公司 Live picture rendering method, system, device, equipment and medium
CN117041628B (en) * 2023-10-09 2024-02-02 腾讯科技(深圳)有限公司 Live picture rendering method, system, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN113438490A (en) Live broadcast interaction method, computer equipment and storage medium
CN113453029B (en) Live broadcast interaction method, server and storage medium
CN113727130B (en) Message prompting method, system and device for live broadcasting room and computer equipment
CN113573083A (en) Live wheat-connecting interaction method and device and computer equipment
CN113453030B (en) Audio interaction method and device in live broadcast, computer equipment and storage medium
CN106484543B (en) Virtual article dispatching method and device and mobile terminal thereof
CN113766340B (en) Dance music interaction method, system and device under live connected wheat broadcast and computer equipment
CN113840154A (en) Live broadcast interaction method and system based on virtual gift and computer equipment
CN113596504A (en) Live broadcast room virtual gift presenting method and device and computer equipment
CN113613027B (en) Live broadcast room recommendation method and device and computer equipment
CN113824979A (en) Live broadcast room recommendation method and device and computer equipment
CN113824976A (en) Method and device for displaying approach show in live broadcast room and computer equipment
CN113938696A (en) Live broadcast interaction method and system based on user-defined virtual gift and computer equipment
CN114666671B (en) Live broadcast praise interaction method, device, equipment and storage medium
CN114666672B (en) Live fight interaction method and system initiated by audience and computer equipment
CN113573105B (en) Live broadcast interaction method based on virtual gift of screen and computer equipment
CN113824984A (en) Virtual gift pipelining display method, system, device and computer equipment
CN115134621A (en) Live broadcast fight interaction method and device based on main and auxiliary picture display and electronic equipment
CN114125480A (en) Live broadcasting chorus interaction method, system and device and computer equipment
CN115065838B (en) Live broadcast room cover interaction method, system, device, electronic equipment and storage medium
CN113891162B (en) Live broadcast room loading method and device, computer equipment and storage medium
CN113411622B (en) Loading method and device of live broadcast interface, client and storage medium
CN115134623A (en) Virtual gift interaction method and device based on main and auxiliary picture display and electronic equipment
CN114760502A (en) Live broadcast room approach show merging and playing method and device and computer equipment
CN114501065A (en) Virtual gift interaction method and system based on face jigsaw 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924