CN112118477B - Virtual gift display method, device, equipment and storage medium - Google Patents

Virtual gift display method, device, equipment and storage medium Download PDF

Info

Publication number
CN112118477B
CN112118477B CN202010997753.XA CN202010997753A CN112118477B CN 112118477 B CN112118477 B CN 112118477B CN 202010997753 A CN202010997753 A CN 202010997753A CN 112118477 B CN112118477 B CN 112118477B
Authority
CN
China
Prior art keywords
account
head portrait
display
gift
virtual gift
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010997753.XA
Other languages
Chinese (zh)
Other versions
CN112118477A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010997753.XA priority Critical patent/CN112118477B/en
Publication of CN112118477A publication Critical patent/CN112118477A/en
Application granted granted Critical
Publication of CN112118477B publication Critical patent/CN112118477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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
    • 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
    • H04N21/4722End-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 for requesting additional data associated with the content
    • H04N21/4725End-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 for requesting additional data associated with the content using interactive regions of the image, e.g. hot spots
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8545Content authoring for generating interactive applications

Abstract

The disclosure relates to a virtual gift display method, device, equipment and storage medium, belonging to the technical field of live broadcast, wherein the method comprises the following steps: receiving a virtual gift display instruction, acquiring the head portrait resource of the first account and the head portrait resource of the second account based on the head portrait download address of the first account and the head portrait download address of the second account, displaying the virtual gift on a live broadcast interface of a live broadcast room, and displaying the head portrait resource of the first account and the head portrait resource of the second account in a target display area associated with the virtual gift. In the embodiment of the disclosure, for the virtual gift, not only the gift itself is displayed, but also the source and the sending-out object of the gift can be displayed together by downloading the head portrait resource of the anchor account and the head portrait resource of the sending-out audience account, so that the difference of sending-out of different audiences is shown, the uniqueness of the gift effect is improved, and the live broadcast watching experience of the audience is promoted.

Description

