Bullet screen processing method, device and electronic equipment

By identifying and filtering user identity identification and barrage content within the preset activity duration, the lottery candidate users are quickly determined, and the problems of low efficiency of barrage lottery and loss of results in the existing technology are solved, and an efficient barrage lottery process is achieved.

CN112101985BActive Publication Date: 2024-12-03GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010839754.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-19
Publication Date
2024-12-03
Estimated Expiration
2040-08-19

AI Technical Summary

Technical Problem

The existing barrage lottery method requires the audience to send barrage frequently, and the lottery results may be lost due to network lag, which is inefficient.

Method used

By obtaining the identity identification type of the user who has sent the barrage within the preset activity duration, if it is the preset type, the barrage content is identified. If it is the specified content, the user is used as the candidate user and the winning user is determined from multiple candidate users. Achieve a quick lottery.

Benefits of technology

You can participate in the lottery without the need for users to enter the barrage frequently, which improves the efficiency of barrage lottery and reduces the loss of results caused by network problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112101985B_ABST
    Figure CN112101985B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for processing bullet screens. The method obtains the identity type of the user who has sent bullet screens within a preset activity duration. If the identity type is a preset type, the content of the bullet screen is identified. If the content is a specified content, the user is selected as a candidate user, and then the target user determined from multiple candidate users is selected as the winning user. Thus, the above method can be used to determine whether the user meets the lottery conditions by sequentially judging the identity type of the user who sent the bullet screen and the content of the bullet screen sent, and then complete the lottery process without the user frequently inputting bullet screens, thereby improving the efficiency of the bullet screen lottery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network live broadcasting, and more specifically, to a bullet screen processing method, device, electronic device and storage medium. Background Art

[0002] With the development of Internet technology and the increasing popularity of smart terminals, online video live streaming has been increasingly used. More and more viewers will watch the live broadcast of the anchor. In order to increase the popularity of the audience, the anchor will also use lottery methods such as barrage lottery to draw the winning audience and give prizes to the winning audience to increase the interaction with the audience and thus increase the activity of the live broadcast room. However, the existing barrage lottery method requires the audience to send barrage frequently, and the lottery results may be lost due to network freezes and other reasons, and the lottery efficiency will be slowed down. Summary of the invention

[0003] In view of the above problems, the present application proposes a bullet screen processing method, device, electronic device and storage medium to improve the above problems.

[0004] In the first aspect, an embodiment of the present application provides a barrage processing method, which is applied to a server, and the method includes: obtaining the identity identification type of a user who has sent a barrage within a preset activity duration; if the identity identification type is a preset type, identifying the content of the barrage; if the content is a specified content, taking the user as a candidate user; and taking a target user determined from multiple candidate users as a winning user.

[0005] In the second aspect, an embodiment of the present application provides a barrage processing method, which is applied to a client, and the method includes: using the configuration information input by the user as the configuration information of the barrage lottery activity in the current live broadcast room, the configuration information including a preset activity duration, an identity identification type and a specified content; sending the configuration information to a server, so that the server obtains the identity identification type of the user who has sent the barrage within the preset activity duration based on the configuration information, if the identity identification type is a preset type, identifies the content of the barrage, and if the content is a specified content, uses the user as a candidate user, and uses the target user determined from multiple candidate users as the winning user.

[0006] In the third aspect, an embodiment of the present application provides a barrage processing device that runs on a server, and the device includes: an acquisition module for acquiring the identity identification type of a user who has sent a barrage within a preset activity duration; an identification module for identifying the content of the barrage if the identity identification type is a preset type; a processing module for treating the user as a candidate user if the content is specified content; and a lottery module for treating a target user determined from a plurality of candidate users as a winning user.

[0007] In the fourth aspect, an embodiment of the present application provides a barrage processing device, which runs on a client, and the device includes: an acquisition unit, which is used to use the configuration information input by the user as the configuration information of the barrage lottery activity in the current live broadcast room, and the configuration information includes a preset activity duration, an identity identification type and a specified content; a processing unit, which is used to send the configuration information to a server, so that the server obtains the identity identification type of the user who has sent the barrage within the preset activity duration based on the configuration information, if the identity identification type is a preset type, identifies the content of the barrage, and if the content is a specified content, uses the user as a candidate user, and uses the target user determined from multiple candidate users as a winning user.

[0008] In a fifth aspect, an embodiment of the present application provides an electronic device comprising a memory and one or more processors; one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs are configured to execute the method described in the first aspect or the second aspect.

[0009] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein when the program code is executed by a processor, the method described in the first aspect or the second aspect is executed.

[0010] The embodiments of the present application provide a method, device, electronic device and storage medium for processing bullet screens. The method obtains the identity type of the user who has sent bullet screens within a preset activity duration. If the identity type is a preset type, the content of the bullet screen is identified. If the content is a specified content, the user is selected as a candidate user, and then the target user determined from multiple candidate users is selected as the winning user. Thus, the above method can be used to determine whether the user meets the lottery conditions by successively judging the identity type of the user who sent the bullet screen and the content of the bullet screen sent, and then complete the lottery process without the user frequently inputting bullet screens, thereby improving the efficiency of the bullet screen lottery. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 A schematic diagram of an application environment provided by an embodiment of the present application is shown.

