Live broadcast room virtual article acquisition method, client and server

文档序号:424808 发布日期:2021-12-21 浏览:6次 中文

阅读说明:本技术 直播间虚拟物品获取方法、客户端及服务器 (Live broadcast room virtual article acquisition method, client and server ) 是由 林涛 于 2021-09-07 设计创作,主要内容包括:本申请提供直播间虚拟物品获取方法、客户端及服务器,其中直播间虚拟物品获取方法包括:在虚拟物品获取任务被触发的情况下,获取并展示任务结束倒计时;在计时期间,响应于执行直播间的交互操作,向服务器发送交互操作对应的消息;计时结束的情况下,展示任务结束消息和虚拟物品的获取结果,虚拟物品的获取结果为服务器根据各个用户的统计数据确定,统计数据基于交互操作对应的消息统计得到。如此,用户参与获取虚拟物品后,可以执行交互操作与主播互动,并且通过执行交互操作,还可以影响最终的虚拟物品的获取结果,提高了虚拟物品获取过程中用户与主播的互动性,进而提高了用户体验和用户粘度。(The application provides a live broadcast room virtual article acquisition method, a client and a server, wherein the live broadcast room virtual article acquisition method comprises the following steps: under the condition that the virtual article acquisition task is triggered, acquiring and displaying task end countdown; during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server; and under the condition of timing ending, displaying a task ending message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to the statistical data of each user, and the statistical data is obtained based on message statistics corresponding to the interactive operation. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.)

1. A live broadcast room virtual article obtaining method is applied to a client side and comprises the following steps:

under the condition that the virtual article acquisition task is triggered, acquiring and displaying task end countdown;

during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server;

and under the condition that timing is finished, displaying a task finishing message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to statistical data of each user, and the statistical data is obtained based on message statistics corresponding to the interactive operation.

2. The live broadcast room virtual item acquisition method according to claim 1, wherein when the virtual item acquisition task is triggered, before the task end countdown is acquired and displayed, the method further comprises:

receiving the acquisition information of a virtual article broadcasted by a server, wherein the acquisition information of the virtual article carries task parameters and personalized page parameters, and the task parameters and the personalized page parameters are set for an anchor through an anchor client;

popping a task popup window in a live broadcast interface of the live broadcast room;

and displaying the task parameters in the task popup window according to the personalized page parameters.

3. The live broadcast room virtual article acquisition method according to claim 2, wherein the task parameter includes a preset participation condition;

after the task parameters are displayed in the task popup according to the personalized page parameters, the method further comprises the following steps:

under the condition that a task participation request is initiated in the task popup window, determining whether a participating user initiating the task participation request meets the preset participation condition;

and if the preset participation condition is met, sending the task participation request to the server, and determining that the virtual article acquisition task is triggered.

4. The live broadcast room virtual article acquisition method according to claim 2, wherein the task parameter includes a preset participation condition;

after the task parameters are displayed in the task popup according to the personalized page parameters, the method further comprises the following steps:

sending the task participation request to the server and determining that the virtual article acquisition task is triggered when detecting that the task participation request is initiated in the task popup;

and under the condition that the task starting time is reached, receiving a task ending countdown broadcasted by the server, wherein the task ending countdown is sent when the server determines that the participating user initiating the task participation request meets the preset participation condition.

5. The live broadcast room virtual article acquisition method according to claim 2, wherein the task parameter includes a virtual article acquisition mode;

during the timing period, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to the server, wherein the message comprises:

determining an acquisition mode of the virtual article displayed in the task popup;

after the task starting time is reached and before the task ending time is reached, executing corresponding interactive operation in the live broadcast room according to the virtual article acquisition mode;

and sending a message corresponding to the interactive operation to a server.

6. The live broadcast room virtual item acquisition method according to any one of claims 1 to 5, wherein after displaying the task end message and the virtual item acquisition result when the timing is over, the method further comprises:

and displaying information filling reminding messages under the condition that the acquisition result of the virtual article comprises the login user of the client.

7. The live room virtual good acquisition method according to any one of claims 1 to 5, wherein after the task end countdown of acquisition and presentation, further comprising:

sending a polling message to a server every other preset time, and receiving a reference countdown returned by the server;

and checking the task ending countdown according to the reference countdown.

8. The live room virtual item acquisition method of claim 7, wherein the checking the task end countdown according to the reference countdown comprises:

determining whether the reference countdown and the task end countdown are the same;

keeping the task end countdown unchanged under the condition that the reference countdown and the task end countdown are the same;

and updating the task ending countdown to the reference countdown when the reference countdown and the task ending countdown are not the same.

9. The live broadcast room virtual item acquisition method according to any one of claims 1 to 5, wherein displaying a task end message and an acquisition result of a virtual item when the timing is ended comprises:

determining that the timing is finished under the condition that the task end countdown is finished; alternatively, the first and second electrodes may be,

and in the case of receiving a task ending message broadcasted by the server, determining that the timing is ended.

10. The live broadcast room virtual item acquisition method according to any one of claims 1 to 5, wherein in a case where the virtual item acquisition task is triggered, before the task end countdown is acquired and displayed, the method further comprises:

after entering a live broadcast room, displaying target task information in a live broadcast page, wherein the target task information is information of a task acquired by a currently-running virtual article in the live broadcast room, and the target task information comprises preset participation conditions;

when a joining request aiming at the target task information is detected, determining whether a participating user initiating the joining request meets the preset joining condition or not according to the preset joining condition;

if the preset participation condition is met, sending the joining request to the server, and determining that the virtual article acquisition task is triggered;

correspondingly, the acquiring and displaying task end countdown comprises:

and acquiring the current remaining task ending countdown from the server, displaying the current remaining task ending countdown and continuing to count down.

11. The live broadcast room virtual article acquisition method according to any one of claims 1 to 5, wherein the displaying of the task end message and the acquisition result of the virtual article includes:

under the condition that the client is a computer PC (personal computer) end, popping up an end popup in a live broadcast interface, and displaying a task end message and an acquisition result of a virtual article in the end popup;

and under the condition that the client is a mobile terminal, sending a task ending message and an acquisition result of the virtual article to a hypertext page in the mobile terminal through a message notification component, and displaying the task ending message and the acquisition result of the virtual article in the hypertext page.

12. A live broadcast room virtual article acquisition method is applied to a server and comprises the following steps:

sending task ending countdown to the client under the condition that the virtual article acquisition task is triggered;

receiving a message corresponding to the interactive operation sent by the client during timing;

under the condition of timing ending, determining statistical data of each user according to the message corresponding to the interactive operation;

and determining the acquisition result of the virtual article according to the statistical data of each user, and returning the acquisition result of the virtual article to the client.

13. The live broadcast virtual item acquiring method according to claim 12, wherein before sending the task end countdown to the client when the virtual item acquiring task is triggered, the method further comprises:

under the condition that the anchor is determined to have the task authority, displaying a task setting control;

receiving a setting request initiated by the anchor through the task setting control;

setting the acquisition information of the virtual article according to the setting request, wherein the acquisition information of the virtual article comprises task parameters and personalized page parameters;

and broadcasting the acquisition information of the virtual article to the client.

14. The live broadcast room virtual article acquisition method according to claim 13, wherein the task parameter includes a preset participation condition;

before sending the task end countdown to the client, the method further includes:

receiving a task participation request sent by the client;

determining whether a participating user initiating the task participation request meets the preset participation condition;

and if the preset participation condition is met, broadcasting task ending countdown to the client under the condition of reaching the task starting time.

15. The live broadcast virtual item acquisition method of claim 12 or 13, wherein after sending the task end countdown to the client, the method further comprises:

receiving a polling message sent by the client, and returning reference countdown to the client;

and under the condition that the task ending time is determined to be reached, broadcasting a task ending message to the client.

16. The live broadcast virtual item acquiring method according to claim 12 or 13, wherein after returning the acquisition result of the virtual item to the client, the method further comprises:

and sending an information filling reminding message to the client under the condition that the acquisition result of the virtual article comprises the login user of the client.

17. A client, comprising:

the acquisition module is configured to acquire and display the task end countdown under the condition that the virtual article acquisition task is triggered;

the first sending module is configured to respond to the execution of the interactive operation of the live broadcast room during the timing period and send a message corresponding to the interactive operation to the server;

