CN112118477A - 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
CN112118477A
CN112118477A CN202010997753.XA CN202010997753A CN112118477A CN 112118477 A CN112118477 A CN 112118477A CN 202010997753 A CN202010997753 A CN 202010997753A CN 112118477 A CN112118477 A CN 112118477A
Authority
CN
China
Prior art keywords
account
avatar
virtual gift
gift
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010997753.XA
Other languages
Chinese (zh)
Other versions
CN112118477B (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 present disclosure relates to a method, an apparatus, a device and a storage medium for displaying a virtual gift, and belongs to the technical field of live broadcast, wherein the method comprises the following steps: receiving a display instruction of the virtual gift, acquiring the avatar resource of the first account and the 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, displaying the virtual gift on a live broadcast interface of a live broadcast 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. In the embodiment of the disclosure, for the virtual gift, the gift itself is shown, the source of the gift and the object to be sent can be shown together by downloading the head portrait resource of the anchor account and the head portrait resource of the audience account for sending the gift, so that the difference of the gift sent by different audiences is reflected, the uniqueness of the gift effect is increased, and the experience of watching live broadcast by the audiences is promoted.

Description

Virtual gift display method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of live broadcast technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a virtual gift.
Background
With the continuous development of the live broadcast technology, users can enjoy more and more diversified interactive experience through live broadcast application. For example, a viewer in a live broadcast room may send a virtual gift, such as a sports car or a yacht, to a main broadcast in the live broadcast room, and the viewer, the main broadcast, and other viewers in the live broadcast room may be able to present the virtual gift on their terminal interfaces.
At present, the virtual gift display method generally comprises the following steps: when audience send out the virtual gift in the live broadcast room, the server can send the gift information of the virtual gift to the audience, the anchor terminal and other audience terminals, and after each terminal receives the gift information, the terminal inquires in a resource package of the terminal to obtain the virtual gift, and then displays the virtual gift.
In the above-mentioned technique, only show the virtual gift, the show form is more single, and when different audiences sent the same virtual gift, its show form all is the same, and user experience feels not good.
Disclosure of Invention
The utility model provides a virtual gift display method, device, equipment and storage medium, can embody the difference that different spectators sent the present, increased the uniqueness of present effect, promoted spectator and watched live experience. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments 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 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 main broadcasting account of a live broadcasting room, and the second account is used for representing an account for sending out the virtual gift;
acquiring the head portrait resource of the first account and the head portrait resource of the second account based on the head portrait downloading address of the first account and the head portrait downloading address of the second account;
and displaying the virtual gift on a live 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 a possible implementation manner, the virtual gift is a frame sequence of gift picture frames, the display instruction further carries display time stamps 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 broadcast 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 in the gift picture frame sequence on a live broadcast interface of the live broadcast room according to the time stamps of the gift picture frames;
and when the display time stamp is the same as the display time stamp, 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 manner, the virtual gift is a frame sequence of gift picture frames, 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, the displaying the virtual gift on a live interface of the live broadcast 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 in the gift picture frame sequence on a live broadcast interface of the live broadcast room according to the time stamps of the gift picture frames;
when the display time stamp is the same as the first display time stamp, displaying the head portrait resource of the first account in a target display area associated with the virtual gift;
and when the virtual gift is displayed to the same time stamp as the second display time stamp, displaying the head portrait resources of the second account in the target display area associated with the virtual gift.
In one possible implementation manner, the 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:
determining an avatar display trajectory associated with the virtual gift;
and in the target display area associated with the virtual gift, controlling the avatar resources of the first account and the avatar resources of the second account to move and display along the avatar display track.
In one possible implementation manner, the 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:
determining an avatar display position associated with the virtual gift;
and 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 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:
determining an avatar size associated with the virtual gift;
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 according to the size of the avatar.
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 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.
In a possible implementation manner, the avatar resource is an avatar picture frame sequence, and the 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:
in the target display area associated with the virtual gift, sequentially displaying a plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account according to the time stamps of the plurality of first head portrait picture frames, and sequentially displaying a plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account according to the time stamps of the plurality of second head portrait picture frames.
According to a second aspect of embodiments of the present disclosure, there is provided a virtual gift display apparatus comprising:
the virtual gift display method comprises a receiving unit, a displaying unit and a displaying unit, wherein the displaying unit is configured to execute a displaying instruction for receiving a virtual gift, the displaying 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 primary broadcast account of a live broadcast room, and the second account is used for representing an account for sending out the virtual gift;
the acquiring unit is configured to acquire the avatar resource of the first account and the 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 display the virtual gift on a live broadcast interface of the live broadcast room, 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 a possible implementation manner, the virtual gift is a frame sequence of gift picture frames, the display instruction further carries display time stamps of the avatar resource of the first account and the avatar resource of the second account, and the display unit includes:
a first presentation subunit configured to perform, on a live interface of the live broadcast room, presentation of a plurality of gift picture frames in sequence according to timestamps of the plurality of gift picture frames in the gift picture frame sequence;
and the second display subunit is configured to perform display of 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 the display is carried out to the same time stamp as the display time stamp.
In a possible implementation manner, the virtual gift is a frame sequence of gift picture frames, the display instruction further carries a first display time stamp of the avatar resource of the first account and a second display time stamp of the avatar resource of the second account, and the display unit further includes:
the first presentation subunit is further configured to perform, on a live interface of the live broadcast room, presentation of a plurality of gift picture frames in sequence according to timestamps of the plurality of gift picture frames in the gift picture frame sequence;
the second presentation subunit is further configured to perform presentation of the avatar resource of the first account within the target presentation area associated with the virtual gift when presented to the same timestamp as the first presentation timestamp;
the second presentation subunit is further configured to perform presentation of the avatar resource of the second account within the target presentation area associated with the virtual gift when presented to the same timestamp as the second presentation timestamp.
In one possible implementation, the display unit further includes:
a trajectory determination subunit configured to perform determining an avatar presentation trajectory associated with the virtual gift;
and the control subunit is configured to execute the control of moving and displaying the avatar resource of the first account and the avatar resource of the second account along the avatar display track in the target display area associated with the virtual gift.
In one possible implementation, the display unit further includes:
a position determination subunit configured to perform determining an avatar display position associated with the virtual gift;
the second display subunit is further configured to perform displaying of 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 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:
a size determination subunit configured to perform determining an avatar size associated with the virtual gift;
the second display subunit is further configured to perform displaying of the avatar resource of the first account and the avatar resource of the second account according to the avatar size in a target display area associated with the virtual gift.
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:
in the target display area associated with the virtual gift, sequentially displaying a plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account according to the time stamps of the plurality of first head portrait picture frames, and sequentially displaying a plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account according to the time stamps of the plurality of second head portrait picture frames.
According to a third aspect of embodiments of the present disclosure, there is provided a computer apparatus 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 presenting method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including: the program code in the storage medium, when executed by a processor of the server, enables the server to perform the virtual gift presenting 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 presentation method described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the technical scheme that this disclosure embodiment provided, to virtual gift, not only demonstrated gift itself, can also show the source of gift and the object of sending out together through the head portrait resource of downloading the head portrait resource of the account number of the anchor and the head portrait resource of the audience account number of sending gift, embodies the difference that different audiences sent the gift, has increased the uniqueness of gift effect, has promoted audience and has watched live experience.
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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic illustration of an implementation environment for a virtual gift presentation method shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of presenting a virtual gift according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of presenting a virtual gift according to an exemplary embodiment;
FIG. 4 is an interface schematic diagram illustrating a virtual gift presentation in accordance with an exemplary embodiment;
FIG. 5 is a schematic flow chart diagram illustrating a method of presenting a virtual gift in accordance with an exemplary embodiment;
FIG. 6 is a flow chart illustrating a method of presenting a virtual gift according to an exemplary embodiment;
FIG. 7 is a schematic flow chart diagram illustrating a method of presenting a virtual gift in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a virtual gift presentation device in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in 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 above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The information to which the present disclosure relates may be information authorized by a user or sufficiently authorized by parties.
Fig. 1 is a schematic diagram of an implementation environment of a virtual gift display method provided in an embodiment of the present disclosure, and referring to fig. 1, the implementation environment includes: a terminal 101 and a server 102.
The terminal 101 may be at least one of a smartphone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, a laptop portable computer, and the like. The terminal 101 is able to access the internet. The terminal 101 can be operated with a live application program, and a user can open a live broadcast room of the user or enter other live broadcast rooms through the live broadcast application program, so that various interactions such as watching, gift delivery, wheat connection and the like can be carried out in the live broadcast rooms. It should be understood that if the user opens his own live room, the user is the anchor, and if the user enters another live room, the user is the viewer. In the embodiment of the present disclosure, the terminal 101 refers to a main broadcasting terminal in a live broadcasting room and one of a plurality of online audience terminals, and the embodiment is only exemplified by the terminal 101. Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer.
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 basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The server 102 and the terminal 101 may be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiment of the present disclosure. Alternatively, the number of the servers 102 may be more or less, and the embodiment of the disclosure does not limit this. Of course, the server 102 may also include other functional servers to provide more comprehensive and diverse services. In the embodiment of the present disclosure, the server 102 may be a background server in a live broadcast room.
The virtual gift display method provided by the disclosure is realized by a plurality of terminals 101 and a server 102 in a live broadcast room. The user operates on the terminal 101, starts the live application program, clicks a live button in the live application program, and can open a live broadcast room of the user, and at the moment, the user is the anchor broadcast in the live broadcast room. Other users operate on the terminal 101, start a 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 home page or other modes, and at the moment, the other users are audiences in the live broadcast room. After the audience enters the live broadcast room, the live broadcast content, comment keys, gift keys and the like of the live broadcast room are displayed on the interface of the terminal 101. If a certain viewer wants to present the main broadcast and can perform a click operation on the gift key, a virtual gift list including a plurality of virtual gifts is displayed on the interface of the terminal 101 of the viewer, and if the viewer performs a selection operation on any one of the plurality of virtual gifts, the terminal 101 of the viewer sends a virtual gift presentation request to the server 102 in response to the selection operation on the virtual gift. After receiving the virtual gift giving request, the server 102 determines the avatar download address of the main broadcast account and the avatar download address of the gift sending audience account according to the account identification of the main broadcast account and the account identification of the gift sending audience account carried in the virtual gift giving request, further generates a display instruction of the virtual gift according to the avatar download address of the main broadcast account and the avatar download address of the gift sending audience account, broadcasts in a long connection mode, and sends the display instruction of the virtual gift to the terminals 101 in the live broadcast room. After the terminals 101 in the live broadcast room receive the display instruction of the virtual gift, the avatar resource of the anchor account and the avatar resource of the audience account for delivering the gift are displayed by using the virtual gift display method provided by the disclosure when the virtual gift is displayed on the interfaces of the terminals 101.
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 by the embodiment of the present disclosure can be applied 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, the terminal can display the avatar resource of the anchor account and the avatar resource of the audience account of the gift delivery while displaying the virtual gift.
In another possible implementation manner, the virtual gift display method provided by the embodiment of the present disclosure is only applicable to a specific virtual gift in a live broadcast 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 audience account for delivering the gift while displaying the virtual gift. The embodiment of the present disclosure does not limit which scenario the virtual gift display method is applied to. In the embodiment of the present disclosure, the first account is subsequently used to represent the anchor account, and the second account is used to represent the audience account for gift delivery.
Fig. 2 is a flowchart illustrating a virtual gift presenting method according to an exemplary embodiment, which is applied to a terminal, as shown in fig. 2, and includes the steps of:
in step 201, the 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 to represent a primary broadcast account of a live broadcast room, and the second account is used to represent an account for sending out the virtual gift.
In step 202, the terminal obtains the avatar resource of the first account and the 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.
In step 203, the terminal displays the virtual gift on a live interface of the live broadcast room, and displays 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.
The technical scheme that this disclosure embodiment provided, to virtual gift, not only demonstrated gift itself, can also show the source of gift and the object of sending out together through the head portrait resource of downloading the head portrait resource of the account number of the anchor and the head portrait resource of the audience account number of sending gift, embodies the difference that different audiences sent the gift, has increased the uniqueness of gift effect, has promoted audience and has watched live experience.
Fig. 2 is a basic flow chart of the present disclosure, and the following further explains the scheme provided by the present disclosure based on a specific implementation, and fig. 3 is a flow chart of a virtual gift displaying method according to an exemplary embodiment, and as shown in fig. 3, the method includes the following steps:
in step 301, in response to a second account presenting a virtual gift to a first account, a server sends a display instruction of the virtual gift to a plurality of terminals in a live broadcast room, where the display instruction carries an avatar download address of the first account, an avatar download address of the second account, and a gift identifier of the virtual gift, the first account is used to represent a primary broadcast account of the live broadcast room, and the second account is used to represent an account for presenting the virtual gift.
The virtual gift is used for representing a gift that the viewer account number enjoys the main broadcast account number in the live broadcast room, such as a yacht, an airplane, a rocket, flowers and the like. Optionally, the presentation instruction of the virtual gift is a virtual gift message (AvatarGiftMessage). 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 a possible implementation manner, a first account (anchor account) operates on a terminal, a live broadcast room can be opened, and a second account and other accounts can enter the live broadcast room through a live broadcast application program on the terminal. If the second account presents the virtual gift to the first account, the terminal of the second account sends a virtual gift presenting request to the server in response to the selection operation of the virtual gift, and after the server receives the virtual gift presenting request, acquiring 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, determining the head portrait download address of the first account and the head portrait download address of the second account according to the account identification of the first account and the account identification of the second account, and then generating a display instruction of the virtual gift according to the head portrait download address of the first account, the head portrait download address of the second account and the gift identification of the virtual gift, sending the display instruction of the virtual gift to a plurality of terminals in the live broadcast room, and then performing a subsequent display process of the virtual gift on the plurality of terminals. Optionally, the account ID is used to represent the account identification.
In step 302, a plurality of terminals in the live broadcast room receive a presentation instruction of the virtual gift.
The terminals refer to terminals where all online accounts of a live broadcast room are located, and include a terminal where a first account (a main broadcast account) is located, a terminal where a second account (a gift-providing audience account) is located, and a terminal where other online audiences are located.
In a possible implementation manner, after receiving a display instruction of a virtual gift, a plurality of terminals in a live broadcast room analyze the display instruction of the virtual gift, and acquire an avatar download address of a first account, an avatar download address of a second account, and a gift identifier of the virtual gift from a specific field of the display instruction of the virtual gift, so as to perform subsequent processes of acquiring and displaying avatar resources.
In step 303, for any terminal of the plurality of terminals, the avatar resource of the first account and the avatar resource of the second account are acquired based on the avatar download address of the first account and the avatar download address of the second account.
It should be noted that the server is associated with an avatar resource database, and the avatar resource database is used for storing a plurality of avatar resources in the live broadcast room. The head portrait download address refers to a storage address of the head portrait resource database.
In a possible implementation manner, after acquiring the head portrait download address of the first account and the head portrait download address of the second account carried by the display instruction, the terminal determines a corresponding storage space in a head portrait resource database according to the head portrait download address of the first account, downloads the head portrait resource of the first account from the storage space, determines a corresponding storage space in the head portrait resource database according to the head portrait download address of the second account, and downloads the head portrait resource of the second account from the storage space.
In step 304, the terminal stores the avatar resource of the first account and the avatar resource of the second account to the terminal.
In a possible implementation manner, after the terminal finishes downloading the avatar resource of the first account and the avatar resource of the second account, the terminal stores the avatar resource of the first account and the avatar resource of the second account to the local terminal, so that the terminal can automatically generate a storage path of the avatar resource of the first account and the avatar resource of the second account. Optionally, the storage path of the avatar resource is represented by AvatarPath.
In another possible implementation manner, the display instruction further carries an account id of the first account and an account id of the second account, and after the terminal acquires the account id of the first account and the account id of the second account, the terminal queries in a download record of the terminal or a stored avatar resource package according to the account id of the first account and the account id of the second account.
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 a possible implementation manner, after the terminal acquires the gift identifier carried by the display instruction, the terminal queries the terminal according to the gift identifier, and can determine the storage path of the virtual gift at the terminal. Optionally, the storage path of the virtual gift is represented using a GiftPath.
It should be noted that the steps 303 to 305 are processes of downloading and storing the avatar resources first, and then determining the storage path of the virtual gift. Optionally, the terminal may further determine the storage path of the virtual gift first, and then download and store the avatar resource, or the terminal may further determine the storage path of the virtual gift while downloading and storing the avatar resource. The embodiment of the present disclosure does not limit the sequence between step 305 and steps 303 and 304.
In step 306, the terminal obtains the avatar resource of the first account and the avatar resource of the second account from the storage space corresponding to the storage path of the avatar resource.
In a possible implementation manner, the terminal can acquire the avatar resource of the first account from the storage space corresponding to the storage path of the avatar resource of the first account through the renderer, and can acquire the avatar resource of the second account from the 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 the gift resource package corresponding to the storage path of the virtual gift, and the gift resource package is used for storing the corresponding relationship between the gift identifier and the virtual gift.
In a possible implementation manner, the terminal can acquire 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 broadcast 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.
In a possible implementation manner, after the terminal acquires the virtual gift, the terminal can acquire the display position of the virtual gift, then on a live interface of the live broadcast room, the display position of the virtual gift is determined, the virtual gift is displayed in the display position, and 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 are displayed. The target display area is used to represent an area associated with a display position of the virtual gift, such as an area having a distance from the periphery of the virtual gift less than a certain threshold value.
For example, fig. 4 is an interface schematic diagram of a virtual gift display shown in an embodiment of the present disclosure, and in the live interface in fig. 4, on the basis of displaying a live screen, not only the virtual gift is displayed, but also the avatar resource of the first account and the avatar resource of the second account are displayed. And the live broadcast interface shows prompt messages of the second account for sending the gift, such as 'easy' sending out the head portrait gift ', and the live broadcast interface also shows other prompt messages, such as' entering the live broadcast room ',' sharing 'and increasing the popularity of the live broadcast room'. In addition, the live broadcast interface also shows a music key, a connecting wheat fight key, a turnover key, more keys, a gift key and the like.
Optionally, steps 306 to 308 are performed by a renderer (rendering SDK) of the live application. The renderer can acquire the avatar resources of the first account, the avatar resources of the second account and the virtual gift according to the storage path of the avatar resources and the storage path of the virtual gift, and then display the avatar resources. It should be noted that 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, so that after receiving the relevant storage paths, the renderer 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 displays 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 when displaying the virtual gift.
For example, fig. 5 is a schematic flow chart of virtual gift display provided by an embodiment of the present disclosure, and as shown in fig. 5, a primary account a is used to represent a first account, a gift account B is used to represent a second account, and a "romantic avatar" gift is used to represent a virtual gift. After the anchor account A opens a live broadcast room, and the audience account B enters the live broadcast room, if the audience account B selects and sends out a romantic head portrait gift, the server generates a virtual gift message (an avatar Giftmessage, namely a display instruction), wherein the virtual gift message comprises a head portrait download address of the anchor account A, a head portrait download address of the audience account B for gift sending and a gift identifier of the virtual gift. The server sends the virtual gift message to a main broadcasting account A and an audience account in a live broadcast room, the audience account comprises a gift sending audience account B and other online audiences, and then the main broadcasting account and the terminal where the audience account are located can determine a storage path of the avatar resource and a storage path of the virtual gift according to the avatar download address and the 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 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 that the virtual gift is displayed, and the head portrait resource is displayed.
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 an avatar display track associated with the virtual gift according to the gift identifier of the virtual gift, and controls avatar resources of the first account and avatar resources of the second account to move and display along the avatar display track in a target display area associated with the virtual gift. The avatar display track comprises a first avatar display track of the avatar resource of the first account and a second avatar display track of the avatar resource of the second account. Optionally, the first avatar display trajectory and the second avatar display trajectory may be the same or different.
Optionally, for example, when the first avatar display track and the second avatar display track are different, the terminal determines that the first avatar display track and the second avatar display track are different, and in the target display area associated with the virtual gift, controls the avatar resource of the first account to move and display along the first avatar display track, and controls the avatar resource of the second account to move and display along the second avatar 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 novelty of virtual gift display is improved, watching of users is attracted more, and the interest of the users in watching live broadcast is improved.
In a second possible implementation manner, the terminal determines an avatar display position associated with the virtual gift according to the gift identifier of the virtual gift, and displays the avatar resource of the first account and the avatar resource of the second account at the avatar display position of the target display area associated with the virtual gift. The avatar display position comprises a first avatar display position of the avatar resource of the first account and a second avatar display position of the avatar resource of the second account.
Optionally, after the terminal determines the first avatar display position and the second avatar display position, the terminal determines the first avatar display position and the second avatar display position in the target display area associated with the virtual gift, the avatar resource of the first account is displayed at the first avatar display position, and the avatar resource of the second account is displayed at the second avatar display position. In the process, different virtual gifts correspond to different head portrait display positions, so that the head portrait resources can be displayed at different positions according to different virtual gifts when the head portrait resources are displayed, the uniqueness of virtual gift display is increased, and the interest of a user in watching live broadcasts is improved.
In a third possible implementation manner, the terminal determines the size of the avatar associated with the virtual gift according to the gift identifier of the virtual gift, 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 according to the size of the avatar. The avatar size includes a first avatar size of the avatar resource of the first account and a second avatar size of the avatar resource of the second account.
Optionally, after the terminal determines the size of the first avatar and the size of the second avatar, in the target display area associated with the virtual gift, the avatar resource of the first account is displayed according to the size of the displayed first avatar, and the avatar resource of the second account is displayed according to the size of the displayed second avatar. In the process, different virtual gifts correspond to different avatar sizes, so that avatar resources can be displayed according to different virtual gifts and different avatar sizes when avatar resources are displayed, uniqueness of virtual gift display is increased, and live broadcast interest of users is improved.
In a fourth possible implementation manner, the terminal determines an additional special effect associated with the virtual gift according to the gift identifier of 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 effect is displayed while the head portrait resources are displayed, attractiveness of live broadcast pictures can be increased, the virtual gifts can be displayed more flexibly, and the interest of users in watching live broadcasts is improved.
In a fifth possible implementation manner, the avatar resource is an avatar picture frame sequence, and in the target display area associated with the virtual gift, the first avatar picture frames are sequentially displayed according to timestamps of a plurality of first avatar picture frames in the avatar picture frame sequence of the first account, and the second avatar picture frames are sequentially displayed according to timestamps of a plurality of second avatar picture frames in the avatar picture frame sequence of the second account. In the process, a technician can preset an avatar picture frame sequence of the avatar resource and store the avatar picture frame sequence to the server, and then the terminal obtains the avatar picture frame sequence from the server, so that the avatar picture frame sequence can be displayed while the virtual gift is displayed. It should be understood that for the avatar resources with a complex display process, the avatar picture frame sequence mode is adopted, so that better display can be achieved, the uniqueness of virtual gift display can be improved, and the interest of the user in watching live broadcast is improved.
The technical scheme that this disclosed embodiment provided, to virtual gift, not only demonstrate gift itself, can also show the source of gift and the object of sending out together through the head portrait resource of downloading the anchor account number and the head portrait resource of the audience account number of sending gift, demonstrate the difference that different audiences sent the gift, the uniqueness of gift effect has been increased, audience has been promoted and has watched the experience of live broadcast, it is identical to send the gift effect to solve audience in the live broadcast room, and the new intention that leads to is not enough, lack the problem of appeal, can show the head portrait of oneself and anchor for every audience, audience's enthusiasm of sending gift has been improved, more incomes have been created for anchor and live broadcast platform.
Fig. 3 is a process of directly showing the avatar resource of the first account and the avatar resource of the second account while showing the virtual gift. In another possible implementation manner, the order of displaying the virtual gift and the avatar resource may be different, and fig. 6 is a flowchart illustrating a virtual gift displaying method according to an exemplary embodiment, and as shown in fig. 6, the method includes the following steps:
in step 601, the server sends a display instruction of the virtual gift to a plurality of terminals in the live broadcast room in response to the second account presenting the virtual gift to the first account, 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 display timestamps of an avatar resource of the first account and an avatar resource of the second account, the first account is used to represent a main broadcast account in the live broadcast room, and the second account is used to represent an account sending out the virtual gift.
In step 602, a plurality of terminals in the live broadcast room receive a display instruction of the virtual gift, and obtain a head portrait download address of the first account, a head portrait download address of the second account, a gift identifier of the virtual gift, and display timestamps of a head portrait resource of the first account and a head portrait resource of the second account, which are carried by the display instruction.
Optionally, the presentation timestamp of the avatar resource is avatarTimestamp.
In step 603, for any terminal of the plurality of terminals, the avatar resource of the first account and the avatar resource of the second account are acquired based on the avatar download address of the first account and the avatar download address of the second account.
In step 604, the terminal stores the avatar resource of the first account and the avatar resource of the second account in 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 resource of the first account and the avatar resource of the second account from the storage space corresponding to the storage path of the avatar resource.
In step 607, the terminal obtains the virtual gift from the gift resource package corresponding to the storage path of the virtual gift, wherein the gift resource package is used for storing the corresponding relationship between the gift identifier and the virtual gift.
It should be noted that the contents of steps 601 to 607 are similar to the contents of steps 301 to 307, and are not described again, and the difference is that the presentation instruction also carries the presentation time stamp of the avatar resource of the first account and the avatar resource of the second account.
In step 608, the terminal displays the virtual gift on the live interface of the live broadcast 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 the virtual gift is displayed to the same timestamp as the display timestamp.
In a possible implementation manner, the virtual gift is a frame sequence of gift picture frames, the plurality of gift picture frames are sequentially displayed on a live interface of the live broadcast room according to timestamps of a plurality of gift picture frames in the frame sequence of gift picture frames, and when the plurality of gift picture frames are displayed to a timestamp that is the same as the display timestamp, the avatar resource of the first account and the avatar resource of the second account are displayed in a target display area associated with the virtual gift.
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 timestamp. It should be noted that the terminal needs to send the storage path of the avatar resource of the first account (AvatarPath), the storage path of the avatar resource of the second account (AvatarPath), the storage path of the virtual gift (GiftPath), and the presentation time stamp of the avatar resource of the first account and the avatar resource of the second account (AvatarTimeStamp) to the renderer, so that the renderer indexes the virtual gift according to the storage path of the virtual gift after receiving the relevant storage path and the presentation time stamp, 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 to the time stamp identical to the presentation time stamp.
For example, fig. 7 is a schematic flow chart of virtual gift display provided in an embodiment of the present disclosure, and as shown in fig. 7, if the audience account B selects and sends out a "romantic avatar" gift, the server generates a virtual gift message (avatar giftmessage, that is, a display instruction), where the virtual gift message includes an avatar download address of the anchor account a, an avatar download address of the gift account B of the gift of the virtual gift, a gift identifier of the virtual gift, and a display time stamp of the avatar resource. The server sends the virtual gift message to a main broadcasting account A and an audience account in a live broadcast room, and then the main broadcasting account and the audience account are located at terminals. The terminal sends the storage path of the head portrait resource, the storage path of the virtual gift and the display timestamp of the head portrait resource to the 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, so that the virtual gift is displayed, and when the display is performed on the same timestamp of the display timestamp, the head portrait resource is displayed.
The step 608 is a process of displaying the same time stamp for the avatar resource of the first account and the avatar resource of the second account. Optionally, 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 a corresponding process of displaying the avatar resource by the terminal is as follows: on a live interface of the live broadcast room, sequentially displaying a plurality of gift picture frames according to timestamps of the gift picture frames in the gift picture frame sequence, displaying the avatar resource of the first account in a target display area associated with the virtual gift when displaying to a timestamp the same as the first display timestamp, and displaying the avatar resource of the second account in the target display area associated with the virtual gift when displaying to a timestamp the same as the second display timestamp. In the process, the display time of the head portrait resources can be controlled by carrying the display time stamp in the display instruction, the flexibility of displaying the head portrait resources is improved, the live broadcast watching experience of audiences is improved, and the enthusiasm of the audiences for delivering gifts is improved.
The technical scheme that this disclosure embodiment provided, to virtual gift, not only demonstrated gift itself, can also show the source of gift and the object of sending out together through the head portrait resource of downloading the head portrait resource of the account number of the anchor and the head portrait resource of the audience account number of sending gift, embodies the difference that different audiences sent the gift, has increased the uniqueness of gift effect, has promoted audience and has watched live experience.
Fig. 8 is a block diagram illustrating a virtual gift presentation device according to an exemplary embodiment. Referring to fig. 8, the apparatus includes a receiving unit 801, an acquiring unit 802, and a presenting 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, an avatar download address of a second account, and a gift identifier of the virtual gift, the first account is used to represent a primary account in a live broadcast room, and the second account is used to represent an account for sending out the virtual gift;
an obtaining unit 802, configured to perform obtaining, based on the avatar download address of the first account and the avatar download address of the second account, an avatar resource of the first account and an avatar resource of the second account;
a displaying unit 803, configured to perform displaying of the virtual gift on a live interface of the live broadcast 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.
In a possible implementation manner, the virtual gift is a frame sequence of gift picture frames, the display instruction further carries a display time stamp of the avatar resource of the first account and the avatar resource of the second account, and the display unit 803 includes:
a first presentation subunit configured to perform, on a live interface of the live broadcast room, presentation of a plurality of gift picture frames in sequence according to timestamps of the plurality of gift picture frames in the gift picture frame sequence;
and the second display subunit is configured to perform display of 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 the display is carried out to the same time stamp as the display time stamp.
In a possible implementation manner, the virtual gift is a frame sequence of gift picture frames, the display instruction further carries a first display time stamp of the avatar resource of the first account and a second display time stamp of the avatar resource of the second account, and the display unit 803 further includes:
the first presentation subunit is further configured to perform, on a live interface of the live broadcast room, presentation of a plurality of gift picture frames in sequence according to timestamps of the plurality of gift picture frames in the gift picture frame sequence;
the second presentation subunit is further configured to perform presentation of the avatar resource of the first account within the target presentation area associated with the virtual gift when presented to the same timestamp as the first presentation timestamp;
the second presentation subunit is further configured to perform presentation of the avatar resource of the second account within the target presentation area associated with the virtual gift when presented to the same timestamp as the second presentation timestamp.
In a possible implementation manner, the presentation unit 803 further includes:
a trajectory determination subunit configured to perform determining an avatar presentation trajectory associated with the virtual gift;
and the control subunit is configured to execute the control of moving and displaying the avatar resource of the first account and the avatar resource of the second account along the avatar display track in the target display area associated with the virtual gift.
In a possible implementation manner, the presentation unit 803 further includes:
a position determination subunit configured to perform determining an avatar display position associated with the virtual gift;
the second display subunit is further configured to perform displaying of 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 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:
a size determination subunit configured to perform determining an avatar size associated with the virtual gift;
the second display subunit is further configured to perform displaying of the avatar resource of the first account and the avatar resource of the second account according to the avatar size in a target display area associated with the virtual gift.
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 manner, the avatar resource is an avatar picture frame sequence, and the presentation unit 803 is further configured to perform:
in the target display area associated with the virtual gift, sequentially displaying a plurality of first head portrait picture frames in the head portrait picture frame sequence of the first account according to the time stamps of the plurality of first head portrait picture frames, and sequentially displaying a plurality of second head portrait picture frames in the head portrait picture frame sequence of the second account according to the time stamps of the plurality of second head portrait picture frames.
The technical scheme that this disclosure embodiment provided, to virtual gift, not only demonstrated gift itself, can also show the source of gift and the object of sending out together through the head portrait resource of downloading the head portrait resource of the account number of the anchor and the head portrait resource of the audience account number of sending gift, embodies the difference that different audiences sent the gift, has increased the uniqueness of gift effect, has promoted audience and has watched live experience.
It should be noted that: in the virtual gift display device provided in the above embodiment, when displaying a virtual gift, only the division of the above functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the virtual gift display device provided by the above embodiment and the virtual gift display method embodiment belong to the same concept, and the specific implementation process is described in the method embodiment, and will not be described again.
The computer device provided by the embodiment of the disclosure can be a terminal. Fig. 9 is a block diagram illustrating 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 video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, 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 so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
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 a virtual gift presentation method provided by embodiments of the present disclosure.
In some embodiments, terminal 900 can also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908, and a power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to 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, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, 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, disposed on the front panel of the terminal 900; in other embodiments, the number of the display panels 905 may be at least two, and each of the display panels is disposed on a different surface of the terminal 900 or is in a foldable 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 screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user 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 realizing voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic Location of the terminal 900 for navigation or LBS (Location Based Service). The Positioning component 908 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 909 is used to provide power to the various components in terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When power source 909 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can also include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the display screen 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for 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 cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 913 may be disposed on a side bezel of the terminal 900 and/or underneath the display 905. When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the display screen 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 905. The operability control comprises 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 a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal 900. When a physical key or vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the display screen 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is reduced. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
Proximity sensor 916, also known as a distance sensor, is typically disposed on the front panel of terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front face of the 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 dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually becomes larger, the display 905 is controlled by the processor 901 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of terminal 900, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
The computer device provided by the embodiment of the disclosure can be a server. Fig. 10 is a block diagram of a server 1000 according to an exemplary embodiment, where the server 1000 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1001 and one or more memories 1002, where 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 presenting method provided by the above-described method embodiments. Of course, the server 1000 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 1000 may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, there is also provided a storage medium including program codes, for example, the memory 1002 including the program codes, which are executable by the processor 1001 of the terminal 900 or the server 1000 to perform the virtual gift presenting method described above. 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-disc-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 variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of displaying a virtual gift, the method comprising:
receiving a display instruction of a virtual gift, wherein 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 main broadcasting account of a live broadcasting room, and the second account is used for representing an account for sending out the virtual gift;
acquiring the head portrait resource of the first account and the head portrait resource of the second account based on the head portrait downloading address of the first account and the head portrait downloading address of the second account;
and displaying the virtual gift on a live broadcast interface of the live broadcast 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.
2. The method for displaying a virtual gift as claimed in claim 1, wherein the virtual gift is a frame sequence of gift picture frames, the display instruction further carries display time stamps of the avatar resources of the first account and the avatar resources of the second account, the displaying the virtual gift on a live interface of the live broadcast room, and displaying 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 comprises:
sequentially displaying a plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room according to timestamps of the gift picture frames;
and when the display time stamp is the same as the display time stamp, 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.
3. The method for displaying a virtual gift as claimed in claim 1, wherein the virtual gift is a frame sequence of gift picture frames, the display instruction further carries a first display time stamp of the avatar resource of the first account and a second display time stamp of the avatar resource of the second account, the displaying the virtual gift on a live interface of the live broadcast 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 comprises:
sequentially displaying a plurality of gift picture frames in the gift picture frame sequence on a live broadcast interface of the live broadcast room according to timestamps of the gift picture frames;
when the display time stamp is the same as the first display time stamp, displaying the head portrait resources of the first account in a target display area associated with the virtual gift;
and when the display time is the same as the second display time stamp, displaying the head portrait resources of the second account in the target display area associated with the virtual gift.
4. The virtual gift display method of claim 1, wherein said displaying 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 comprises:
determining an avatar display trajectory associated with the virtual gift;
and in the target display area associated with the virtual gift, controlling the avatar resources of the first account and the avatar resources of the second account to move and display along the avatar display track.
5. The virtual gift display method of claim 1, wherein said displaying 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 comprises:
determining an avatar display position associated with the virtual gift;
and 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.
6. The virtual gift display method of claim 1, wherein said displaying 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 comprises:
determining an avatar size associated with the virtual gift;
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 according to the size of the avatar.
7. The virtual gift presentation method of claim 1, wherein the method further comprises:
determining an additional special effect associated with the virtual gift;
and 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.
8. A virtual gift display device, said device comprising:
the virtual gift display method comprises a receiving unit, a displaying unit and a displaying unit, wherein the displaying unit is configured to execute a displaying instruction for receiving a virtual gift, the displaying 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 primary broadcast account in a live broadcast room, and the second account is used for representing an account for sending out the virtual gift;
the acquiring unit is configured to acquire the avatar resource of the first account and the 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 display the virtual gift on a live broadcast interface of the live broadcast room, and display 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.
9. A computer device, characterized in that the computer device comprises:
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 presenting method of any one of claims 1 to 7.
10. A storage medium, wherein program code in the storage medium, when executed by a processor of a server, enables the server to perform the virtual gift presenting method of any one of claims 1 through 7.
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 true CN112118477A (en) 2020-12-22
CN112118477B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113041625A (en) * 2021-04-25 2021-06-29 腾讯科技(深圳)有限公司 Display method, device and equipment of live interface and readable storage medium
CN113297414A (en) * 2021-06-25 2021-08-24 杭州网易云音乐科技有限公司 Management method and device of music gift, medium and computing equipment
CN113468346A (en) * 2021-05-31 2021-10-01 北京达佳互联信息技术有限公司 Resource processing method and device, electronic equipment and storage medium
CN113596806A (en) * 2021-07-09 2021-11-02 北京达佳互联信息技术有限公司 Terminal source determining method and device, electronic equipment and storage medium
CN113660534A (en) * 2021-08-18 2021-11-16 腾讯科技(深圳)有限公司 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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387026A (en) * 2010-09-01 2012-03-21 腾讯科技(深圳)有限公司 Management method and device for user data in system based on universal relation link model
CN108900920A (en) * 2018-07-20 2018-11-27 广州虎牙信息科技有限公司 A kind of live streaming processing method, device, equipment and storage medium
CN109246445A (en) * 2018-11-29 2019-01-18 广州市百果园信息技术有限公司 Method, apparatus, system, equipment and the storage medium explained in a kind of direct broadcasting room
WO2019037566A1 (en) * 2017-08-23 2019-02-28 腾讯科技(深圳)有限公司 Information display method and apparatus, device, and computer-readable storage medium
CN110913264A (en) * 2019-11-29 2020-03-24 北京达佳互联信息技术有限公司 Live data processing method and device, electronic equipment and storage medium
CN111090818A (en) * 2018-10-23 2020-05-01 广州虎牙信息科技有限公司 Resource management method, resource management system, server, and computer storage medium
JP2020071851A (en) * 2018-10-31 2020-05-07 バイドゥ オンライン ネットワーク テクノロジー (ベイジン) カンパニー リミテッド Method and apparatus for live broadcasting with avatar
CN111277854A (en) * 2020-03-04 2020-06-12 网易(杭州)网络有限公司 Display method and device of virtual live broadcast room, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387026A (en) * 2010-09-01 2012-03-21 腾讯科技(深圳)有限公司 Management method and device for user data in system based on universal relation link model
WO2019037566A1 (en) * 2017-08-23 2019-02-28 腾讯科技(深圳)有限公司 Information display method and apparatus, device, and computer-readable storage medium
CN108900920A (en) * 2018-07-20 2018-11-27 广州虎牙信息科技有限公司 A kind of live streaming processing method, device, equipment and storage medium
CN111090818A (en) * 2018-10-23 2020-05-01 广州虎牙信息科技有限公司 Resource management method, resource management system, server, and computer storage medium
JP2020071851A (en) * 2018-10-31 2020-05-07 バイドゥ オンライン ネットワーク テクノロジー (ベイジン) カンパニー リミテッド Method and apparatus for live broadcasting with avatar
CN109246445A (en) * 2018-11-29 2019-01-18 广州市百果园信息技术有限公司 Method, apparatus, system, equipment and the storage medium explained in a kind of direct broadcasting room
CN110913264A (en) * 2019-11-29 2020-03-24 北京达佳互联信息技术有限公司 Live 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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Y. ZHAO: "A Flexible Live Broadcast Management System", 《2019 12TH INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTATION TECHNOLOGY AND AUTOMATION (ICICTA)》 *
王莹莹: "近期国内网络直播的娱乐元素分析", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑(月刊),2019年第01期》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113041625A (en) * 2021-04-25 2021-06-29 腾讯科技(深圳)有限公司 Display method, device and equipment of live interface and readable storage medium
CN113041625B (en) * 2021-04-25 2023-03-14 腾讯科技(深圳)有限公司 Live interface display method, device and equipment and readable storage medium
CN113468346A (en) * 2021-05-31 2021-10-01 北京达佳互联信息技术有限公司 Resource processing method and device, electronic equipment and storage medium
CN113297414A (en) * 2021-06-25 2021-08-24 杭州网易云音乐科技有限公司 Management method and device of music gift, medium and computing equipment
CN113297414B (en) * 2021-06-25 2023-06-09 杭州网易云音乐科技有限公司 Music gift management method and device, medium and computing device
CN113596806A (en) * 2021-07-09 2021-11-02 北京达佳互联信息技术有限公司 Terminal source determining method and device, electronic equipment and storage medium
CN113596806B (en) * 2021-07-09 2022-10-28 北京达佳互联信息技术有限公司 Terminal source determining method and device, electronic equipment and storage medium
CN113660534A (en) * 2021-08-18 2021-11-16 腾讯科技(深圳)有限公司 Virtual resource display method and device, storage medium and electronic equipment
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

Also Published As

Publication number Publication date
CN112118477B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN109982102B (en) Interface display method and system for live broadcast room, live broadcast server and anchor terminal
CN109729411B (en) Live broadcast interaction method and device
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN109660855B (en) Sticker display method, device, terminal and storage medium
CN110278464B (en) Method and device for displaying list
CN109327608B (en) Song sharing method, terminal, server and system
CN111355974A (en) Method, apparatus, system, device and storage medium for virtual gift giving processing
CN111246236B (en) Interactive data playing method, device, terminal, server and storage medium
CN110533585B (en) Image face changing method, device, system, equipment and storage medium
CN112929687A (en) Interaction method, device and equipment based on live video and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN110418152B (en) Method and device for carrying out live broadcast prompt
CN107896337B (en) Information popularization method and device and storage medium
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
CN109275013B (en) Method, device and equipment for displaying virtual article and storage medium
CN114116053B (en) Resource display method, device, computer equipment and medium
CN113271470B (en) Live broadcast wheat connecting method, device, terminal, server and storage medium
CN113395566B (en) Video playing method and device, electronic equipment and computer readable storage medium
CN112583806A (en) Resource sharing method, device, terminal, server and storage medium
CN110958464A (en) Live broadcast data processing method and device, server, terminal and storage medium
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN111402844B (en) Song chorus method, device and system
CN111045945B (en) Method, device, terminal, storage medium and program product for simulating live broadcast
CN111368114A (en) Information display method, device, equipment and storage medium
CN112468884A (en) Dynamic resource display method, device, terminal, server 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