[0013] Figure 2A method flow chart of a bullet screen processing method provided by an embodiment of the present application is shown.

[0014] Figure 3 A method flow chart of a bullet screen processing method provided by another embodiment of the present application is shown.

[0015] Figure 4 A display example diagram of a floating prompt box matching a bullet screen lottery activity provided by an embodiment of the present application is shown.

[0016] Figure 5 Another display example diagram of a floating prompt box matching a bullet screen lottery activity provided by an embodiment of the present application is shown.

[0017] Figure 6 A display example diagram of the winning prompt information provided by an embodiment of the present application is shown.

[0018] Figure 7 Another display example diagram of the winning prompt information provided by an embodiment of the present application is shown.

[0019] Figure 8 A display example diagram showing the list of winners provided in an embodiment of the present application is shown.

[0020] Fig. 9 Another display example diagram of displaying the winning list information provided by an embodiment of the present application is shown.

[0021] Fig.10 A method flow chart of a barrage processing method provided by yet another embodiment of the present application is shown.

[0022] Fig.11 An example diagram of a lottery configuration interface for inputting configuration information corresponding to a bullet screen lottery activity through a configuration interface provided in an embodiment of the present application is shown.

[0023] Fig.12 A timing flow chart of the lottery process of the barrage lottery activity provided in an embodiment of the present application is shown.

[0024] Fig.13 Another timing flow chart of the lottery process of the barrage lottery activity provided in an embodiment of the present application is shown.

[0025] Fig.14 A structural block diagram of a bullet screen processing device provided in one embodiment of the present application is shown.

[0026] Fig.15 A structural block diagram of a bullet screen processing device provided in another embodiment of the present application is shown.

[0027] Fig.16A structural block diagram of an electronic device provided in an embodiment of the present application is shown.

[0028] Fig.17 A storage unit of an embodiment of the present application is shown for storing or carrying program code for implementing the barrage processing method according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0030] With the rapid development of online live broadcast technology, in order to increase audience activity and user retention rate during live broadcast, anchor users often launch bullet screen lottery to attract audience users to send bullet screen and follow the anchor. However, the existing bullet screen lottery method requires audiences to send bullet screen frequently, and the lottery results may be lost due to network freezes and other reasons, and the lottery efficiency may be slowed down.

[0031] In response to the above problems, the inventors have discovered after long-term research that the identity identification type of the user who has sent barrage within the preset activity duration can be obtained through the server. If the identity identification type is a preset type, the content of the barrage will be identified. If the content is a specified content, the user will be used as a candidate user, and then the target user determined from multiple candidate users will be used as the winning user. Therefore, through the above method, by successively judging the identity identification type of the user who sent the barrage and the content of the barrage sent, it is possible to quickly determine whether the user meets the lottery conditions, and then complete the lottery process without the user frequently inputting barrages, thereby improving the efficiency of the barrage lottery. Therefore, a barrage processing method, device, electronic device and storage medium provided in the embodiments of the present application are proposed.

[0032] In order to facilitate the detailed description of the present application, an application environment in an embodiment of the present application is first introduced below with reference to the accompanying drawings.

[0033] See also Figure 1 , is a schematic diagram of an application environment of a bullet screen processing method provided in an embodiment of the present application, such as Figure 1 As shown, the application environment can be understood as a network system 10 provided in an embodiment of the present application. The network system 10 includes: a server 11 and a client 12.

[0034] The server 11 may be a single server (network access server), a server cluster (cloud server) consisting of several servers, or a cloud computing center (database server). The client 12 may be any device with communication and storage functions, including but not limited to a PC (Personal Computer), a PDA (tablet computer), a smart TV, a smart phone, a smart wearable device, or other smart communication devices with network connection functions.

[0035] It should be noted that the method in the embodiment of the present application can be applied to a live broadcast platform. As a method, the live broadcast platform can be run on Figure 1 The server 11 shown may also be a server cluster consisting of several servers 11 (only one is shown in the figure). Optionally, the client 12 may be a client of an instant messaging application or a social networking application, and the client may be an application client (such as a video playback application in a mobile phone APP) or a web client (such as a live broadcast platform), which is not limited here. Among them, the server 11 can establish a communication connection with the client 12 through a network. As a way, the network can be a wireless network or a wired network. The user can log in to the client 12 or the Internet using a registered user account. The client 12 may have an information input interface, in which the user enters text information, and the text information can be displayed in the chat interface of the client 12.

