CN114449305A - Gift animation playing method and device in live broadcast room - Google Patents

Gift animation playing method and device in live broadcast room Download PDF

Info

Publication number
CN114449305A
CN114449305A CN202210112105.0A CN202210112105A CN114449305A CN 114449305 A CN114449305 A CN 114449305A CN 202210112105 A CN202210112105 A CN 202210112105A CN 114449305 A CN114449305 A CN 114449305A
Authority
CN
China
Prior art keywords
gift
animation
live broadcast
user
sending operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210112105.0A
Other languages
Chinese (zh)
Inventor
褚波
林鲜
陈语欣
闫雪梅
史传倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202210112105.0A priority Critical patent/CN114449305A/en
Publication of CN114449305A publication Critical patent/CN114449305A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4784Supplemental services, e.g. displaying phone caller identification, shopping application receiving rewards

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a gift animation playing method in a live broadcast room. The method comprises the following steps: responding to the gift sending operation of at least one user in a live broadcast room, and acquiring a first gift animation video corresponding to the gift sending operation of each user; determining a live broadcast area of a first gift animation video corresponding to the gift sending operation of each user in a live broadcast room; and playing a first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area. The application can reduce performance consumption.

Description

Gift animation playing method and device in live broadcast room
Technical Field
The application relates to the technical field of videos, in particular to a gift animation playing method and device in a live broadcast room.
Background
A general MP4 format video file does not support displaying video frames with transparency. In the prior art, in order to realize that an animation video file in an MP4 format can carry transparency information, transparency description information is added to the same frame of video frame, so that when a front-end MP4 player acquires a video frame with transparency description information, the front-end MP4 player can use hardware (GPU) to decode, synthesize each frame of picture supporting transparency, and play the picture, thereby realizing the support of playing the animation video file in an MP4 format with transparency value.
When decoding an animation video file in the MP4 format, the performance overhead (e.g., memory footprint) and the picture size of the animation video are linear, and the smaller the picture size control, the lower the performance overhead.
However, the inventor finds that the prior art generally uses a full-size animation video file to realize the playing of the animation, which results in a large performance overhead required for playing the animation video file.
Disclosure of Invention
In view of the above, a method, an apparatus, a computer device, and a computer readable storage medium for playing a gift animation in a live broadcast room are provided to solve the problem of high performance overhead required for playing an existing animation video file.
The application provides a gift animation playing method in a live broadcast room, which comprises the following steps:
responding to the gift sending operation of at least one user in a live broadcast room, and acquiring a first gift animation video corresponding to the gift sending operation of each user;
determining live broadcast areas of first gift animation videos corresponding to gift sending operations of users in a live broadcast room, wherein the live broadcast room comprises a plurality of live broadcast areas;
and playing a first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area.
Optionally, the determining that the live area of the first gift animation video corresponding to the gift sending operation of each user in the live broadcast room includes:
storing a first gift animation video corresponding to the gift sending operation of each user into a target animation queue;
and taking the live broadcast area associated with the target animation queue as a live broadcast area of the first gift animation video corresponding to the gift sending operation of each user in a live broadcast room.
Optionally, the method further comprises:
receiving a gift material package issued by a server, wherein the gift material package comprises the first gift animation video and animation track configuration information corresponding to the first gift animation video, and the animation track configuration information comprises live broadcast room division information;
dividing the live broadcast room into a plurality of live broadcast areas according to the live broadcast room dividing information;
creating a plurality of gift animation queues, wherein the target animation queue is one of the plurality of gift animation queues;
and associating a plurality of gift animation queues with a plurality of live broadcast areas one by one.
Optionally, the storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue includes:
detecting whether an empty queue exists in a plurality of gift animation queues;
and if the empty queue exists, storing the first gift animation video corresponding to the gift sending operation of each user into the empty queue, and taking the empty queue as the target animation queue.
Optionally, there are a plurality of empty queues, and storing the first gift animation video corresponding to the gift sending operation of each user into the empty queues, and taking the empty queues as the target animation queues includes:
randomly selecting an empty queue from a plurality of empty queues as the target animation queue;
and storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue.
Optionally, the storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue further includes:
if no empty queue exists, acquiring the number of first gift animation videos stored in each gift animation queue;
selecting a gift animation queue storing the least number of first gift animation videos as the target animation queue, and storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue.
Optionally, the gift material package further includes at least one second gift animation video, and a playing condition corresponding to each second gift animation video, and the method further includes:
detecting whether the gift sending operation meets a preset condition, wherein the preset condition is any one of playing conditions corresponding to the second gift animation videos;
if the gift sending operation meets the preset condition, setting a plurality of gift animation queues to be in a blocking state;
acquiring a second gift animation video matched with the preset condition from the gift material package;
and playing the second gift animation video in the live broadcast room, and releasing the blocking state of the gift animation queues after the second gift animation video is played.
Optionally, the gift material package sent by the receiving server includes:
and receiving a gift material packet which is sent by the server and corresponds to a preset task initiated by a main broadcast.
Optionally, the animation track configuration information further includes anchor point information of each live broadcast area and rotation angle information of the animation container, and playing the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area includes:
rotating an animation container used for containing the first gift animation video corresponding to the gift sending operation of each user according to the rotation angle information to obtain a rotated animation container;
taking out a first gift animation video corresponding to the gift sending operation of each user from the target animation queue;
and taking the anchor point information of the live broadcast area corresponding to the target animation queue as the playing starting position of the first gift animation video corresponding to the gift sending operation of each user, taking the playing starting position as the playing starting point, and playing the first gift animation video corresponding to the gift sending operation of each user in the live broadcast area corresponding to the target animation queue through the rotated animation container.
Optionally, the method further comprises:
and displaying a bullet screen associated with the first gift animation video corresponding to the gift sending operation of each user in the live broadcast room.
Optionally, when the determined live broadcast area includes a plurality of live broadcast areas, the playing of the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area includes:
and simultaneously playing first gift animation videos corresponding to the gift sending operations of the multiple users in the determined multiple live broadcast areas.
This application still provides a gift animation play device in live broadcast room, includes:
the response module is used for responding to the gift sending operation of at least one user in the live broadcast room and acquiring a first gift animation video corresponding to the gift sending operation of each user;
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a live broadcast area of a first gift animation video corresponding to a gift sending operation of each user in a live broadcast room, and the live broadcast room comprises a plurality of live broadcast areas;
and the playing module is used for playing the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area.
The present application further provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
This application is when playing gift animation video, through dividing into a plurality of live broadcast regions with the live broadcast room in advance to wait the first gift animation video storage of broadcast to the target animation queue in, thereby can when first gift animation video plays, follow acquire in the target animation queue first gift animation video, and broadcast in the live broadcast region that corresponds first gift animation video, thereby need not broadcast in whole live broadcast room first gift animation video, thereby the performance overhead that needs to consume when can reducing the broadcast. Simultaneously, because this application divide into a plurality of live broadcast regions with the live broadcast room, consequently, in this application, even a plurality of users trigger the operation of sending gifts simultaneously, also can play the first gift animation video that a plurality of users of sending gifts operation corresponds simultaneously in a plurality of live broadcast regions. When a plurality of first gift animation videos are played simultaneously, the first gift animation videos only occupy the whole live broadcast room, and therefore the performance pressure of the playing equipment cannot be increased by adopting the playing mode.
Drawings
Fig. 1 is an environment diagram illustrating a method for playing a gift animation in a live broadcast room according to an embodiment of the present application;
fig. 2 is a flowchart of an embodiment of a method for playing a gift animation in a live broadcast room according to the present application;
fig. 3 is a flowchart of another embodiment of a method for playing a gift animation in a live broadcast room according to the present application;
FIG. 4 is a flowchart illustrating a detailed process of storing the first gift-animation video into a target-animation queue according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a detailed process of storing the first gift animation video into the empty queue and using the empty queue as the target animation queue according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a detailed process of storing the first gift-animation video into a target-animation queue according to another embodiment of the present application;
fig. 7 is a flowchart illustrating a detailed process of the step of taking out the first gift animation video from the target animation queue and playing the first gift animation video in a live broadcast area corresponding to the target animation queue according to an embodiment of the present application;
fig. 8 is a flowchart of another embodiment of a method for playing a gift animation in a live broadcast room according to the present application;
9a-9b are diagrams illustrating playing of the first gift animated video in a live zone according to an embodiment of the present application;
fig. 10 is a block diagram of a program of an embodiment of a gift animation playback device in a live broadcast room according to the present application;
fig. 11 is a schematic hardware configuration diagram of a computer device that executes a method for playing a gift animation in a live broadcast room according to an embodiment of the present application.
Detailed Description
The advantages of the present application are further illustrated below with reference to the accompanying drawings and specific embodiments.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The 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 terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the sequence of executing the steps, but merely serve to facilitate the description of the present application and to distinguish each step, and thus should not be construed as limiting the present application.
Fig. 1 shows a schematic diagram of an application scenario provided in an embodiment of the present application, where the application scenario includes: server 10, anchor terminal 20 and viewer terminal 30. Wherein, the server 10, the anchor terminal 20 and the audience terminal 30 are located in a wireless network or a wired network, and the server 10 and the anchor terminal 20 and the audience terminal 30 can perform data interaction. In some embodiments, the number of anchor terminals 20 (only one shown in fig. 1) and the number of viewer terminals 30 (only one shown in fig. 1) may not be limited, and the viewer terminals 30 and the anchor terminals 20 may use the server 10 as a transmission medium and implement data interaction with each other through the internet.
In this embodiment, the server 10 may be an individual server, or a server cluster, or a local server, or a cloud server, and the specific server type may not be limited in this embodiment. The anchor terminal 20 and the audience terminal 30 may be mobile phones, smart phones, notebook computers, desktop computers, tablet computers, Personal Digital Assistants (PDAs), media players, smart televisions, wearable electronic devices, and the like, and specific terminal device types may not be limited in the embodiments of the present application.
In this embodiment, a live client may be installed in the anchor terminal 20, and the live client is used for implementing live video broadcast by the anchor. The live broadcast client may be a computer Application (APP) installed on the anchor terminal 20, or may be a Web client, which may refer to an Application developed based on a Web architecture.
In this embodiment, the viewer terminal 30 may be installed with a viewer client, and the viewer client is configured to enable a viewer to receive live content and display the live content. The viewer client may be a computer Application (APP) installed on the viewer terminal 30, or may be a Web client, which may refer to an Application developed based on a Web architecture.
Fig. 2 is a schematic flow chart illustrating a method for playing a gift animation in a live broadcast room according to an embodiment of the present application. The gift animation playing method in the live broadcast room can be applied to a client, such as a live broadcast APP (in an application program), and it can be understood that a flowchart in the embodiment of the method is not used for limiting the sequence of execution steps. As can be seen from the figure, the method for playing the gift animation in the live broadcast room provided in this embodiment includes:
and step S20, responding to the gift sending operation of at least one user in the live broadcast room, and acquiring a first gift animation video corresponding to the gift sending operation of each user.
Specifically, the first gift animation video is an animation video in MP4 format that is previously produced by a designer and uploaded to a server for storage. In this embodiment, each frame of video in the first gift animation video carries transparency information. Since the animation video in the MP4 format does not support the transparency information, in this embodiment, in order to realize that the video frames in the animation video support the transparency information, each frame of video frame is divided into two area frames when the animation video is generated. The first area picture is generated by a color parameter value (such as an RGB value) of each pixel point of the original animation video frame, and the second area picture is generated by a transparency parameter value (transparency value) of each pixel point of the original animation video frame.
In this embodiment, when the user watches the live video in the live broadcast room, the user may trigger the gift sending operation, and at this time, the client may respond to the gift sending operation of the user and obtain the first gift animation video corresponding to the gift sending operation from the local disk or the memory.
For example, the user's gift delivery operation in the live broadcast room: and sending a birthday balloon to the anchor, and then the client side can acquire the first gift animation video corresponding to the birthday balloon from a local disk or a memory.
It can be understood that, in order that the client may obtain the first gift animation video corresponding to the gift operation in time, the client may download the first gift animation video from the server at a specific time, for example, when the user enters a live broadcast room, so as to obtain the first gift animation video, and store the downloaded first gift animation video in the local memory. Subsequently, when the user sends the gift in the live broadcast room through the client, the first gift animation video corresponding to the gift sending operation can be obtained from the local memory in time, and then the client can render and play the first gift animation video.
It should be noted that the first gift animation video in this embodiment is a small gift animation video, that is, an animation video that can be played only by occupying a partial area of a screen of a live broadcast room when the first gift animation video is played, and the animation video is played without occupying the entire area of the screen of the live broadcast room.
In an exemplary embodiment, referring to fig. 3, in order that the user may implement a gift sending operation, the method further includes:
step S30, receiving a gift material package sent by a server, where the gift material package includes the first gift animation video and animation track configuration information corresponding to the first gift animation video, and the animation track configuration information includes live broadcast room division information.
Specifically, after the designer completes the production of the various gift animation videos, the produced various gift animation videos can be packaged into a gift material bag. Meanwhile, because the animation materials contained in the gift animation video made by the designer have relatively consistent motion rules, for example, the style of "meteor shower" generally moves from the upper right corner to the lower left corner, and for example, the style of "birthday balloon" generally moves from the bottom to the upper part. That is, when the gift animation video is produced, because the animation material has a relatively consistent motion law, when the gift animation video is produced, a full-screen gift animation video does not need to be produced, and only a thin and long region of the gift animation video needs to be produced.
When the gift animation video is made, in order to be played in a live broadcast room subsequently, a designer needs to configure the animation track of the gift animation video, and after the designer performs configuration operation on the animation track, the designer can generate animation track configuration information through the configuration operation of the designer, so that a subsequent client can complete playing of the gift animation video in the live broadcast room according to the animation track configuration information.
In an embodiment, when configuring an animation track, a designer may configure division information of a live broadcast room, where the division information of the live broadcast room is information used to determine how many equal divisions need to be performed on a screen area of the live broadcast room, for example, if the division information of the live broadcast room is 4, it indicates that the screen area of the live broadcast room needs to be divided into 4 live broadcast areas, and each live broadcast area may be used to play a gift animation video.
In an exemplary embodiment, when configuring the animation track, the designer may further configure anchor point information of each live broadcast area, where the anchor point information is a point for determining a starting position of playing the gift animation video, for example, the anchor point information is coordinates (1, 2), which indicates that when playing the gift animation video in the live broadcast area, an initial gift animation video frame is displayed with the coordinates (1, 2) as a central point.
It is understood that the coordinates of the anchor point information are determined after the coordinate system is established in the entire screen.
In an exemplary manner, when configuring the animation track, the designer may further configure the rotation angle of the animation container for accommodating the gift animation video, for example, the configured rotation angle is 45 °, which indicates that when playing the gift animation video through the animation container, the animation container needs to be selected to 45 ° first, and then the gift animation video is played in the rotated animation container.
In an exemplary embodiment, when the designer configures the animation track, the width and height of the animation container may also be configured, for example, the width and height of the animation container are W: 100, H: 500.
and step S31, dividing the live broadcast room into a plurality of live broadcast areas according to the live broadcast room dividing information.
Specifically, after the live broadcast room division information is obtained, the screen area of the entire live broadcast room may be divided into a plurality of live broadcast areas, for example, if the live broadcast room division information is 8, the screen area of the entire live broadcast room may be divided into 8 live broadcast areas.
In step S32, a plurality of gift animation queues are created, wherein the target animation queue is one of the plurality of gift animation queues.
Specifically, because there may be multiple users performing gift sending operations in the live broadcast room at the same time, and a certain time is required to be consumed when each gift animation video is played, in order that the gift sending operations of all the users can achieve the play of the gift animation videos in the corresponding live broadcast areas, multiple gift animation queues may be created to cache the gift animation videos that need to be in the respective live broadcast areas.
Step S33, associating a plurality of gift animation queues with a plurality of live broadcast areas one by one.
Specifically, in order to determine which users' gift animation videos need to be played in each live broadcast area, a gift animation queue and the live broadcast areas can be associated one by one, so that each live broadcast area has a unique corresponding gift animation queue. When the gift animation video needs to be played in the live broadcast area, the gift animation video can be obtained from the corresponding gift animation queue.
In step S21, a live area of the first gift animation video in the live broadcast room corresponding to the gift sending operation of each user is determined.
Specifically, because a plurality of live broadcast areas exist in the screen area of the live broadcast room, and each live broadcast area can play the first gift animation video corresponding to the gift sending operation of one user, in this embodiment, in order to play the first gift animation video corresponding to the gift sending operation of each user in time, when the first gift animation video corresponding to the gift sending operation of each user is obtained, the live broadcast area of the first gift animation video corresponding to the gift sending operation of each user in the live broadcast room may be determined according to a preset rule, so that the first gift animation video corresponding to the gift sending operation of each user may be played in different live broadcast areas at the same time as much as possible. The preset rule will be described in detail in the following embodiments, and is not described in detail in this embodiment.
In an exemplary embodiment, determining a live area of a first gift animation video corresponding to the gift sending operation of each user in a live broadcast room may include: storing a first gift animation video corresponding to the gift sending operation of each user into a target animation queue; and taking the live broadcast area associated with the target animation queue as a live broadcast area of the first gift animation video corresponding to the gift sending operation of each user in a live broadcast room.
Specifically, the first gift animation video corresponding to the gift sending operation of each user may be stored in a target animation queue first. Because each target animation queue is associated with a corresponding live broadcast area in advance, when the target animation queue of the first gift animation video corresponding to the gift sending operation of the user is obtained, the fact that which live broadcast area needs to be adopted to play the first gift animation video corresponding to the gift sending operation of the user can be known.
It should be noted that the queues for storing the gift animation videos obtained based on the gift sending operations of different users may be the same or different, and the specific queue in which the gift animation videos are stored is determined according to a preset storage policy.
As an example, the first gift animation video acquired based on the gift sending operation of the user a may be stored in the queue a, and the first gift animation video acquired based on the gift sending operation of the user B may be stored in the queue B.
In an exemplary embodiment, referring to fig. 4, the storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue includes:
in step S40, it is detected whether there is an empty queue in the gift animation queues.
Specifically, the empty queue refers to a queue that does not store a gift animation video at the present time.
Step S41, if there is an empty queue, storing the first gift animation video corresponding to the gift sending operation of each user into the empty queue, and taking the empty queue as the target animation queue.
Specifically, when it is detected that an empty queue exists in the plurality of animated gift queues, the first gift animated video corresponding to the gift sending operation of each user may be stored in the empty queue, so that the first gift animated video corresponding to the gift sending operation of each user may be played in time.
In an exemplary embodiment, when there is more than one empty queue detected, that is, there are multiple empty queues, referring to fig. 5, the storing the first gift animation video corresponding to the gift sending operation of each user into the empty queue and using the empty queue as the target animation queue includes: step S50, randomly selecting an empty queue from a plurality of empty queues as the target animation queue; step S51, storing the first gift animation video corresponding to each user' S gift sending operation into the target animation queue.
Specifically, when a plurality of empty queues are detected, one queue may be randomly selected from the plurality of empty queues as the target animation queue, and then the first gift animation video corresponding to the gift sending operation of each user is stored in the target animation queue.
As an example, assuming that the gift animation queue 1, the gift animation queue 3, and the gift animation queue 4 are detected to be empty queues, one queue may be randomly selected from the 3 queues as a target animation queue for storing the first gift animation video corresponding to the present operation of each user.
It will be appreciated that in one embodiment, when an empty queue is detected, the detected queue may be immediately used as the target animation queue without detecting any more remaining gift animation queues.
In this embodiment, after the storage of the first gift animation video corresponding to the gift sending operation of the first user is completed, the storage of the first gift animation video corresponding to the gift sending operation of the other users may be continued until the storage of the first gift animation video corresponding to the gift sending operation of all the users is completed.
It is understood that the first gift animation video corresponding to the gift sending operations of a plurality of users can also be stored at the same time.
In an exemplary embodiment, referring to fig. 6, the storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue further includes: step S60, if there is no empty queue, acquiring the number of first gift animation videos stored in each gift animation queue; step S61, selecting a gift animation queue storing the least number of first gift animation videos as the target animation queue, and storing the first gift animation video corresponding to the gift sending operation of each user in the target animation queue.
Specifically, when it is detected that there is no empty queue, that is, all gift animation queues store animation videos, the first gift animation video may be played in time, and a queue with the minimum number of stored first gift animation videos may be selected from all gift animation queues as the target animation queue.
As an example, assuming that there are 5 total gift animation queues, namely, a gift animation queue 1, a gift animation queue 2, a gift animation queue 3, a gift animation queue 4, and a gift animation queue 5, and the 5 gift animation queues store 2, 5, 3, 1, and 4 first gift animation videos, respectively, the gift animation queue 4 storing one first gift animation video may be selected as the target animation queue.
And step S22, playing a first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area, wherein the live broadcast room comprises a plurality of live broadcast areas.
Specifically, when a plurality of determined live broadcast areas are provided, the first gift animation video corresponding to the gift sending operation of each user can be played in the plurality of live broadcast areas at the same time.
In this embodiment, after the first gift animation video obtained based on the gift sending operation of another user and stored in the target animation queue is played, the first gift animation video obtained based on the gift sending operation of the current user may be taken out from the target animation queue, and the first gift animation video is played in the live broadcast area corresponding to the target animation queue.
In an exemplary embodiment, when the determined live broadcast area includes a plurality of live broadcast areas, the playing of the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area includes: and simultaneously playing first gift animation videos corresponding to the gift sending operations of the multiple users in the determined multiple live broadcast areas.
In this embodiment, the performance overhead required to be consumed during playing can be reduced by simultaneously playing the first gift animation video corresponding to the gift sending operation of the multiple users in the multiple live broadcast areas.
It should be noted that, in this embodiment, when playing the first gift animation video, because each frame of video frame in the first gift animation video does not directly carry transparency information, in an actual playing process, texture sampling needs to be performed on a first region (a region generated by a color parameter value of a target animation frame) and a second region (a region generated by a transparency parameter value of the target animation frame) in each frame of video frame, respectively, to obtain a color parameter value (for example, an RGB value) and a transparency parameter value (an a value) of the target animation frame, and then a GPU may be invoked to combine the sampled color parameter value and transparency parameter value into the target animation frame with transparency information through a graphics API.
In a specific scenario, a schematic diagram of playing the first gift animation video in a live zone is shown in fig. 9a or 9 b.
This embodiment is when playing gift animation video, through dividing into a plurality of live broadcast regions with the live broadcast room in advance to in will waiting the first gift animation video storage of broadcast to the target animation queue, thereby can first gift animation video when playing, follow acquire in the target animation queue first gift animation video, and play in the live broadcast region that corresponds first gift animation video, thereby need not to play in whole live broadcast room first gift animation video, thereby the performance cost that needs to consume when can reducing the broadcast. Simultaneously, because this application divide into a plurality of live broadcast regions with the live broadcast room, consequently, in this application, even a plurality of users trigger the operation of sending gifts simultaneously, also can play the first gift animation video that a plurality of users of sending gifts operation corresponds simultaneously in a plurality of live broadcast regions. And when a plurality of first gift animation videos broadcast simultaneously, only occupy whole live broadcast room, so adopt this kind of playback devices's performance pressure that also can not increase.
In an exemplary embodiment, in order to increase the diversity of the user's gift sending operation playing methods, the designer may also make at least one second gift animation video while making the first gift animation video. In this embodiment, the second gift animation video is a big gift animation video, that is, an animation video that needs to occupy the whole area of the screen of the live broadcast room to be played when the second gift animation video is played.
It should be noted that the plurality of second gift-animation videos in the present embodiment are different kinds of videos. In addition, in order to improve the diversity of the gift-sending operation playing methods, after at least one second gift animation video is produced, a corresponding playing condition can be configured for each second gift animation video, wherein the playing condition is used for describing the situation under which each second gift animation video is played.
In this embodiment, after the second gift animation video is produced and the playing condition is generated, the second gift animation video and the first gift animation video can be packaged together and stored in the gift material package.
In an exemplary embodiment, when the animation track configuration information further includes anchor point information of each live broadcast area and rotation angle information of an animation container, referring to fig. 7, playing a first gift animation video corresponding to a gift sending operation of each user in a certain live broadcast area may include: and step S70, rotating the animation container for accommodating the first gift animation video corresponding to the gift sending operation of each user according to the rotation angle information, to obtain a rotated animation container.
Specifically, the motion trail of the animation picture in the gift animation video may be moving at an oblique angle, for example, the motion trail of the meteor rain animation video moves from the upper right corner to the lower left corner of the screen, however, when a designer designs an animation video frame, it is impossible to design a video frame picture at an oblique angle, and therefore, in order to achieve the meteor rain effect during the playing process, the animation container for accommodating the first gift animation video needs to be rotated according to the preset rotation angle information, so that the rotated animation container is obtained.
Step S71, taking out the first gift animation video corresponding to the gift sending operation of each user from the target animation queue;
step S72, using the anchor point information of the live broadcast area corresponding to the target animation queue as the playing start position of the first gift animation video corresponding to the gift sending operation of each user, and playing the first gift animation video corresponding to the gift sending operation of each user in the live broadcast area corresponding to the target animation queue through the rotated animation container with the playing start position as the playing start point.
Specifically, when the first gift animation video is obtained, the anchor point information may be used as a play start position of the first gift animation video, and the play start position is used as a play start point, and the first gift animation video is played in the live broadcast area corresponding to the target animation queue through the rotated animation container, so that an effect that a picture appears suddenly in a process of playing the first gift animation video may be avoided.
In an exemplary embodiment, referring to fig. 8, the method further comprises:
step S80, detecting whether the gift sending operation satisfies a preset condition, where the preset condition is any one of the playing conditions corresponding to the second gift animation videos.
Specifically, after the user triggers a gift sending operation in the live broadcast room, whether the gift sending operation of the current user meets the preset condition is detected, so that whether a first gift animation video acquired based on the gift sending operation of the user needs to be paused to be played in the live broadcast room is determined.
And the playing conditions corresponding to the second gift animation videos can be flexibly set and modified according to actual conditions. For example, the playing condition corresponding to the first second gift animation video a may be set to that the anchor receives 20 gift balloons sent by the user; setting the playing condition corresponding to the second gift animation video b as that the anchor receives 50 gift balloons sent by the user; the third second gift animation video c is played under the condition that the host receives 100 gift balloons sent by the user.
In this embodiment, whether the gift sending operation meets the preset condition may be determined by detecting whether the number of times corresponding to the gift sending operation of the current user reaches the playing condition corresponding to each second gift animation video. Taking the above playing condition as an example, if the number of times corresponding to the present gift sending operation of the current user is 19, it indicates that there are 18 other users that give gifts to the main broadcast before the present gift sending operation of the user. Since the gift sending times corresponding to the gift sending operation of the current user are 19 and less than the minimum gift sending times 20, it can be determined that the gift sending operation does not meet the preset condition.
Step S81, if the gift sending operation satisfies the preset condition, setting the gift animation queues to be in a blocking state.
Specifically, if it is detected that the present gift sending operation of the current user satisfies the preset condition, the plurality of gift animation queues may be set to the blocking state, so that the first gift animation video cannot be obtained from the gift animation queues any more to be played, and the purpose of pausing the playing of the first gift animation video in the live broadcast room may be achieved.
In an exemplary embodiment, when the gift sending operation does not meet the preset condition, a progress bar may be displayed in a live broadcast room, where the progress bar is used for showing that a total number of users trigger the gift sending operation.
In step S82, a second gift animation video matching the preset condition is obtained from the gift material package.
Specifically, for example, when the gift sending operation is detected to be just the 20 th gift sending operation, the second gift animation video a may be obtained from the gift material package. When the gift sending operation is detected to be exactly 100 gift sending operations, a second gift animation video b can be obtained from the gift material bag, and when the gift sending operation is detected to be exactly 100 gift sending operations, a second gift animation video c can be obtained from the gift material bag.
Step S83, playing the second gift animation video in the live broadcast room, and releasing the blocking status of the gift animation queues when the second gift animation video is played.
Specifically, after the second gift animation video is played in the live broadcast room, the blocking states of the gift animation queues can be released, so that the playing of the first gift animation videos in the live broadcast areas of the live broadcast room can be resumed.
Wherein the blocking state refers to a state in which the gift animation video cannot be acquired from the gift animation queue.
In an embodiment, after the plurality of gift animation queues are set to be in the blocking state, the first gift animation video which is being played may still exist in the live broadcast room, and at this time, in order to avoid poor user experience caused by immediately playing the second gift animation video, the second gift animation video may not be played immediately, but a countdown animation is played first, and after the countdown animation is played, the second gift animation video is played again.
In an exemplary embodiment, to further improve the diversity of gift sending operations performed by the user in the live broadcast room, the receiving server sends a gift material package including:
and receiving a gift material packet which is sent by the server and corresponds to a preset task initiated by a main broadcast.
Specifically, after entering the anchor room, the anchor can request the server to acquire a plurality of preset tasks that can be selected by the anchor, and after receiving a request triggered by the anchor, the server can send information of the plurality of preset tasks to an anchor terminal used by the anchor, so that the anchor can know which preset tasks are specifically provided.
After the anchor acquires the information of various preset tasks, one preset task can be selected, and after the anchor selects one preset task, the server can send the gift material package corresponding to the preset task selected by the anchor to each client corresponding to the user in the current live broadcast room, so that each client can acquire the gift material package corresponding to the preset task.
The preset task is an interaction mode of the crowd funding gifts of the users, and refers to that the crowd funding gifts are given to the anchor by a plurality of users together, and when the number of the crowd funding gifts given by the users reaches a preset condition, a corresponding second gift animation video can be played.
As an example, the preset tasks may include birthday balloon play, meteor and shower play, cherry blossom play, Kongming lantern play, and the like. The birthday balloon playing method is that a user in a live broadcast room can give a birthday balloon to a main broadcast by triggering gift sending operation, and when the crowd funding progress of the user reaches a corresponding progress, for example 19/39/59 times, a second gift animation video corresponding to the progress can be played in the live broadcast room. The crowd funding progress means that a plurality of users give birthday balloons to a main broadcasting system by triggering gift sending operation till the current time.
In an exemplary embodiment, the method further comprises:
and displaying a bullet screen associated with the first gift animation video corresponding to the gift sending operation of each user in the live broadcast room.
Specifically, a corresponding barrage may be configured for each type of first gift animation in advance, so that the barrage may be displayed in the live broadcast room synchronously during the process of playing the first gift animation video in the live broadcast room.
As an example, a barrage may be configured for the first gift animation video of a birthday balloon, "personally prick a balloon," for the first gift animation video of a meteor shower, "deliberately summon a meteor shower stroke," etc.
Fig. 10 is a block diagram of a program of an embodiment of a gift animation playback device 100 in a live broadcast room according to the present application.
In this embodiment, the gift animation playback device 100 in the live broadcast room includes a series of computer program instructions stored in a memory, and when the computer program instructions are executed by a processor, the gift animation playback function in the live broadcast room in the embodiments of the present application can be implemented. In some embodiments, based on the specific operations implemented by the computer program instructions, the gift animation playback apparatus 100 in the live broadcast room may be divided into one or more modules, which may be specifically divided as follows:
the response module 101 is configured to respond to a gift sending operation of at least one user in a live broadcast room, and obtain a first gift animation video corresponding to the gift sending operation of each user;
a determining module 102, configured to determine a live broadcast area of a first gift animation video in a live broadcast room, where the live broadcast room includes multiple live broadcast areas, where the live broadcast area corresponds to a gift sending operation of each user;
and the playing module 103 is configured to play the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area.
In an exemplary embodiment, the determining module 102 is further configured to store the first gift animation video corresponding to the gift sending operation of each user into the target animation queue; and taking the live broadcast area associated with the target animation queue as a live broadcast area of the first gift animation video corresponding to the gift sending operation of each user in a live broadcast room.
In an exemplary embodiment, the gift animation playing apparatus 100 in the live broadcast room further includes a receiving module, a dividing module, a creating module, and an associating module.
The receiving module is used for receiving a gift material package sent by a server, the gift material package comprises the first gift animation video and animation track configuration information corresponding to the first gift animation video, and the animation track configuration information comprises live broadcast room division information;
the dividing module is used for dividing the live broadcast room into a plurality of live broadcast areas according to the live broadcast room dividing information;
the creating module is used for creating a plurality of gift animation queues, wherein the target animation queue is one of the gift animation queues;
and the association module is used for associating the gift animation queues with the live broadcast areas one by one.
In an exemplary embodiment, the determining module 102 is further configured to detect whether there is an empty queue in the plurality of gift animation queues; and if the empty queue exists, storing the first gift animation video corresponding to the gift sending operation of each user into the empty queue, and taking the empty queue as the target animation queue.
In an exemplary embodiment, there are a plurality of empty queues, and the determining module 102 is further configured to randomly select one empty queue from the plurality of empty queues as the target animation queue; and storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue.
In an exemplary embodiment, the determining module 102 is further configured to, if there is no empty queue, obtain the number of first gift animation videos stored in each gift animation queue;
selecting a gift animation queue storing the least number of first gift animation videos as the target animation queue, and storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue.
In an exemplary embodiment, the gift material package further includes at least one second gift animation video and a playing condition corresponding to each second gift animation video, and the gift animation playing apparatus 100 in the live broadcast room further includes a detection module, a setting module, an obtaining module and a releasing module.
The detection module is used for detecting whether the gift sending operation meets a preset condition, wherein the preset condition is any one playing condition in playing conditions corresponding to the second gift animation videos;
the setting module is used for setting the gift animation queues into a blocking state if the gift sending operation meets the preset condition;
the obtaining module is used for obtaining a second gift animation video matched with the preset condition from the gift material package;
and the releasing module is used for playing the second gift animation video in the live broadcast room, and releasing the blocking states of the gift animation queues after the second gift animation video is played.
In an exemplary embodiment, the receiving module is further configured to receive a gift material package corresponding to a preset task initiated by a main broadcast and sent by the server.
In an exemplary embodiment, the animation track configuration information further includes anchor point information of each live broadcast area and rotation angle information of an animation container, and the playing module 103 is further configured to rotate, according to the rotation angle information, the animation container for accommodating the first gift animation video corresponding to the gift sending operation of each user, so as to obtain a rotated animation container; taking out a first gift animation video corresponding to the gift sending operation of each user from the target animation queue; and taking the anchor point information of the live broadcast area corresponding to the target animation queue as the playing starting position of the first gift animation video corresponding to the gift sending operation of each user, taking the playing starting position as the playing starting point, and playing the first gift animation video corresponding to the gift sending operation of each user in the live broadcast area corresponding to the target animation queue through the rotated animation container.
In an exemplary embodiment, the gift animation playback apparatus 100 in the live broadcast room further includes a display module.
And the display module is used for displaying the barrage associated with the first gift animation video corresponding to the gift sending operation of each user in the live broadcast room.
In an exemplary embodiment, when the determined live broadcast area includes a plurality of live broadcast areas, the playing module 103 is further configured to simultaneously play the first gift animation video corresponding to the gift sending operation of the plurality of users in the determined plurality of live broadcast areas.
This embodiment is when playing gift animation video, through dividing into a plurality of live broadcast regions with the live broadcast room in advance to in will waiting the first gift animation video storage of broadcast to the target animation queue, thereby can first gift animation video when playing, follow acquire in the target animation queue first gift animation video, and play in the live broadcast region that corresponds first gift animation video, thereby need not to play in whole live broadcast room first gift animation video, thereby the performance cost that needs to consume when can reducing the broadcast. Simultaneously, because this application divide into a plurality of live broadcast regions with the live broadcast room, consequently, in this application, can broadcast a plurality of users simultaneously and send gift animation videos that the gift operation corresponds in a plurality of live broadcast regions, because when a plurality of first gift animation videos broadcast simultaneously, only occupy whole live broadcast room, so adopt this kind of playback mode can not increase playback devices' performance pressure yet.
Fig. 11 schematically shows a hardware architecture diagram of a computer device 11 suitable for implementing a gift animation playing method in a live broadcast room according to an embodiment of the present application. In the present embodiment, the computer device 11 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. For example, the server may be a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers). As shown in fig. 11, the computer device 11 includes at least, but is not limited to: the memory 120, processor 121, and network interface 122 may be communicatively linked to each other by a system bus. Wherein:
the memory 120 includes at least one type of computer-readable storage medium, which may be volatile or non-volatile, and particularly, includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 120 may be an internal storage module of the computer device 11, such as a hard disk or a memory of the computer device 11. In other embodiments, the memory 120 may also be an external storage device of the computer device 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 11. Of course, the memory 120 may also include both internal and external memory modules of the computer device 11. In this embodiment, the memory 120 is generally used for storing an operating system and various types of application software installed on the computer device 11, such as program codes of a gift animation playing method in a live broadcast room. In addition, the memory 120 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 121 may be, in some embodiments, a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other gift animation playback chip in a live room. The processor 121 is generally used for controlling the overall operation of the computer device 11, such as performing control and processing related to data interaction or communication with the computer device 11. In this embodiment, the processor 121 is configured to execute the program code stored in the memory 120 or process data.
Network interface 122 may comprise a wireless network interface or a wired network interface, with network interface 122 typically being used to establish communication links between computer device 11 and other computer devices. For example, the network interface 122 is used to connect the computer device 11 with an external terminal via a network, establish a data transmission channel and a communication link between the computer device 11 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), or Wi-Fi.
It is noted that FIG. 11 only shows a computer device having components 120-122, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the method for playing the gift animation stored in the live broadcast room in the memory 120 may be divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 121) to complete the present application.
The embodiment of the application provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the gift animation playing method in the live broadcast room in the embodiment.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various types of application software installed in the computer device, for example, program codes of a gift animation playing method in a live broadcast room in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on at least two network units. Some or all of the modules can be screened out according to actual needs to achieve the purpose of the scheme of the embodiment of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (14)