and the first display module is configured to display the task ending message and the virtual article acquisition result under the condition that timing is ended, wherein the virtual article acquisition result is determined by the server according to statistical data of each user, and the statistical data is obtained based on message statistics corresponding to the interactive operation.

18. A server, comprising:

the second sending module is configured to send a task end countdown to the client when the virtual article acquisition task is triggered;

the receiving module is configured to receive a message corresponding to the interactive operation sent by the client during timing;

the determining module is configured to determine statistical data of each user according to the message corresponding to the interactive operation under the condition that timing is finished;

and the return module is configured to determine the acquisition result of the virtual article according to the statistical data of each user and return the acquisition result of the virtual article to the client.

19. A live broadcast room virtual article acquisition system is characterized by comprising a client and a server;

the client is configured to acquire and display the task end countdown under the condition that the virtual article acquisition task is triggered; during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server; under the condition that timing is finished, displaying a task finishing message and an acquisition result of a virtual article, wherein the acquisition result of the virtual article is determined by the server according to statistical data of each user, and the statistical data is obtained based on message statistics corresponding to the interactive operation;

the server is configured to send a task end countdown to the client when the virtual article acquisition task is triggered; receiving a message corresponding to the interactive operation sent by the client during timing; under the condition of timing ending, determining statistical data of each user according to the message corresponding to the interactive operation; and determining the acquisition result of the virtual article according to the statistical data of each user, and returning the acquisition result of the virtual article to the client.

20. A computing device, comprising:

a memory and a processor;

the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the operational steps of the live-air virtual item acquisition method of any one of claims 1-11 or claims 12-16.

21. A computer-readable storage medium storing computer-executable instructions which, when executed by a processor, perform the operational steps of the live room virtual item acquisition method of any one of claims 1-11 or claims 12-16.

Technical Field

The application relates to the technical field of live broadcast, in particular to a method for acquiring virtual articles in a live broadcast room. The application also relates to a client, a server, a live broadcast room virtual article acquisition system, a computing device and a computer readable storage medium.

Background

With the rapid development of computer technology, internet technology and streaming media, various information acquisition and communication modes are developed, live broadcast is increasingly popular with users as a new entertainment mode, live broadcast refers to live broadcast by using internet, computer and streaming media technology, and live broadcast is a mainstream expression mode of internet because rich elements such as images, characters and sounds are fused, and the live broadcast is luxuriant in sound and excellent in effect. The anchor can establish the live broadcast room through the anchor client, and audience user accessible audience client gets into the live broadcast room and watches, and at the live broadcast in-process, the anchor can increase audience's enthusiasm and audience's liveness through the mode that the virtual article obtained the task in order to attract more audiences to bring more flows.

In the prior art, after an anchor creates a virtual article acquisition task through an anchor client, a user can participate in the virtual article acquisition task created by the anchor, and then waits for the anchor to draw a prize, and then the anchor randomly screens out winning users from various users participating in the virtual article acquisition task. However, in the virtual article acquisition task mode, the users only need to participate in the virtual article acquisition task, and after each user participates in the virtual article acquisition task, the winning probability is equal, the users only can passively wait for the main broadcast to draw prizes, and the interactivity between the users and the main broadcast is poor in the virtual article acquisition task process, so that the user experience is influenced.

Disclosure of Invention

In view of this, the embodiment of the present application provides a method for acquiring a virtual item in a live broadcast room. The application also relates to a client, a server, a live broadcast room virtual article acquisition system, a computing device and a computer readable storage medium, so as to solve the problem of poor interactivity in the virtual article acquisition task process in the prior art.

According to a first aspect of the embodiments of the present application, a method for acquiring a virtual item in a live broadcast room is provided, which is applied to a client, and includes:

under the condition that the virtual article acquisition task is triggered, acquiring and displaying task end countdown;

during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server;

and under the condition of timing ending, displaying a task ending message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to the statistical data of each user, and the statistical data is obtained based on message statistics corresponding to the interactive operation.

According to a second aspect of the embodiments of the present application, there is provided a live broadcast virtual item obtaining method, applied to a server, including:

sending task ending countdown to the client under the condition that the virtual article acquisition task is triggered;

receiving a message corresponding to interactive operation sent by a client during timing;

under the condition of timing ending, determining statistical data of each user according to the message corresponding to the interactive operation;

and determining the acquisition result of the virtual article according to the statistical data of each user, and returning the acquisition result of the virtual article to the client.

According to a third aspect of embodiments of the present application, there is provided a client, including:

the acquisition module is configured to acquire and display the task end countdown under the condition that the virtual article acquisition task is triggered;

the first sending module is configured to respond to the interactive operation of the live broadcast room during the timing period and send a message corresponding to the interactive operation to the server;

and the first display module is configured to display the task ending message and the virtual article acquisition result under the condition that the timing is ended, wherein the virtual article acquisition result is determined by the server according to the statistical data of each user, and the statistical data is obtained based on the message statistics corresponding to the interactive operation.

According to a fourth aspect of embodiments of the present application, there is provided a server, including:

the second sending module is configured to send a task end countdown to the client under the condition that the virtual article acquisition task is triggered;

the receiving module is configured to receive a message corresponding to the interactive operation sent by the client during the timing period;

the determining module is configured to determine statistical data of each user according to the message corresponding to the interactive operation under the condition that the timing is finished;

and the return module is configured to determine the acquisition result of the virtual article according to the statistical data of each user and return the acquisition result of the virtual article to the client.

According to a fifth aspect of the embodiments of the present application, there is provided a live broadcast virtual item acquiring system, including a client and a server:

the client is configured to acquire and display the task end countdown under the condition that the virtual article acquisition task is triggered; during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server; under the condition that timing is finished, displaying a task finishing message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to statistical data of each user, and the statistical data is obtained based on message statistics corresponding to interactive operation;

the server is configured to send a task end countdown to the client when the virtual article acquisition task is triggered; receiving a message corresponding to interactive operation sent by a client during timing; under the condition of timing ending, determining statistical data of each user according to the message corresponding to the interactive operation; and determining the acquisition result of the virtual article according to the statistical data of each user, and returning the acquisition result of the virtual article to the client.

According to a sixth aspect of embodiments herein, there is provided a computing device comprising:

a memory and a processor;

the memory is used for storing computer executable instructions, and the processor is used for executing the computer executable instructions to implement the operation steps of the live broadcast virtual article acquisition method of the first aspect or the second aspect.

According to a seventh aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer-executable instructions, which when executed by a processor, implement the operation steps of the live broadcast room virtual item acquisition method of the first aspect or the second aspect.

According to the live broadcast room virtual article acquisition method, the client can acquire and display the task end countdown under the condition that the virtual article acquisition task is triggered; then, during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server; and then, under the condition that timing is finished, displaying a task finishing message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to the statistical data of each user, and the statistical data is obtained based on the message statistics corresponding to the interactive operation. In this case, after the virtual article acquisition task is triggered, the user may perform an interactive operation in the live broadcast room through the client during the timing period, so that the server may determine a final virtual article acquisition result according to the interactive operation performed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

Drawings

Fig. 1 is a flowchart of a live broadcast virtual article obtaining method according to an embodiment of the present application;

fig. 2 is a flowchart of another live broadcast virtual item acquiring method according to an embodiment of the present application;

fig. 3 is an overall process schematic diagram of a live broadcast room virtual article acquisition method according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of a client according to an embodiment of the present application;

fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of a live broadcast virtual item acquiring system according to an embodiment of the present application;

fig. 7 is a block diagram of a computing device according to an embodiment of the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.

The present application provides a live broadcast virtual article acquisition method, and the present application also relates to a client, a server, a live broadcast virtual article acquisition system, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.

Fig. 1 shows a flowchart of a live broadcast virtual item obtaining method provided in an embodiment of the present application, which is applied to a client, and specifically includes the following steps:

step 102: and under the condition that the virtual article acquisition task is triggered, acquiring and displaying task end countdown.

Specifically, the virtual article acquisition task may be a task created by the anchor and possibly acquired by the user after the user participates in the task, and the virtual article acquisition task being triggered may be that the user successfully registers to participate in a virtual article acquisition task that is not started, or successfully participates in a virtual article acquisition task that is currently in progress; that is, the virtual article acquisition task is triggered, which may mean that the user successfully participates in the task of acquiring a virtual article, including successfully registering and participating before the task is not started, and successfully participating at a certain time during the task.