[0036] Optionally, the client 12 in this embodiment can be a host client of a live broadcast platform, or a viewing user client (including a paying user client and a non-paying user client). The client 12 has a live broadcast function, the host user can broadcast live through the client 12, and the audience user can watch the live broadcast of the host user through the client 12. The barrage processing method provided in this embodiment can be applied to extract target users who meet the lottery conditions from the audience users who send barrage messages during the live broadcast process as the winning users of the barrage lottery activity, so that the audience users can participate in the barrage lottery activity by sending a barrage message only once, without the need to frequently input barrages, thereby improving the efficiency of the barrage lottery.

[0037] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0038] See also Figure 2, shows a flow chart of a barrage processing method provided by an embodiment of the present application. This embodiment provides a barrage processing method, which can be applied to a server. The server can be understood as a business server. When the anchor user initiates a barrage lottery activity and the audience user participates in the barrage lottery activity, the business server can process the barrage sent by the audience user. The method includes:

[0039] Step S110: Obtain the identity type of the user who has sent a bullet comment within the preset activity duration.

[0040] In this embodiment, the preset activity duration is the activity duration of the barrage lottery activity, which can be pre-configured. The activity duration can be 1 minute, 3 minutes or 5 minutes, etc., and the specific duration can be unlimited. As a method, when the anchor in the live broadcast room initiates a barrage lottery activity, the identity type of the user who has sent barrages within the preset activity duration can be obtained. The identity type is used to indicate the identity level of the user, and users with different identity levels have different corresponding identity types. By obtaining the user's identity type, it is possible to quickly determine whether the user meets the lottery conditions of the barrage lottery activity. Optionally, the lottery conditions in this embodiment may include the identity type being a preset type.

[0041] Optionally, the audience users in this embodiment can have identity levels such as "everyone", "fans", or "cherish group", and corresponding identity identification types can be created for audience users of these identity levels. For example, an identity identification type "a" can be created for an audience user with an identity level of "cherish group", an identity identification type "b" can be created for an audience user with an identity level of "fans", and an identity identification type "c" can be created for an audience user with an identity level of "everyone", so that the identity levels of audience users can be quickly distinguished by identity identification types.

[0042] Step S120: If the identity identification type is a preset type, identify the content of the barrage.

[0043] As a method, if the user's identity identification type obtained is a preset type, it can be preliminarily determined that the user meets the lottery conditions, and the barrage content sent by the user can be identified. Optionally, the barrage content can include text, pictures, characters, or emoticons, and the specific content can be unlimited. By identifying the barrage content sent by the user, it can be further determined whether the user meets the lottery conditions, thereby reducing misjudgments and improving the fairness and accuracy of the lottery activities.

[0044] As another way, if the acquired user identity identification type is not a preset type, it can be determined that the user does not meet the lottery conditions. In this way, the lottery process for users who do not meet the lottery conditions can be ended.

[0045] Step S130: If the content is designated content, the user is considered as a candidate user.

[0046] Among them, the specified content can be understood as a barrage message in a specified format, for example, it can include barrage content with specified text and barrage content with a specified length. Optionally, the barrage content with specified text can be barrage content such as "Anchor 666", "Dear, pay attention to me", "12345" and "Follow me", and the specific content may not be restricted. The barrage content of a specified length may be "barrage content of no more than 8 digits (including text, numbers or characters, etc.), and the specific length of the barrage content may not be restricted.

[0047] As a method, if the content of the bullet screen sent by the user is the specified content, the user can be used as a candidate user. Optionally, the candidate user can be understood as a user to be extracted.

[0048] Optionally, some users who are not familiar with the gameplay of the barrage lottery may send barrages multiple times, resulting in the possibility that the same user exists for the barrage content sent as the specified content. As a way to improve this problem, when it is determined that the content of the barrage sent by the user is the specified content, the user can be deduplicated (i.e., duplicate users can be removed) to obtain the deduplicated users, and then the deduplicated users can be used as candidate users.

[0049] It should be noted that for two users with the same identity type, their account nicknames may also be the same. For example, in this way, if it is determined that they are duplicate users only by the identity type and account nickname and deleted, it may lead to misjudgment. In this way, the barrage sent by the user can also include an account identifier, which can be used to uniquely identify the user account. For example, assuming that there are two users whose account nicknames are both "Little Pumpkin", then the account identifier of one user can be "1" and the account identifier of the other user can be "2". In this way, after determining that the content of the barrage sent by the user is the specified content, before deduplication of the user is performed, the user's identity type can be identified first. If the identity types of different users are the same, the account identifiers of users with the same identity type can continue to be identified. If the same account identifier is identified, the user is deduplicated to remove duplicate users. Optionally, if it is identified that the account identifiers of users with the same identity type are different, the user whose sent barrage content corresponds to the specified content can be directly used as a candidate user.

[0050] Step S140: The target user determined from the plurality of candidate users is selected as the winning user.