1. A gift animation playing method in a live broadcast room is characterized by comprising the following steps:
responding to the gift sending operation of at least one user in a live broadcast room, and acquiring a first gift animation video corresponding to the gift sending operation of each user;
determining live broadcast areas of first gift animation videos corresponding to gift sending operations of users in a live broadcast room, wherein the live broadcast room comprises a plurality of live broadcast areas;
and playing a first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area.
2. The method of claim 1, wherein determining a live area of a first gift animation video in the live broadcast corresponding to a gift sending operation of each user comprises:
storing a first gift animation video corresponding to the gift sending operation of each user into a target animation queue;
and taking the live broadcast area associated with the target animation queue as a live broadcast area of the first gift animation video corresponding to the gift sending operation of each user in a live broadcast room.
3. A method of playing a gift animation in a live broadcast room of claim 2, wherein the method further comprises:
receiving a gift material package sent by a server, wherein the gift material package comprises the first gift animation video and animation track configuration information corresponding to the first gift animation video, and the animation track configuration information comprises live broadcast room division information;
dividing the live broadcast room into a plurality of live broadcast areas according to the live broadcast room dividing information;
creating a plurality of gift animation queues, wherein the target animation queue is one of the plurality of gift animation queues;
and associating a plurality of gift animation queues with a plurality of live broadcast areas one by one.
4. The method of claim 3, wherein storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue comprises:
detecting whether an empty queue exists in a plurality of gift animation queues;
and if the empty queue exists, storing the first gift animation video corresponding to the gift sending operation of each user into the empty queue, and taking the empty queue as the target animation queue.
5. The method for playing gift animation in a live broadcast room of claim 4, wherein a plurality of empty queues exist, the storing a first gift animation video corresponding to the gift sending operation of each user into the empty queues, and the taking the empty queues as the target animation queues comprises:
randomly selecting an empty queue from a plurality of empty queues as the target animation queue;
and storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue.
6. The method of claim 4, wherein storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue further comprises:
if no empty queue exists, acquiring the number of the first gift animation videos stored in each gift animation queue;
selecting a gift animation queue storing the least number of first gift animation videos as the target animation queue, and storing the first gift animation video corresponding to the gift sending operation of each user into the target animation queue.
7. A method of playing a gift animation in a live broadcast room according to any one of claims 3 to 6, wherein the gift material package further includes at least one second gift animation video, and a playing condition corresponding to each of the second gift animation videos, the method further comprising:
detecting whether the gift sending operation meets a preset condition, wherein the preset condition is any one of playing conditions corresponding to the second gift animation videos;
if the gift sending operation meets the preset condition, setting a plurality of gift animation queues to be in a blocking state;
acquiring a second gift animation video matched with the preset condition from the gift material package;
and playing the second gift animation video in the live broadcast room, and releasing the blocking state of the gift animation queues after the second gift animation video is played.
8. The method as claimed in claim 7, wherein the receiving of the gift material package from the server includes:
and receiving a gift material packet which is sent by the server and corresponds to a preset task initiated by a main broadcast.
9. The method of claim 3, wherein the animation track configuration information further includes anchor point information of each live broadcast area and rotation angle information of an animation container, and playing the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area includes:
rotating an animation container used for containing the first gift animation video corresponding to the gift sending operation of each user according to the rotation angle information to obtain a rotated animation container;
taking out a first gift animation video corresponding to the gift sending operation of each user from the target animation queue;
and taking the anchor point information of the live broadcast area corresponding to the target animation queue as the playing starting position of the first gift animation video corresponding to the gift sending operation of each user, taking the playing starting position as the playing starting point, and playing the first gift animation video corresponding to the gift sending operation of each user in the live broadcast area corresponding to the target animation queue through the rotated animation container.
10. A method of playing a gift animation in a live broadcast room of claim 1, wherein the method further comprises:
and displaying a bullet screen associated with the first gift animation video corresponding to the gift sending operation of each user in the live broadcast room.
11. The method for playing the gift animation in the live broadcast room according to claim 1, wherein when the determined live broadcast area comprises a plurality of live broadcast areas, the playing the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area comprises:
and simultaneously playing first gift animation videos corresponding to the gift sending operations of the multiple users in the determined multiple live broadcast areas.
12. A gift animation play device in a live broadcast room is characterized by comprising:
the response module is used for responding to the gift sending operation of at least one user in the live broadcast room and acquiring a first gift animation video corresponding to the gift sending operation of each user;
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a live broadcast area of a first gift animation video corresponding to the gift sending operation of each user in a live broadcast room, and the live broadcast room comprises a plurality of live broadcast areas;
and the playing module is used for playing the first gift animation video corresponding to the gift sending operation of each user in the determined live broadcast area.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 11 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 11.
CN202210112105.0A 2022-01-29 2022-01-29 Gift animation playing method and device in live broadcast room Pending CN114449305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210112105.0A CN114449305A (en) 2022-01-29 2022-01-29 Gift animation playing method and device in live broadcast room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210112105.0A CN114449305A (en) 2022-01-29 2022-01-29 Gift animation playing method and device in live broadcast room