In practical application, the client acquires the task end countdown based on the server, in a possible implementation manner, the server can monitor the current time, when the task start time is reached, the server can broadcast the task end countdown to each client participating in the virtual article acquisition task, and the client can receive the task end countdown broadcasted by the server so as to display the task end countdown. The broadcasting refers to providing interactive communication between the browser and the server through the webScoket technology.

In another possible implementation manner, the client may monitor the current time, and when the task start time is reached, the client may send an acquisition request to the server and receive a task end countdown returned by the server, at this time, the server may also perform authentication on the client corresponding to the received acquisition request, and return the task end countdown to the client after the authentication is passed, so that the client may perform display.

It should be noted that when the virtual article acquisition task is triggered, it indicates that the virtual article acquisition task is already in progress, and at this time, the client may acquire and display the task ending countdown from the server, where the task ending countdown may indicate the current remaining task time, so that the user can clearly know how much time remains to perform the operation of the virtual article acquisition task, and thus perform the corresponding operation within the time to participate in the virtual article acquisition task.

In an optional implementation manner of this embodiment, before the virtual article acquisition task starts, the anchor may further set relevant information of the virtual article acquisition task and send the relevant information to the client, so that the user may know the relevant information of the virtual article acquisition task, that is, when the virtual article acquisition task is triggered, before the task end countdown is acquired and displayed, the method further includes:

receiving the acquisition information of the virtual article broadcasted by the server, wherein the acquisition information of the virtual article carries task parameters and personalized page parameters, and the task parameters and the personalized page parameters are set for the anchor through an anchor client;

popping up a task popup window in a live broadcast interface of a live broadcast room;

and displaying the task parameters in the task popup window according to the personalized page parameters.

Specifically, the acquisition information of the virtual article may refer to detailed information which is preset by an anchor and related to a virtual article acquisition task, the acquisition information of the virtual article may include a task parameter and a personalized page parameter of the virtual article acquisition task, and the task parameter is used to represent detailed information of the virtual article acquisition task, and may include at least one of preset participation conditions, a virtual article acquisition mode, task start time, task end time, a task time period, result publishing time, and virtual article information; the personalized page parameter is used for representing the display mode of the task parameter, and can comprise at least one of page size, page skin, font size, font color and dynamic effect. Certainly, in practical application, the task parameters and the personalized page parameters may further include other parameters that can identify details and a display mode of the virtual article acquisition task, which is not limited in the present application.

For example, the preset participation condition may be that a main broadcasting is concerned, a member is opened, a user level is greater than 5, and the like; the virtual article acquisition mode can be bullet screen sending, gift giving to the anchor, card handling and the like; the task start time and the task end time may be the time when the anchor sets the activity start and end, for example, the task start time is 8:00, and the task end time is 8: 30; the result publishing time may refer to a time for publishing to obtain the list of the virtual item, for example, 2 hours after the virtual item obtaining task is finished; the virtual item information may include item content and denomination restrictions, such as XX appliances, 10, XX toys, 30, XX stationery, 80, and so forth.

It should be noted that, after the anchor enters the live broadcast room, the server may determine whether the anchor has the initiating right of the virtual article acquisition task, and if the anchor has the initiating right of the virtual article acquisition task, the server may display a control for initiating the virtual article acquisition task in the live broadcast room page of the anchor client, and the anchor may create a virtual article acquisition task through the control for initiating the virtual article acquisition task, and set the acquisition information (including task parameters and personalized page parameters) of the virtual article. After the anchor sets the acquisition information of the virtual article, the server can broadcast the acquisition information of the virtual article to each client, and the client can pop up a pop-up window for displaying after receiving the acquisition information of the virtual article broadcasted by the server. Moreover, the anchor client, whether being a PC or a mobile terminal, can display a control for initiating a virtual article acquisition task, that is, the virtual article acquisition task can be created and initiated through the PC or the mobile terminal, so that the limitation on the anchor client is reduced, flexibility is better, the anchor can conveniently initiate various virtual article acquisition tasks, and users are attracted.

In addition, besides setting the task parameters by the anchor, setting the personalized page parameters at the same time, the server can also read whether the personalized page parameters are set before the anchor through the interface, and if the personalized page parameters are set, the personalized page parameters can be directly read and then are broadcasted to each client as the acquisition information of the virtual article together with the task parameters set by the anchor; if the personalized page parameters are not set, the anchor can be reminded to set, and then the task parameters and the personalized page parameters set by the anchor are used as the acquisition information of the virtual articles and broadcasted to each client.

In the method, the anchor can preset task parameters such as preset participation conditions, virtual article acquisition modes, task time and the like of virtual article acquisition tasks which the anchor wants to create, namely the anchor can customize the virtual article acquisition tasks which the anchor wants to create, various virtual article acquisition modes are added, and screening conditions of users who participate in the virtual article acquisition tasks can be defined independently, so that only the users who meet the screening conditions can participate in the virtual article acquisition tasks which the anchor creates. In addition, the anchor can also customize the display parameters of the acquired information of the virtual articles, namely personalized page parameters, so that different anchor and different virtual article acquisition tasks can display the acquired information of the virtual articles in a personalized manner, and the user experience is improved.

In an optional implementation manner of this embodiment, when the anchor creates the virtual item acquisition task, if the preset participation condition of the virtual item acquisition task is set, when the user wants to participate in the virtual item acquisition task, the client may first screen the user who wants to participate in the virtual item acquisition task on the basis of the preset participation condition, where the task parameter includes the preset participation condition; according to the personalized page parameters, after the task parameters are displayed in the task popup window, the method further comprises the following steps:

under the condition that a task participation request is initiated in a task popup window, determining whether a participating user initiating the task participation request meets a preset participation condition;

and if the preset participation condition is met, sending a task participation request to the server, and determining that the virtual article acquisition task is triggered.

In practical application, if the client is to screen a user currently initiating a task participation request, the client needs to acquire a preset participation condition, so that the acquisition information of the virtual article broadcasted by the server to the client needs to include the preset participation condition (that is, the task parameter includes the preset participation condition), and after the client acquires the acquisition information of the virtual article, the client can determine the preset participation condition from the acquisition information of the virtual article. When a certain user initiates a task participation request in a task popup for displaying information of a virtual article, the client can acquire attribute information of the user according to a user account of the user, judge whether the user meets preset participation conditions, send the task participation request to a server when the user meets the preset participation conditions, and determine that a virtual article acquisition task is triggered; when not in compliance, the client may present a prompt that is not eligible for participation.

In addition, according to the personalized page parameters, when the task parameters are displayed in the task popup, the task popup can also comprise a control participating in the virtual article acquisition task, and when the user clicks the control participating in the virtual article acquisition task, the user is detected to initiate a task participation request in the task popup.

It should be noted that, when the client determines that the user initiating the task participation request meets the preset participation condition, the client may send the task participation request to the server, and after sending the task participation request, the client detects that the virtual article acquisition task is triggered, that is, the user successfully registers, and subsequently may participate in the virtual article acquisition task, and when waiting for the start of the virtual article acquisition task, that is, when monitoring that the task start time is reached, the server may send the task end countdown to the client, so that the user of the client may perform corresponding operation to participate in the virtual article acquisition task before the countdown is finished.

In an optional implementation manner of this embodiment, in addition to the client screening a user who wants to participate in a virtual item acquisition task currently based on a preset participation condition, the server may also screen a user who wants to participate in a virtual item acquisition task currently, where a task parameter configured by the anchor includes a preset participation condition, and the preset participation condition may be broadcast to the client or may not be broadcast to the client, so that after the task parameter is displayed in a task popup window according to a personalized page parameter, the method further includes:

under the condition that a task participation request is initiated in a task popup window, sending the task participation request to a server, and determining that a virtual article acquisition task is triggered;

and under the condition that the task starting time is reached, receiving a task ending countdown broadcasted by the server, wherein the task ending countdown is sent when the server determines that the participating user initiating the task participation request meets the preset participation condition.