[0051] It is understandable that there may be multiple users who have sent bullet comments and become candidate users within the preset activity duration. In this way, in order to ensure the fairness of the lottery, a random algorithm can be used to determine the target user from multiple candidate users, and then the target user determined from multiple candidate users can be used as the winning user. Optionally, the random algorithm in this embodiment can be a random permutation position algorithm or a reverse generation algorithm, etc., which can be selected according to actual conditions. Among them, the determination principle and determination process of determining the target user from multiple candidate users using a random algorithm can refer to the relevant technology, which will not be repeated here.

[0052] The barrage processing method provided in this embodiment obtains the identity type of the user who has sent the barrage within the preset activity duration. If the identity type is the preset type, the content of the barrage is identified. If the content is the specified content, the user is selected as a candidate user, and then the target user determined from multiple candidate users is selected as the winning user. Thus, through the above method, it is possible to quickly determine whether the user meets the lottery conditions by successively judging the identity type of the user who sent the barrage and the content of the barrage sent, and then complete the lottery process without the user frequently inputting the barrage, thereby improving the efficiency of the barrage lottery.

[0053] See also Figure 3 , shows a flow chart of a bullet screen processing method provided by another embodiment of the present application. This embodiment provides a bullet screen processing method, which can be applied to a server. The method includes:

[0054] Step S210: Obtain the configuration information of the barrage lottery activity in the current live broadcast room.

[0055] Optionally, the server may have multiple ways of obtaining configuration information of the bullet screen lottery activity in the live broadcast room.

[0056] In one implementation, the server can obtain the configuration information of the barrage lottery activity in the current live broadcast room when it detects that the client where the anchor user is located has started the barrage lottery activity. Optionally, when the client where the anchor user is located starts the barrage lottery activity, a lottery instruction can be sent to the server, and the server can receive the lottery instruction and obtain the configuration information of the barrage lottery activity in the current live broadcast room at the same time. The configuration information can be stored in advance on the server or an external storage device. In another implementation, the configuration information can be pre-stored on the server so that when the server receives the lottery instruction, it can directly read the configuration information to obtain the configuration information of the barrage lottery activity in the current live broadcast room.

[0057] Step S220: Obtaining the preset activity duration, identity identification type and designated content from the configuration information.

[0058] Optionally, the configuration information of the bullet screen lottery activity may include lottery prizes, preset activity duration, identity identification types of users who can participate in the activity, and bullet screen content that needs to be sent to participate in the activity. As an implementation method, the server can obtain the preset activity duration, identity identification type, and specified content from the configuration information that has been obtained.

[0059] Optionally, after receiving the lottery instruction, the server can send the lottery instruction to all the audience users in the current live broadcast room to instruct the clients of all the audience users to display a floating prompt box matching the bullet screen lottery activity. For example, in a specific application scenario, please refer to Figure 4 , shows a display example diagram of a floating prompt box matching a bullet screen lottery activity provided by an embodiment of the present application. Figure 4 As shown, the display interface 101 of the electronic device 100 displays live video content 102, bullet screen list 103, bullet screen 104 and floating prompt box 105. Among them, the floating prompt box 105 is used to remind the user that there is a bullet screen lucky draw activity in the current live broadcast room. The specific content of the activity includes: the name of the activity is "One shot and you win", the activity benefit (i.e. the prize of the activity) is "anchor WeChat account × 1", the activity duration is 50 seconds (the activity time is displayed in a countdown manner), and the participation method of the activity is "Everyone sends 618 on the public screen", and the audience user can participate in the bullet screen lucky draw activity by sending "618" on the public screen.

[0060] Optional, above Figure 4 The display mode (including display style and display position, etc.) of the floating prompt box exemplified in the example can be set according to actual conditions. For example, in another specific application scenario, the following can be used: Figure 5 The method shown above displays a floating prompt box that matches the bullet screen lottery activity. Figure 5 The specific content of the activities is different from Figure 4 The difference is: the event prize is "Real Madrid x 5", the event duration is 3 minutes and 20 seconds, and the way to participate in the event is "first follow the anchor and then send 'XX will stay with you until old age'". Optional, such as Figure 5 As shown, in order to improve the convenience and efficiency of users participating in the lottery, you can configure a quick function button for participating in the activity (such as Figure 5 "One-click participation" is shown), and audience users can quickly participate in the barrage lottery by touching the shortcut function button without having to manually enter the barrage content.

[0061] Step S230: Obtain the identity identification type of the user who has sent a barrage within the preset activity duration.

[0062] Step S240: Determine whether the identity identification type is a preset type.

[0063] Optionally, the acquired identity identification type may be compared with a preset type to determine whether the acquired identity identification type is the preset type. The preset type may be an identity identification type corresponding to a user who can participate in the activity.

[0064] Step S250: Identify the content of the barrage.

[0065] As one way, if the identity identification type is a preset type, the content of the bullet comment can be identified to further determine whether the user meets the conditions for participating in the bullet comment lottery. As another way, if the identity identification type is not a preset type, the corresponding user's lottery participation qualification can be directly cancelled.

[0066] Step S260: Determine whether the content of the barrage is the specified content.

[0067] Step S271: taking the user as a candidate user.

