CN113840156A - Live broadcast interaction method and device based on virtual gift and computer equipment - Google Patents

Live broadcast interaction method and device based on virtual gift and computer equipment Download PDF

Info

Publication number
CN113840156A
CN113840156A CN202111108681.XA CN202111108681A CN113840156A CN 113840156 A CN113840156 A CN 113840156A CN 202111108681 A CN202111108681 A CN 202111108681A CN 113840156 A CN113840156 A CN 113840156A
Authority
CN
China
Prior art keywords
virtual gift
display
live broadcast
target virtual
broadcast room
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111108681.XA
Other languages
Chinese (zh)
Other versions
CN113840156B (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 CN202111108681.XA priority Critical patent/CN113840156B/en
Publication of CN113840156A publication Critical patent/CN113840156A/en
Application granted granted Critical
Publication of CN113840156B publication Critical patent/CN113840156B/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/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/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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to the technical field of network live broadcast, and provides a live broadcast interaction method and device based on a virtual gift and computer equipment, wherein the method comprises the following steps: the method comprises the steps that a spectator client side responds to an extended display operation instruction of a target virtual gift and sends a virtual gift extended display request containing a live broadcast room identifier and a first display duration to a server; the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to the client side in the live broadcast room; and responding to the virtual gift extension display instruction by the client side in the live broadcast room, extending the residual display time of the target virtual gift according to the first display time, and continuously rendering the special effect of the target virtual gift in the extended residual display time of the target virtual gift in the live broadcast room interface. Compared with the prior art, the method and the device can effectively improve the live broadcast interactive experience of the user, promote the generation of the live broadcast interactive behavior of the user, and improve the interactive enthusiasm in the network live broadcast scene.

Description

Live broadcast interaction method and device based on virtual gift and computer equipment
Technical Field
The embodiment of the application relates to the technical field of network live broadcast, in particular to a live broadcast interaction method and device based on a virtual gift and computer equipment.
Background
With the rapid development of the internet technology and the streaming media technology, in the live network broadcast process, various interactions can be performed between audiences and a main broadcast so as to improve the live broadcast interaction experience between the audiences and the main broadcast, and specifically, the interaction mode between the audiences and the main broadcast can be that the audiences give a virtual gift to the main broadcast in a live broadcast room.
However, after the audience presents the virtual gift in the live broadcast room at present, the special effect of the virtual gift can only be displayed on the interface of the live broadcast room within a certain display duration, and the special effect of the virtual gift disappears after the display duration is exceeded, so that the interactive experience of the audience presenting the virtual gift is poor, and the live broadcast interactive participation of other audiences cannot be improved.
Disclosure of Invention
The embodiment of the application provides a live broadcast interaction method, a live broadcast interaction device and computer equipment based on virtual gifts, and the technical problems that the interactive experience of presenting the virtual gifts is poor and the live broadcast interaction participation of other audiences cannot be improved can be solved, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a live broadcast interaction method based on a virtual gift, including the steps of:
the method comprises the steps that a spectator client responds to an extended display operation instruction of a target virtual gift, acquires a live broadcast room identifier and first display duration, and sends a virtual gift extended display request containing the live broadcast room identifier and the first display duration to a server; the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present;
the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to a client side in the live broadcast room corresponding to the live broadcast room identification;
the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains a first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
In a second aspect, an embodiment of the present application provides a live broadcast interaction method based on a virtual gift, including the steps of:
the method comprises the steps that an audience client responds to a display extension operation instruction of a target virtual gift, acquires a live broadcast room identifier and a first display time length, and sends a virtual gift display extension request containing the live broadcast room identifier and the first display time length to a server, so that the server responds to the virtual gift display extension request and sends a virtual gift display extension instruction containing the first display time length to a client in a live broadcast room corresponding to the live broadcast room identifier; the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present;
the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains a first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
In a third aspect, an embodiment of the present application provides a live broadcast interaction device based on a virtual gift, including:
the system comprises a first request unit, a server and a client side, wherein the first request unit is used for responding to an extended display operation instruction of a target virtual gift, acquiring a live broadcast room identifier and a first display duration, and sending a virtual gift extended display request containing the live broadcast room identifier and the first display duration to the server by the client side; the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present;
the first control unit is used for responding to the virtual gift extended display request by the server and sending a virtual gift extended display instruction containing first display duration to a client side in the live broadcast room corresponding to the live broadcast room identification;
the extension display unit is used for responding to a virtual gift extension display instruction by a client in the live broadcast room and acquiring first display time and the remaining display time of a target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
In a fourth aspect, the present application provides a computer device, a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect or the second aspect when executing the computer program.
In a fifth aspect, the present application provides a computer-readable storage medium, 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 first aspect or the second aspect.
In the embodiment of the application, the audience client side responds to the extended display operation instruction of the target virtual gift, acquires the live broadcast room identifier and the first display duration, and sends a virtual gift extended display request containing the live broadcast room identifier and the first display duration to the server; the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present; the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to a client side in the live broadcast room corresponding to the live broadcast room identification; the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains a first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface. The embodiment of the application realizes that under a live network scene, the target virtual gift with the special effect displayed on the interface of the live broadcast room at present is displayed on the interface of the live broadcast room, based on the interaction between the user and the target virtual gift, the residual display duration of the target virtual gift is correspondingly prolonged, the special effect of the target virtual gift can be continuously displayed on the interface of the live broadcast room, so that the live broadcast interactive experience of the user presenting the target virtual gift can be improved, the generation of the live broadcast interactive behaviors of other users can be promoted, and the live broadcast interactive enthusiasm of the user is improved.
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 virtual gift-based live broadcast interaction method according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a virtual gift box assembly displayed in a live broadcast room interface provided by the present application;
fig. 3 is a schematic flowchart illustrating a virtual gift-based live broadcast interaction method according to a first embodiment of the present application;
fig. 4 is a schematic diagram illustrating a display of a special effect of a target virtual gift in a live broadcast interface according to an embodiment of the present application;
fig. 5 is another schematic flow chart of a virtual gift-based live interaction method according to the first embodiment of the present application;
fig. 6 is a schematic flowchart of S102 in a virtual gift-based live interaction method according to a first embodiment of the present application;
fig. 7 is a schematic flowchart of a virtual gift-based live interaction method according to a first embodiment of the present application;
fig. 8 is a flowchart illustrating a virtual gift-based live interaction method according to a second embodiment of the present application;
fig. 9 is a schematic display diagram of a progress bar component provided in an embodiment of the present application in a live view interface;
fig. 10 is a schematic view illustrating a user avatar displayed in a live broadcast interface according to an embodiment of the present application;
fig. 11 is a schematic display diagram of a progress bar with an extended display length in a live broadcast room interface according to an embodiment of the present application;
fig. 12 is another schematic display diagram of a user avatar in a live-cast interface according to an embodiment of the present application;
fig. 13 is a schematic flowchart of S205 in a virtual gift-based live interaction method according to a second embodiment of the present application;
FIG. 14 is another schematic display diagram of a progress bar component provided in an embodiment of the present application in a live view interface;
fig. 15 is a schematic view of still another display of a user avatar in a live view interface according to an embodiment of the present application;
fig. 16 is a flowchart illustrating a virtual gift-based live broadcast interaction method according to a third embodiment of the present application;
fig. 17 is a schematic structural diagram of a virtual gift-based live interactive device according to a fourth embodiment of the present application;
fig. 18 is a schematic structural diagram of a computer device according to a fifth embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As will be appreciated by those skilled in the art, the terms "client," "terminal device," and "terminal device" as used herein include both wireless signal receiver devices, which include only wireless signal receiver devices without transmit capability, and receiving and transmitting hardware devices, which include receiving and transmitting hardware devices capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (personal communications Service), which may combine voice, data processing, facsimile and/or data communications capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global positioning system) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. is essentially a computer device with the performance of a personal computer, and is a hardware device having necessary components disclosed by the von neumann principle, 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 based on a virtual gift according to an embodiment of the present application, where the application scenario includes an anchor client 101, a server 102, and a viewer client 103 according to an embodiment of the present application, and the anchor client 101 and the viewer client 103 interact with each other through the server 102.
The anchor client 101 is a client that transmits a live video, and is generally a client used by an anchor (i.e., a live anchor user) in live streaming.
The viewer client 103 refers to an end that receives and views a live video, and is typically a client employed by a viewer viewing a video in a live network (i.e., a live viewer user).
The hardware at which the anchor client 101 and viewer client 103 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 101 and the viewer client 103 may access the internet via known network access means to establish a data communication link with the server 102.
Server 102, acting as a business server, may be responsible for further connecting with 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 anchor client 101 and viewer client 103 shown in fig. 1.
In the embodiment of the present application, the anchor client 101 and the audience client 103 may join in the same live broadcast room (i.e., a live broadcast channel), where the live broadcast room is a chat room implemented by means of an internet technology, and generally has an audio/video broadcast control function. The anchor user is live in the live room through the anchor client 101, and the audience of the audience client 103 can log in the server 102 to enter the live room to watch the live.
In the live broadcast room, interaction between the anchor and the audience can be realized through known online interaction modes such as voice, video, characters and the like, generally, the anchor performs programs for audience users in the form of audio and video streams, and economic transaction behaviors can also be generated in the interaction process. Of course, the application form of the live broadcast room is not limited to online entertainment, and can also be popularized to other relevant scenes, such as a video conference scene, a product recommendation sale scene and any other scenes needing similar interaction.
Specifically, the viewer watches live broadcast as follows: a viewer may click on a live application installed on the viewer client 103 and choose to enter any one of the live rooms, triggering the viewer client 103 to load a live room interface for the viewer, the live room interface including a number of interactive components, for example: the video component, the virtual gift bar component, the public screen component and the like can enable audiences to watch live broadcast in the live broadcast room by loading the interactive components, and perform various online interactions, wherein the online interaction modes comprise but are not limited to presenting virtual gifts, speaking on the public screen and the like.
Referring to fig. 2, fig. 2 is a schematic view illustrating a display of a virtual gift bar assembly in a live broadcast interface according to the present application. It can be seen that a number of virtual gifts 22 are displayed in the virtual gift box assembly 21, and viewers can browse the virtual gifts 22 in the virtual gift box assembly 21 and select any one of the virtual gifts to be presented to the anchor.
In the embodiment of the application, for some virtual gifts with relatively high virtual gift values, the virtual gift special effect data is provided, and the display size of the virtual gift special effect in the live broadcasting room interface is large. When the audience selects to present a certain virtual gift to the anchor, the audience client generates a virtual gift presenting request according to the virtual gift identifier corresponding to the virtual gift selected by the audience, and then sends the virtual gift presenting request to the server. The server responds to the virtual gift giving request and sends a virtual gift giving instruction containing the virtual gift identification to a client in a live broadcast room, the live broadcast room is a live broadcast room created by a main broadcast, the client in the live broadcast room responds to the virtual gift giving request and obtains virtual gift data corresponding to the virtual gift identification, wherein the virtual gift data corresponding to the virtual gift identification comprises, but is not limited to, virtual gift special effect data, a display position of the virtual gift, display duration of the virtual gift and the like, so that the client can display the special effect of the virtual gift on the display position of the virtual gift in a live broadcast room interface in the display duration of the virtual gift according to the virtual gift data, and further both the main broadcast and audiences can see the display of the special effect of the virtual gift in the live broadcast room.
However, since the display duration of the virtual gift is fixed, the special effect of the virtual gift displayed in the live broadcast room disappears after the display duration of the virtual gift exceeds the display duration, which makes it difficult to improve the interactive enthusiasm of other audiences and improve the interactive experience of presenting the virtual gift.
Based on the above, the embodiment of the application provides a live broadcast interaction method based on a virtual gift. Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a virtual gift-based live broadcast interaction method according to a first embodiment of the present application, where the method includes the following steps:
s101: the method comprises the steps that a spectator client responds to an extended display operation instruction of a target virtual gift, acquires a live broadcast room identifier and first display duration, and sends a virtual gift extended display request containing the live broadcast room identifier and the first display duration to a server; and the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present.
S102: and the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to the client side in the live broadcast room corresponding to the live broadcast room identifier.
S103: the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains a first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
In this embodiment, the virtual gift-based live interactive method is described from two execution bodies, i.e., a client and a server. Wherein, the client comprises an anchor client and a spectator client.
Regarding step S101, the viewer client acquires the live broadcast room identifier and the first display duration in response to the extended display operation instruction for the target virtual gift, and transmits a virtual gift extended display request including the live broadcast room identifier and the first display duration to the server.
And the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present. The presentation process and the effect display process of the target virtual gift have been described in the foregoing, and will not be repeated here.
In this embodiment, the live broadcast room identifier is a live broadcast room identifier corresponding to a live broadcast room in which the viewer client is located.
The first display duration is a display duration that is extended for the target user to confirm the target virtual gift, the target user being a user that triggered the target virtual gift.
Referring to fig. 4, fig. 4 is a schematic view illustrating a display of a special effect of a target virtual gift in a live broadcast interface according to an embodiment of the present application. Since fig. 4 is a static diagram, the dynamic presentation effect of the special effect cannot be presented, but it is confirmed that the special effect 41 of the target virtual gift is presented in the live view interface 42 in the form of animation.
In this embodiment, the extended display operation instruction for the target virtual gift is issued by the viewer client, and may be generated after the target user successfully triggers the target virtual gift displayed in the live broadcast interface, and the triggering manner may be long-pressing the target virtual gift or double-clicking the target virtual gift.
How to trigger the viewer client to issue the extended display operation instruction will be specifically described below. In an alternative embodiment, referring to fig. 5, the viewer client, in response to the extended display operation instruction for the target virtual gift, comprises steps S104 to S105:
s104: the audience client-side responds to the successful triggering instruction of the target virtual gift, obtains the first display duration and the information to be paid corresponding to the first display duration, and displays the information to be paid corresponding to the first display duration in the live broadcast room interface.
S105: and the audience client-side responds to the payment success instruction of the information to be paid and sends out an extended display operation instruction of the target virtual gift.
The trigger success command is issued after the target user successfully triggers the target virtual gift.
Specifically, the spectator client receives trigger operation information of a target user in a live broadcast interface, acquires a display area of a target virtual gift in the live broadcast interface, and sends a trigger success instruction to the target virtual gift if a trigger position in the trigger operation information is in the display area.
The trigger operation information of the target user in the live broadcast interface comprises a trigger position and a trigger mode.
If the triggering mode is the triggering mode corresponding to the target virtual gift and the triggering position is in the display area of the target virtual gift, the audience client confirms that the triggering is successful and sends a triggering success instruction for the target virtual gift.
In short, if the trigger mode corresponding to the target virtual gift is long press trigger, the target user presses a certain position in the display area of the target virtual gift in the live broadcast room interface, and the target virtual gift is successfully triggered, so that the audience client sends a trigger success instruction for the target virtual gift.
And then, the audience client responds to the successful triggering instruction of the target virtual gift, acquires the first display duration and the information to be paid corresponding to the first display duration, and displays the information to be paid corresponding to the first display duration in the live broadcast room interface.
In an optional embodiment, the spectator client acquires first popup data in response to a successful triggering instruction for the target virtual gift, displays the first popup in a live broadcast room interface according to the first popup data, receives first display duration input by a target user through the first popup, acquires information to be paid corresponding to the first display duration, and displays the information to be paid corresponding to the first display duration in the first popup.
Specifically, the first pop-up window comprises a duration input control, an information display control to be paid and a payment confirmation control. Therefore, the receiving of the first display duration, the display of the information to be paid and the triggering of the audience client to send a payment confirmation instruction to the server are realized.
How to confirm the information to be paid corresponding to the first display duration will be described below:
the audience client side obtains the first display time length, the display time length of the single target virtual gift and the virtual gift value of the single target virtual gift; and then determining the information to be paid corresponding to the first display duration according to the first display duration, the display duration of the single target virtual gift and the virtual gift value of the single target virtual gift.
The display duration of the single target virtual gift refers to the display duration of one target virtual gift, and the special effect of the target virtual gift is displayed in a live broadcast interface. Specifically, the data structure of the target virtual gift is improved in advance, and a field is added to store the display duration of the special effect in the live broadcast interface.
The virtual gift value of a single target virtual gift refers to the amount of virtual money to be paid for presenting one target virtual gift.
Specifically, the audience client obtains a ratio of the first display duration to the display duration of the single target virtual gift, and then multiplies the ratio by the virtual gift value of the single target virtual gift, so as to obtain the information to be paid corresponding to the first display duration.
For example: the first display duration is 15s (seconds), the display duration of a single target virtual gift is 10s (seconds), the virtual gift value of the single target virtual gift is 10 virtual gift currencies, and then the information to be paid corresponding to the first display duration is 15 virtual currencies.
It should be noted that, in the present embodiment, the information to be paid corresponding to the first display duration is calculated by the viewer client, but the information to be paid corresponding to the first display duration may also be calculated by the server, and the specific process is the same.
The audience client displays the information to be paid corresponding to the first display duration in the live broadcast room interface, the user can know the amount of the virtual currency needing to be paid in order to prolong the display duration of the target virtual gift, and after the user confirms payment through the payment confirmation control, a payment confirmation instruction is sent to the server. The payment confirmation instruction at least comprises a target user identifier and information to be paid, wherein the target user identifier is a user identifier corresponding to a user triggering the target virtual gift.
The server responds to the payment confirmation instruction, obtains the payable information corresponding to the target user identification, and sends a payment success instruction of the information to be paid to the audience client side after the information to be paid is successfully removed from the payable information.
And finally, the audience client responds to the payment success instruction of the information to be paid and sends out an extended display operation instruction of the target virtual gift.
Regarding step S102, the server sends a virtual gift extended display instruction including a first display duration to the client in the live broadcast corresponding to the live broadcast identifier in response to the virtual gift extended display request.
Specifically, the server responds to the virtual gift extension display request, analyzes the virtual gift extension display request to obtain a live broadcast room identifier and a first display time length, generates a virtual gift extension display instruction according to the first display time length, and sends the virtual gift extension display instruction to a client side in the live broadcast room corresponding to the live broadcast room identifier.
In an optional embodiment, referring to fig. 6, since the viewers in the live broadcast room can all extend the remaining display duration of the target virtual gift by triggering the target virtual gift, the number of times of the extended display is limited in order to avoid that the same virtual gift is displayed in the live broadcast room interface for a long time and affects the user to give other virtual gifts. Specifically, the step of sending the virtual gift extended display instruction including the first display duration to the client in the live broadcast room corresponding to the live broadcast room identifier in S102 includes the steps of:
s1021: the server acquires the extended display times of the target virtual gift and judges whether the extended display times of the target virtual gift reaches a preset extension stopping condition or not;
s1022: if so, sending the information for stopping the extended display to the audience client, receiving the information for stopping the extended display by the audience client, and displaying the information for stopping the extended display in a live broadcast interface;
s1023: and if not, sending a virtual gift extension display instruction containing the first display duration to a client side in the live broadcast room corresponding to the live broadcast room identifier.
The preset stop extension condition may be that the number of times of extension display exceeds a first threshold of the number of times of extension display.
The stop extension display information is used to prompt the target user that the target user is currently unable to continue to extend the special effect of the target virtual gift.
In this embodiment, the extended display times of the target virtual gift are determined, so that the extended display times can be limited to a certain extent, thereby preventing the special effect of the same virtual gift from being displayed in the live broadcast room interface for too long, and further reducing the influence on the presentation of other virtual gifts by the user.
Regarding step S103, the client in the live broadcast room acquires the first display duration and the remaining display duration of the target virtual gift in response to the virtual gift extension display instruction; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
In this embodiment, the display duration of the target virtual gift is a fixed value and does not decrease with the passage of time. Specifically, it may be determined according to the display time period of a single target virtual gift and the number of gifted target virtual gifts.
The remaining display duration of the target virtual gift is a dynamic value and decreases with time.
In this embodiment, the extended remaining display duration of the target virtual gift is obtained by increasing the remaining display duration of the target virtual gift by the first display duration.
It should be noted that the special effect of the target virtual gift is played in a circulating manner in the live broadcast room interface until the remaining display duration of the target virtual gift is zero, and if the user prolongs the remaining display duration of the target virtual gift before the remaining display duration of the target virtual gift is zero, the special effect of the target virtual gift continues to be played in the live broadcast room interface in a circulating manner until the prolonged remaining display duration of the target virtual gift is zero.
In the embodiment of the application, the audience client side responds to the extended display operation instruction of the target virtual gift, acquires the live broadcast room identifier and the first display duration, and sends a virtual gift extended display request containing the live broadcast room identifier and the first display duration to the server; the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present; the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to a client side in the live broadcast room corresponding to the live broadcast room identification; the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains a first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface. The embodiment of the application realizes that under a live network scene, the target virtual gift with the special effect displayed on the interface of the live broadcast room at present is displayed on the interface of the live broadcast room, based on the interaction between the user and the target virtual gift, the residual display duration of the target virtual gift is correspondingly prolonged, the special effect of the target virtual gift can be continuously displayed on the interface of the live broadcast room, so that the live broadcast interactive experience of the user presenting the target virtual gift can be improved, the generation of the live broadcast interactive behaviors of other users can be promoted, and the live broadcast interactive enthusiasm of the user is improved.
In an alternative embodiment, referring to fig. 7, in order to enhance the live interactive experience of the user, the method further includes the steps of:
s106: the server obtains the extended display times of the target virtual gift, and obtains an anchor name corresponding to an anchor receiving the target virtual gift and a gift name of the target virtual gift if the extended display times of the target virtual gift reach a preset full-dress broadcast condition.
S107: and the server generates virtual gift broadcasting information according to the anchor name, the gift name and the prolonged display frequency, and broadcasts the virtual gift broadcasting information to all the clients in the broadcast live broadcasting room.
S108: and the client in the opened live broadcast room receives the virtual gift broadcasting information and displays the virtual gift broadcasting information in respective live broadcast room interfaces.
Wherein the played live broadcast room is a live broadcast room created by the main broadcast with the live broadcast started. The clients within the launched live room include the anchor client and the viewer client within the launched live room.
In an alternative embodiment, the preset full service broadcasting condition includes a number of second extended display number thresholds. Therefore, when the extended display frequency of the target virtual gift reaches a certain second extended display frequency threshold value, the server is triggered to generate virtual gift broadcast information, and the virtual gift broadcast information is broadcasted to all the clients in the broadcast live broadcasting room.
For example: the second extended display times threshold may be 50 and 100, and when the extended display times of the target virtual gift reach 50 and 100, the server generates virtual gift broadcasting information to broadcast the virtual gift broadcasting information to all the clients in the live broadcasting room.
In this embodiment, through full channel broadcast virtual gift broadcast information, can further promote user's live interactive experience, promote the production of live interactive action, promote the number of watching and the rate of surviving of live room.
In an optional embodiment, the method further comprises the step of: the server acquires the extended display times of the target virtual gift, acquires the virtual gift reward corresponding to the extended display times if the extended display times of the target virtual gift reaches a preset reward condition, and sends the virtual gift reward to the anchor client corresponding to the anchor receiving the target virtual gift.
Optionally, the preset reward condition includes a plurality of third extended display time thresholds, so that when the extended display times of the virtual gift logo reaches any one of the third extended display time thresholds, the anchor can receive a certain reward, and the initiative of the anchor is improved.
Referring to fig. 8, fig. 8 is a schematic flowchart illustrating a virtual gift-based live broadcast interaction method according to a second embodiment of the present application, including the following steps:
s201: the client side in the live broadcast room responds to the virtual gift giving instruction sent by the server, obtains progress bar component data, and displays the progress bar component in a live broadcast room interface according to the progress bar component data; wherein the display length of the progress bar in the progress bar component corresponds to the remaining display duration of the target virtual gift.
S202: the method comprises the steps that a spectator client responds to an extended display operation instruction of a target virtual gift, acquires a live broadcast room identifier and first display duration, and sends a virtual gift extended display request containing the live broadcast room identifier and the first display duration to a server; and the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present.
S203: and the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to the client side in the live broadcast room corresponding to the live broadcast room identifier.
S204: responding to a virtual gift extension display instruction by a client in the live broadcast room, and acquiring progress bar component data, first display duration and remaining display duration of a target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
S205: and the client in the live broadcast room determines the corresponding target display length according to the prolonged residual display duration of the target virtual gift, and prolongs the display length of the progress bar to the target display length.
In the present embodiment, steps S202 to S204 are the same as steps S101 to S103, and the description thereof can be referred to the first embodiment. Steps S201 and S205 will be explained below.
Regarding step S201, the client in the live broadcast room, in response to the virtual gift-giving instruction sent by the server, may obtain not only the virtual gift data and display the virtual gift special effect in the live broadcast room interface, but also obtain the progress bar component data and display the progress bar component in the live broadcast room interface according to the progress bar component data.
Wherein the progress bar component data includes display data of the progress bar component and function data of the progress bar component.
The display data of the progress bar component comprises a display style of the progress bar component, a display position of the progress bar component, a display size of the progress bar component, a display style and a display size of a progress bar in the progress bar component.
The function data of the progress bar component is used for a display duration countdown function of the target virtual gift, and specifically is a function of determining the display length of the progress bar based on the remaining display duration of the target virtual gift.
Referring to fig. 9, fig. 9 is a schematic view illustrating a display of a progress bar component in a live view interface according to an embodiment of the present application. As can be seen from fig. 9, the progress bar 92 is displayed in the progress bar assembly 91, the maximum display time Length that the progress bar 92 can represent is 50s (seconds), and the maximum display Length of the progress bar is Length.
If the display time period of a single target virtual gift is 10s (seconds) and the number of given target virtual gifts is 1, the remaining display time period of the target virtual gift is 10s when the progress bar assembly starts to be displayed in the live broadcast room interface, and thus the display length of the progress bar 92 is 10s
Figure BDA0003273322360000121
As the remaining display time period of the target virtual gift decreases, the display length of the progress bar 92 gradually decreases.
In an alternative embodiment, when the progress bar component begins to be displayed in the live-air interface, the user avatar corresponding to the gifting user presenting the target virtual gift is also displayed in the live-air interface, above the current end of the progress bar 92. The current end is the end of the progress bar 92 at the time the progress bar component 91 begins to be displayed in the live view interface, rather than the end of the progress bar 92 that is changing constantly.
The display position of the progress bar component on the live broadcast interface is a first display position, and how to confirm the second display position of the user avatar corresponding to the gift-giving user in the live broadcast interface will be described below.
Specifically, the second display position of the user avatar corresponding to the gifting user in the live broadcast interface may be determined according to the first display position of the progress bar component and the relative position between the user avatar corresponding to the gifting user and the progress bar component, and the relative position between the user avatar corresponding to the gifting user and the progress bar component is determined according to the current display length of the progress bar.
The first display position can be behind the display position of the upper left corner of the progress bar component in the live broadcast room interface.
The relative position between the user head portrait corresponding to the gifting user and the progress bar assembly comprises a transverse relative distance and a longitudinal relative distance.
And the transverse relative distance between the user head portrait corresponding to the gift giving user and the progress bar component is the current display length of the progress bar. The vertical relative distance between the user head portrait corresponding to the gifting user and the progress bar component is a default value.
As shown in FIG. 9, when the progress bar component 91 starts to be displayed in the live-air interface, the current display length of the progress bar 92 is
Figure BDA0003273322360000122
Thus, the lateral relative distance between the user avatar of gifting user A and the progress bar assembly 91 is
Figure BDA0003273322360000123
According to the transverse relative distance between the user head portrait of the gifting user A and the progress bar component 91
Figure BDA0003273322360000124
The vertical relative distance between the avatar of the user of the gifting user a and the progress bar component 91 is a default value, and then the avatar of the user of the gifting user a is displayed above the current end of the progress bar 92 when the progress bar component 91 starts to be displayed.
Referring to fig. 10, fig. 10 is a schematic view illustrating a display of a user avatar in a live broadcast interface according to an embodiment of the present application. It can be seen that the user avatar of gifting user a is displayed above the current end of progress bar 92.
In step S205, the client in the live broadcast room determines the corresponding target display length according to the extended remaining display duration of the target virtual gift, and extends the display length of the progress bar to the target display length.
After the client side in the live broadcast room obtains the extended remaining display duration of the target virtual gift, the corresponding target display length needs to be determined according to the extended remaining display duration of the target virtual gift, and the display length of the progress bar needs to be extended to the target display length.
Referring to fig. 9 and fig. 11 at the same time, fig. 11 is a schematic display diagram of a progress bar with an extended display length in a live broadcast interface according to an embodiment of the present application.
The display length of the progress bar 92 shown in fig. 9 is
Figure BDA0003273322360000131
Is the length of the progress bar that the progress bar component 91 begins to display in the live-air interface, and the display length of the progress bar 92
Figure BDA0003273322360000132
The residual display duration of the corresponding target virtual gift is 10s, if the residual display duration of the target virtual gift changes to 5s along with the lapse of time, the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains the first display duration of 15s, then the residual display duration of the extended target virtual gift is 20s, and the corresponding target display length is determined to be 20s according to the residual display duration of the extended target virtual gift which is 20s
Figure BDA0003273322360000133
Then, as shown in fig. 11, the remaining display time period of the extended target virtual gift is 20s, and the display length of the extended progress bar 92
Figure BDA0003273322360000134
In an optional embodiment, when the display length of the progress bar is extended to the target display length, a user avatar corresponding to the target user identifier is also displayed in the live broadcast interface.
The target user identifier is the user identifier corresponding to the target user for prolonging the display duration of the target virtual gift.
Specifically, the method further comprises the steps of: and the client side in the live broadcast room acquires the target user identification, the user head portrait corresponding to the target user identification and a second display position of the user head portrait in the live broadcast room interface, and displays the user head portrait corresponding to the user identification at the second display position in the live broadcast room interface.
The second display position of the user avatar corresponding to the target user identification in the live broadcast interface is determined according to the first display position of the progress bar component and the relative position between the user avatar corresponding to the target user identification and the progress bar component, and the relative position between the user avatar corresponding to the target user identification and the progress bar component is determined according to the current display length of the progress bar.
The relative position between the user avatar corresponding to the target user identification and the progress bar assembly also includes a lateral relative distance and a longitudinal relative distance.
The horizontal relative distance between the user head portrait corresponding to the target user identification and the progress bar component is the current display length of the progress bar, and the vertical relative distance between the user head portrait corresponding to the target user identification and the progress bar component is a default value.
As shown in fig. 11, the remaining display time period of the extended target virtual gift is 20s, and the display length of the extended progress bar is
Figure BDA0003273322360000141
If the user avatar of the target user B is displayed while the display length of the progress bar is extended, the current display length of the progress bar is also the same as the display length of the target user B
Figure BDA0003273322360000142
Thus, the lateral relative distance between the user avatar of target user B and progress bar assembly 91 is
Figure BDA0003273322360000143
According to the transverse relative distance between the user head portrait of the target user B and the progress bar assembly 91
Figure BDA0003273322360000144
The vertical relative distance between the user avatar of target user B and progress bar assembly 91 is a default value, and the user avatar of target user B is displayed above the current end of progress bar 92. Referring to fig. 12, fig. 12 is another schematic view of the user avatar displayed in the live broadcast interface according to the embodiment of the present application, and it can be seen that the user avatar of the target user B is displayed above the current end of the progress bar 92.
In an alternative embodiment, as more users participate in the extension of the remaining display duration of the target virtual gift, which may result in a situation where the extended remaining display duration of the target virtual gift exceeds the maximum display duration that can be represented by the progress bar, for this reason, referring to fig. 13, the client in the live broadcast room determines the corresponding target display length according to the extended remaining display duration of the target virtual gift in S205, including the steps of:
s2051: and the client in the live broadcast room acquires the maximum display length of the progress bar and the maximum display duration which can be represented by the progress bar.
S2052: and the client side in the live broadcast room judges whether the residual display time length of the prolonged target virtual gift is greater than the maximum display time length, if so, the maximum display time length is increased, and the target display length is determined according to the ratio of the residual display time length of the prolonged target virtual gift to the increased maximum display time length and the maximum display length of the progress bar.
In an alternative embodiment, each time the maximum display time period is increased, the maximum display time period represented by the progress bar 92 shown in fig. 9 and 11 is 50s (seconds), and then the maximum display time period represented by the progress bar 92 after the increase is 100s (seconds).
In the present embodiment, the maximum display length of the progress bar is not changed. As shown in fig. 9 and 11, the maximum display length is always constant.
Specifically, the client in the live broadcast room first obtains the ratio between the remaining display duration of the extended target virtual gift and the maximum display duration after the extension, and then multiplies the ratio by the maximum display length of the progress bar, thereby determining the target display length and adjusting the display length of the progress bar to the target display length.
For example: the remaining display time period of the target virtual gift before the extension is 20s, the remaining display time period of the target virtual gift after the extension is 60s, and the ratio of the remaining display time period of the target virtual gift after the extension 60s to the maximum display length after the extension 100s is
Figure BDA0003273322360000151
If the maximum display Length of the progress bar 92 is Length, the target display Length of the progress bar 92 is Length
Figure BDA0003273322360000152
Therefore, the display length of the progress bar 92 is adjusted to
Figure BDA0003273322360000153
Referring to fig. 14, fig. 14 is another schematic display diagram of a progress bar component in a live view interface according to an embodiment of the present application. The maximum display time length of the progress bar 92 in the progress bar assembly 91 of fig. 14 is increased to 100s, and the display length of the progress bar 92 is the target display length
Figure BDA0003273322360000154
It should be noted that the executing main body of steps S2051 to S2052 may also be a server, and the server determines the increased maximum display duration and the target display length, and sends them to the client in the live broadcast room. The manner of determining the increased maximum display duration and the target display length by the server is the same as that of determining the increased maximum display duration and the target display length by the client, and will not be repeated here.
In an alternative embodiment, after increasing the maximum display length of the progress bar, the second display positions of the displayed user avatars are all changed. Specifically, after determining that the remaining display duration of the extended target virtual gift is greater than the maximum display duration, the method further includes the steps of:
the client in the live broadcast room updates the relative positions of the displayed user head portraits and the progress bar assembly according to the ratio of the maximum display duration before the increase to the maximum display duration after the increase; and updating a second display position of each displayed user avatar in the live broadcast room interface according to the first display position of the progress bar component and the updated relative position of the displayed user avatar and the progress bar component, and moving each displayed user avatar to the corresponding updated second display position in the live broadcast room interface.
In this embodiment, the updating of the relative position between the displayed user avatar and the progress bar component is to update the lateral relative distance between the displayed user avatar and the progress bar component, and the longitudinal relative distance between the displayed user avatar and the progress bar component remains unchanged currently.
Specifically, the client in the live broadcast room first obtains the ratio of the maximum display duration before the increase to the maximum display duration after the increase, and then multiplies the ratio by the horizontal relative distance between the displayed user avatar and the progress bar assembly to obtain the updated horizontal relative distance.
As shown in FIG. 10, the horizontal relative distance between the user avatar of gifting user A and progress bar assembly 91 is
Figure BDA0003273322360000155
The ratio of the maximum display time length before the increase to the maximum display time length after the increase is
Figure BDA0003273322360000156
Then, the updated lateral relative distance is
Figure BDA0003273322360000157
As shown in FIG. 12, the lateral relative distance between the user avatar of target user B and progress bar assembly 91 is
Figure BDA0003273322360000158
The ratio of the maximum display time length before the increase to the maximum display time length after the increase is
Figure BDA0003273322360000161
Then, the updated lateral relative distance is
Figure BDA0003273322360000162
Moreover, for the target user C who extends the display time length 40s this time, the user avatar needs to be displayed above the current end of the progress bar 92, and the current display length of the progress bar 92 is the target display length
Figure BDA0003273322360000163
Then the horizontal relative distance between the user avatar corresponding to the target user C and the progress bar assembly 91 is
Figure BDA0003273322360000164
Referring to fig. 15, fig. 15 is a schematic view illustrating still another display of a user avatar in a live broadcast interface according to an embodiment of the present application. It can be seen that the user avatar of the gifting user a, the user avatar of the target user B, and the user avatar of the target user C are all displayed in the live broadcast room interface. Compared to fig. 12, it can be seen that both the second display position of the user avatar of the gifting user a and the second display position of the user avatar of the target user B are changed due to the increase in the maximum display length of the progress bar.
In an optional embodiment, after the number of the displayed user avatars exceeds the preset avatar number threshold, all the displayed user avatars may be moved to the left side of the progress bar assembly, the displayed user avatars may be overlapped in a staggered manner, or the displayed user avatars may be arranged in a column for display by modifying the longitudinal relative distance between some of the displayed user avatars and the progress bar assembly, and there are many variations on the display manner of the user avatars.
Referring to fig. 16, fig. 16 is a schematic flowchart illustrating a virtual gift-based live broadcast interaction method according to a third embodiment of the present application, including the steps of:
s301: the method comprises the steps that an audience client responds to a display extension operation instruction of a target virtual gift, acquires a live broadcast room identifier and a first display time length, and sends a virtual gift display extension request containing the live broadcast room identifier and the first display time length to a server, so that the server responds to the virtual gift display extension request and sends a virtual gift display extension instruction containing the first display time length to a client in a live broadcast room corresponding to the live broadcast room identifier; and the target virtual gift is a virtual gift with a special effect displayed in a live broadcast room interface corresponding to the live broadcast room identifier at present.
S302: the client side in the live broadcast room responds to the virtual gift extension display instruction and obtains a first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in a live broadcast interface.
In this embodiment, a live interactive method based on a virtual gift is described for an execution subject from a client. Wherein, the client comprises an anchor client and a spectator client. For an explanation of specific steps, reference may be made to the first embodiment and the second embodiment, which will not be repeated here.
Please refer to fig. 17, which is a schematic structural diagram of a virtual gift-based live broadcast interactive device according to a fourth embodiment of the present application. The apparatus may be implemented as all or part of a computer device in software, hardware, or a combination of both. The device 17 comprises:
a first request unit 171, configured to, in response to a display extension operation instruction for a target virtual gift, a viewer client obtain a live broadcast room identifier and a first display duration, and send a virtual gift display extension request including the live broadcast room identifier and the first display duration to a server; the target virtual gift is a virtual gift with a special effect currently displayed in a live broadcast room interface corresponding to the live broadcast room identifier;
a first control unit 172, configured to, in response to the virtual gift extended display request, send a virtual gift extended display instruction including the first display duration to a client in the live broadcast room corresponding to the live broadcast room identifier;
an extended display unit 173, configured to, in response to the virtual gift extended display instruction, obtain the first display duration and the remaining display duration of the target virtual gift by a client in the live broadcast; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in the live broadcast interface.
It should be noted that, when the live broadcast interaction device based on the virtual gift provided in the foregoing embodiment executes the live broadcast interaction method based on the virtual gift, the division of the functional modules is merely used as an example, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the live broadcast interaction device based on the virtual gift provided by the above embodiment and the live broadcast interaction method based on the virtual gift belong to the same concept, and details of the implementation process are shown in the method embodiment and are not described herein again.
Please refer to fig. 18, which is a schematic structural diagram of a computer device according to a fifth embodiment of the present application. As shown in fig. 18, the computer device 18 may include: a processor 180, a memory 181, and a computer program 182 stored in the memory 181 and executable on the processor 180, such as: live broadcast interactive program based on virtual gift; the steps of the first to third embodiments are implemented when the processor 180 executes the computer program 182.
The processor 180 may include one or more processing cores, among others. The processor 180 is connected to various parts in the computer device 18 by various interfaces and lines, executes various functions of the computer device 18 and processes data by executing or executing instructions, programs, code sets or instruction sets stored in the memory 181 and calling up data in the memory 181, and optionally, the processor 180 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 180 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 180, but may be implemented by a single chip.
The Memory 181 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 181 includes a non-transitory computer-readable medium. The memory 181 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 181 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 181 may optionally be at least one memory device located remotely from the processor 180.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing embodiment, and a specific execution process may refer to specific descriptions of the foregoing embodiment, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc.
The present invention is not limited to the above-described embodiments, and various modifications and variations of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.