In practical application, if the server filters the user who currently initiates the task participation request, the server only needs to store the preset participation condition set by the anchor, and at this time, the acquisition information of the virtual item broadcasted by the server to the client may or may not include the preset participation condition. When a certain user initiates a task participation request in a task popup for displaying information of a virtual article, a client can directly send the task participation request to a server, the server can acquire attribute information of the user according to a user account of the user, judge whether the user meets preset participation conditions or not, and determine that a virtual article acquisition task is triggered when the user meets the preset participation conditions, and then the server can monitor time and send task ending countdown to the client when the monitoring reaches the task starting time. If the server determines that the preset participation condition is not met, the server can return prompt information which does not have the participation qualification to the client, determine that the virtual article acquisition task is not triggered, and when the task starting time is reached, the client is not sent task ending countdown, namely the client cannot participate in the virtual article acquisition task.

In an optional implementation manner of this embodiment, in addition to receiving, by a user, acquisition information of a virtual item broadcasted by a server before a virtual item acquisition task starts and participating in the virtual item acquisition task based on the acquisition information of the virtual item in a live broadcast process, when entering a live broadcast time, the method may also participate in a currently ongoing virtual item acquisition task, that is, when the virtual item acquisition task is triggered, before the task end countdown is acquired and displayed, further including:

after entering a live broadcast room, displaying target task information in a live broadcast page, wherein the target task information is information of a task acquired by a currently-running virtual article in the live broadcast room, and the target task information comprises preset participation conditions;

when a joining request aiming at target task information is detected, determining whether a participating user initiating the joining request meets a preset joining condition or not according to the preset joining condition;

if the participation condition is met, sending a joining request to the server, and determining that a virtual article acquisition task is triggered;

correspondingly, the task end countdown is obtained and displayed, and the specific implementation process can be as follows:

and acquiring the current remaining task ending countdown from the server, displaying the current remaining task ending countdown and continuing to count down.

Specifically, the target task information may refer to information of a virtual item acquisition task currently performed in the live broadcast room, and the target task information may also include conditions that need to be met when participating in the virtual item acquisition task, that is, preset participation conditions.

It should be noted that, when a user enters a certain live broadcast room, if there is an ongoing virtual item acquisition task in the live broadcast room, information of the ongoing virtual item acquisition task (i.e., target task information) may be displayed in a live broadcast page. In addition, the target task information may further include a participation control, and a user may click the participation control, initiate a join request for the target task information, and join the target task information in the virtual article acquisition task.

When the client detects a join request aiming at target task information, the client can firstly screen a participating user initiating the join request based on preset participation conditions included in the target task information, determine whether the preset participation conditions are met, and when the preset participation conditions are met, send the join request to the server, determine that a virtual article acquisition task is triggered, and after receiving the join request, the server can return the current remaining task ending countdown to the client, display the task ending countdown by the client, and continue to count down. In addition, the process of screening the users and determining whether the preset participation condition is met can also be executed by the server, and the application does not limit the process.

Of course, when the user joins a currently ongoing virtual item acquisition task, the client may set a task end countdown by itself based on the target task information of the virtual item acquisition task, in addition to acquiring the currently remaining task end countdown from the server, which is not limited in the present application.

In the method, when a user watches live broadcasting through a client, before a virtual article acquisition task starts, the acquisition information of the virtual article broadcasted by a server is received, a task participation request is initiated based on the acquisition information of the virtual article, registration participation is carried out on the virtual article acquisition task to be started, after a screening condition is passed, namely after the virtual article acquisition task is determined to be triggered, when monitoring reaches the task starting time, the server sends task ending countdown to the client of the user who successfully registers, the client receives the task ending countdown and then displays the task ending countdown, and countdown is continued, so that the user who successfully registers can participate in the virtual article acquisition task before the countdown ends.

In addition, when the user enters a live broadcast room to watch live broadcast, the user can also join the virtual article acquisition task currently carried out in the live broadcast room, and after the user passes the screening condition, the server can send the current remaining task to the client to finish countdown, so that the client can continue to count down, and the newly joined user can participate in the virtual article acquisition task in the remaining time. Therefore, the virtual article acquisition task can be registered before the start of the activity, and the virtual article acquisition task can be added to the current virtual article acquisition task, so that the participation mode is flexible, various live scenes can be adapted, and the user experience is improved.

Step 104: and during the timing period, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to the server.

Specifically, the interactive operation may be an operation performed by the user in the live broadcast room through the client to interact with the anchor, for example, the interactive operation may be an operation of giving a gift to the anchor, sending a barrage in the live broadcast room, and the like. In addition, the interactive operation performed by the user in one virtual article acquisition task may be one kind, or may be multiple kinds, that is, multiple different interactive operations may be combined to affect the final virtual article acquisition result.

It should be noted that, after the client acquires the countdown of the task end, the client may display the countdown, and the user may perform corresponding operations in the live broadcast room through the client in the countdown process, and interact with the anchor, and after detecting that the user performs corresponding interaction operations in the live broadcast room, the client may send messages corresponding to the interaction operations to the server, so that the subsequent server may determine the final acquisition result of the virtual article according to the messages corresponding to the interaction operations sent by each client, so that the user may influence the final acquisition result of the virtual article by performing the corresponding interaction operations.

In an optional implementation manner of this embodiment, the obtaining information of the virtual article may include a virtual article obtaining manner, and the user may execute corresponding interactive operation based on the virtual article obtaining manner before the task countdown is finished, and participate in the virtual article obtaining task, that is, during the time counting, in response to executing the interactive operation in the live broadcast room, send a message corresponding to the interactive operation to the server, where a specific implementation process may be as follows:

determining a virtual article acquisition mode displayed in a task popup;

after the task starting time is reached and before the task ending time is reached, executing corresponding interactive operation in a live broadcast room according to a virtual article acquisition mode;

and sending a message corresponding to the interactive operation to the server.

Specifically, the virtual article acquisition manner may refer to a manner of participating in a virtual article acquisition task, such as sending a barrage, giving a gift to a main broadcast, or transacting a card.

It should be noted that, the task popup may show a virtual article acquisition mode set by the anchor when the virtual article acquisition task is created, and after the task start time is reached and before the task end time is reached, that is, within the progress time of the virtual article acquisition task, the user may repeatedly perform corresponding operations to participate in the virtual article acquisition task and improve the probability of acquiring the virtual article. So, can increase multiple virtual article and obtain the mode, give present gift, the user sends the barrage, transacts the card etc. to the anchor if the user, all can participate in virtual article and obtain the task, and send the gift number of times, send the barrage number of times, transact the card number of times etc. and can influence final acquisition result, virtual article obtains the mode diversified, and the flexibility is high, can adapt to different live scenes, improves user experience.

For example, if the virtual article acquisition mode shown in the task popup is to send a popup including XX content, after the task start time is reached and before the task end time is reached, the user may repeatedly send the popup including XX content in the live broadcast to participate in the virtual article acquisition task.

In an optional implementation manner of this embodiment, in the timing process, the client may further continuously poll the server for time to ensure that a timing result in the client is consistent with a timing result in the server, that is, after acquiring and displaying the task end countdown, the method further includes:

sending polling messages to the server every other preset time, and receiving reference countdown returned by the server;

and checking the task ending countdown according to the reference countdown.

Specifically, the preset time duration may refer to a preset time period, where the preset time duration is used to indicate how often to poll the reference countdown, and for example, the preset time duration may be 1 second, 2 seconds, 5 seconds, and the like. In addition, the reference countdown may refer to a countdown of the task end actually remaining in the server at present, and is used to check the countdown of the task end local to the client.

It should be noted that, after the client receives the task end countdown sent by the server, the client will continue to count down, and since the time, performance, and the like of each client are different, the task end countdown between different clients may be different in the countdown process, so that the task end countdown cannot be unified, and therefore, in the countdown process, the client may also send a polling message to the server every preset time period and receive a reference countdown returned by the server, which may indicate the current actual remaining task end countdown, and according to the reference countdown, the task end countdown may be verified.

In an optional implementation manner of this embodiment, the task ending countdown is verified according to the reference countdown, and a specific implementation process may be as follows:

determining whether the reference countdown and the task end countdown are the same;

under the condition that the reference countdown is the same as the task ending countdown, keeping the task ending countdown unchanged;

and updating the task end countdown to the reference countdown in the case that the reference countdown and the task end countdown are not the same.