[0068] Optionally, if it is determined that the content of the barrage sent by the user is the specified content, the user can be used as a candidate user. Optionally, in order to prevent the loss of the candidate user list due to network abnormalities and other reasons, the list corresponding to the candidate users can be sent to a remote cache for storage. The remote cache can be understood as an external storage device.

[0069] Step S272: The target user determined from the plurality of candidate users is selected as the winning user.

[0070] Optionally, after the winning user is selected from multiple candidate users, the winning message can be sent to the client where the winning user is located, and the client where the winning user is located can be instructed to display the winning prompt information. For example, in a specific application scenario, please refer to Figure 6 , shows an example of displaying the winning prompt information provided by the embodiment of the present application. Figure 6 As shown, the winning prompt information 107 includes: a winning prompt slogan and a prize collection prompt, wherein the winning prompt slogan (in the figure, "Congratulations on your winning") can be configured according to the actual activity situation, and the specific content may not be restricted.

[0071] Optionally, the winning prompt information may also have other display styles, for example, Figure 7 As shown, another display example diagram of the winning prompt information provided in an embodiment of the present application is shown.

[0072] Optionally, in order to create a lively atmosphere in the live broadcast room, the lottery results of the bullet screen lottery activity can be sent to the client of the non-winning audience user, and the client of the non-winning audience user can be instructed to display the list of winners. For example, in a specific application scenario, please refer to Figure 8 , shows an example diagram of displaying the winning list information provided by an embodiment of the present application, such as Figure 8 As shown, the winning list information may include the event prize (Real Madrid x 5 in the figure) and the nickname of the winning user. Optionally, the display style and display position of the winning list information may be randomly generated. For example, in another specific application scenario, the winning list information may be displayed as follows: Fig. 9 The method shown, compared to Figure 8 , Fig. 9 The arrangement of the display position of the nickname of the winning user may be different.

[0073] Optionally, in order to avoid the loss of the winning results, the list of winning users may be sent to a database for storage, and the database may be a memory of a server.

[0074] This embodiment can strengthen the interaction between the anchor and the audience users, enhance the audience users' enthusiasm for interaction, and thereby improve the audience retention rate of the live broadcast room by displaying prompt information corresponding to the barrage lottery activity and the winning prompt information of the lottery activity on the user's client.

[0075] Step S273: Determine whether the content meets the specified conditions.

[0076] Optionally, if the content of the barrage sent by the user is not the specified content, it can be determined whether the content of the barrage meets the specified conditions. Optionally, the barrage content that meets the specified conditions is eligible to participate in the barrage lottery activity.

[0077] Optionally, if it is determined that the content of the barrage meets the specified conditions, the content of step S272 can be directly executed. If it is determined that the content of the barrage does not meet the specified conditions, the corresponding user's qualification to participate in the lottery can be directly cancelled.

[0078] The barrage processing method provided in this embodiment realizes the method of determining whether the user meets the activity participation qualifications by step-by-step identification of the identity type identification of the user participating in the barrage lottery and the content of the barrage sent. If the user meets the activity participation qualifications, the winning user is selected by a random algorithm to complete the lottery process, which reduces the human cost of the anchor to manually filter and screen the users participating in the activity, and the winning user is selected by a random algorithm, which improves the fairness and reliability of the lottery. By storing the list of candidate users who meet the activity participation qualifications and the list of winning users multiple times, data loss can be avoided and the efficiency of the lottery can be improved.

[0079] See also Fig.10, shows a flow chart of a bullet screen processing method provided by another embodiment of the present application. This embodiment provides a bullet screen processing method, which can be applied to a client, and the client can be understood as a client where the anchor user is located. The method includes:

[0080] Step S310: Use the configuration information input by the user as the configuration information of the barrage lottery activity in the current live broadcast room.

[0081] Optionally, the client can configure the activity setting function, and can enable the host user's permission to use the activity configuration function. The host user can input configuration information through the client to configure the barrage lottery activity. The configuration information may include a preset activity duration (i.e., the effective duration of the barrage lottery activity), an identity identification type (i.e., the identity level of users who are eligible to participate in the activity), activity prizes, and specified content (i.e., the barrage content that needs to be sent to participate in the activity). When the user inputs the configuration information corresponding to the barrage lottery activity, the client can use the configuration information input by the user as the configuration information of the barrage lottery activity in the current live broadcast room.

[0082] Optionally, in a specific application scenario, such as Fig.11 As shown, users can Fig.11 The configuration interface shown inputs configuration information corresponding to the barrage lottery activity, wherein the barrage prize field is used to select activity prizes. Optionally, users can pre-store a variety of virtual prizes as activity prizes, and can also select the number of activity prizes (i.e., number of copies). The participation condition field is used to select the type of user identity that is eligible to participate in the activity, for example, it may include "everyone", "fans" or "cherish group" described in the aforementioned embodiments. The opening duration field is used to configure the effective duration of the activity. By selecting the button, a pre-set duration can be selected as the activity duration. Optionally, in some embodiments, the effective duration of the activity can also be customized. The specified barrage field is used to configure the barrage content that needs to be sent to participate in the activity, for example, Fig.11 The shown "Host 666", "Dear, follow me", "12345" and "Follow me" can all be designated bullet comments. Optionally, in some implementations, bullet comments with a number of characters or numbers not exceeding a designated number of digits can also be set as designated bullet comments, for example Fig.11 The number shown is no more than 8 digits.