Publications (1)

Publication Number Publication Date
CN114449305A true CN114449305A (en) 2022-05-06

Family

ID=81370992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210112105.0A Pending CN114449305A (en) 2022-01-29 2022-01-29 Gift animation playing method and device in live broadcast room

Country Status (1)

Country Link
CN (1) CN114449305A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297340A (en) * 2022-09-27 2022-11-04 北京达佳互联信息技术有限公司 Virtual space interaction method and device, electronic equipment, server and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993233A (en) * 2017-03-01 2017-07-28 武汉斗鱼网络科技有限公司 Information processing method and device based on net cast
CN107277632A (en) * 2017-05-12 2017-10-20 武汉斗鱼网络科技有限公司 A kind of method and apparatus for showing virtual present animation
CN108391153A (en) * 2018-01-29 2018-08-10 北京潘达互娱科技有限公司 Virtual present display methods, device and electronic equipment
CN110475150A (en) * 2019-09-11 2019-11-19 广州华多网络科技有限公司 The rendering method and device of virtual present special efficacy, live broadcast system
CN111182343A (en) * 2019-12-09 2020-05-19 腾讯科技(深圳)有限公司 Method and apparatus for playing animation material, storage medium, and electronic apparatus
CN111246232A (en) * 2020-01-17 2020-06-05 广州华多网络科技有限公司 Live broadcast interaction method and device, electronic equipment and storage medium
CN112565806A (en) * 2020-12-02 2021-03-26 广州繁星互娱信息科技有限公司 Virtual gift presenting method, device, computer equipment and medium
CN112770128A (en) * 2020-12-31 2021-05-07 百果园技术(新加坡)有限公司 Playing system, method and device of live gift and server
CN113055701A (en) * 2021-04-21 2021-06-29 上海哔哩哔哩科技有限公司 Data processing method and device
CN113196785A (en) * 2021-03-15 2021-07-30 百果园技术(新加坡)有限公司 Live video interaction method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993233A (en) * 2017-03-01 2017-07-28 武汉斗鱼网络科技有限公司 Information processing method and device based on net cast
CN107277632A (en) * 2017-05-12 2017-10-20 武汉斗鱼网络科技有限公司 A kind of method and apparatus for showing virtual present animation
CN108391153A (en) * 2018-01-29 2018-08-10 北京潘达互娱科技有限公司 Virtual present display methods, device and electronic equipment
CN110475150A (en) * 2019-09-11 2019-11-19 广州华多网络科技有限公司 The rendering method and device of virtual present special efficacy, live broadcast system
CN111182343A (en) * 2019-12-09 2020-05-19 腾讯科技(深圳)有限公司 Method and apparatus for playing animation material, storage medium, and electronic apparatus
CN111246232A (en) * 2020-01-17 2020-06-05 广州华多网络科技有限公司 Live broadcast interaction method and device, electronic equipment and storage medium
CN112565806A (en) * 2020-12-02 2021-03-26 广州繁星互娱信息科技有限公司 Virtual gift presenting method, device, computer equipment and medium
CN112770128A (en) * 2020-12-31 2021-05-07 百果园技术(新加坡)有限公司 Playing system, method and device of live gift and server
CN113196785A (en) * 2021-03-15 2021-07-30 百果园技术(新加坡)有限公司 Live video interaction method, device, equipment and storage medium
CN113055701A (en) * 2021-04-21 2021-06-29 上海哔哩哔哩科技有限公司 Data processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297340A (en) * 2022-09-27 2022-11-04 北京达佳互联信息技术有限公司 Virtual space interaction method and device, electronic equipment, server and storage medium

