CN113055701A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN113055701A
CN113055701A CN202110428257.7A CN202110428257A CN113055701A CN 113055701 A CN113055701 A CN 113055701A CN 202110428257 A CN202110428257 A CN 202110428257A CN 113055701 A CN113055701 A CN 113055701A
Authority
CN
China
Prior art keywords
message
target
processed
queue
display area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110428257.7A
Other languages
Chinese (zh)
Other versions
CN113055701B (en
Inventor
杜峰
赵淑超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202110428257.7A priority Critical patent/CN113055701B/en
Publication of CN113055701A publication Critical patent/CN113055701A/en
Application granted granted Critical
Publication of CN113055701B publication Critical patent/CN113055701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data processing method and a device, wherein the data processing method comprises the following steps: receiving a target message to be processed with a message type of a behavior type, wherein the target message to be processed comprises message receiving time and a target user attribute value; determining a target display area corresponding to the target message to be processed; determining a target queue group of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groups according to the message receiving time; adding the target message to be processed to the target queue group according to the target user attribute value; and processing the messages to be processed in the message queue according to a preset processing rule. By the data processing method, the problem that the normal interaction between the anchor and the audience is influenced due to frequent occurrence of behavior type messages to be processed is avoided, and the interactive viewing experience of a user in a live broadcast room is improved.

Description

Data processing method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data processing method. The application also relates to a data processing apparatus, a computing device, and a computer-readable storage medium.
Background
With the development of internet technology, live broadcast also enters the daily life of the public, and a user can select a live broadcast room in which the user is interested in a live broadcast platform, watch live broadcast content of a main broadcast in the live broadcast room, and interact with the main broadcast, such as gift brushing, text communication and the like.
When a user enters a live broadcast room, leaves the live broadcast room and interacts with an anchor broadcast, corresponding message information can be generated, for example, the user enters the live broadcast room, leaves the live broadcast room, and brushes a certain gift, and the like, and the message information can be displayed in a display area of the live broadcast room.
Disclosure of Invention
In view of this, the present application provides a data processing method. The application also relates to a data processing device, a computing device and a computer readable storage medium, which are used for solving the problems that the interaction between the anchor and the user is influenced because the physical examination of the user is not friendly caused by the accumulation of the messages of the behavior types in the prior art.
According to a first aspect of embodiments of the present application, there is provided a data processing method, including:
receiving a target message to be processed with a message type of a behavior type, wherein the target message to be processed comprises message receiving time and a target user attribute value;
determining a target display area corresponding to the target message to be processed;
determining a target queue group of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groups according to the message receiving time;
adding the target message to be processed to the target queue group according to the target user attribute value;
and processing the messages to be processed in the message queue according to a preset processing rule.
According to a second aspect of embodiments of the present application, there is provided a data processing apparatus including:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is configured to receive a target message to be processed with a message type of a behavior type, and the target message to be processed comprises message receiving time and a target user attribute value;
the display determination module is configured to determine a target display area corresponding to the target message to be processed;
the grouping determination module is configured to determine a target queue grouping of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groupings according to the message receiving time;
an adding module configured to add the target pending message to the target queue packet according to the target user attribute value;
and the processing module is configured to process the messages to be processed in the message queue according to preset processing rules.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data processing method when executing the computer instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the data processing method.
The data processing method comprises the steps of receiving a target message to be processed, wherein the message type of the target message to be processed is a behavior type, and the target message to be processed comprises message receiving time and a target user attribute value; determining a target display area corresponding to the target message to be processed; determining a target queue group of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groups according to the message receiving time; adding the target message to be processed to the target queue group according to the target user attribute value; the method comprises the steps of processing messages to be processed in a message queue according to a preset processing rule, determining display areas corresponding to the messages to be processed according to user information corresponding to the messages to be processed, displaying different messages to be processed in different display areas, storing some messages to be processed, which do not need to be focused by a main broadcast, into queue groups corresponding to specific display areas, and screening the messages to be processed according to message receiving time and user attribute values, so that the problems that the messages to be processed of behavior types frequently appear and normal interaction of the main broadcast and audiences is influenced are solved, and interactive viewing experience of users in a live broadcast is improved.
Drawings
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an interactive display area and a screen-swiping prevention display area in a live broadcast room according to an embodiment of the application;
FIG. 3 is a diagram illustrating a target pending message added to a second message queue according to an embodiment of the present application;
FIG. 4 is a flow chart of a data processing method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 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.
First, the noun terms to which one or more embodiments of the present application relate are explained.
Message type: the message type of each message to be processed in the live broadcast room is generally divided into an interactive message type and a behavior type, wherein the interactive message type is the speech of a user, a payment gift given by the user to a main broadcast, and the like; the type of behavior is entrance, departure, attention, special attention, giving away a free gift, and the like.
A display area: a region for displaying the message to be processed.
Message queue: each display area corresponds to one message queue, and the messages to be processed are read from the message queues and displayed in the corresponding display areas.
In the present application, a data processing method is provided, and the present application relates to a data processing apparatus, 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 data processing method according to an embodiment of the present application, which specifically includes the following steps:
step 102: receiving a target message to be processed with a message type of behavior type, wherein the target message to be processed comprises a message receiving time and a target user attribute value.
When a user watches a live broadcast in a live broadcast room, many messages are generated, such as that the user enters a room, leaves the room, sends a gift to a main broadcast, sends a text interaction to the main broadcast, pays attention to the main broadcast, and the like, wherein the messages are generally divided into two message types, one is an interaction type, such as text interaction, gift interaction, and the like; the other is the type of activity, such as entering a live room, leaving a live room, following a anchor, etc. In practical application, the anchor pays more attention to interactive messages and messages of behavior types of some important audiences, and when the number of messages to be processed is large, messages of behavior types of some common users are correspondingly processed, so that the users and the anchor pay more attention to the interactive messages, and user experience is improved.
In the data processing method provided by the application, the target message to be processed is the message to be processed, the message type of the target message to be processed in the application is a behavior type, such as entering a live broadcast room, leaving the live broadcast room, paying attention to a main broadcast and the like, and when a user enters the live broadcast room through a client to watch the live broadcast, the user can usually see the messages of the behavior types of other users. In practical application, each target message to be processed further includes a corresponding target user attribute value, the target user attribute value may be the same as or different from a target user grade, the target user attribute value is related to an identity and a behavior of a sender of the target message to be processed, and when the identity of the sender is higher and the behavior is more active, the target user attribute value is higher. For example, messages such as "zhang san V3 enters live room", "lie four V1 focuses on anchor" and so on are usually displayed in the live room. Wherein, "zhangsan V3" and "liquan V1" are one representation of the attribute value of the target user.
In an embodiment provided in the present application, taking target to-be-processed message M as "× time points", and wang five V5 enters into the live broadcast room "as an example, the message type of target to-be-processed message M is a behavior type, specifically indicating a behavior of opening three to enter into the live broadcast room, where" × time points "is a message receiving time, and" wang five V5 "is a target user attribute value.
Step 104: and determining a target display area corresponding to the target message to be processed.
In practical application, a plurality of display areas are provided, and specifically, the display areas can be divided into an interactive display area and a screen-refreshing prevention display area, in practical application, a display area in which the target to-be-processed message should appear is determined according to a target user attribute value, that is, a target display area corresponding to the target to-be-processed message is determined according to the target user attribute value, and the target display area is a display area in which the target to-be-processed message should appear.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating an interactive display area and an anti-swipe display area in a live broadcast room according to an embodiment of the present application. The interactive display area and the anti-screen-swiping display area occupy different proportions in the screen, and the interactive display area is used for interaction between the anchor and a user, so that the range of the interactive display area is larger, and the anti-screen-swiping display area is mainly used for displaying messages of behavior types.
In practical application, the live broadcast platform determines the importance of a user through a target user attribute value, a target display area corresponding to a target message to be processed needs to be determined according to the target user attribute value, when the target user attribute value is higher, the anchor can pay more attention to the behavior and interaction of a target user, for example, the attribute value of Zhang III is higher, which indicates that Zhang III is an important user of a live broadcast room or live broadcast platform, and the behavior of entering the live broadcast room generated when Zhang III enters the live broadcast room needs to be displayed in the interaction display area; for example, the user attribute value of lie four is low, and the behavior of entering the live broadcast room generated when lie four enters the live broadcast room is displayed in the anti-brushing screen display area.
In practical application, the attribute value of the target user can be the attribute value of the user in the live broadcast room or the attribute value of the live broadcast platform, the promotion of the attribute value of the user can be determined according to the condition that the user sends out the gift in the live broadcast room or the consumption condition of the user in the live broadcast platform, and in the application, the determination mode of the attribute value of the target user is not limited.
Specifically, determining a target display area corresponding to the target to-be-processed message according to the target user attribute value includes:
determining a first display area corresponding to the target message to be processed under the condition that the target user attribute value is greater than or equal to a preset threshold value;
and determining that the target message to be processed corresponds to a second display area under the condition that the target user attribute value is smaller than the preset threshold value.
The first display area is specifically the interactive display area, the second display area is specifically the anti-screen-swiping display area, when the target user attribute value of the target user is greater than or equal to the preset threshold value, it is determined that the target to-be-processed message corresponding to the target user needs to be displayed in the first display area (i.e., the interactive display area), and when the target user attribute value of the target user is smaller than the preset threshold value, it is determined that the target to-be-processed message corresponding to the target user needs to be displayed in the second display area (i.e., the anti-screen-swiping display area).
In a specific embodiment provided by the application, along the above example, the preset threshold is set to 500, and the target user attribute value of the target user wang five is 600, it is determined that the target to-be-processed message M, "wang five V5, enters the corresponding interactive display area of the live broadcast room.
In another specific embodiment provided by the present application, the preset threshold is set to 500, the target to-be-processed message is "liquad V1 pays attention to the anchor", the target user attribute value of the target user liquad is 200, and it is further determined that the target to-be-processed message "liquad V1 pays attention to the anchor" corresponding anti-swipe display area.
Step 106: and determining a target queue group of the target message to be processed in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groups according to the message receiving time.
Each display area corresponds to one message queue, each message to be processed is added to the message queue, and then each message to be processed is read from the message queue in sequence and displayed in the corresponding display area. For example, the interactive display area corresponds to an interactive display queue, and the anti-screen-refreshing display area corresponds to an anti-screen-refreshing queue.
Each message to be processed corresponds to a message receiving time, namely a timestamp, the precision of the timestamp is accurate and can reach microsecond level, a large number of messages to be processed exist in the anti-screen-refreshing queue, a plurality of message groups to be processed are created according to a preset time period interval, for example, 1 second is taken as a unit, the messages to be processed between 1 second and 2 second are added to the 1 st queue group, the messages to be processed between 2 second and 3 second are added to the 2 nd queue group, … … is analogized, and the target queue group corresponding to the target message to be processed can be determined according to the message receiving time corresponding to the target message to be processed.
Specifically, when the target display area is a second display area, determining a target second queue group of the target to-be-processed message in a second message queue corresponding to the second display area based on the message receiving time.
In practical applications, for some anchor broadcasters with high popularity or live broadcast rooms with high traffic, there are many behavior-type messages to be processed, for example, 200 behavior-type messages may be generated within one second, and due to network delay, these messages to be processed may generate a message to be processed with a later time but be received earlier, so after receiving the message to be processed, it is necessary to determine a target second queue packet of the target message to be processed in the second message queue according to the message receiving time.
Specifically, the determining, based on the message receiving time, a target second queue group of the target to-be-processed message in a second message queue corresponding to the second display area includes:
dividing a second message queue corresponding to the second display area into a plurality of second queue groups according to a preset time interval;
and determining a target second queue group of the target message to be processed in the second message queue according to the message receiving time.
In practical applications, the second message queue needs to be divided into a plurality of second queue groups according to a preset time interval, for example, 1 second is taken as a unit, messages to be processed between 1 second and 2 second are added to the 1 st second queue group, messages to be processed between 2 second and 3 second are added to the 2 nd second queue group, … … is the same, and the like. And determining a target second queue group corresponding to the target message to be processed according to the message receiving time corresponding to the target message to be processed.
Determining a target second queue grouping of the target to-be-processed message in the second message queue according to the message receiving time, wherein the determining comprises:
judging whether a second queue packet corresponding to the message receiving time is included in the second message queue;
if yes, determining a target second queue group corresponding to the target message to be processed;
and if not, discarding the target message to be processed.
In practical applications, network delay often occurs, and there are some messages to be processed which are allocated to the second message queue later due to delay, for example, the message receiving time of the message to be processed Q is 8: 23: 07.123452, but the time axis has reached 8: 23: 08.123524, at this time, the second queue packet corresponding to the message Q to be processed has been processed, and there is no target queue packet corresponding to the message Q to be processed in the second message queue, then the message Q to be processed is discarded; if the message receiving time of the message Q to be processed is 8: 23: 07.123452, the time axis at this time is just 8: 23: 06.521473, a target second queue grouping corresponding to the pending message Q may be determined.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating that a target pending message provided by an embodiment of the present application is added to a second message queue, as shown in fig. 3, T3, T4, T5, and the like are a plurality of second queue packets divided according to login time, when a pending message S1 is added, a second queue packet corresponding to the pending message S1 is T2, and when a consumption queue has consumed a second queue packet T3 at this time, the pending message S1 is discarded and is not added any more; for the message to be processed S2, the second queue corresponding to the message to be processed S2 is grouped as T4, and S2 is added to the group of messages to be processed T4.
Step 108: and adding the target message to be processed to the target queue group according to the target user attribute value.
And after determining the target queue group corresponding to the target message to be processed, adding the target message to be processed to the target queue group according to the target user attribute value.
Specifically, adding the target to-be-processed message to the target queue packet according to the target user attribute value includes:
adding the target pending message to the target second queue packet;
and sorting the messages to be processed in the target second queue group according to the user attribute value.
The target second queue group comprises a plurality of messages to be processed with message receiving time in a preset time interval, and the target second queue group also needs to be sorted according to the user attribute value, the higher the user attribute value is, the higher the importance of the messages to be processed is, and the sorting is also higher. Therefore, after the target to-be-processed message is added to the target queue group, each to-be-processed message needs to be sorted in the target second queue group according to the user attribute value corresponding to each to-be-processed message.
Step 110: and processing the messages to be processed in the message queue according to a preset processing rule.
In practical application, after the message to be processed is added to the message queue, the message to be processed in the message queue needs to be correspondingly processed according to a preset processing rule.
It should be noted that the preset processing rule only processes the messages to be processed in the second message queue.
Specifically, the processing the to-be-processed message in the message queue according to a preset processing rule includes:
determining to consume a second queue packet, and determining the number of messages to be processed in the second queue packet;
under the condition that the number of the messages to be processed is less than or equal to the preset number, displaying each message to be processed in the second display area;
and under the condition that the number of the messages to be processed is larger than the preset number, determining the messages to be displayed in the consumption second queue group according to a preset message discarding strategy, and displaying the messages to be displayed in the second display area.
In practical applications, the messages to be processed in each second queue packet are sequentially displayed according to the time sequence of the second message queue, and the second queue packet being processed is called a consuming second queue packet.
After the second queue group is consumed, the number of messages to be processed in the second queue group needs to be determined, if the number of the messages to be processed is smaller than or equal to the preset number, the messages to be processed in the second queue group can be completely displayed in a preset time interval, and each message to be processed in the second queue group is displayed in a second display area; if the number of the messages to be processed is larger than the preset number, and the messages cannot be displayed in the preset time interval, the messages to be displayed need to be determined in the consumption second queue group according to a preset message discarding strategy, and the messages to be displayed are displayed in the second display area.
Specifically, determining a message to be displayed in the second queue packet according to a preset message discarding policy includes:
and determining a preset number of messages to be processed in the consumption second queue group as messages to be displayed.
In practical application, the time for displaying each message is fixed, for example, if one message is displayed for 0.25 second, 4 messages to be processed can be displayed within one second, and if only 3 messages to be processed in the second queue packet are consumed, all the 3 messages to be processed can be displayed; if 100 messages to be processed in the second queue group are consumed, the messages to be processed with the user attribute value ranked in the top 4 are displayed after the messages to be processed in the second queue group are grouped, and the messages to be processed with the user attribute value ranked in the 5 th-100 th are discarded.
Referring to fig. 3, the to-be-processed message S2 is added to the second queue packet T4 while being compared with the user attribute values of other to-be-processed messages in the to-be-processed message group T4 according to the user attribute value of the to-be-processed message S2 and inserted into the second queue packet T4.
In another specific embodiment provided by the present application, the behavior type further specifically includes a first sub-behavior type (behavior unrelated to the gift) and a second sub-behavior type (behavior giving away a free gift). The first sub-behavior type may specifically include entering a live room, leaving a live room, concerning a anchor, and so on; the second sub-behaviour type specifically comprises giving away a free gift. In order to better show the message condition to the main broadcasting, the second display area (anti-screen-swiping display area) can be further divided into a first sub-display area (behavior anti-screen-swiping area) and a second sub-display area (free gift anti-screen-swiping area), and the corresponding second message queue comprises a first sub-message queue (behavior message queue) and a second sub-message queue (free gift message queue). As shown in fig. 2, a behavior anti-swipe area and a free gift anti-swipe area are further specifically divided in the anti-swipe display area. Correspondingly, determining the target queue group of the target to-be-processed message in the message queue corresponding to the target display area based on the message receiving time includes:
determining a target first sub-message queue grouping of the target message to be processed in the first sub-message queue according to the message receiving time under the condition that the behavior type of the target message to be processed is the first sub-behavior type;
and under the condition that the behavior type of the target message to be processed is the second sub-behavior type, determining a target second sub-message queue grouping of the target message to be processed in the second sub-message queue according to the message receiving time.
Determining the behavior type of the target message to be processed, and if the behavior type of the target message to be processed is a behavior unrelated to the gift, adding the target message to be processed to a behavior message queue (a first sub-message queue) according to a preset adding strategy; and if the behavior type of the target to-be-processed message is the behavior related to the gift, adding the target to-be-processed message to a free gift message queue (a second sub-message queue) according to a preset adding strategy.
The data processing method comprises the steps of receiving a target message to be processed, wherein the message type of the target message to be processed is a behavior type, and the target message to be processed comprises message receiving time and a target user attribute value; determining a target display area corresponding to the target message to be processed; determining a target queue group of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groups according to the message receiving time; adding the target message to be processed to the target queue group according to the target user attribute value; the method comprises the steps of processing the messages to be processed in the message queue according to a preset processing rule, determining a display area corresponding to the messages to be processed according to user information corresponding to the messages to be processed, displaying different messages to be processed in different display areas, storing some messages to be processed, which do not need to be focused by a main broadcast, in a queue corresponding to a specific display area, avoiding the problems that the messages to be processed of behavior types frequently appear and influence normal interaction of the main broadcast and audiences, and improving interactive viewing experience of users in a live broadcast room.
Referring to fig. 4, fig. 4 shows a flowchart of a data processing method according to another embodiment of the present application, which specifically includes the following steps:
step 402: receiving a target message to be processed with a message type of behavior type, wherein the target message to be processed comprises a message receiving time and a target user attribute value.
In a specific embodiment provided by the present application, login behavior information Y of wangzhi is received, where the login behavior information Y is "18/1/2020: 20: 30.12341, Wangzhi-123 logs in live broadcasting room ", where 123 is the target user attribute value," 1 month 1 day 18 in 2020: 20: 30.12341 "is the message receipt time.
Step 404: and determining a second display area corresponding to the target message to be processed according to the target user attribute value.
In a specific embodiment provided by the present application, following the above example, if the attribute value of a target user of wangzhi is 123 and is smaller than the threshold, it is determined that the login behavior information Y corresponds to the behavior anti-brushing area.
Step 406: and determining a target second queue group of the target to-be-processed message in a second message queue corresponding to the second display area based on the message receiving time.
In a specific embodiment provided by the present application, following the above example, a behavior anti-brushing message queue is corresponding to the behavior anti-brushing region, and the behavior anti-brushing message queue is divided into a plurality of anti-brushing message queue groups according to time, where the login behavior information Y corresponds to the anti-brushing message queue group T3.
Step 408: adding the target pending message to the target second queue packet.
In a specific embodiment provided by the present application, following the above example, the login behavior information Y is added to the anti-brush message queue packet T3.
Step 410: and sorting the messages to be processed in the target second queue group according to the user attribute value.
In a specific embodiment provided herein, following the above example, there are 100 pending messages in the anti-brush message queue packet T3. And sequencing according to the user attribute value corresponding to each message to be processed. And acquiring a pending message queue corresponding to the anti-brushing message queue packet T3.
Step 412: determining to consume a second queued packet and determining a number of messages to be processed in the consumed second queued packet.
In a specific embodiment provided by the present application, following the above example, when the anti-brush message queue packet T3 is consumed, the anti-brush message queue packet T3 is a consumed anti-brush message queue packet, and the number of messages to be processed in the consumed anti-brush message queue packet T3 is determined to be 100.
Step 414: and determining a preset number of messages to be processed in the consumption second queue group as messages to be displayed.
In a specific embodiment provided by the present application, following the above example, at this time, every time one message to be processed is displayed, it takes a fixed time duration of 0.2 seconds, that is, only 5 messages to be processed can be displayed in one second, so that the message to be processed ranked first 5 in the message queue to be processed corresponding to the anti-swipe message queue packet T3 is determined to be a message to be displayed.
Step 416: and displaying the message to be displayed in the second display area.
In a specific embodiment provided by the application, the above example is followed, and the 5 messages to be displayed are sequentially displayed in the behavior anti-brush area.
According to the data processing method, under the condition that the action type messages to be processed are too many, the preset message discarding strategy is adopted to screen the messages to be processed in the second message queue, the screen refreshing condition of the messages to be processed with the action type of too many message types is effectively avoided, the anchor broadcast is effectively helped to timely interact with the actions of high-value users, the watching experience of the users participating in live broadcast interaction in a live broadcast room is improved, and the interaction experience of the users is improved.
Corresponding to the above data processing method embodiment, the present application further provides a data processing apparatus embodiment, and fig. 5 shows a schematic structural diagram of a data processing apparatus provided in an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a receiving module 502 configured to receive a target to-be-processed message of which a message type is a behavior type, wherein the target to-be-processed message includes a message receiving time and a target user attribute value;
a display determination module 504 configured to determine a target display area corresponding to the target to-be-processed message;
a grouping determination module 506, configured to determine a target queue grouping of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, where the message queue is divided into a plurality of queue groupings according to the message receiving time;
an adding module 508 configured to add the target pending message to the target queued packet according to the target user attribute value;
a processing module 510 configured to process the message to be processed in the message queue according to a preset processing rule.
Optionally, the display determining module 504 is further configured to:
and determining a target display area corresponding to the target message to be processed according to the target user attribute value.
Optionally, the display determining module 504 is further configured to:
determining a first display area corresponding to the target message to be processed under the condition that the target user attribute value is greater than or equal to a preset threshold value;
and determining that the target message to be processed corresponds to a second display area under the condition that the target user attribute value is smaller than the preset threshold value.
Optionally, the grouping determination module 506 is further configured to:
and under the condition that the target display area is a second display area, determining a target second queue group of the target to-be-processed message in a second message queue corresponding to the second display area based on the message receiving time.
Optionally, the grouping determination module 506 is further configured to:
dividing a second message queue corresponding to the second display area into a plurality of second queue groups according to a preset time interval;
and determining a target second queue group of the target message to be processed in the second message queue according to the message receiving time.
Optionally, the grouping determination module 506 is further configured to:
judging whether a second queue packet corresponding to the message receiving time is included in the second message queue;
if yes, determining a target second queue group corresponding to the target message to be processed;
and if not, discarding the target message to be processed.
Optionally, the adding module 508 is further configured to:
adding the target pending message to the target second queue packet;
and sorting the messages to be processed in the target second queue group according to the user attribute value.
Optionally, the processing module 510 is further configured to:
determining to consume a second queue packet, and determining the number of messages to be processed in the second queue packet;
under the condition that the number of the messages to be processed is less than or equal to the preset number, displaying each message to be processed in the second display area;
and under the condition that the number of the messages to be processed is larger than the preset number, determining the messages to be displayed in the consumption second queue group according to a preset message discarding strategy, and displaying the messages to be displayed in the second display area.
Optionally, the processing module 510 is further configured to:
and determining a preset number of messages to be processed in the consumption second queue group as messages to be displayed.
Optionally, the behavior type of the target to-be-processed message includes a first sub-behavior type and a second sub-behavior type, and the second message queue includes a first sub-message queue and a second sub-message queue;
the grouping determination module 506, further configured to:
determining a target first sub-message queue grouping of the target message to be processed in the first sub-message queue according to the message receiving time under the condition that the behavior type of the target message to be processed is the first sub-behavior type;
and under the condition that the behavior type of the target message to be processed is the second sub-behavior type, determining a target second sub-message queue grouping of the target message to be processed in the second sub-message queue according to the message receiving time.
The data processing device receives a target message to be processed, the message type of which is a behavior type, wherein the target message to be processed carries target user information corresponding to the target message to be processed; determining a target display area corresponding to the target message to be processed according to the target user information; the target messages to be processed are added to the message queues corresponding to the target display areas, the display areas corresponding to the messages to be processed are determined according to the user information corresponding to the messages to be processed through the data processing device, different messages to be processed are displayed in different display areas, some messages to be processed, which do not need to be focused by the anchor broadcaster, are stored in the queues corresponding to the specific display areas, the problem that the normal interaction between the anchor broadcaster and audiences is influenced due to the frequent occurrence of the messages to be processed in behavior types is avoided, and the interactive viewing experience of the user in a live broadcast room is improved.
The above is a schematic configuration of a data processing apparatus of the present embodiment. It should be noted that the technical solution of the data processing apparatus and the technical solution of the data processing method belong to the same concept, and details that are not described in detail in the technical solution of the data processing apparatus can be referred to the description of the technical solution of the data processing method.
Fig. 6 illustrates a block diagram of a computing device 600 provided according to an embodiment of the present application. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. 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 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether 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 present application, the above-described components of computing device 600, as well as other components not shown in FIG. 6, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 6 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 600 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 600 may also be a mobile or stationary server.
Wherein the processor 620, when executing the computer instructions, performs the steps of the data processing 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 data processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the data processing method.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and the computer instructions, when executed by a processor, implement the steps of the data processing method as described above.
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 belongs to the same concept as the technical solution of the data processing method, 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 data processing 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, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb 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 medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
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.

Claims (13)

1. A data processing method, comprising:
receiving a target message to be processed with a message type of a behavior type, wherein the target message to be processed comprises message receiving time and a target user attribute value;
determining a target display area corresponding to the target message to be processed;
determining a target queue group of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groups according to the message receiving time;
adding the target message to be processed to the target queue group according to the target user attribute value;
and processing the messages to be processed in the message queue according to a preset processing rule.
2. The data processing method of claim 1, wherein determining the target display area corresponding to the target message to be processed comprises:
and determining a target display area corresponding to the target message to be processed according to the target user attribute value.
3. The data processing method of claim 2, wherein determining the target display area corresponding to the target message to be processed according to the target user attribute value comprises:
determining a first display area corresponding to the target message to be processed under the condition that the target user attribute value is greater than or equal to a preset threshold value;
and determining that the target message to be processed corresponds to a second display area under the condition that the target user attribute value is smaller than the preset threshold value.
4. The data processing method of claim 3, wherein determining a target queue grouping of the target pending message in the message queue corresponding to the target display area based on the message receipt time comprises:
and under the condition that the target display area is a second display area, determining a target second queue group of the target to-be-processed message in a second message queue corresponding to the second display area based on the message receiving time.
5. The data processing method of claim 4, wherein the determining a target second queue grouping of the target pending message in a second message queue corresponding to the second display region based on the message receipt time comprises:
dividing a second message queue corresponding to the second display area into a plurality of second queue groups according to a preset time interval;
and determining a target second queue group of the target message to be processed in the second message queue according to the message receiving time.
6. The data processing method of claim 5, wherein determining a target second queue grouping of the target pending message in the second message queue based on the message receipt time comprises:
judging whether a second queue packet corresponding to the message receiving time is included in the second message queue;
if yes, determining a target second queue group corresponding to the target message to be processed;
and if not, discarding the target message to be processed.
7. The data processing method of claim 5, wherein adding the target pending message to the target queue packet according to the target user attribute value comprises:
adding the target pending message to the target second queue packet;
and sorting the messages to be processed in the target second queue group according to the user attribute value.
8. The data processing method according to claim 5, wherein the processing the message to be processed in the message queue according to the preset processing rule comprises:
determining to consume a second queue packet, and determining the number of messages to be processed in the second queue packet;
under the condition that the number of the messages to be processed is less than or equal to the preset number, displaying each message to be processed in the second display area;
and under the condition that the number of the messages to be processed is larger than the preset number, determining the messages to be displayed in the consumption second queue group according to a preset message discarding strategy, and displaying the messages to be displayed in the second display area.
9. The data processing method of claim 8, wherein determining a message to be displayed in the consuming second queue packet according to a preset message drop policy comprises:
and determining a preset number of messages to be processed in the consumption second queue group as messages to be displayed.
10. The data processing method according to any one of claims 4 to 9, wherein the behavior type of the target pending message comprises a first child behavior type and a second child behavior type, and the second message queue comprises a first child message queue and a second child message queue;
determining a target queue group of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, including:
determining a target first sub-message queue grouping of the target message to be processed in the first sub-message queue according to the message receiving time under the condition that the behavior type of the target message to be processed is the first sub-behavior type;
and under the condition that the behavior type of the target message to be processed is the second sub-behavior type, determining a target second sub-message queue grouping of the target message to be processed in the second sub-message queue according to the message receiving time.
11. A data processing apparatus, comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is configured to receive a target message to be processed with a message type of a behavior type, and the target message to be processed comprises message receiving time and a target user attribute value;
the display determination module is configured to determine a target display area corresponding to the target message to be processed;
the grouping determination module is configured to determine a target queue grouping of the target to-be-processed message in a message queue corresponding to the target display area based on the message receiving time, wherein the message queue is divided into a plurality of queue groupings according to the message receiving time;
an adding module configured to add the target pending message to the target queue packet according to the target user attribute value;
and the processing module is configured to process the messages to be processed in the message queue according to preset processing rules.
12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-10 when executing the computer instructions.
13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 10.
CN202110428257.7A 2021-04-21 2021-04-21 Data processing method and device Active CN113055701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110428257.7A CN113055701B (en) 2021-04-21 2021-04-21 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110428257.7A CN113055701B (en) 2021-04-21 2021-04-21 Data processing method and device

Publications (2)

Publication Number Publication Date
CN113055701A true CN113055701A (en) 2021-06-29
CN113055701B CN113055701B (en) 2023-03-14

Family

ID=76520024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110428257.7A Active CN113055701B (en) 2021-04-21 2021-04-21 Data processing method and device

Country Status (1)

Country Link
CN (1) CN113055701B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449305A (en) * 2022-01-29 2022-05-06 上海哔哩哔哩科技有限公司 Gift animation playing method and device in live broadcast room
CN114630189A (en) * 2022-03-10 2022-06-14 广州方硅信息技术有限公司 Multi-channel approach prompting method and system in live broadcast room and computer equipment
CN114760502A (en) * 2022-04-15 2022-07-15 广州方硅信息技术有限公司 Live broadcast room approach show merging and playing method and device and computer equipment
WO2024037139A1 (en) * 2022-08-18 2024-02-22 腾讯科技(深圳)有限公司 Method and apparatus for prompting information in virtual scene, electronic device, storage medium, and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015043392A1 (en) * 2013-09-26 2015-04-02 Tencent Technology (Shenzhen) Company Limited Method, apparatus and system for forwarding messages
CN107302489A (en) * 2017-06-02 2017-10-27 北京潘达互娱科技有限公司 Message display method and device
CN107734352A (en) * 2017-10-26 2018-02-23 咪咕视讯科技有限公司 A kind of information determines method, apparatus and storage medium
CN107734062A (en) * 2017-11-15 2018-02-23 维沃移动通信有限公司 Information push method and device
CN108415780A (en) * 2018-01-25 2018-08-17 阿里巴巴集团控股有限公司 A kind of information displaying method and device
CN111294609A (en) * 2020-03-13 2020-06-16 上海万面智能科技有限公司 Live content display method and device, electronic equipment and readable storage medium
JP2020170911A (en) * 2019-04-02 2020-10-15 株式会社 ディー・エヌ・エー System, method, and program for delivering live video

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015043392A1 (en) * 2013-09-26 2015-04-02 Tencent Technology (Shenzhen) Company Limited Method, apparatus and system for forwarding messages
CN107302489A (en) * 2017-06-02 2017-10-27 北京潘达互娱科技有限公司 Message display method and device
CN107734352A (en) * 2017-10-26 2018-02-23 咪咕视讯科技有限公司 A kind of information determines method, apparatus and storage medium
CN107734062A (en) * 2017-11-15 2018-02-23 维沃移动通信有限公司 Information push method and device
CN108415780A (en) * 2018-01-25 2018-08-17 阿里巴巴集团控股有限公司 A kind of information displaying method and device
JP2020170911A (en) * 2019-04-02 2020-10-15 株式会社 ディー・エヌ・エー System, method, and program for delivering live video
CN111294609A (en) * 2020-03-13 2020-06-16 上海万面智能科技有限公司 Live content display method and device, electronic equipment and readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449305A (en) * 2022-01-29 2022-05-06 上海哔哩哔哩科技有限公司 Gift animation playing method and device in live broadcast room
CN114630189A (en) * 2022-03-10 2022-06-14 广州方硅信息技术有限公司 Multi-channel approach prompting method and system in live broadcast room and computer equipment
CN114760502A (en) * 2022-04-15 2022-07-15 广州方硅信息技术有限公司 Live broadcast room approach show merging and playing method and device and computer equipment
WO2024037139A1 (en) * 2022-08-18 2024-02-22 腾讯科技(深圳)有限公司 Method and apparatus for prompting information in virtual scene, electronic device, storage medium, and program product

Also Published As

Publication number Publication date
CN113055701B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN113055701B (en) Data processing method and device
US20180032222A1 (en) Message display method and terminal device
Lin et al. Rising tides or rising stars?: Dynamics of shared attention on Twitter during media events
US9444882B2 (en) Visually indicating a calendar event among different time zones
CN106911556B (en) Message reminding management method and terminal
CN113316015B (en) Bullet screen processing method, device and system
CN108600083B (en) Message reminding method and device
CA2899288A1 (en) Providing alerts on communication devices
US9210119B2 (en) Automated triggering of a broadcast
CN109725797A (en) Method and device for counting activity entries in chat group, electronic equipment and storage medium
Aman et al. The effectiveness of social media marketing in higher education institution
CN110703974B (en) Message interaction method, device and storage medium
CN114024737B (en) Method, apparatus and computer readable storage medium for determining live room volume
Mathur et al. Moving beyond market research: Demystifying smartphone user behavior in india
WO2023151426A1 (en) Method and device for counting number of users in live broadcast room
CN111711850A (en) Method and device for displaying bullet screen and electronic equipment
Borker Social media marketing in emerging economies: A Mongolian case study
CN113572841B (en) Information pushing method and device
CN110691334A (en) Method and device for displaying timeliness of message and storage medium
CN111191134B (en) Intelligent pushing method and terminal
CN114201696A (en) Message pushing method and device, storage medium and computer equipment
CN114679598A (en) Live broadcast pushing method and device
JP2014524624A (en) Search method, system and computer storage medium in microblog
Bandera Design and management of public health outreach using interoperable mobile multimedia: an analysis of a national winter weather preparedness campaign
CN112634088A (en) House resource dynamic information pushing method and device

Legal Events

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