[0083] Step S320: Send the configuration information to the server so that the server obtains the identity type of the user who has sent the barrage within the preset activity duration based on the configuration information; if the identity type is a preset type, identify the content of the barrage; if the content is specified content, take the user as a candidate user, and take the target user determined from the multiple candidate users as the winning user.

[0084] Optionally, after the client obtains the configuration information, it can send the configuration information to the server to instruct the server that it can obtain the identity identification type of the user who has sent the barrage within the preset activity duration based on the configuration information. If the identity identification type is a preset type, the content of the barrage is identified. If the content is specified content, the user is used as a candidate user, and the target user determined from multiple candidate users is used as the winning user. The specific implementation process can be found in the description of the aforementioned embodiment and will not be repeated here.

[0085] Combine the following Fig.12 as well as Fig.13 This embodiment is described exemplarily:

[0086] See also Fig.12 In a specific application scenario, the anchor user can configure the lottery rules through the lottery configuration page of the client to start the lottery. Optionally, the user can configure the lottery prizes, lottery conditions, countdown (i.e. the effective duration of the lottery) and the bullet comments that need to be sent to participate in the lottery through the lottery configuration page. In order to ensure the fairness and effectiveness of the activity, the configuration information can be sent to the database for storage (i.e. Fig.12 The database can forward the configuration information to an external storage device for remote caching (i.e. Fig.12 ). Optionally, the database and the remote cache are storage locations corresponding to different storage devices. When the lottery background (i.e., the aforementioned server, which can be understood as a business server here) needs to draw a lottery for a candidate user, a configuration information call request can be sent to the remote cache. The remote cache will first return the configuration information to the database, and the database will return the configuration information to the local cache. At the same time, the configuration information can be stored in the local cache (which can be understood as the storage module of the client). In this way, the server can obtain the configuration information from the local cache, and then implement the lottery process based on the audience user who currently launches the barrage. Optionally, the lottery background can also directly pull the configuration information from the remote cache to quickly complete the lottery process. Optionally, the lottery background in this embodiment can complete the lottery based on a random algorithm, and then store the lottery results in the database, which can avoid the loss of the lottery results. By pulling the configuration information from the remote cache and the multi-level caching of the configuration information, the response speed of the lottery process can be guaranteed, thereby improving the efficiency of the lottery.

[0087] See also Fig.13 In another specific application scenario, audience users can participate in the above bullet screen lottery activity by sending bullet screens. Fig.13As shown, after the audience user sends the bullet screen, the server's stream processing module can send the audience user's bullet screen sending behavior information to the local cache (optionally, the local cache pre-stores the configuration information corresponding to the bullet screen lottery activity) to participate in condition filtering, and then determine whether the audience user hits the lottery condition. Optionally, if the lottery condition is hit (that is, the lottery activity participation qualification is met), then the lottery result can be written into the remote cache, so that the lottery background can quickly pull the cached lottery result from the remote cache when implementing the lottery process, so that the lottery process can be completed quickly. After the lottery background calculates the lottery result through a random algorithm lottery, the lottery result can be sent to the database for storage, and the lottery result can be announced to the audience users (including winning audience users and non-winning audience users). The specific process can be referred to the description in the aforementioned embodiment, which will not be repeated here.

[0088] The barrage processing method provided in this embodiment uses the configuration information input by the user as the configuration information of the barrage lottery activity in the current live broadcast room through the client, and then sends the configuration information to the server, so that the server can obtain the identity type of the user who has sent the barrage within the preset activity duration based on the configuration information. If the identity type is a preset type, it can start to identify the content of the barrage. If the content is a specified content, the user is used as a candidate user, and then the target user determined from multiple candidate users is used as the winning user. Thus, through the above method, it is realized that by pre-configuring the configuration information corresponding to the barrage lottery activity, the server can quickly complete the lottery process when implementing the lottery process, thereby improving the efficiency of the barrage lottery.

[0089] See also Fig.14 , is a structural block diagram of a bullet screen processing device provided in an embodiment of the present application. This embodiment provides a bullet screen processing device 400, which can be run on a server. The device 400 includes: an acquisition module 410, an identification module 420, a processing module 430 and a lottery module 440:

[0090] The acquisition module 410 is used to obtain the identity type of the user who has sent the barrage within the preset activity duration.

[0091] Optionally, the device 400 may also include a configuration information acquisition module, which is used to obtain the configuration information of the barrage lottery activity in the current live broadcast room before obtaining the identity identification type of the user who has sent barrage within the preset activity duration; and then obtain the preset activity duration, the identity identification type and the specified content from the configuration information.

[0092] Optionally, the device 400 may also include an instruction processing module for receiving a lottery instruction; sending the lottery instruction to all users in the current live broadcast room to instruct the clients of all users to display a floating prompt box matching the barrage lottery activity.

[0093] The identification module 420 is used to identify the content of the barrage if the identity identification type is a preset type.

[0094] Optionally, if the identity identification type is not a preset type, the lottery process for the current user may be terminated.

[0095] The processing module 430 is configured to take the user as a candidate user if the content is designated content.

[0096] As a method, the processing module 430 can be used to, if the content is designated content; deduplicate the users to obtain deduplicated users; and use the deduplicated users as candidate users.

[0097] Optionally, if the content is not the specified content, it can be determined whether the content meets the specified conditions. If the specified conditions are met, the user can be used as a candidate user; and if the specified conditions are not met, the lottery process for the current user can be terminated.

[0098] The lottery module 440 is used to select a target user determined from the plurality of candidate users as a prize-winning user.

[0099] Optionally, the device 400 may further include a storage module, configured to send the candidate users to a remote cache for storage; and send the winning users to a database for storage.

[0100] See also Fig.15 , is a structural block diagram of a bullet screen processing device provided in an embodiment of the present application. This embodiment provides a bullet screen processing device 500, which can be run on a client. The device 500 includes: an acquisition unit 510 and a processing unit 520:

[0101] The acquisition unit 510 is used to use the configuration information input by the user as the configuration information of the barrage lottery activity in the current live broadcast room, and the configuration information includes a preset activity duration, an identity identification type, and specified content.

[0102] Processing unit 520 is used to send the configuration information to the server so that the server obtains the identity identification type of the user who has sent the barrage within the preset activity duration based on the configuration information; if the identity identification type is a preset type, the content of the barrage is identified; if the content is specified content, the user is used as a candidate user, and the target user determined from the multiple candidate users is used as the winning user.

[0103] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0104] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.