Virtual gift display method, device, equipment and storage medium
Technical Field
The disclosure relates to the field of live broadcast technology, and in particular relates to a virtual gift display method, device and equipment and a storage medium.
Background
With the continuous development of live broadcast technology, users can enjoy more and more diversified interactive experiences through live broadcast application. For example, a spectator in a living room may send a virtual gift such as a sports car, yacht, etc. to a host in the living room, and the spectator, the host, and other spectators in the living room may be able to display the virtual gift on their terminal interfaces.
Currently, the virtual gift display method is generally as follows: when a virtual gift is sent out by a viewer in the living broadcast room, the server can send the gift information of the virtual gift to the viewer end, the anchor end and other viewer ends, and after receiving the gift information, each terminal inquires from a resource package of the terminal, can obtain the virtual gift and further display the virtual gift.
In the above technology, only the virtual gift is displayed, the display form is single, and when different audiences send out the same virtual gift, the display forms are the same, and the user experience is bad.
Disclosure of Invention
The utility model provides a virtual gift display method, device, equipment and storage medium, which can show the difference of different spectators' gifts, increase the uniqueness of gift effect and promote the experience of spectators watching live broadcast. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a virtual gift display method, including:
receiving a display instruction of a virtual gift, wherein the display instruction carries an avatar downloading address of a first account, an avatar downloading address of a second account and a gift identifier of the virtual gift, the first account is used for representing a main broadcasting account of a live broadcasting room, and the second account is used for representing an account for sending out the virtual gift;
based on the head portrait downloading address of the first account and the head portrait downloading address of the second account, head portrait resources of the first account and head portrait resources of the second account are obtained;
and displaying the virtual gift on a live broadcast interface of the live broadcast room, and displaying the head portrait resource of the first account and the head portrait resource of the second account in a target display area associated with the virtual gift.
In one possible implementation manner, the virtual gift is a gift picture frame sequence, the display instruction further carries a display timestamp of the avatar resource of the first account and the avatar resource of the second account, the displaying the virtual gift on the live interface of the live broadcasting room, and displaying the avatar resource of the first account and the avatar resource of the second account in a target display area associated with the virtual gift includes:
Sequentially displaying a plurality of gift picture frames according to the time stamps of the plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room;
and when the first account number and the second account number are displayed to the same time stamp as the display time stamp, displaying the head portrait resource of the first account number and the head portrait resource of the second account number in a target display area associated with the virtual gift.
In one possible implementation manner, the virtual gift is a gift picture frame sequence, the display instruction further carries a first display timestamp of an avatar resource of the first account and a second display timestamp of an avatar resource of the second account, the displaying the virtual gift on a live interface of the live broadcasting room, and displaying the avatar resource of the first account and the avatar resource of the second account in a target display area associated with the virtual gift includes:
sequentially displaying a plurality of gift picture frames according to the time stamps of the plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room;
when the first account number is displayed to the same time stamp as the first display time stamp, displaying the head portrait resource of the first account number in a target display area associated with the virtual gift;
And when the second account number is displayed to the same time stamp as the second display time stamp, displaying the head portrait resource of the second account number in the target display area associated with the virtual gift.
In one possible implementation manner, the displaying, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account includes:
determining an avatar presentation trajectory associated with the virtual gift;
and in the target display area related to the virtual gift, controlling the head portrait resource of the first account and the head portrait resource of the second account to be displayed in a moving way along the head portrait display track.
In one possible implementation manner, the displaying, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account includes:
determining an avatar presentation location associated with the virtual gift;
and displaying the head portrait resource of the first account and the head portrait resource of the second account at the head portrait display position of the target display area associated with the virtual gift.
In one possible implementation manner, the displaying, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account includes:
Determining a head portrait size associated with the virtual gift;
and displaying the head portrait resource of the first account and the head portrait resource of the second account in the target display area associated with the virtual gift according to the head portrait size.
In one possible implementation, the method further includes:
determining an additional special effect associated with the virtual gift;
and displaying the additional special effect when the head portrait resource of the first account and the head portrait resource of the second account are displayed in the target display area associated with the virtual gift.
In one possible implementation manner, the avatar resource is an avatar image frame sequence, and displaying the avatar resource of the first account and the avatar resource of the second account in the target display area associated with the virtual gift includes:
and in the target display area associated with the virtual gift, sequentially displaying the plurality of first head portrait picture frames according to the time stamps of the plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account, and sequentially displaying the plurality of second head portrait picture frames according to the time stamps of the plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account.
According to a second aspect of embodiments of the present disclosure, there is provided a virtual gift display apparatus, the apparatus including:
The receiving unit is configured to execute a display instruction for receiving the virtual gift, wherein the display instruction carries an avatar downloading address of a first account, an avatar downloading address of a second account and a gift identifier of the virtual gift, the first account is used for representing a anchor account of a live broadcasting room, and the second account is used for representing an account for sending out the virtual gift;
an obtaining unit configured to obtain an avatar resource of the first account and an avatar resource of the second account based on the avatar download address of the first account and the avatar download address of the second account;
and the display unit is configured to be executed on a live broadcast interface of the live broadcast room, display the virtual gift, and display the head portrait resource of the first account and the head portrait resource of the second account in a target display area associated with the virtual gift.
In one possible implementation manner, the virtual gift is a gift picture frame sequence, the display instruction further carries a display timestamp of the avatar resource of the first account and the avatar resource of the second account, and the display unit includes:
a first display subunit configured to execute, on a live interface of the live broadcast room, sequentially displaying the plurality of gift picture frames according to time stamps of the plurality of gift picture frames in the sequence of gift picture frames;
And the second display subunit is configured to display the head portrait resource of the first account and the head portrait resource of the second account in the target display area associated with the virtual gift when displaying the same time stamp as the display time stamp.
In one possible implementation manner, the virtual gift is a gift picture frame sequence, the display instruction further carries a first display timestamp of the avatar resource of the first account and a second display timestamp of the avatar resource of the second account, and the display unit further includes:
the first display subunit is further configured to execute displaying the plurality of gift picture frames in sequence according to time stamps of the plurality of gift picture frames in the sequence of gift picture frames on a live interface of the live broadcast room;
the second display subunit is further configured to perform, when displaying to the same timestamp as the first display timestamp, displaying, in a target display area associated with the virtual gift, an avatar resource of the first account;
the second display subunit is further configured to perform displaying, when displaying to the same timestamp as the second display timestamp, the avatar resource of the second account within the target display area associated with the virtual gift.
In one possible implementation, the display unit further includes:
a track determination subunit configured to perform determining an avatar presentation track associated with the virtual gift;
and the control subunit is configured to be executed in the target display area associated with the virtual gift and control the head portrait resource of the first account and the head portrait resource of the second account to be displayed in a moving way along the head portrait display track.
In one possible implementation, the display unit further includes:
a position determining subunit configured to perform determining an avatar presentation position associated with the virtual gift;
the second display subunit is further configured to execute displaying the avatar resources of the first account and the avatar resources of the second account at the avatar display position of the target display area associated with the virtual gift.
In one possible implementation manner, the displaying, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account includes:
a size determination subunit configured to perform determining a head portrait size associated with the virtual gift;
the second display subunit is further configured to display, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account according to the avatar size.
In one possible implementation, the apparatus further includes:
a special effect determination subunit configured to perform determining an additional special effect associated with the virtual gift;
the second display subunit is further configured to perform displaying the additional special effect when displaying the avatar resource of the first account and the avatar resource of the second account in the target display area associated with the virtual gift.
In a possible implementation, the avatar resource is an avatar picture frame sequence, and the presentation unit is further configured to perform:
and in the target display area associated with the virtual gift, sequentially displaying the plurality of first head portrait picture frames according to the time stamps of the plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account, and sequentially displaying the plurality of second head portrait picture frames according to the time stamps of the plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account.
According to a third aspect of embodiments of the present disclosure, there is provided a computer device comprising:
one or more processors;
a memory for storing the processor-executable program code;
wherein the processor is configured to execute the program code to implement the virtual gift display method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium comprising: the program code in the storage medium, when executed by a processor of the server, enables the server to perform the virtual gift display method described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer program code stored in a computer readable storage medium. The processor of the computer device reads the computer program code from the computer readable storage medium, and the processor executes the computer program code so that the computer device performs the virtual gift display method described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the technical scheme provided by the embodiment of the disclosure, for the virtual gift, not only is the gift itself displayed, but also the source and the sending-out object of the gift can be displayed together by downloading the head portrait resource of the anchor account and the head portrait resource of the gift sending audience account, so that the difference of different audience gift sending is shown, the uniqueness of the gift effect is improved, and the live broadcast watching experience of the audience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an implementation environment of a virtual gift display method, according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a virtual gift display method according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating a virtual gift display method, according to an exemplary embodiment;
FIG. 4 is a schematic diagram of an interface for a virtual gift presentation, according to an exemplary embodiment;
FIG. 5 is a flow chart of a virtual gift display method, according to an exemplary embodiment;
FIG. 6 is a flowchart illustrating a virtual gift display method, according to an exemplary embodiment;
FIG. 7 is a flow chart of a virtual gift display method, according to an exemplary embodiment;
FIG. 8 is a block diagram of a virtual gift display apparatus shown in accordance with an exemplary embodiment;
FIG. 9 is a block diagram of a terminal shown in accordance with an exemplary embodiment;
fig. 10 is a block diagram of a server, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The information related to the present disclosure may be information authorized by the user or sufficiently authorized by the parties.
Fig. 1 is a schematic view of an implementation environment of a virtual gift display method according to an embodiment of the present disclosure, referring to fig. 1, where the implementation environment includes: a terminal 101 and a server 102.
The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop portable computer. The terminal 101 is capable of accessing the internet. The terminal 101 can be operated with a live broadcast application program, and a user can start a live broadcast room or enter other live broadcast rooms through the live broadcast application program, so that various interactions such as watching, gift sending, wheat connecting and the like can be performed in the live broadcast room. It should be understood that if a user opens his own live room, the user is the anchor, and if the user enters other live rooms, the user is the viewer. In the disclosed embodiment, the terminal 101 is one of a live broadcast terminal and a plurality of online audience terminals within a live broadcast room, and this embodiment is illustrated by the terminal 101 only. Those skilled in the art will recognize that the number of terminals may be greater or lesser.
The server 102 may be an independent physical server, a server cluster or a distributed file system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligence platform. The server 102 and the terminal 101 may be directly or indirectly connected through wired or wireless communication, which is not limited by the embodiments of the present disclosure. Alternatively, the number of servers 102 may be greater or lesser, which is not limited by the disclosed embodiments. Of course, the server 102 may also include other functional servers to provide more comprehensive and diverse services. In the disclosed embodiment, the server 102 may be a background server of a live room.
The virtual gift display method provided by the present disclosure is jointly implemented by a plurality of terminals 101 and servers 102 in a living room. The user operates on the terminal 101, starts the live broadcast application program, performs clicking operation on a live broadcast key in the live broadcast application program, and can start a live broadcast room of the user, and the user is a host broadcast in the live broadcast room. Other users operate on the terminal 101, start the live broadcast application program, and can enter the live broadcast room by searching the live broadcast room, clicking the live broadcast room recommended by the first page or other modes, and the other users are audiences in the live broadcast room at the moment. After the audience enters the living broadcast room, the terminal 101 displays living broadcast content, comment keys, gift keys and the like of the living broadcast room on an interface. If a certain audience wants to give away the anchor, a click operation can be performed on the gift button, a virtual gift list is displayed on the terminal 101 interface of the audience, the virtual gift list includes a plurality of virtual gifts, and if the audience performs a selection operation on any one of the plurality of virtual gifts, the terminal 101 of the audience responds to the selection operation on the virtual gift and sends a virtual gift giving request to the server 102. After receiving the virtual gift presentation request, the server 102 determines the head portrait download address of the anchor account and the head portrait download address of the gift-sending audience account according to the account identification of the anchor account and the account identification of the gift-sending audience account carried by the virtual gift presentation request, and then generates a virtual gift display instruction according to the head portrait download address of the anchor account and the head portrait download address of the gift-sending audience account, and broadcasts the virtual gift display instruction in a long connection manner, so as to send the virtual gift display instruction to the plurality of terminals 101 in the living broadcast room. After receiving the display instruction of the virtual gift, the plurality of terminals 101 in the living room display the head portrait resource of the anchor account and the head portrait resource of the gift-sending audience account when the virtual gift is displayed on the interfaces of the plurality of terminals 101 by using the virtual gift display method provided by the present disclosure.
It should be noted that, the virtual gift display method provided by the embodiment of the present disclosure is applicable to the following two scenarios:
in a possible implementation manner, the virtual gift display method provided in the embodiment of the present disclosure may be applicable to any virtual gift in a live broadcast application, and in this process, when the terminal 101 receives a display instruction of any virtual gift, it is able to display the avatar resource of the anchor account and the avatar resource of the gift-sending audience account while displaying the virtual gift.
In still another possible implementation manner, the virtual gift display method provided in the embodiment of the present disclosure is only applicable to a specific virtual gift in a live application, and in this process, the terminal 101 receives a display instruction of the specific virtual gift, and displays the avatar resource of the anchor account and the avatar resource of the gift-sending audience account while displaying the virtual gift. The embodiment of the present disclosure is not limited to what kind of scenario the virtual gift display method is applied to. The embodiments of the present disclosure subsequently employ a first account to represent the anchor account and a second account to represent the gift-giver account.
Fig. 2 is a flowchart illustrating a virtual gift display method according to an exemplary embodiment, which is applied to a terminal as shown in fig. 2, including the steps of:
In step 201, a terminal receives a display instruction of a virtual gift, where the display instruction carries an avatar download address of a first account, an avatar download address of a second account, and a gift identifier of the virtual gift, the first account is used for representing a anchor account in a live broadcasting room, and the second account is used for representing an account for sending out the virtual gift.
In step 202, the terminal obtains the avatar resources of the first account and the avatar resources of the second account based on the avatar download address of the first account and the avatar download address of the second account.
In step 203, the terminal displays the virtual gift on the live interface of the live broadcasting room, and displays the avatar resources of the first account and the avatar resources of the second account in the target display area associated with the virtual gift.
According to the technical scheme provided by the embodiment of the disclosure, for the virtual gift, not only is the gift itself displayed, but also the source and the sending-out object of the gift can be displayed together by downloading the head portrait resource of the anchor account and the head portrait resource of the gift sending audience account, so that the difference of different audience gift sending is shown, the uniqueness of the gift effect is improved, and the live broadcast watching experience of the audience is improved.
The foregoing fig. 2 is merely a basic flow of the disclosure, and the following further describes a scheme provided by the disclosure based on a specific embodiment, and fig. 3 is a flowchart of a virtual gift display method according to an exemplary embodiment, as shown in fig. 3, including the following steps:
in step 301, a server responds to a second account to give a virtual gift to a first account, and sends a display instruction of the virtual gift to a plurality of terminals in a living broadcast room, wherein the display instruction carries an avatar download address of the first account, the avatar download address of the second account and a gift identifier of the virtual gift, the first account is used for representing a host broadcast account in the living broadcast room, and the second account is used for representing an account for sending the virtual gift.
The virtual gift is used for representing a gift such as yacht, airplane, rocket, flower, etc. which is appreciated by a audience account to a anchor account in a living room. Optionally, the display instruction of the virtual gift is a virtual gift message (avatar giftmessage). The gift identification refers to a unique identification of the virtual gift, and optionally, a gift ID (identification number) of the virtual gift is used as the gift identification of the virtual gift, or a number of the virtual gift is used as the gift identification.
In one possible implementation, the first account (the anchor account) operates on the terminal, and can open the live broadcast room, and the second account and other accounts can enter the live broadcast room through a live broadcast application on the terminal. If the second account gives the virtual gift to the first account, the terminal of the second account responds to the selection operation of the virtual gift and sends a virtual gift giving request to the server, after the server receives the virtual gift giving request, the account identification of the first account, the account identification of the second account and the gift identification of the virtual gift carried by the virtual gift giving request are obtained, according to the account identification of the first account and the account identification of the second account, the head portrait downloading address of the first account and the head portrait downloading address of the second account are determined, and further, according to the head portrait downloading address of the first account, the head portrait downloading address of the second account and the gift identification of the virtual gift, a virtual gift showing instruction is generated, and then a virtual gift showing instruction is sent to a plurality of terminals in a living room, and further, a subsequent virtual gift showing process is carried out on the plurality of terminals. Optionally, the account ID is used to represent an account identification.
In step 302, a plurality of terminals within a living room receive a display instruction of a virtual gift.
The plurality of terminals refer to terminals where all online accounts of the living broadcasting room are located, including terminals where a first account (anchor account) is located, terminals where a second account (gift audience account) is located, and terminals where other online viewers are located.
In one possible implementation manner, after receiving the display instruction of the virtual gift, the multiple terminals in the living broadcast room analyze the display instruction of the virtual gift, and acquire the head portrait downloading address of the first account, the head portrait downloading address of the second account and the gift identifier of the virtual gift from a specific field of the display instruction of the virtual gift, so as to perform the subsequent head portrait resource acquisition and display process.
In step 303, for any one of the plurality of terminals, based on the header download address of the first account and the header download address of the second account, header resources of the first account and header resources of the second account are obtained.
The server is associated with an avatar resource database for storing a plurality of avatar resources in the live broadcast room. The header download address refers to the storage address of the header resource database.
In one possible implementation manner, after acquiring the header download address of the first account and the header download address of the second account carried by the display instruction, the terminal determines a corresponding storage space in the header resource database according to the header download address of the first account, downloads the header resources of the first account from the storage space, determines a corresponding storage space in the header resource database according to the header download address of the second account, and downloads the header resources of the second account from the storage space.
In step 304, the terminal stores the avatar resources of the first account and the avatar resources of the second account to the terminal.
In one possible implementation manner, after the terminal downloads the avatar resources of the first account and the avatar resources of the second account, the avatar resources of the first account and the avatar resources of the second account are stored locally in the terminal, so that the terminal can automatically generate a storage path of the avatar resources of the first account and the avatar resources of the second account. Optionally, the storage path of the avatar resource is represented by avatar path.
In another possible implementation manner, the display instruction further carries the account identifier of the first account and the account identifier of the second account, so that after the terminal obtains the account identifier of the first account and the account identifier of the second account, the terminal queries in a download record or a stored avatar resource package of the terminal according to the account identifier of the first account and the account identifier of the second account, and if the download record or the avatar resource package has the account identifier of the first account and/or the account identifier of the second account, only the locally non-stored avatar resource is needed to be downloaded, and the stored avatar resource is not needed to be downloaded repeatedly, thereby reducing the processing procedure of the terminal and improving the efficiency of obtaining the avatar resource.
In step 305, the terminal determines a storage path of the virtual gift at the terminal based on the gift identification of the virtual gift.
In one possible implementation manner, after the terminal obtains the gift identifier carried by the display instruction, the terminal queries the terminal according to the gift identifier, so that the storage path of the virtual gift in the terminal can be determined. Optionally, the storage path of the virtual gift is represented by GiftPath.
It should be noted that, the steps 303 to 305 are the process of determining the storage path of the virtual gift after downloading and storing the avatar resources. Optionally, the terminal can determine the storage path of the virtual gift first, and then download and store the avatar resources, or the terminal can determine the storage path of the virtual gift while downloading and storing the avatar resources. The disclosed embodiments do not limit the order of the steps 305 and 303, 304.
In step 306, the terminal obtains the avatar resources of the first account and the avatar resources of the second account from the storage space corresponding to the storage path of the avatar resources.
In one possible implementation manner, the terminal may obtain, through the renderer, the avatar resource of the first account from a storage space corresponding to the storage path of the avatar resource of the first account, and may obtain, from a storage space corresponding to the storage path of the avatar resource of the second account, and then perform a subsequent display process.
In step 307, the terminal obtains the virtual gift from a gift resource package corresponding to the storage path of the virtual gift, where the gift resource package is used to store a correspondence between the gift identifier and the virtual gift.
In one possible implementation manner, the terminal can obtain the virtual gift from the gift resource package corresponding to the storage path of the virtual gift through the renderer, and then perform a subsequent display process.
In step 308, the terminal displays the virtual gift on the live interface of the live broadcasting room, and displays the avatar resources of the first account and the avatar resources of the second account in the target display area associated with the virtual gift.
In one possible implementation manner, after the terminal obtains the virtual gift, the terminal can obtain the display position of the virtual gift, then determine the display position of the virtual gift on the live interface of the live broadcast room, display the virtual gift in the display position, and display the avatar resource of the first account and the avatar resource of the second account in the target display area associated with the virtual gift. The target display area is used for representing an area associated with a display position of a virtual gift, such as an area with a distance between four sides of the virtual gift being less than a certain threshold value.
For example, fig. 4 is a schematic diagram of an interface for displaying a virtual gift, where in the live interface in fig. 4, on the basis of displaying a live broadcast picture, not only the virtual gift, but also the avatar resource of the first account and the avatar resource of the second account are displayed. And, the prompt message of the second account gift is displayed in the live interface, such as "easy sending head portrait gift", and other prompt messages are displayed in the live interface, such as "enter live room", "share to live room", and increase popularity in live room ". In addition, the live broadcast interface also displays a music key, a wheat-linked fight key, a turnover key, a more key, a gift key and the like.
Optionally, steps 306-308 are performed by a renderer (render SDK) of the live application. The renderer can acquire the head portrait resource of the first account, the head portrait resource of the second account and the virtual gift according to the storage path of the head portrait resource and the storage path of the virtual gift, and further display the head portrait resource. It should be noted that, when the terminal needs to send the storage path (AvatarPath) of the avatar resource of the first account, the storage path (AvatarPath) of the avatar resource of the second account, and the storage path (GiftPath) of the virtual gift to the renderer, the renderer receives the relevant storage paths, indexes the virtual gift according to the storage path of the virtual gift, indexes the avatar resource according to the storage path of the avatar resource, and further displays the avatar resource of the first account and the avatar resource of the second account in the target display area associated with the virtual gift when displaying the virtual gift.
For example, fig. 5 is a schematic flow chart of virtual gift display provided in an embodiment of the present disclosure, where, as shown in fig. 5, a first account is represented by a anchor account a, a second account is represented by a gift account B, and a virtual gift is represented by a romantic avatar gift. After the anchor account a starts the living broadcast room, and the viewer account B enters the living broadcast room, if the viewer account B selects and sends out the romantic head portrait gift, the server generates a virtual gift message (i.e. a display instruction), where the virtual gift message includes the head portrait download address of the anchor account a, the head portrait download address of the gift viewer account B, and the gift identifier of the virtual gift. The server sends the virtual gift message to a head office account A and a viewer account in a living broadcast room, wherein the viewer account comprises a gift viewer account B and other online viewers, and further the head office account and the terminal where the viewer account are located can determine a head office resource storage path and a virtual gift storage path according to a head office download address and a gift identification carried by the virtual gift message. The terminal sends the storage path of the head portrait resource and the storage path of the virtual gift to a renderer of the terminal, and the renderer can acquire the image resource and the virtual gift according to the storage path of the head portrait resource and the storage path of the virtual gift, further display the virtual gift and display the head portrait resource.
Optionally, the process of displaying the avatar resource of the first account and the avatar resource of the second account by the terminal includes any one of the following five implementation manners:
in a first possible implementation manner, the terminal determines, according to the gift identifier of the virtual gift, an avatar display track associated with the virtual gift, and controls, in a target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account to be displayed in a moving manner along the avatar display track. The head portrait display track comprises a first head portrait display track of head portrait resources of a first account and a second head portrait display track of head portrait resources of a second account. Alternatively, the first avatar presentation trajectory and the second avatar presentation trajectory may be the same or different.
Optionally, taking the case that the first head portrait display track and the second head portrait display track are different as examples, after the terminal determines the first head portrait display track and the second head portrait display track, in the target display area associated with the virtual gift, the head portrait resource of the first account is controlled to move and display along the first head portrait display track, and the head portrait resource of the second account is controlled to move and display along the second head portrait display track. In the process, different virtual gifts correspond to different head portrait display tracks, head portrait resources are displayed by utilizing the head portrait display tracks, the new meaning of virtual gift display is improved, the viewing of users is more attracted, and the interest of the users in viewing live broadcast is improved.
In a second possible implementation manner, the terminal determines, according to the gift identifier of the virtual gift, a head portrait display position associated with the virtual gift, and displays, at the head portrait display position of the target display area associated with the virtual gift, a head portrait resource of the first account and a head portrait resource of the second account. The head portrait display positions comprise a first head portrait display position of head portrait resources of the first account and a second head portrait display position of head portrait resources of the second account.
Optionally, after determining the first head portrait display position and the second head portrait display position, the terminal determines the first head portrait display position and the second head portrait display position in the target display area associated with the virtual gift, displays the head portrait resource of the first account at the first head portrait display position, and displays the head portrait resource of the second account at the second head portrait display position. In the process, different virtual gifts correspond to different head portrait display positions, so that when head portrait resources are displayed, the head portrait resources can be displayed at different positions according to different virtual gifts, the uniqueness of virtual gift display is increased, and the interest of a user in watching live broadcast is improved.
In a third possible implementation manner, the terminal determines, according to the gift identifier of the virtual gift, a size of an avatar associated with the virtual gift, and displays, in a target display area associated with the virtual gift, an avatar resource of the first account and an avatar resource of the second account according to the size of the avatar. The head portrait size comprises a first head portrait size of head portrait resources of the first account and a second head portrait size of head portrait resources of the second account.
Optionally, after determining the first head portrait size and the second head portrait size, the terminal displays head portrait resources of the first account according to the first head portrait size and displays head portrait resources of the second account according to the second head portrait size in a target display area associated with the virtual gift. In the process, different virtual gifts correspond to different head portrait sizes, so that when head portrait resources are displayed, the head portrait resources can be displayed according to different virtual gifts and different head portrait sizes, the uniqueness of virtual gift display is increased, and the interest of users in watching live broadcast is improved.
In a fourth possible implementation manner, the terminal determines, according to the gift identifier of the virtual gift, an additional special effect associated with the virtual gift, and displays the additional special effect when the avatar resource of the first account and the avatar resource of the second account are displayed in the target display area associated with the virtual gift. In the process, the additional special effects are displayed while the head portrait resources are displayed, so that attractiveness of live broadcast pictures can be improved, virtual gifts can be displayed more flexibly, and interests of users in watching live broadcast are improved.
In a fifth possible implementation manner, if the avatar resource is an avatar image frame sequence, in the target display area associated with the virtual gift, the plurality of first avatar image frames are sequentially displayed according to time stamps of the plurality of first avatar image frames in the avatar image frame sequence of the first account, and the plurality of second avatar image frames are sequentially displayed according to time stamps of the plurality of second avatar image frames in the avatar image frame sequence of the second account. In the process, a technician can preset the head portrait picture frame sequence of the head portrait resource and store the head portrait picture frame sequence in the server, so that the terminal obtains the head portrait picture frame sequence from the server, and can display the head portrait picture frame sequence while displaying the virtual gift. It should be understood that, for the head portrait resource with more complex display process, the head portrait picture frame sequence is adopted, so that the display can be better performed, the uniqueness of the virtual gift display can be improved, and the interest of the user in watching live broadcast is improved.
According to the technical scheme provided by the embodiment of the disclosure, for the virtual gift, not only is the gift itself displayed, but also the source and the sending-out object of the gift can be displayed together by downloading the head portrait resource of the anchor account and the head portrait resource of the gift sending audience account, so that the difference of different audience gift sending is shown, the uniqueness of the gift effect is improved, the live broadcast watching experience of the audience is improved, the problem that the audience gift effect in a live broadcast room is completely the same, and the new meaning is insufficient and the attraction is lacking is solved, the head portraits of the audience and the anchor can be displayed for each audience, the enthusiasm of the audience gift is improved, and more income is created for the anchor and a live broadcast platform.
Fig. 3 is a process of directly displaying an avatar resource of a first account and an avatar resource of a second account while displaying a virtual gift. In another possible implementation manner, the sequence of the virtual gift and the avatar resource presentation may be different, and fig. 6 is a flowchart of a virtual gift presentation method, as shown in fig. 6, including the following steps:
in step 601, the server responds to the second account to give the virtual gift to the first account, and sends a display instruction of the virtual gift to a plurality of terminals in the living broadcast room, where the display instruction carries an avatar download address of the first account, an avatar download address of the second account, a gift identifier of the virtual gift, and a display timestamp of an avatar resource of the first account and an avatar resource of the second account, where the first account is used to represent a hosting account in the living broadcast room, and the second account is used to represent an account that gives out the virtual gift.
In step 602, a plurality of terminals in a living broadcast room receive a display instruction of a virtual gift, and acquire an avatar download address of a first account, an avatar download address of a second account, a gift identifier of the virtual gift, and display timestamps of avatar resources of the first account and avatar resources of the second account carried by the display instruction.
Optionally, the presentation time stamp of the avatar resource is avatar timestamp.
In step 603, for any one of the plurality of terminals, based on the header download address of the first account and the header download address of the second account, header resources of the first account and header resources of the second account are obtained.
In step 604, the terminal stores the avatar resources of the first account and the avatar resources of the second account to the terminal.
In step 605, the terminal determines a storage path of the virtual gift at the terminal based on the gift identification of the virtual gift.
In step 606, the terminal obtains the avatar resources of the first account and the avatar resources of the second account from the storage space corresponding to the storage path of the avatar resources.
In step 607, the terminal obtains the virtual gift from a gift resource package corresponding to the storage path of the virtual gift, where the gift resource package is used to store a correspondence between the gift identifier and the virtual gift.
It should be noted that, the contents of steps 601 to 607 are similar to those of steps 301 to 307, and are not repeated, and the difference is that the display instruction also carries the avatar resource of the first account and the display timestamp of the avatar resource of the second account.
In step 608, the terminal displays the virtual gift on the live interface of the live broadcasting room, and displays the avatar resource of the first account and the avatar resource of the second account in the target display area associated with the virtual gift when displaying the virtual gift to the same time stamp as the display time stamp.
In one possible implementation manner, the virtual gift is a gift picture frame sequence, on a live broadcast interface of the live broadcast room, sequentially displaying the multiple gift picture frames according to time stamps of the multiple gift picture frames in the gift picture frame sequence, and displaying the head portrait resource of the first account and the head portrait resource of the second account in a target display area associated with the virtual gift when displaying the multiple gift picture frames to the same time stamp as the display time stamp.
Optionally, steps 606 to 608 are performed by a renderer built in the terminal. And the renderer acquires the head portrait resource of the first account, the head portrait resource of the second account and the virtual gift according to the storage path of the head portrait resource and the storage path of the virtual gift, and then displays the head portrait resource according to the display time stamp. It should be noted that, when the terminal needs to send the storage path (AvatarPath) of the avatar resource of the first account, the storage path (AvatarPath) of the avatar resource of the second account, the storage path (GiftPath) of the virtual gift, and the presentation time stamp (AvatarTimeStamp) of the avatar resource of the first account and the avatar resource of the second account to the renderer, the renderer receives the relevant storage path and the presentation time stamp, then indexes the virtual gift according to the storage path of the virtual gift, indexes the avatar resource according to the storage path of the avatar resource, and further presents the virtual gift, and presents the avatar resource of the first account and the avatar resource of the second account when presenting the same time stamp as the presentation time stamp.
For example, fig. 7 is a schematic flow chart of a virtual gift presentation provided in the embodiment of the present disclosure, as shown in fig. 7, if a viewer account B selects and sends out a "romantic avatar" gift, a server generates a virtual gift message (i.e. a presentation instruction), where the virtual gift message includes an avatar download address of a anchor account a, an avatar download address of a giftor account B, a gift identifier of the virtual gift, and a presentation timestamp of an avatar resource. The server sends the virtual gift message to a anchor account A and a viewer account in the living broadcast room, and further the terminal where the anchor account and the viewer account are located can determine a storage path of the head portrait resource and a storage path of the virtual gift according to the head portrait downloading address and the gift identifier carried by the virtual gift message. The terminal sends the storage path of the head portrait resource, the storage path of the virtual gift and the display time stamp of the head portrait resource to a renderer of the terminal, and the renderer can acquire the head portrait resource and the virtual gift according to the storage path of the head portrait resource and the storage path of the virtual gift so as to display the virtual gift and display the head portrait resource when displaying the time stamp identical to the display time stamp.
Step 608 is a process in which the presentation time stamps of the avatar resources of the first account and the avatar resources of the second account are the same. Optionally, the presentation instruction further carries a first presentation timestamp of the avatar resource of the first account and a second presentation timestamp of the avatar resource of the second account, and the corresponding process of presenting the avatar resource by the terminal is as follows: and sequentially displaying the plurality of gift picture frames on a live broadcast interface of the live broadcast room according to the time stamps of the plurality of gift picture frames in the gift picture frame sequence, displaying the head portrait resource of the first account in a target display area associated with the virtual gift when the time stamps are displayed to be the same as the first display time stamp, and displaying the head portrait resource of the second account in the target display area associated with the virtual gift when the time stamps are displayed to be the same as the second display time stamp. In the process, the display time stamp is carried by the display instruction, so that the display time of the head portrait resource can be controlled, the flexibility of head portrait resource display is improved, the live broadcast watching experience of the audience is further improved, and the enthusiasm of the audience for gift is improved.
According to the technical scheme provided by the embodiment of the disclosure, for the virtual gift, not only is the gift itself displayed, but also the source and the sending-out object of the gift can be displayed together by downloading the head portrait resource of the anchor account and the head portrait resource of the gift sending audience account, so that the difference of different audience gift sending is shown, the uniqueness of the gift effect is improved, and the live broadcast watching experience of the audience is improved.
Fig. 8 is a block diagram illustrating a virtual gift display apparatus according to an exemplary embodiment. Referring to fig. 8, the apparatus includes a receiving unit 801, an acquiring unit 802, and a display unit 803.
A receiving unit 801, configured to execute a display instruction for receiving a virtual gift, where the display instruction carries an avatar download address of a first account, a avatar download address of a second account, and a gift identifier of the virtual gift, where the first account is used to represent a anchor account in a live broadcasting room, and the second account is used to represent an account that sends out the virtual gift;
an obtaining unit 802, configured to obtain an avatar resource of the first account and an avatar resource of the second account based on the avatar download address of the first account and the avatar download address of the second account;
and a display unit 803 configured to display the virtual gift on a live interface of the live broadcasting room, and display the avatar resources of the first account and the avatar resources of the second account in a target display area associated with the virtual gift.
In a possible implementation manner, the virtual gift is a gift picture frame sequence, the presentation instruction further carries a presentation timestamp of the avatar resource of the first account and the avatar resource of the second account, and the presentation unit 803 includes:
A first display subunit configured to execute, on a live interface of the live broadcast room, sequentially displaying the plurality of gift picture frames according to time stamps of the plurality of gift picture frames in the sequence of gift picture frames;
and the second display subunit is configured to display the head portrait resource of the first account and the head portrait resource of the second account in the target display area associated with the virtual gift when displaying the same time stamp as the display time stamp.
In a possible implementation manner, the virtual gift is a gift picture frame sequence, the presentation instruction further carries a first presentation timestamp of the avatar resource of the first account and a second presentation timestamp of the avatar resource of the second account, and the presentation unit 803 further includes:
the first display subunit is further configured to execute displaying the plurality of gift picture frames in sequence according to time stamps of the plurality of gift picture frames in the sequence of gift picture frames on a live interface of the live broadcast room;
the second display subunit is further configured to perform, when displaying to the same timestamp as the first display timestamp, displaying, in a target display area associated with the virtual gift, an avatar resource of the first account;
The second display subunit is further configured to perform displaying, when displaying to the same timestamp as the second display timestamp, the avatar resource of the second account within the target display area associated with the virtual gift.
In one possible implementation, the presentation unit 803 further includes:
a track determination subunit configured to perform determining an avatar presentation track associated with the virtual gift;
and the control subunit is configured to be executed in the target display area associated with the virtual gift and control the head portrait resource of the first account and the head portrait resource of the second account to be displayed in a moving way along the head portrait display track.
In one possible implementation, the presentation unit 803 further includes:
a position determining subunit configured to perform determining an avatar presentation position associated with the virtual gift;
the second display subunit is further configured to execute displaying the avatar resources of the first account and the avatar resources of the second account at the avatar display position of the target display area associated with the virtual gift.
In one possible implementation manner, the displaying, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account includes:
A size determination subunit configured to perform determining a head portrait size associated with the virtual gift;
the second display subunit is further configured to display, in the target display area associated with the virtual gift, the avatar resource of the first account and the avatar resource of the second account according to the avatar size.
In one possible implementation, the apparatus further includes:
a special effect determination subunit configured to perform determining an additional special effect associated with the virtual gift;
the second display subunit is further configured to perform displaying the additional special effect when displaying the avatar resource of the first account and the avatar resource of the second account in the target display area associated with the virtual gift.
In a possible implementation, the avatar resource is an avatar picture frame sequence, and the presentation unit 803 is further configured to perform:
and in the target display area associated with the virtual gift, sequentially displaying the plurality of first head portrait picture frames according to the time stamps of the plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account, and sequentially displaying the plurality of second head portrait picture frames according to the time stamps of the plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account.
According to the technical scheme provided by the embodiment of the disclosure, for the virtual gift, not only is the gift itself displayed, but also the source and the sending-out object of the gift can be displayed together by downloading the head portrait resource of the anchor account and the head portrait resource of the gift sending audience account, so that the difference of different audience gift sending is shown, the uniqueness of the gift effect is improved, and the live broadcast watching experience of the audience is improved.
It should be noted that: in the virtual gift display apparatus provided in the above embodiment, when a virtual gift is displayed, only the division of the above functional modules is used for illustration, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the virtual gift display apparatus provided in the above embodiment and the virtual gift display method embodiment belong to the same concept, and detailed implementation processes of the virtual gift display apparatus are shown in the method embodiment, which is not repeated herein.
The computer device provided by the embodiment of the disclosure may be a terminal. Fig. 9 is a block diagram of a terminal 900, according to an example embodiment. The terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 901 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 901 may integrate a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of content that the display screen needs to display. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one instruction for execution by processor 901 to implement the virtual gift display method provided by embodiments of the present disclosure.
In some embodiments, the terminal 900 may further optionally include: a peripheral interface 903, and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 903 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 904, a display 905, a camera assembly 906, audio circuitry 907, a positioning assembly 908, and a power source 909.
The peripheral interface 903 may be used to connect at least one peripheral device associated with an I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 901, the memory 902, and the peripheral interface 903 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 904 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 904 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 904 may also include NFC (Near Field Communication, short range wireless communication) related circuitry, which is not limited by the present disclosure.
The display 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 905 is a touch display, the display 905 also has the ability to capture touch signals at or above the surface of the display 905. The touch signal may be input as a control signal to the processor 901 for processing. At this time, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one and disposed on the front panel of the terminal 900; in other embodiments, the display 905 may be at least two, respectively disposed on different surfaces of the terminal 900 or in a folded design; in other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display 905 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 905 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 906 is used to capture images or video. Optionally, the camera assembly 906 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be plural and disposed at different portions of the terminal 900. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 907 may also include a headphone jack.
The location component 908 is used to locate the current geographic location of the terminal 900 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 908 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
The power supply 909 is used to supply power to the various components in the terminal 900. The power supply 909 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 909 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can further include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyroscope sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 901 may control the display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 911. The acceleration sensor 911 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may collect a 3D motion of the user on the terminal 900 in cooperation with the acceleration sensor 911. The processor 901 may implement the following functions according to the data collected by the gyro sensor 912: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 913 may be provided at a side frame of the terminal 900 and/or at a lower layer of the display 905. When the pressure sensor 913 is provided at a side frame of the terminal 900, a grip signal of the user to the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 913. When the pressure sensor 913 is provided at the lower layer of the display 905, the processor 901 performs control of the operability control on the UI interface according to the pressure operation of the user on the display 905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 914 is used for collecting the fingerprint of the user, and the processor 901 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 914 may be provided on the front, back, or side of the terminal 900. When a physical key or a vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or the vendor Logo.
The optical sensor 915 is used to collect the intensity of ambient light. In one embodiment, the processor 901 may control the display brightness of the display panel 905 based on the intensity of ambient light collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display luminance of the display screen 905 is turned up; when the ambient light intensity is low, the display luminance of the display panel 905 is turned down. In another embodiment, the processor 901 may also dynamically adjust the shooting parameters of the camera assembly 906 based on the ambient light intensity collected by the optical sensor 915.
A proximity sensor 916, also referred to as a distance sensor, is typically provided on the front panel of the terminal 900. Proximity sensor 916 is used to collect the distance between the user and the front of terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the display 905 to switch from the bright screen state to the off screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually increases, the processor 901 controls the display 905 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 9 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
The computer device provided by the embodiment of the disclosure may be a server. Fig. 10 is a block diagram illustrating a server 1000 according to an exemplary embodiment, which may be relatively different due to configuration or performance, may include one or more processors (Central Processing Units, CPU) 1001 and one or more memories 1002, wherein at least one program code is stored in the one or more memories 1002, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the virtual gift display method provided in the above-described respective method embodiments. Of course, the server 1000 may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a storage medium including a program code, for example, a memory 1002 including a program code, which is executable by the processor 1001 of the terminal 900 or the server 1000 to accomplish the above-described virtual gift display method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a read-only memory (ROM), a random access memory (random access memory), a RAM), a compact-disk read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A virtual gift display method, which is applied to a terminal, the method comprising:
receiving a display instruction of a virtual gift, wherein the display instruction carries an avatar downloading address of a first account, an avatar downloading address of a second account, a gift identifier of the virtual gift, an account identifier of the first account, an account identifier of the second account, and display time stamps of avatar resources of the first account and avatar resources of the second account, the virtual gift is a gift picture frame sequence, the avatar resources are an avatar picture frame sequence, the first account is used for representing a main cast account in a living broadcast room, and the second account is used for representing an account for sending out the virtual gift;
Inquiring in a download record or a stored head portrait resource package of the terminal according to the account identification of the first account and the account identification of the second account, if the account identification of the first account and the account identification of the second account do not exist in the download record and the stored head portrait resource package, acquiring head portrait resources of the first account and head portrait resources of the second account based on head portrait download addresses of the first account and head portrait download addresses of the second account, and determining head portrait display tracks associated with the virtual gift based on gift identification of the virtual gift, wherein the head portrait display tracks comprise first head portrait display tracks of the first account and second head portrait display tracks of the second account;
sequentially displaying a plurality of gift picture frames according to the time stamps of the plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room; when the display time stamp is the same as the display time stamp, in a target display area associated with the virtual gift, controlling the head portrait resource of the first account to move and display along a first head portrait display track, controlling the head portrait resource of the second account to move and display along a second head portrait display track, sequentially displaying the plurality of first head portrait picture frames according to the time stamps of the plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account, and sequentially displaying the plurality of second head portrait picture frames according to the time stamps of the plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account.
2. The virtual gift display method of claim 1, further comprising:
sequentially displaying a plurality of gift picture frames according to the time stamps of the plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room;
when the first account number is displayed to the same time stamp as the first display time stamp, displaying the head portrait resource of the first account number in a target display area associated with the virtual gift;
and when the second account number is displayed to the same time stamp as the second display time stamp, displaying the head portrait resource of the second account number in the target display area associated with the virtual gift.
3. The virtual gift display method of claim 1, further comprising:
determining an avatar presentation location associated with the virtual gift;
and displaying the head portrait resources of the first account and the head portrait resources of the second account at the head portrait display position of the target display area associated with the virtual gift.
4. The virtual gift display method of claim 1, further comprising:
determining a head portrait size associated with the virtual gift;
And displaying the head portrait resource of the first account and the head portrait resource of the second account in the target display area associated with the virtual gift according to the head portrait size.
5. The virtual gift display method of claim 1, further comprising:
determining additional special effects associated with the virtual gift;
and displaying the additional special effects when the head portrait resources of the first account and the head portrait resources of the second account are displayed in the target display area associated with the virtual gift.
6. A virtual gift display apparatus, the apparatus comprising:
the receiving unit is configured to execute a display instruction for receiving a virtual gift, wherein the display instruction carries an avatar downloading address of a first account, an avatar downloading address of a second account, a gift identifier of the virtual gift, an account identifier of the first account, an account identifier of the second account, and display time stamps of avatar resources of the first account and avatar resources of the second account, the virtual gift is a gift picture frame sequence, the avatar resources are an avatar picture frame sequence, the first account is used for representing a host account of a living broadcast room, and the second account is used for representing an account from which the virtual gift is sent;
The acquisition unit is configured to perform an inquiry in a download record or a stored head portrait resource package of a terminal according to the account identification of the first account and the account identification of the second account, and if the account identification of the first account and the account identification of the second account do not exist in the download record and the stored head portrait resource package, the head portrait resource of the first account and the head portrait resource of the second account are acquired based on the head portrait download address of the first account and the head portrait download address of the second account, and head portrait display tracks associated with the virtual gift are determined based on the gift identification of the virtual gift, wherein the head portrait display tracks comprise a first head portrait display track of the first account and a second head portrait display track of the second account;
a display unit configured to perform sequentially displaying a plurality of gift picture frames according to time stamps of the plurality of gift picture frames in the gift picture frame sequence; when the display time stamp is the same as the display time stamp, in a target display area associated with the virtual gift, controlling the head portrait resource of the first account to move and display along a first head portrait display track, controlling the head portrait resource of the second account to move and display along a second head portrait display track, sequentially displaying the plurality of first head portrait picture frames according to the time stamps of the plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account, and sequentially displaying the plurality of second head portrait picture frames according to the time stamps of the plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account.
7. The virtual gift display apparatus of claim 6 wherein said display unit is further configured to perform:
sequentially displaying a plurality of gift picture frames according to the time stamps of the plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room;
when the first account number is displayed to the same time stamp as the first display time stamp, displaying the head portrait resource of the first account number in a target display area associated with the virtual gift;
and when the second account number is displayed to the same time stamp as the second display time stamp, displaying the head portrait resource of the second account number in the target display area associated with the virtual gift.
8. The virtual gift display apparatus of claim 6 wherein said display unit is further configured to perform:
determining an avatar presentation location associated with the virtual gift;
and displaying the head portrait resources of the first account and the head portrait resources of the second account at the head portrait display position of the target display area associated with the virtual gift.
9. The virtual gift display apparatus of claim 6 wherein said display unit is further configured to perform:
Determining a head portrait size associated with the virtual gift;
and displaying the head portrait resource of the first account and the head portrait resource of the second account in the target display area associated with the virtual gift according to the head portrait size.
10. The virtual gift display apparatus of claim 6 wherein said display unit is further configured to perform:
determining additional special effects associated with the virtual gift;
and displaying the additional special effects when the head portrait resources of the first account and the head portrait resources of the second account are displayed in the target display area associated with the virtual gift.
11. A computer device, the computer device comprising:
one or more processors;
a memory for storing the processor-executable program code;
wherein the processor is configured to execute the program code to implement the virtual gift display method of any one of claims 1 to 5.
12. A computer readable storage medium, wherein program code in the computer readable storage medium, when executed by a processor of a computer device, enables the computer device to perform the virtual gift display method of any one of claims 1 to 5.
CN202010997753.XA 2020-09-21 2020-09-21 Virtual gift display method, device, equipment and storage medium Active CN112118477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010997753.XA CN112118477B (en) 2020-09-21 2020-09-21 Virtual gift display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010997753.XA CN112118477B (en) 2020-09-21 2020-09-21 Virtual gift display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112118477A CN112118477A (en) 2020-12-22
CN112118477B true CN112118477B (en) 2023-05-09