It should be noted that if the reference countdown and the task end countdown returned by the server are the same, it is indicated that the local task end countdown and the current actual remaining task end countdown are the same, and the client does not need to update and continues to count time based on the local task end countdown; if the reference countdown and the task ending countdown returned by the server are different, it is indicated that the local task ending countdown of the client is different from the current actual remaining task ending countdown, at this time, the local task ending countdown of the client can be updated to the current actual remaining task ending countdown (reference countdown), and the client continues to count time based on the updated task ending countdown, so that the local task ending countdown of the client can be kept consistent with the current actual remaining task ending countdown.

In the embodiment of the application, after the client acquires the task ending countdown, in the countdown process, the current actual reference countdown can be acquired from the server at intervals of preset time, and the task ending countdown of the local timing of the client is verified, so that the task ending countdown displayed locally by the client is completely the same as the actual task ending countdown in the server, and the phenomenon that the countdown of different clients is different due to the error of the local timing of the client is avoided. Therefore, the task ending countdown of each client is unified, the fact that the user of each client starts the virtual article obtaining task at the same time is guaranteed, the fact that the user finishes the virtual article obtaining task at the same time is guaranteed, the accuracy rate and the fairness of the virtual article obtaining task are guaranteed, and user experience and user viscosity are improved.

Step 106: and under the condition of timing ending, displaying a task ending message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to the statistical data of each user, and the statistical data is obtained based on message statistics corresponding to the interactive operation.

It should be noted that, when the timing is finished, it is described that the virtual item acquisition task is finished, and at this time, the client may display a task end message to notify the user. In addition, the client may further display an acquisition result of the virtual article to show which users finally acquire the virtual article, where the acquisition result of the virtual article may be determined by the server according to statistical data of each user, and the statistical data is obtained based on statistics of messages corresponding to the interactive operation, that is, the server may count the number of the interactive operation performed by each user during the timing period based on the received messages of the interactive operation sent by each client, determine the users finally acquiring the virtual article according to the number, and generate the acquisition result of the virtual article to be returned to the client for display.

In a possible implementation manner, the interactive operation may be an operation of sending a barrage and/or an operation of giving a gift, and at this time, the number of times of sending the barrage by each user may be counted, and the number of times is used as the statistical data of the user; or, the times of gift presentation of each user can be counted, and the times are used as the statistical data of the user; or, the value of gifting gifts by each user can be counted, and the value is used as the statistical data of the user; or, the number of times of sending the bullet screen and the number of times of presenting the gift by each user can be counted, and the weighted average of the number of times of sending the bullet screen and the number of times of presenting the gift is used as the statistical data of the user. Of course, the interactive operation may also be other operations that can interact with the anchor, and the statistical data of the user may be determined according to the specific operation, which is not limited in the present application.

In practical application, after the virtual article acquisition task is finished, the server may determine the user who finally acquires the virtual article according to the interactive operation performed by each user within a time period (i.e., a timing period) performed by the virtual article acquisition task, generate an acquisition result of the virtual article, and return the acquisition result to the client for display. During specific implementation, when determining the user who finally acquires the virtual article, the server can extract users with preset denominations according to the times of interactive operation executed by each user in a time period during which the virtual article acquisition task is performed; that is, in the time period during which the virtual article acquisition task activity is performed, corresponding interactive operations are performed multiple times, so that the probability of acquiring a virtual article can be increased, and for the case that the virtual article acquisition mode is to give a gift to the anchor or send a barrage, the probability of acquiring a virtual article can be increased by giving a gift to the anchor or sending a barrage multiple times.

For example, if the virtual article obtaining manner is to send a bullet screen, the number of times that each user sends a bullet screen in a time period in which the virtual article obtaining task is performed may be counted, the number of times that the bullet screen is sent is sequentially sorted from high to low, and then the top 5 users that are used as the users that obtain the virtual article are extracted from the sorted users. If the virtual article acquisition mode is to present gifts to the anchor, the times/values of presenting gifts to the anchor by each user in the time period in which the virtual article acquisition task is performed can be counted, the times/values of sending the barrage are sequentially ranked from high to low, and then the top 5 users are extracted from the ranked users as the users who acquire the virtual articles.

In addition, the server can generate an acquisition result of the virtual article according to the determined user acquiring the virtual article, the anchor can preset result publishing time, after the virtual article acquiring task is finished, the server can send the acquisition result of the virtual article to the client at the result publishing time, and the client displays the acquisition result of the virtual article when receiving the acquisition result of the virtual article, so that each user can know the acquisition result of the virtual article, and the participation interest of the user is improved. Certainly, in practical application, the server may not send the virtual article acquisition result to each client, but only send the virtual article acquisition result to the client corresponding to the user who acquires the virtual article, so that the user can only see the own acquisition information, but cannot see the information of other people, and information security is ensured.

In an optional implementation manner of this embodiment, in a case that timing is finished, displaying a task end message and an acquisition result of a virtual article includes:

under the condition that the task end countdown is finished, determining that the timing is finished; alternatively, the first and second electrodes may be,

and in the case of receiving a task ending message broadcasted by the server, determining that the timing is ended.

It should be noted that, because the client sends a polling message to the server every other preset time to obtain the current actual remaining task end countdown and to check the task end countdown generated by the client locally, the task end countdown displayed by each client is updated and checked based on the polling result returned by the server, and the task end countdown of each client is uniform. That is, the task end countdown displayed by the client is accurate and consistent with other clients, so that when the task end countdown displayed locally by the client is finished, that is, when the task end countdown is 0, the timing is finished, and at this time, the virtual article acquisition task should be finished.

In addition, the server may broadcast a task end message to each client when determining that the task end time set by the anchor is reached, and the client may determine that the timing is ended when receiving the task end message broadcast by the server. That is, although the client sends the polling message to the server at preset intervals and updates the local task ending countdown based on the reference countdown returned by the server, in order to ensure that each client can end the virtual object acquisition task at the same time, whether the virtual object acquisition task is ended may be determined according to whether the task ending message broadcasted by the server is received.

According to the method and the device, whether the virtual article acquisition task is finished or not can be determined based on a local timing result of the client, whether the virtual article acquisition task is finished or not can be determined based on whether a task finishing message broadcasted by the server is received, the mode for determining that the virtual article acquisition task is finished is flexible and changeable, and the method and the device can adapt to different live broadcast scenes.

In an optional implementation manner of this embodiment, the client used by the user to watch the live broadcast may be a PC end or a mobile end, and the PC end and the mobile end may display the task ending message and the obtaining result of the virtual article in different manners, that is, display the task ending message and the obtaining result of the virtual article, and a specific implementation process may be:

under the condition that the client is a computer PC (personal computer) end, popping out an end popup in a live broadcast interface, and displaying a task end message and an acquisition result of a virtual article in the end popup;

and under the condition that the client is the mobile terminal, sending a task ending message and an acquisition result of the virtual article to a hypertext page in the mobile terminal through a message notification component, and displaying the task ending message and the acquisition result of the virtual article in the hypertext page.

It should be noted that, when the client is a PC, since the PC can directly display the web page, a completion popup window can be directly popped up in the live broadcast interface, and a task completion message and an acquisition result of the virtual object are displayed in the completion popup window. When the client is a mobile terminal, the mobile terminal needs to communicate with the hypertext page based on the message notification component, so that when the mobile terminal determines that the timing is finished, the mobile terminal sends a task end message and an acquisition result of the virtual article to the hypertext page by sending the task end message and the acquisition result of the virtual article to the hypertext page through the message notification component, and the task end message and the acquisition result of the virtual article are displayed in the hypertext page.

In practice, the message notification component may be a bridge, a hypertext page, i.e., H5 page. The technology for enabling the H5 page and the mobile terminal to communicate in the bridge programming language; the H5 page, namely the HTML5 page, is a language description mode for constructing Web content, is considered as one of core technologies of the Internet, the newly introduced grammatical features of the page can support multimedia on mobile equipment, the page can better adapt to mobile end equipment, the new parsing rule enhances flexibility, new attributes, obsolete or redundant attributes, and the interaction mode of a user and a document is really changed.

According to the method and the device, the PC end and the mobile end can participate in the virtual article acquisition task, so that the user can participate in the virtual article acquisition task in various modes, the flexibility is higher, the requirement for watching the live client side by the user is lowered, the user can participate in the virtual article acquisition task no matter what client side the user holds, and the user experience is improved.