Similar Documents

Publication Publication Date Title
US10271104B2 (en) Video play-based information processing method and system, client terminal and server
US10792566B1 (en) System for streaming content within a game application environment
US20190158934A1 (en) Video frame capturing method and device
CN110599396B (en) Information processing method and device
CN111966311B (en) Display setting method and device for cloud game, readable storage medium and equipment
CN110933482B (en) Video loading method and device, computer readable storage medium and computer equipment
US20230011255A1 (en) Method and apparatus for implementing multi-person video live-streaming service, and computer device
JP6882992B2 (en) How and devices to preview moving images, and how and devices to display representation packages
US10652591B2 (en) System for cloud streaming service, method for same using still-image compression technique and apparatus therefor
CN109309842B (en) Live broadcast data processing method and device, computer equipment and storage medium
CN113709554A (en) Animation video generation method and device, and animation video playing method and device in live broadcast room
US20180373736A1 (en) Method and apparatus for storing resource and electronic device
US11651560B2 (en) Method and device of displaying comment information, and mobile terminal
CN110750664A (en) Picture display method and device
CN114598937B (en) Animation video generation and playing method and device
CN114449305A (en) Gift animation playing method and device in live broadcast room
US20180070093A1 (en) Display apparatus and control method thereof
CN110019866B (en) Dynamic picture playing method, device and storage medium
CN113873316A (en) Live broadcast room video playing method and device
KR101984825B1 (en) Method and Apparatus for Encoding a Cloud Display Screen by Using API Information
US8648870B1 (en) Method and apparatus for performing frame buffer rendering of rich internet content on display devices
CN111866403B (en) Video graphic content processing method, device, equipment and medium
CN114363697A (en) Video file generation and playing method and device
CN114063958A (en) Page split-screen display method and device
CN108235144B (en) Playing content obtaining method and device and computing equipment

Legal Events

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