[0105] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0106] See also Fig.16 Based on the above-mentioned bullet screen processing method and device, the embodiment of the present application also provides an electronic device 100 that can execute the above-mentioned bullet screen processing method. The electronic device 100 can be the above-mentioned server or client. The electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processor 104 are connected by a communication line. The memory 102 stores a program that can execute the content in the above-mentioned embodiment, and the processor 104 can execute the program stored in the memory 102.

[0107] Among them, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 104 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 104 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 104, but may be implemented separately through a communication chip.

[0108] The memory 102 may include a random access memory (RAM) or a read-only memory (ROM). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0109] Please refer to Fig.17 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0110] The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0112] In summary, the embodiments of the present application provide a method, device, electronic device, and storage medium for processing barrages, which obtains the identity type of the user who has sent barrages within a preset activity duration. If the identity type is a preset type, the content of the barrage is identified. If the content is a specified content, the user is used as a candidate user, and then the target user determined from multiple candidate users is used as the winning user. Thus, through the above method, it is possible to quickly determine whether the user meets the lottery conditions by successively judging the identity type of the user who sent the barrage and the content of the barrage sent, and then complete the lottery process without the user frequently inputting barrages, thereby improving the efficiency of the barrage lottery.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing barrage, It is characterized in that Applied to a server, the method comprises: Obtain configuration information of the barrage lottery activity in the current live broadcast room, obtain the preset activity duration, the identity type and the specified content from the configuration information, and obtain the identity type of the user who has sent the barrage within the preset activity duration; wherein, the configuration information is sent to a database for storage, and the database forwards the configuration information to an external storage device for remote caching, and the database and the remote cache are storage locations corresponding to different storage devices; when it is necessary to draw a lottery for a candidate user, a configuration information call request is sent to the remote cache, and the remote cache first returns the configuration information to the database, and the database returns the configuration information to the local cache; Acquire configuration information from the local cache, and implement a lottery process based on the audience user who currently launches the barrage; complete the lottery based on a random algorithm, and if the identity identification type is a preset type, preliminarily determine that the user meets the lottery conditions of the barrage lottery activity, and start to identify the content of the barrage to further determine whether the user meets the lottery conditions of the barrage lottery activity; If the content is the specified content, the user is taken as a candidate user, and the specified content includes the barrage content of the specified length; if the content is not the specified content, it is determined whether the content meets the specified conditions, and the barrage content that meets the specified conditions is eligible to participate in the barrage lucky draw activity; if so, the user is taken as a candidate user; A target user determined from the plurality of candidate users is taken as a winning user, and the winning user is sent to a database for storage.

2. The method according to claim 1, It is characterized in that The method further comprises: Receive lottery instructions; The lottery instruction is sent to all users in the current live broadcast room to instruct the clients of all users to display a floating prompt box matching the bullet screen lottery activity.