In an optional implementation manner of this embodiment, after the virtual article obtaining task is ended, a reminding message may be filled in to the display information of the user obtaining the virtual article to prompt the user to fill in the relevant information of obtaining the virtual article, and therefore, when the timing is ended, after the display task ending message and the obtaining result of the virtual article, the method further includes:

and under the condition that the acquisition result of the virtual article comprises the login user of the client, displaying the information filling reminding message.

It should be noted that, when the acquisition result of the virtual article includes the login user of the client, that is, when the login user of the client is the user who acquires the virtual article, the server may also send an information filling reminding message to the client, and the client displays the information filling reminding message to guide the user who acquires the virtual article to fill in the relevant personal information.

For example, the method for acquiring the virtual article in the live broadcast room is applied to a lottery scene in the live broadcast room as an example, the anchor may set lottery information in the live broadcast room through the anchor terminal, where the lottery information includes lottery parameters and personalized page parameters, and after the anchor sets the lottery information through the anchor terminal, the anchor terminal may broadcast the lottery information to each client, and the client displays the lottery information after receiving the lottery information. If the user wants to participate in the lottery, the user can participate in the lottery initiated by the anchor through a preset participation control in the client, and at this time, the client can detect that the lottery task is triggered, acquire the lottery ending countdown from the server and display the lottery ending countdown. During the timing process, the user can execute corresponding interactive operation through the client, and when the timing is finished, the server can determine the statistical data of each user according to the received message corresponding to each interactive operation, determine the lottery result according to the statistical data of each user, and return the lottery result to the client for displaying.

According to the live broadcast room virtual article obtaining method, after the virtual article obtaining task is triggered, the user can execute interactive operation in the live broadcast room through the client during timing, so that the server can determine a final virtual article obtaining result according to the interactive operation executed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

Fig. 2 shows a flowchart of another live broadcast virtual item obtaining method provided in an embodiment of the present application, which is applied to a server, and specifically includes the following steps:

step 202: and sending a task end countdown to the client under the condition that the virtual article acquisition task is triggered.

It should be noted that the virtual article acquisition task being triggered may refer to that the user successfully registers to participate in the virtual article acquisition task (including an unexecuted virtual article acquisition task and an ongoing virtual article acquisition task), and whether the virtual article acquisition task is triggered may be determined by the client, or may be determined by the server, and if the virtual article acquisition task is determined by the client, the server may determine that the virtual article acquisition task is triggered based on a request sent by the client.

In practical applications, when the virtual item acquisition task is triggered, the server may directly send the task end countdown to the client for the virtual item acquisition task in progress. For a virtual article acquisition task that has not yet started, the server may monitor the current time, and when the task start time of the virtual article acquisition task is reached, the server may broadcast a task end countdown to each client participating in the virtual article acquisition task, so that the client may display the task end countdown based on the received task end countdown.

In an optional implementation manner of this embodiment, before the virtual article acquisition task starts, the anchor may further set relevant information of the virtual article acquisition task, that is, before sending a task end countdown to the client when the virtual article acquisition task is triggered, the method further includes:

under the condition that the anchor is determined to have the task authority, displaying a task setting control;

receiving a setting request initiated by an anchor through a task setting control;

setting the acquisition information of the virtual article according to the setting request, wherein the acquisition information of the virtual article comprises task parameters and personalized page parameters;

and broadcasting the acquisition information of the virtual article to the client.

It should be noted that, after the anchor enters the live broadcast room, the server may determine whether the anchor has the authority to initiate the virtual article acquisition task, and if the anchor has the authority to initiate the virtual article acquisition task, a control (i.e., a task setting control) for initiating the virtual article acquisition task may be displayed in a live broadcast room page of the anchor client, and the anchor initiates a setting request through the control for initiating the virtual article acquisition task, thereby creating a virtual article acquisition task and setting acquisition information (including task parameters and personalized page parameters) of the virtual article. After the anchor sets the acquisition information of the virtual article, the server can broadcast the acquisition information of the virtual article to each client, so that the client can pop up a pop-up window for display after receiving the acquisition information of the virtual article broadcasted by the server.

In practical application, the anchor client, whether being a PC end or a mobile end, can display a control (i.e., a task setting control) for initiating a virtual article acquisition task, that is, the anchor can create and initiate the virtual article acquisition task through the PC end or the mobile end, so that the limitation on the anchor client is reduced, the flexibility is better, the anchor can conveniently initiate various virtual article acquisition tasks, and users are attracted.

In addition, besides setting the task parameters by the anchor, setting the personalized page parameters at the same time, the server can also read whether the personalized page parameters are set before the anchor through the interface, and if the personalized page parameters are set, the personalized page parameters can be directly read and then are broadcasted to each client as the acquisition information of the virtual article together with the task parameters set by the anchor; if the personalized page parameters are not set, the anchor can be reminded to set, and then the task parameters and the personalized page parameters set by the anchor are used as the acquisition information of the virtual articles and broadcasted to each client.

In the application, the anchor can preset parameters such as preset participation conditions, virtual article acquisition modes, task time and the like of virtual article acquisition tasks which the anchor wants to create, namely the anchor can customize the virtual article acquisition tasks which the anchor wants to create, various virtual article acquisition modes are added, and the screening conditions of users who participate in the virtual article acquisition tasks can be defined independently, so that only the users who meet the screening conditions can participate in the virtual article acquisition tasks created by the anchor. In addition, the anchor can also customize the display parameters of the acquired information of the virtual articles, namely personalized page parameters, so that different anchor and different virtual article acquisition tasks can display the acquired information of the virtual articles in a personalized manner, and the user experience is improved.

In an optional implementation manner of this embodiment, after the user initiates the task participation request through the client, the server may further filter a user who wants to participate in the virtual article acquisition task at present, to determine whether the user can participate in the virtual article acquisition task, that is, the task parameter may include a preset participation condition, and before sending the task end countdown to the client, the method further includes:

receiving a task participation request sent by a client;

determining whether a participating user initiating a task participation request meets a preset participation condition;

and if the preset participation condition is met, broadcasting task ending countdown to the client under the condition of reaching the task starting time.

It should be noted that, when a certain user initiates a task participation request in a task popup for displaying information of a virtual article, the client may directly send the task participation request to the server, and the server may obtain attribute information of the user according to a user account of the user, determine whether the user meets a preset participation condition, and when the user meets the preset participation condition, determine that the virtual article acquisition task is triggered, and then the server may monitor time, and when the monitoring reaches the task start time, send a task end countdown to the client. If the server determines that the participation condition is not met, the server can return prompt information which does not meet the participation qualification to the client, determine that the virtual article acquisition task is not triggered, and when the task starting time is reached, the server does not send task ending countdown to the client, namely the client cannot participate in the virtual article acquisition task.

Step 204: and receiving a message corresponding to the interactive operation sent by the client during the timing period.

It should be noted that, in the countdown process, the user may perform corresponding operations in the live broadcast room through the client to interact with the anchor, and after detecting that the user performs corresponding interactive operations in the live broadcast room, the client may send a message corresponding to the interactive operations to the server. The server can receive the messages corresponding to the interactive operation sent by each client, so that the subsequent statistics of the messages corresponding to the interactive operation sent by each client is facilitated, and the final virtual article acquisition result is determined.

In an optional implementation manner of this embodiment, in the timing process, the client may further continuously poll the server for time, so that the server may further return a reference countdown to the client, so that the client checks the local task end countdown, that is, after sending the task end countdown to the client, the method further includes:

and receiving a polling message sent by the client, and returning the reference countdown to the client.

It should be noted that, when the virtual article acquisition task is triggered, after the client acquires and displays the task end countdown, the client may further send a polling message to the server at intervals of a preset time length in the process of timing based on the acquired task end countdown, and after receiving the polling message sent by the client, the server may return a reference countdown to the client, where the reference countdown may refer to the current actual remaining task end countdown in the server, and is used to verify the local task end countdown of the client.

In an optional implementation manner of this embodiment, after sending the task end countdown to the client, the method further includes:

in the case where it is determined that the task end time is reached, a task end message is broadcast to the client.

It should be noted that, when determining that the task end time set by the anchor is reached, the server may broadcast a task acquisition end message to each client, so that the client determines that the timing is ended when receiving the task end message broadcast by the server. That is, when the virtual item acquisition task is finished, the server may broadcast a finish message to the clients to inform the clients that the virtual item acquisition task is finished.

