Method, device, equipment and storage medium for displaying virtual articles in live broadcast room

文档序号:1415848 发布日期:2020-03-10 浏览:6次 中文

阅读说明:本技术 一种直播间虚拟物品的显示方法、装置、设备及存储介质 (Method, device, equipment and storage medium for displaying virtual articles in live broadcast room ) 是由 雷露 于 2018-08-31 设计创作,主要内容包括:本发明实施例公开了一种直播间虚拟物品的显示方法、装置、设备及存储介质。该方法包括:服务器接收虚拟物品显示请求,虚拟物品显示请求包括:虚拟物品类型、虚拟物品显示形式以及与虚拟物品匹配的直播间标识;服务器根据虚拟物品类型以及虚拟物品显示形式,构造虚拟物品显示指令;服务器将虚拟物品显示指令发送至与直播间标识匹配的主播客户端以及至少一个观众客户端,虚拟物品显示指令用于指示接收到的客户端构造对应的虚拟物品显示动画进行显示,通过本发明的技术方案,能够避免出现因为进行复杂的逻辑判断而造成逻辑上的错误的情况。(The embodiment of the invention discloses a method, a device, equipment and a storage medium for displaying virtual articles in a live broadcast room. The method comprises the following steps: the server receives a virtual item display request, the virtual item display request comprising: the virtual article type, the virtual article display form and the live broadcast room identification matched with the virtual article; the server constructs a virtual article display instruction according to the type and the display form of the virtual article; the server sends the virtual article display instruction to the anchor client matched with the live broadcast room identifier and the at least one audience client, wherein the virtual article display instruction is used for indicating the received client to construct the corresponding virtual article display animation for displaying.)

1. A method for displaying virtual articles in a live broadcast room is characterized by comprising the following steps:

the server receives a virtual item display request, the virtual item display request comprising: the method comprises the following steps of (1) identifying a virtual article type, a virtual article display form and a live broadcast room matched with the virtual article;

the server constructs a virtual article display instruction according to the type of the virtual article and the display form of the virtual article;

and the server sends the virtual article display instruction to a main broadcasting client matched with the live broadcasting room identifier and at least one audience client, wherein the virtual article display instruction is used for indicating the received client to construct a corresponding virtual article display animation for display.

2. The method of claim 1, wherein the virtual item display form comprises: at least one of barrage flowing water, main gift, guest gift and banner special effect.

3. The method of claim 1, wherein the virtual item display request further comprises: sending a client identifier of the virtual article display request;

correspondingly, the server constructs a virtual article display instruction according to the type of the virtual article and the display form of the virtual article, and comprises the following steps:

and the server constructs a virtual article display instruction according to the type of the virtual article, the display form of the virtual article and the client identifier for sending the virtual article display request.

4. A method for displaying virtual articles in a live broadcast room is characterized by comprising the following steps:

a client receives a virtual article display instruction sent by a server, wherein the virtual article display instruction is constructed by the server according to a virtual article type and a virtual article display form included in a received virtual article display request;

if the client determines that the virtual article display condition is met, constructing a virtual article display animation corresponding to the virtual article display instruction;

and the client displays the virtual article display animation.

5. The method of claim 4, wherein the virtual item display instructions sent by the server comprise: sending a client identifier of the virtual article display request;

correspondingly, the client constructing the virtual article display animation corresponding to the virtual article display instruction comprises:

the client judges whether the virtual article display form is a main gift, if so, whether the current client is the client sending the virtual article display request is judged according to the client identification sending the virtual article display request;

and if so, the client constructs a virtual article display animation corresponding to the virtual article display instruction.

6. The method of claim 4, wherein the virtual item display instructions sent by the server comprise: sending a client identifier of the virtual article display request;

correspondingly, the client constructing the virtual article display animation corresponding to the virtual article display instruction comprises:

the client judges whether the virtual article display form is a guest gift, if so, whether the current client is the client sending the virtual article display request is judged according to the client identification sending the virtual article display request;

and if not, the client constructs a virtual article display animation corresponding to the virtual article display instruction.

7. A display device for a live room virtual item, comprising: a server, the server comprising:

a request receiving module, configured to receive a virtual item display request, where the virtual item display request includes: the method comprises the following steps of (1) identifying a virtual article type, a virtual article display form and a live broadcast room matched with the virtual article;

the instruction construction module is used for constructing a virtual article display instruction according to the type of the virtual article and the display form of the virtual article;

and the sending module is used for sending the virtual article display instruction to the anchor client matched with the live broadcast room identifier and at least one audience client, wherein the virtual article display instruction is used for indicating the received client to construct a corresponding virtual article display animation for display.

8. A display device for a live room virtual item, comprising: a client, the client comprising:

the virtual article display system comprises an instruction receiving module, a virtual article display module and a display module, wherein the instruction receiving module is used for receiving a virtual article display instruction sent by a server, and the virtual article display instruction is constructed by the server according to a virtual article type and a virtual article display form included in a received virtual article display request;

the animation construction module is used for constructing a virtual article display animation corresponding to the virtual article display instruction if the virtual article display condition is determined to be met;

and the display module is used for displaying the virtual article display animation.

9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-6 when executing the program.

10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.

Technical Field

The embodiment of the invention relates to an intelligent terminal technology, in particular to a method, a device, equipment and a storage medium for displaying virtual articles in a live broadcast room.

Background

Aiming at a live broadcast platform, the interaction between a main broadcast and audiences is vital, under the common condition, the interaction between the main broadcast and the audiences is realized through gifts, different experiences can be brought to the audiences and the main broadcast by the display forms of virtual objects in different live broadcast rooms, the interest of the audiences in watching live broadcasts is increased, and the live broadcast experience of the main broadcast is increased.