3. The method according to claim 1, It is characterized in that If the content is designated content, taking the user as a candidate user includes: If the content described is the specified content; Deduplicating the users to obtain deduplicated users; The users after deduplication are taken as candidate users.

4. A method for processing barrage, It is characterized in that Applied to a client, the method comprises: The configuration information input by the user is used as the configuration information of the barrage lottery activity in the current live broadcast room, wherein the configuration information includes the preset activity duration, the identity identification type, and the specified content; The configuration information is sent to the server, so that the server obtains the configuration information of the barrage lottery activity in the current live broadcast room based on the configuration information, and obtains the preset activity duration, the identity identification type and the specified content from the configuration information, wherein the configuration information is sent to the database for storage, and the database forwards the configuration information to the external storage device for remote caching, and the database and the remote cache are storage locations corresponding to different storage devices; when it is necessary to draw a lottery for a candidate user, a configuration information call request is sent to the remote cache, and the remote cache will first return the configuration information to the database, and the database will return the configuration information to the local cache; obtain the identity identification type of the user who has sent the barrage within the preset activity duration, obtain the configuration information from the local cache, and based on The lottery process is implemented for the audience user who is currently launching the barrage; the lottery is completed based on a random algorithm. If the identity identification type is a preset type, it is preliminarily determined that the user meets the lottery conditions of the barrage lottery activity, and the content of the barrage is identified to further determine whether the user meets the lottery conditions of the barrage lottery activity. If the content is specified content, the user is used as a candidate user, and the specified content includes barrage content of a specified length. If the content is not the specified content, it is determined whether the content meets the specified conditions. The barrage content that meets the specified conditions is eligible to participate in the barrage lottery activity; if it is satisfied, the user is used as a candidate user, and the target user determined from multiple candidate users is used as a winning user, and the winning user is sent to a database for storage.

5. A barrage lottery device, It is characterized in that Running on a server, the device comprises: An acquisition module is used to obtain configuration information of the barrage lottery activity in the current live broadcast room, obtain the preset activity duration, the identity type and the specified content from the configuration information, and obtain the identity type of the user who has sent the barrage within the preset activity duration; wherein the configuration information is sent to a database for storage, and the database forwards the configuration information to an external storage device for remote caching, and the database and the remote cache are storage locations corresponding to different storage devices; when it is necessary to draw a lottery for a candidate user, a configuration information call request is sent to the remote cache, and the remote cache first returns the configuration information to the database, and the database returns the configuration information to the local cache; The identification module is used to obtain configuration information from the local cache, implement a lottery process based on the audience user who currently launches the barrage; complete the lottery based on a random algorithm, and if the identity identification type is a preset type, preliminarily determine that the user meets the lottery conditions of the barrage lottery activity, and start to identify the content of the barrage to further determine whether the user meets the lottery conditions of the barrage lottery activity; A processing module, for, if the content is specified content, treating the user as a candidate user, wherein the specified content includes a barrage content of a specified length; if the content is not specified content, determining whether the content meets specified conditions, and barrage content that meets the specified conditions is eligible to participate in the barrage lucky draw activity; if so, treating the user as a candidate user; The lottery module is used to determine the target user from the multiple candidate users as a winning user, and send the winning user to the database for storage.

6. A barrage lottery device, It is characterized in that Running on the client, the device includes: An acquisition unit, used to use the configuration information input by the user as the configuration information of the bullet screen lottery activity in the current live broadcast room, wherein the configuration information includes a preset activity duration, an identity identification type, and a specified content; A processing unit is used to send the configuration information to a server, so that the server obtains the configuration information of the barrage lottery activity in the current live broadcast room based on the configuration information, and obtains the preset activity duration, the identity identification type and the specified content from the configuration information, wherein the configuration information is sent to a database for storage, and the database forwards the configuration information to an external storage device for remote caching, and the database and the remote cache are storage locations corresponding to different storage devices; when it is necessary to draw a lottery for a candidate user, a configuration information call request is sent to the remote cache, and the remote cache first returns the configuration information to the database, and the database returns the configuration information to the local cache; the identity identification type of the user who has sent the barrage within the preset activity duration is obtained, and the configuration information is obtained from the local cache. The information is obtained by performing a lottery process on the audience user who currently launches the barrage; the lottery is completed based on a random algorithm. If the identity identification type is a preset type, it is preliminarily determined that the user meets the lottery conditions of the barrage lottery, and the content of the barrage is identified to further determine whether the user meets the lottery conditions of the barrage lottery. If the content is specified content, the user is used as a candidate user, and the specified content includes barrage content of a specified length. If the content is not specified content, it is determined whether the content meets the specified conditions. The barrage content that meets the specified conditions is eligible to participate in the barrage lottery; if it meets the conditions, the user is used as a candidate user, and the target user determined from multiple candidate users is used as a winning user, and the winning user is sent to the database for storage.

7. An electronic device, It is characterized in that including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method of any one of claims 1-3 or 4.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 3 or 4 is executed.