Step 206: and under the condition of timing ending, determining statistical data of each user according to the message corresponding to the interactive operation, determining an acquisition result of the virtual article according to the statistical data of each user, and returning the acquisition result of the virtual article to the client.

It should be noted that, when the timing is ended, it is stated that the virtual article acquisition task is ended, and therefore, at this time, the server may determine statistical data of each user according to the received message corresponding to each interactive operation, where the statistical data may indicate interactive information such as the number of times or value of the interactive operation performed by the user during the timing. And then, according to the statistical data of each user, screening out users capable of acquiring the virtual articles from each user, generating an acquisition result of the virtual articles, and returning the acquisition result to the client for displaying.

In a possible implementation manner, the interactive operation may be an operation of sending a barrage and/or an operation of giving a gift, and at this time, the number of times of sending the barrage by each user may be counted, and the number of times is used as the statistical data of the user; or, the times of gift presentation of each user can be counted, and the times are used as the statistical data of the user; or, the value of gifting gifts by each user can be counted, and the value is used as the statistical data of the user; or, the number of times of sending the bullet screen and the number of times of presenting the gift by each user can be counted, and the weighted average of the number of times of sending the bullet screen and the number of times of presenting the gift is used as the statistical data of the user. Of course, the interactive operation may also be other operations that can interact with the anchor, and the statistical data of the user may be determined according to the specific operation, which is not limited in the present application.

In practical application, when determining the user who finally obtains the virtual article, the server can extract the users with preset denominations according to interactive information such as times, values and the like of interactive operations executed by each user in a time period in which the virtual article obtaining task is carried out; that is, in the time period during which the virtual article acquisition task activity is performed, the user repeatedly performs corresponding interactive operations for many times, which may increase the probability of acquiring the virtual article, and for the case where the virtual article acquisition manner is to give a gift to the anchor or send a barrage, giving a gift to the anchor or sending a barrage for many times may increase the probability of acquiring the virtual article.

For example, if the virtual article obtaining manner is to send a bullet screen, the number of times that each user sends a bullet screen in a time period in which the virtual article obtaining task is performed may be counted, the number of times that the bullet screen is sent is sequentially sorted from high to low, and then the top 5 users that are used as the users that obtain the virtual article are extracted from the sorted users. If the virtual article acquisition mode is to present gifts to the anchor, the times/values of presenting gifts to the anchor by each user in the time period in which the virtual article acquisition task is performed can be counted, the times/values of sending the barrage are sequentially ranked from high to low, and then the top 5 users are extracted from the ranked users as the users who acquire the virtual articles.

In addition, the server can generate an acquisition result of the virtual article according to the determined user acquiring the virtual article, the anchor can preset result publishing time, after the virtual article acquiring task is finished, the server can send the acquisition result of the virtual article to the client at the result publishing time, and the client displays the acquisition result of the virtual article when receiving the acquisition result of the virtual article, so that each user can know the acquisition result of the virtual article, and the participation interest of the user is improved. Certainly, in practical application, the server may not send the virtual article acquisition result to each client, but only send the virtual article acquisition result to the client corresponding to the user who acquires the virtual article, so that the user can only see the own acquisition information, but cannot see the information of other people, and information security is ensured.

In an optional implementation manner of this embodiment, after the task of acquiring a virtual article in the live broadcast room is completed, the server may further generate an acquisition result of the virtual article, and send an information filling reminding message to the client of the user who acquires the virtual article, that is, after sending a task completion countdown to the client, the method further includes:

and sending an information filling reminding message to the client under the condition that the acquisition result of the virtual article comprises a login user of the client.

It should be noted that, when the acquisition result of the virtual article includes the login user of the client, that is, when the login user of the client is the user who acquires the virtual article, the server may also send an information filling reminding message to the client, and the client displays the information filling reminding message to guide the user who acquires the virtual article to fill in the relevant personal information.

According to the live broadcast room virtual article obtaining method, after the virtual article obtaining task is triggered, the user can execute interactive operation in the live broadcast room through the client during timing, so that the server can determine a final virtual article obtaining result according to the interactive operation executed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

Fig. 2 is a schematic diagram of a method for acquiring a virtual item in a live broadcast room according to this embodiment. It should be noted that the technical solution of the live broadcast virtual item acquisition method shown in fig. 2 and the technical solution of the live broadcast virtual item acquisition method shown in fig. 1 belong to the same concept, and details of the technical solution of the live broadcast virtual item acquisition method shown in fig. 2, which are not described in detail, can be referred to the description of the technical solution of the live broadcast virtual item acquisition method shown in fig. 1.

Fig. 3 is a schematic overall process diagram illustrating a method for acquiring a virtual item in a live broadcast room according to an embodiment of the present application, and specifically includes the following steps:

step 302: after the anchor enters the live broadcast room through the anchor client, the server determines whether the anchor has the authority to initiate the virtual item acquisition task, if not, the following step 304 is executed, and if so, the following step 306 is executed.

Step 304: and the server controls a setting control which does not display the virtual article acquisition task in the anchor client.

Step 306: the server controls a setting control for displaying a virtual article acquisition task in the anchor client.

Step 308: the server determines whether the anchor is configured with personalized page parameters, if so, the following step 310 is performed, and if not, the following step 312 is performed.

Step 310: and the server reads the personalized page parameters configured by the anchor.

Step 312: the server controls the anchor client to display the personalized page parameter configuration prompt and receives the personalized page parameter set by the anchor based on the setting control of the virtual article acquisition task.

Step 314: and the server receives the task parameters set by the anchor through the setting control of the virtual article acquisition task of the anchor client.

Step 316: and the server takes the task parameters and the personalized page parameters as the acquisition information of the virtual article and returns the acquisition information to the client.

Step 318: the client displays the acquisition information of the virtual article, and acquires and displays the task ending countdown under the condition that the virtual article acquisition task is triggered.

Step 320: and in the countdown process, the client side responds to the operation of sending the barrage and the gifting gift by the user and sends a corresponding message to the server.

Step 322: under the condition that the timing is finished, the server counts the number of times of sending the barrage and the number of times of presenting the gift of each user according to each received message, and takes the weighted average of the number of times of sending the barrage and the number of times of presenting the gift as the statistical data of the corresponding user; and then determining and returning the acquisition result of the virtual article to the client according to the statistical data of each user.

Step 324: and the client displays the task ending message and the acquisition result of the virtual article.

According to the live broadcast room virtual article obtaining method, after the virtual article obtaining task is triggered, the user can execute interactive operation in the live broadcast room through the client during timing, so that the server can determine a final virtual article obtaining result according to the interactive operation executed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

Fig. 3 is a schematic diagram of a method for acquiring a virtual item in a live broadcast room according to this embodiment. It should be noted that the technical solution of the live broadcast virtual item acquisition method shown in fig. 3 is the same as the technical solution of the live broadcast virtual item acquisition method shown in fig. 1 to 2, and details of the technical solution of the live broadcast virtual item acquisition method shown in fig. 3, which are not described in detail, can be referred to the description of the technical solution of the live broadcast virtual item acquisition method shown in fig. 1 to 2.

Corresponding to the above method embodiment, the present application further provides a client embodiment, and fig. 4 shows a schematic structural diagram of a client provided in an embodiment of the present application. As shown in fig. 4, the client includes:

an obtaining module 402 configured to obtain and display a task end countdown when the virtual article obtaining task is triggered;

a first sending module 404, configured to send, during the timing period, a message corresponding to the interactive operation to the server in response to performing the interactive operation of the live broadcast;

the first display module 406 is configured to display the task ending message and the obtained result of the virtual article when the timing is ended, where the obtained result of the virtual article is determined by the server according to the statistical data of each user, and the statistical data is obtained based on the message statistics corresponding to the interactive operation.

Optionally, the client further comprises a second presentation module configured to:

receiving the acquisition information of the virtual article broadcasted by the server, wherein the acquisition information of the virtual article carries a virtual task parameter and an individualized page parameter, and the task parameter and the individualized page parameter are set for the anchor through an anchor client;

popping up a task popup window in a live broadcast interface of a live broadcast room;

and displaying the task parameters in the task popup window according to the personalized page parameters.