The inventor finds that a spectator end sends a gift request to a live broadcast platform, the live broadcast platform respectively configures special effect types for a spectator client and a main broadcast client according to the gift request sent by the spectator client, the spectator client and the main broadcast client perform corresponding special effect display according to the special effect types configured by the live broadcast platform, and as most of work is carried out by the live broadcast platform for judgment and analysis, the situation of logical errors caused by complex logical judgment often occurs.

Disclosure of Invention

The embodiment of the invention provides a method, a device, equipment and a storage medium for displaying virtual articles in a live broadcast room, which are used for avoiding the situation of logical errors caused by complex logical judgment.

In a first aspect, an embodiment of the present invention provides a method for displaying a virtual item in a live broadcast room, including:

the server receives a virtual item display request, the virtual item display request comprising: the method comprises the following steps of (1) identifying a virtual article type, a virtual article display form and a live broadcast room matched with the virtual article;

the server constructs a virtual article display instruction according to the type of the virtual article and the display form of the virtual article;

and the server sends the virtual article display instruction to a main broadcasting client matched with the live broadcasting room identifier and at least one audience client, wherein the virtual article display instruction is used for indicating the received client to construct a corresponding virtual article display animation for display.

Further, the virtual article display form comprises: at least one of barrage flowing water, main gift, guest gift and banner special effect.

Further, the virtual item display request further includes: sending a client identifier of the virtual article display request;

correspondingly, the server constructs a virtual article display instruction according to the type of the virtual article and the display form of the virtual article, and comprises the following steps:

and the server constructs a virtual article display instruction according to the type of the virtual article, the display form of the virtual article and the client identifier for sending the virtual article display request.

In a second aspect, an embodiment of the present invention further provides a method for displaying a virtual item in a live broadcast room, including:

a client receives a virtual article display instruction sent by a server, wherein the virtual article display instruction is constructed by the server according to a virtual article type and a virtual article display form included in a received virtual article display request;

if the client determines that the virtual article display condition is met, constructing a virtual article display animation corresponding to the virtual article display instruction;

and the client displays the virtual article display animation.

Further, the virtual article display instruction sent by the server includes: sending a client identifier of the virtual article display request;

correspondingly, the client constructing the virtual article display animation corresponding to the virtual article display instruction comprises:

the client judges whether the virtual article display form is a main gift, if so, whether the current client is the client sending the virtual article display request is judged according to the client identification sending the virtual article display request;

and if so, the client constructs a virtual article display animation corresponding to the virtual article display instruction.

Further, the virtual article display instruction sent by the server includes: sending a client identifier of the virtual article display request;

correspondingly, the client constructing the virtual article display animation corresponding to the virtual article display instruction comprises:

the client judges whether the virtual article display form is a guest gift, if so, whether the current client is the client sending the virtual article display request is judged according to the client identification sending the virtual article display request;

and if not, the client constructs a virtual article display animation corresponding to the virtual article display instruction.

In a third aspect, an embodiment of the present invention further provides a display device for a virtual item in a live broadcast room, where the device includes: a server, the server comprising:

a request receiving module, configured to receive a virtual item display request, where the virtual item display request includes: the method comprises the following steps of (1) identifying a virtual article type, a virtual article display form and a live broadcast room matched with the virtual article;

the instruction construction module is used for constructing a virtual article display instruction according to the type of the virtual article and the display form of the virtual article;

and the sending module is used for sending the virtual article display instruction to the anchor client matched with the live broadcast room identifier and at least one audience client, wherein the virtual article display instruction is used for indicating the received client to construct a corresponding virtual article display animation for display.

In a fourth aspect, an embodiment of the present invention further provides a display apparatus for a virtual item in a live broadcast room, where the apparatus includes: a client, the client comprising:

the virtual article display system comprises an instruction receiving module, a virtual article display module and a display module, wherein the instruction receiving module is used for receiving a virtual article display instruction sent by a server, and the virtual article display instruction is constructed by the server according to a virtual article type and a virtual article display form included in a received virtual article display request;

the animation construction module is used for constructing a virtual article display animation corresponding to the virtual article display instruction if the virtual article display condition is determined to be met;

and the display module is used for displaying the virtual article display animation.

In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the program, implements the method for displaying a virtual item in a live broadcast according to any one of the embodiments of the present invention.

In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for displaying a virtual item in a live broadcast room according to any one of the embodiments of the present invention.

The embodiment of the invention receives a virtual article display request through a server, wherein the virtual article display request comprises the following steps: the virtual article type, the virtual article display form and the live broadcast room identification matched with the virtual article; the server constructs a virtual article display instruction according to the type and the display form of the virtual article; the server sends the virtual article display instruction to the anchor client matched with the live broadcast room identifier and the at least one audience client, wherein the virtual article display instruction is used for indicating the received client to construct the corresponding virtual article display animation for display, and the situation of logical errors caused by complex logical judgment can be avoided.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

Fig. 1 is a flowchart of a method for displaying a virtual article in a live broadcast room according to a first embodiment of the present invention;

fig. 2 is a flowchart of a method for displaying a virtual item in a live broadcast room according to a second embodiment of the present invention;

fig. 3 is a schematic structural diagram of a display device for a virtual item in a live broadcast room according to a third embodiment of the present invention;

fig. 4 is a schematic structural diagram of a display device for a virtual item in a live broadcast room according to a fourth embodiment of the present invention;

fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频截图的获取方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类