Claims (17)

1. A live broadcast interaction method based on virtual gifts is characterized by comprising the following steps:
the method comprises the steps that a spectator client responds to an extended display operation instruction of a target virtual gift, acquires a live broadcast room identifier and a first display duration, and sends a virtual gift extended display request containing the live broadcast room identifier and the first display duration to a server; the target virtual gift is a virtual gift with a special effect currently displayed in a live broadcast room interface corresponding to the live broadcast room identifier;
the server responds to the virtual gift extended display request and sends a virtual gift extended display instruction containing the first display duration to a client side in a live broadcast room corresponding to the live broadcast room identification;
responding to the virtual gift extension display instruction by a client in the live broadcast room, and acquiring the first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in the live broadcast interface.
2. The virtual gift-based live interactive method of claim 1, wherein the viewer client responds to the extended display operation instruction of the target virtual gift before, comprising the steps of:
the audience client-side responds to a successful triggering instruction of the target virtual gift, acquires the first display duration and information to be paid corresponding to the first display duration, and displays the information to be paid corresponding to the first display duration in the live broadcast room interface;
and the audience client-side responds to the payment success instruction of the information to be paid and sends out an extended display operation instruction of the target virtual gift.
3. The virtual gift-based live interactive method of claim 2, wherein said viewer client, in response to a successful command to trigger said target virtual gift, is preceded by the steps of:
the audience client receives trigger operation information of a target user in the live broadcast interface, and acquires a display area of the target virtual gift in the live broadcast interface;
and if the trigger position in the trigger operation information is in the display area, the audience client sends a trigger success instruction for the target virtual gift.
4. The live broadcast interaction method based on the virtual gift as claimed in claim 2, wherein the step of obtaining the first display duration and the information to be paid corresponding to the first display duration comprises the steps of:
the audience client acquires the first display duration, the display duration of a single target virtual gift and the virtual gift value of the single target virtual gift; and determining the information to be paid corresponding to the first display duration according to the first display duration, the display duration of the single target virtual gift and the virtual gift value of the single target virtual gift.
5. The live broadcast interaction method based on the virtual gift as claimed in claim 2, wherein the step of obtaining the first display duration and the information to be paid corresponding to the first display duration, and displaying the information to be paid corresponding to the first display duration in the live broadcast interface includes the steps of:
the method comprises the steps that a spectator client side obtains first popup data, displays that a first popup is in a live broadcast room interface according to the first popup data, receives first display duration input by a target user through the first popup, obtains information to be paid corresponding to the first display duration, and displays the information to be paid corresponding to the first display duration in the first popup.
6. The virtual gift-based live interaction method of any one of claims 1-5, wherein the method further comprises the steps of:
the client side in the live broadcast room responds to the virtual gift giving instruction sent by the server to obtain progress bar component data, and displays a progress bar component in the live broadcast room interface according to the progress bar component data; wherein a display length of a progress bar in the progress bar component corresponds to a remaining display duration of the target virtual gift.
7. The virtual gift-based live interactive method of claim 6, wherein after extending the remaining display duration of the target virtual gift according to the first display duration, comprising the steps of:
and the client side in the live broadcast room determines the corresponding target display length according to the prolonged residual display duration of the target virtual gift, and prolongs the display length of the progress bar to the target display length.
8. The virtual gift-based live interaction method of claim 6, wherein the progress bar component data includes a first display position of the progress bar component, the method further comprising the steps of:
a client in the live broadcast room acquires a target user identifier, a user head portrait corresponding to the target user identifier and a second display position of the user head portrait in the interface of the live broadcast room; wherein the second display position is determined according to the first display position and a relative position between the user avatar and the progress bar component, the relative position between the user avatar and the progress bar component being determined according to a current display length of the progress bar;
a client within the live room displays the user avatar at the second display location in the live room interface.
9. The virtual gift-based live broadcast interaction method of claim 7, wherein a client in the live broadcast room determines a corresponding target display length according to the extended remaining display duration of the target virtual gift, comprising the steps of:
a client in the live broadcast room acquires the maximum display length of the progress bar and the maximum display duration which can be represented by the progress bar;
and the client side in the live broadcast room judges whether the prolonged residual display time length of the target virtual gift is greater than the maximum display time length, if so, the maximum display time length is increased, and the target display length is determined according to the prolonged ratio between the prolonged residual display time length of the target virtual gift and the increased maximum display time length and the maximum display length of the progress bar.
10. The virtual gift-based live interaction method of claim 9, wherein the progress bar component data includes a first display position of the progress bar component, and after determining that the extended remaining display duration of the target virtual gift is greater than the maximum display duration, further comprising:
the client in the live broadcast room updates the relative position of the displayed user head portrait and the progress bar component according to the ratio of the maximum display duration before the increase to the maximum display duration after the increase; and updating a second display position of each displayed user avatar in the live broadcast room interface according to the first display position of the progress bar component and the updated relative position of the displayed user avatar and the progress bar component, and moving each displayed user avatar to the corresponding updated second display position in the live broadcast room interface.
11. The virtual gift-based live broadcast interaction method of any one of claims 1 to 5, wherein the sending of the virtual gift extended display instruction including the first display duration to the client in the live broadcast corresponding to the live broadcast room identifier comprises:
the server acquires the extended display times of the target virtual gift and judges whether the extended display times of the target virtual gift reaches a preset extension stopping condition or not;
if so, sending extension display stopping information to the audience client, receiving the extension display stopping information by the audience client, and displaying the extension display stopping information in the live broadcast interface;
and if not, sending the virtual gift extended display instruction containing the first display duration to a client side in the live broadcast room corresponding to the live broadcast room identifier.
12. The virtual gift-based live interaction method of any one of claims 1-5, wherein the method further comprises the steps of:
the server acquires the extended display times of the target virtual gift, and acquires a main broadcast name corresponding to a main broadcast receiving the target virtual gift and a gift name of the target virtual gift if the extended display times of the target virtual gift reach a preset full-service broadcast condition;
the server generates virtual gift broadcasting information according to the anchor name, the gift name and the prolonged display frequency, and broadcasts the virtual gift broadcasting information to all clients in the broadcast live broadcast room;
and the client in the broadcast live room receives the virtual gift broadcasting information and displays the virtual gift broadcasting information in the respective live room interface.
13. The virtual gift-based live interaction method of any one of claims 1-5, wherein the method further comprises the steps of:
the server acquires the extended display times of the target virtual gift, acquires the virtual gift reward corresponding to the extended display times if the extended display times of the target virtual gift reaches a preset reward condition, and sends the virtual gift reward to a main broadcast client corresponding to a main broadcast receiving the target virtual gift.
14. A live broadcast interaction method based on virtual gifts is characterized by comprising the following steps:
the method comprises the steps that an audience client responds to a display extension operation instruction of a target virtual gift, acquires a live broadcast room identifier and a first display time length, and sends a virtual gift display extension request containing the live broadcast room identifier and the first display time length to a server, so that the server responds to the virtual gift display extension request and sends a virtual gift display extension instruction containing the first display time length to a client in a live broadcast room corresponding to the live broadcast room identifier; the target virtual gift is a virtual gift with a special effect currently displayed in a live broadcast room interface corresponding to the live broadcast room identifier;
responding to the virtual gift extension display instruction by a client in the live broadcast room, and acquiring the first display time length and the remaining display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in the live broadcast interface.
15. A live interactive device based on virtual gifts, comprising:
the system comprises a first request unit, a server and a client side, wherein the first request unit is used for responding to an extended display operation instruction of a target virtual gift, acquiring a live broadcast room identifier and a first display duration, and sending a virtual gift extended display request containing the live broadcast room identifier and the first display duration to the server; the target virtual gift is a virtual gift with a special effect currently displayed in a live broadcast room interface corresponding to the live broadcast room identifier;
the first control unit is used for responding to the virtual gift extended display request by the server and sending a virtual gift extended display instruction containing the first display duration to a client side in a live broadcast corresponding to the live broadcast identification;
the extension display unit is used for responding to the virtual gift extension display instruction by a client side in the live broadcast room, and acquiring the first display time length and the residual display time length of the target virtual gift; and according to the first display duration, prolonging the residual display duration of the target virtual gift, and continuously rendering the special effect of the target virtual gift in the prolonged residual display duration of the target virtual gift in the live broadcast interface.
16. 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 1 to 13 or 14 are implemented when the processor executes the computer program.
17. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 13 or 14.
CN202111108681.XA 2021-09-22 2021-09-22 Live broadcast interaction method and device based on virtual gift and computer equipment Active CN113840156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111108681.XA CN113840156B (en) 2021-09-22 2021-09-22 Live broadcast interaction method and device based on virtual gift and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111108681.XA CN113840156B (en) 2021-09-22 2021-09-22 Live broadcast interaction method and device based on virtual gift and computer equipment