Optionally, the task parameter includes a preset participation condition; the second presentation module is further configured to:

under the condition that a task participation request is initiated in a task popup window, determining whether a participating user initiating the task participation request meets a preset participation condition;

and if the preset participation condition is met, sending a task participation request to the server, and determining that the virtual article acquisition task is triggered.

Optionally, the second presentation module is further configured to:

under the condition that a task participation request is initiated in a task popup window, sending the task participation request to a server, and determining that a virtual article acquisition task is triggered;

and under the condition that the task starting time is reached, receiving a task ending countdown broadcasted by the server, wherein the task ending countdown is sent when the server determines that the participating user initiating the task participation request meets the preset participation condition.

Optionally, the task parameter includes a task mode of acquiring the virtual article; the first sending module 404 is further configured to:

determining a virtual article acquisition mode displayed in a task popup;

and after the task starting time is reached and before the task ending time is reached, executing corresponding interactive operation in the live broadcast room according to the virtual article acquisition mode.

Optionally, the client further comprises a third presentation module configured to:

and under the condition that the acquisition result of the virtual article comprises the login user of the client, displaying the information filling reminding message.

Optionally, the apparatus further comprises a verification module configured to:

sending polling messages to the server every other preset time, and receiving reference countdown returned by the server;

and checking the task ending countdown according to the reference countdown.

Optionally, the verification module is further configured to:

determining whether the reference countdown and the task end countdown are the same;

under the condition that the reference countdown is the same as the task ending countdown, keeping the task ending countdown unchanged;

and updating the task end countdown to the reference countdown in the case that the reference countdown and the task end countdown are not the same.

Optionally, the first presentation module 406 is further configured to:

under the condition that the task end countdown is finished, determining that the timing is finished; alternatively, the first and second electrodes may be,

and in the case of receiving a task ending message broadcasted by the server, determining that the timing is ended.

Optionally, the client further comprises a fourth presentation module configured to:

after entering a live broadcast room, displaying target task information in a live broadcast page, wherein the target task information is information of a task acquired by a currently-running virtual article in the live broadcast room, and the target task information comprises preset participation conditions;

when a joining request aiming at target task information is detected, determining whether a participating user initiating the joining request meets a preset joining condition or not according to the preset joining condition;

if the participation condition is met, sending a joining request to the server, and determining that a virtual article acquisition task is triggered;

accordingly, the obtaining module 402 is further configured to:

and acquiring the current remaining task ending countdown from the server, displaying the current remaining task ending countdown and continuing to count down.

Optionally, the first presentation module 406 is further configured to:

under the condition that the client is a computer PC (personal computer) end, popping out an end popup in a live broadcast interface, and displaying a task end message and an acquisition result of a virtual article in the end popup;

and under the condition that the client is the mobile terminal, sending a task ending message and an acquisition result of the virtual article to a hypertext page in the mobile terminal through a message notification component, and displaying the task ending message and the acquisition result of the virtual article in the hypertext page.

After the virtual article acquisition task is triggered, the user can execute interactive operation in the live broadcast room through the client during timing, so that the server can determine a final virtual article acquisition result according to the interactive operation executed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

The foregoing is an exemplary scheme of the client in this embodiment. It should be noted that the technical solution of the client and the technical solution of the live broadcast virtual item acquisition method belong to the same concept, and details of the technical solution of the client, which are not described in detail, can be referred to the description of the technical solution of the live broadcast virtual item acquisition method.

Corresponding to the above method embodiment, the present application further provides a server embodiment, and fig. 5 shows a schematic structural diagram of a server provided in an embodiment of the present application. As shown in fig. 5, the server includes:

a second sending module 502 configured to send a task end countdown to the client when the virtual item acquisition task is triggered;

a receiving module 504 configured to receive a message corresponding to an interactive operation sent by a client during a timing period;

a first determining module 506, configured to determine statistical data of each user according to a message corresponding to the interactive operation when the timing is ended;

a first returning module 508, configured to determine an obtaining result of the virtual article according to the statistical data of each user, and return the obtaining result of the virtual article to the client.

Optionally, the server further comprises a fifth presentation module configured to:

under the condition that the anchor is determined to have the task authority, displaying a task setting control;

receiving a setting request initiated by an anchor through a task setting control;

setting the acquisition information of the virtual article according to the setting request, wherein the acquisition information of the virtual article comprises task parameters and personalized page parameters;

and broadcasting the acquisition information of the virtual article to the client.

Optionally, the task parameter includes a preset participation condition; the server further comprises a second determination module configured to:

receiving a task participation request sent by a client;

determining whether a participating user initiating a task participation request meets a preset participation condition;

and if the preset participation condition is met, broadcasting task ending countdown to the client under the condition of reaching the task starting time.

Optionally, the server further comprises a broadcasting module configured to:

receiving a polling message sent by a client, and returning reference countdown to the client;

in the case where it is determined that the task end time is reached, a task end message is broadcast to the client.

Optionally, the server further comprises a second return module configured to:

and sending an information filling reminding message to the client under the condition that the acquisition result of the virtual article comprises a login user of the client.

After the virtual article acquisition task is triggered, the user can execute interactive operation in the live broadcast room through the client during timing, so that the server can determine a final virtual article acquisition result according to the interactive operation executed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

The above is an illustrative scheme of a server of the present embodiment. It should be noted that the technical solution of the server and the technical solution of the live broadcast virtual item acquisition method belong to the same concept, and details of the technical solution of the server, which are not described in detail, can be referred to the description of the technical solution of the live broadcast virtual item acquisition method.

Corresponding to the above method embodiment, the present application further provides a server embodiment, and fig. 6 shows a schematic structural diagram of a live broadcast virtual item acquisition system provided in an embodiment of the present application. As shown in fig. 6, the live room virtual item acquisition system includes a client 602 and a server 604;

the client 602 is configured to acquire and display the task end countdown under the condition that the virtual article acquisition task is triggered; during timing, responding to the interactive operation of the live broadcast room, and sending a message corresponding to the interactive operation to a server; under the condition that timing is finished, displaying a task finishing message and an acquisition result of the virtual article, wherein the acquisition result of the virtual article is determined by the server according to statistical data of each user, and the statistical data is obtained based on message statistics corresponding to interactive operation;

a server 604 configured to send a task end countdown to the client if the virtual item acquisition task is triggered; receiving a message corresponding to interactive operation sent by a client during timing; under the condition of timing ending, determining statistical data of each user according to the message corresponding to the interactive operation; and determining the acquisition result of the virtual article according to the statistical data of each user, and returning the acquisition result of the virtual article to the client.

After the virtual article acquisition task is triggered, the user can execute interactive operation in the live broadcast room through the client during timing, so that the server can determine a final virtual article acquisition result according to the interactive operation executed by the user. Therefore, after the user participates in acquiring the virtual article, the interaction operation and the anchor interaction can be executed, the final acquisition result of the virtual article can be influenced by executing the interaction operation, the interactivity between the user and the anchor in the virtual article acquisition process is improved, and the user experience and the user viscosity are further improved.

The above is a schematic scheme of a live broadcast virtual item acquiring system of this embodiment. It should be noted that the technical solution of the live broadcast virtual item acquisition system and the technical solution of the live broadcast virtual item acquisition method belong to the same concept, and details of the technical solution of the live broadcast virtual item acquisition system, which are not described in detail, can be referred to in the description of the technical solution of the live broadcast virtual item acquisition method.

Fig. 7 illustrates a block diagram of a computing device 700 provided according to an embodiment of the present application. The components of the computing device 700 include, but are not limited to, memory 710 and a processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.

Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 740 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.

In one embodiment of the application, the above-described components of the computing device 700 and other components not shown in fig. 7 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 7 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.

Computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 700 may also be a mobile or stationary server.

The processor 720 is configured to execute the following computer-executable instructions to implement the operation steps of the live broadcast virtual item acquiring method.

The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the live broadcast virtual item acquisition method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can all be referred to in the description of the technical solution of the live broadcast virtual item acquisition method.

An embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the operation steps of the live broadcast virtual article acquisition method.

The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the live broadcast virtual item acquisition method belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the live broadcast virtual item acquisition method.

The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The computer instructions comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

30页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种视频聊天信息管理方法、装置及云服务器

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类