Family

ID=73801350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010997753.XA Active CN112118477B (en) 2020-09-21 2020-09-21 Virtual gift display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112118477B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113041625B (en) * 2021-04-25 2023-03-14 腾讯科技(深圳)有限公司 Live interface display method, device and equipment and readable storage medium
CN113468346B (en) * 2021-05-31 2023-01-20 北京达佳互联信息技术有限公司 Resource processing method and device, electronic equipment and storage medium
CN113297414B (en) * 2021-06-25 2023-06-09 杭州网易云音乐科技有限公司 Music gift management method and device, medium and computing device
CN113596806B (en) * 2021-07-09 2022-10-28 北京达佳互联信息技术有限公司 Terminal source determining method and device, electronic equipment and storage medium
CN113660534B (en) * 2021-08-18 2022-09-13 腾讯科技(深圳)有限公司 Virtual resource display method and device, storage medium and electronic equipment
CN113992927A (en) * 2021-10-22 2022-01-28 广州方硅信息技术有限公司 Method and device for generating two-dimensional virtual gift, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019037566A1 (en) * 2017-08-23 2019-02-28 腾讯科技(深圳)有限公司 Information display method and apparatus, device, and computer-readable storage medium
CN111090818A (en) * 2018-10-23 2020-05-01 广州虎牙信息科技有限公司 Resource management method, resource management system, server, and computer storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387026B (en) * 2010-09-01 2014-04-16 腾讯科技(深圳)有限公司 Management method and device for user data in system based on universal relation link model
CN108900920B (en) * 2018-07-20 2020-11-10 广州虎牙信息科技有限公司 Live broadcast processing method, device, equipment and storage medium
CN111200747A (en) * 2018-10-31 2020-05-26 百度在线网络技术(北京)有限公司 Live broadcasting method and device based on virtual image
CN109246445A (en) * 2018-11-29 2019-01-18 广州市百果园信息技术有限公司 Method, apparatus, system, equipment and the storage medium explained in a kind of direct broadcasting room
CN110913264B (en) * 2019-11-29 2020-10-20 北京达佳互联信息技术有限公司 Live broadcast data processing method and device, electronic equipment and storage medium
CN111277854A (en) * 2020-03-04 2020-06-12 网易(杭州)网络有限公司 Display method and device of virtual live broadcast room, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019037566A1 (en) * 2017-08-23 2019-02-28 腾讯科技(深圳)有限公司 Information display method and apparatus, device, and computer-readable storage medium
CN111090818A (en) * 2018-10-23 2020-05-01 广州虎牙信息科技有限公司 Resource management method, resource management system, server, and computer storage medium