Publications (2)

Publication Number Publication Date
CN113840156A true CN113840156A (en) 2021-12-24
CN113840156B CN113840156B (en) 2024-06-25

Family

ID=78960396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111108681.XA Active CN113840156B (en) 2021-09-22 2021-09-22 Live broadcast interaction method and device based on virtual gift and computer equipment

Country Status (1)

Country Link
CN (1) CN113840156B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257834A (en) * 2021-12-30 2022-03-29 广州方硅信息技术有限公司 Live broadcast room virtual gift interaction method and device, equipment and medium thereof
CN115079879A (en) * 2022-06-06 2022-09-20 北京字跳网络技术有限公司 Display method, device, equipment, storage medium and program product of live broadcast page
CN115225923A (en) * 2022-06-09 2022-10-21 广州博冠信息科技有限公司 Gift special effect rendering method and device, electronic equipment and live broadcast server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
CN106131698A (en) * 2016-06-29 2016-11-16 北京金山安全软件有限公司 Information display method and device and electronic equipment
CN107888965A (en) * 2017-11-29 2018-04-06 广州酷狗计算机科技有限公司 Image present methods of exhibiting and device, terminal, system, storage medium
CN113126852A (en) * 2021-05-18 2021-07-16 腾讯科技(深圳)有限公司 Dynamic message display method, related device, equipment and storage medium
CN113170216A (en) * 2021-03-15 2021-07-23 百果园技术(新加坡)有限公司 Live broadcast-based gift delivery method and device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
CN106131698A (en) * 2016-06-29 2016-11-16 北京金山安全软件有限公司 Information display method and device and electronic equipment
CN107888965A (en) * 2017-11-29 2018-04-06 广州酷狗计算机科技有限公司 Image present methods of exhibiting and device, terminal, system, storage medium
CN113170216A (en) * 2021-03-15 2021-07-23 百果园技术(新加坡)有限公司 Live broadcast-based gift delivery method and device, equipment and storage medium
CN113126852A (en) * 2021-05-18 2021-07-16 腾讯科技(深圳)有限公司 Dynamic message display method, related device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257834A (en) * 2021-12-30 2022-03-29 广州方硅信息技术有限公司 Live broadcast room virtual gift interaction method and device, equipment and medium thereof
CN114257834B (en) * 2021-12-30 2023-12-08 广州方硅信息技术有限公司 Virtual gift interaction method and device, equipment and medium for live broadcasting room
CN115079879A (en) * 2022-06-06 2022-09-20 北京字跳网络技术有限公司 Display method, device, equipment, storage medium and program product of live broadcast page
CN115225923A (en) * 2022-06-09 2022-10-21 广州博冠信息科技有限公司 Gift special effect rendering method and device, electronic equipment and live broadcast server
CN115225923B (en) * 2022-06-09 2024-03-22 广州博冠信息科技有限公司 Method and device for rendering gift special effects, electronic equipment and live broadcast server

Also Published As

Publication number Publication date
CN113840156B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN113840156B (en) Live broadcast interaction method and device based on virtual gift and computer equipment
CN113840154B (en) Live broadcast interaction method and system based on virtual gift and computer equipment
CN113766340B (en) Dance music interaction method, system and device under live connected wheat broadcast and computer equipment
CN113573083A (en) Live wheat-connecting interaction method and device and computer equipment
CN113727130A (en) Message prompting method, system and device for live broadcast room and computer equipment
CN113596504A (en) Live broadcast room virtual gift presenting method and device and computer equipment
CN114666672B (en) Live fight interaction method and system initiated by audience and computer equipment
CN113949892A (en) Live broadcast interaction method and system based on virtual resource consumption and computer equipment
CN113824976A (en) Method and device for displaying approach show in live broadcast room and computer equipment
CN114666671B (en) Live broadcast praise interaction method, device, equipment and storage medium
CN113613027B (en) Live broadcast room recommendation method and device and computer equipment
CN115314727A (en) Live broadcast interaction method and device based on virtual object and electronic 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
CN114125480A (en) Live broadcasting chorus interaction method, system and device and computer equipment
CN115134623B (en) Virtual gift interaction method, system, device, electronic equipment and medium
CN113891162B (en) Live broadcast room loading method and device, computer equipment and storage medium
CN115134621A (en) Live broadcast fight interaction method and device based on main and auxiliary picture display and electronic equipment
CN115134624A (en) Live broadcast and wheat connection matching method, system and device and electronic equipment
CN114501065A (en) Virtual gift interaction method and system based on face jigsaw and computer equipment
CN114760520A (en) Live small and medium video shooting interaction method, device, equipment and storage medium
CN114827644B (en) Live broadcast interaction method, device, equipment and storage medium based on user matching information
CN114268809B (en) Public screen control method and device in live broadcasting room, computer equipment and medium
CN114222152B (en) Virtual gift interaction method and device for urban popularization and computer equipment
CN114513679B (en) Live broadcast room recommendation method, system and computer equipment based on audio pre-playing

Legal Events

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