Also Published As

Publication number Publication date
CN112118477A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN109982102B (en) Interface display method and system for live broadcast room, live broadcast server and anchor terminal
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN109660855B (en) Sticker display method, device, terminal and storage medium
CN110213608B (en) Method, device, equipment and readable storage medium for displaying virtual gift
CN110278464B (en) Method and device for displaying list
CN110149332B (en) Live broadcast method, device, equipment and storage medium
CN111246236B (en) Interactive data playing method, device, terminal, server and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN112492339B (en) Live broadcast method, device, server, terminal and storage medium
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN110418152B (en) Method and device for carrying out live broadcast prompt
CN110533585B (en) Image face changing method, device, system, equipment and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN112583806B (en) Resource sharing method, device, terminal, server and storage medium
CN114116053B (en) Resource display method, device, computer equipment and medium
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
CN111050189A (en) Live broadcast method, apparatus, device, storage medium, and program product
CN113271470B (en) Live broadcast wheat connecting method, device, terminal, server and storage medium
CN112612439A (en) Bullet screen display method and device, electronic equipment and storage medium
CN111669640B (en) Virtual article transfer special effect display method, device, terminal and storage medium
CN111402844B (en) Song chorus method, device and system
CN111045945B (en) Method, device, terminal, storage medium and program product for simulating live broadcast
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN111628925A (en) Song interaction method and device, terminal and storage medium

Legal Events

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