CN112565803B - Comment area message processing method and device and computer storage medium - Google Patents

Comment area message processing method and device and computer storage medium Download PDF

Info

Publication number
CN112565803B
CN112565803B CN202011379570.8A CN202011379570A CN112565803B CN 112565803 B CN112565803 B CN 112565803B CN 202011379570 A CN202011379570 A CN 202011379570A CN 112565803 B CN112565803 B CN 112565803B
Authority
CN
China
Prior art keywords
message
messages
target
parameter
comment 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.)
Active
Application number
CN202011379570.8A
Other languages
Chinese (zh)
Other versions
CN112565803A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011379570.8A priority Critical patent/CN112565803B/en
Publication of CN112565803A publication Critical patent/CN112565803A/en
Application granted granted Critical
Publication of CN112565803B publication Critical patent/CN112565803B/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/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/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4756End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for rating content, e.g. scoring a recommended movie
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

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

Abstract

The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a message in a comment area, and a computer storage medium. The comment area is provided with a plurality of display periods, each display period is divided into a first appointed time length and a second appointed time length, and then for each display period, the comment area is obtained and controlled to finish alternate display of a plurality of target messages within the first appointed time length; the method comprises the steps that a plurality of target messages are screened from a message set in advance according to a first parameter representing message importance degree; and then when the first specified duration is over, continuously displaying the target messages reserved in the appraisal area according to the second specified duration, so that part of important information can be screened out in each display period for displaying, a user can know more information of the appraisal area, and the resource utilization rate is improved.

Description

Comment area message processing method and device and computer storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a message in a comment area, and a computer storage medium.
Background
In the related art, the frequency of refreshing the comment area messages is unstable, and when too many comment area messages exist in the live broadcast room, the rate of refreshing the comment area messages becomes high. A common situation is that a user has not read a message, and the message stops being displayed, so that the user cannot read and understand the message well, and a comment area cannot effectively display the message, which results in waste of processing resources of the message in the comment area.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for processing messages of a comment area and a computer storage medium, which can enable a user to know more messages of the comment area and improve the resource utilization rate.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing a message of a comment area, the comment area having a plurality of presentation cycles, each presentation cycle being divided into a first specified duration and a second specified duration, the method including, for each presentation cycle:
acquiring and controlling the comment area to finish alternate display of the plurality of target messages within the first specified time; the target messages are screened from the message set in advance according to a first parameter representing the message importance degree;
and when the first specified time length is finished, continuing displaying the target messages retained in the comment area according to the second specified time length.
An optional implementation manner is that, acquiring the plurality of target messages includes:
receiving the plurality of pieces of target information screened out from the message set by the server;
alternatively, the first and second electrodes may be,
receiving the message set issued by the server; each message in the message set is associated with the first parameter;
and screening the plurality of target messages from the message set according to the first parameter.
An optional embodiment is that each message in the message set is further associated with a message type, and the screening the plurality of target messages from the message set according to the first parameter includes:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
An optional implementation manner is that the corresponding relationship between different message types and the target number is stored in advance; the screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages respectively comprises:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
An optional implementation manner is that, in the message types, selecting, according to the first parameter of each message, a target number of messages corresponding to the message type includes:
and selecting the messages of the target number corresponding to the message type from the messages of the message type according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of selection is.
An optional implementation is that each message type corresponds to a type priority; the screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages respectively comprises:
the following operations are performed in a loop until a specified number of messages are filtered out:
selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter;
after each message is selected, the probability of reselecting the message type of the selected message is reduced.
An optional implementation manner is that the controlling the comment area to complete alternate display of the plurality of target messages within the first specified time period includes:
sequencing the target messages according to the importance degree represented by the first parameter;
and alternately displaying the target messages according to the sequencing result and the sequence of the importance degrees from low to high.
In an optional embodiment, before the controlling the comment area completes the alternate presentation of the plurality of target messages within the first specified time period, the method further includes:
acquiring the total number of expected messages corresponding to the display period issued by the server;
if the total number of the target messages is greater than the total number of the expected messages, before the controlling the comment area completes alternate display of the target messages within the first specified time, the method further comprises:
and performing multiple random filtering treatments on the target messages until the total amount of the remaining target messages is the total amount of the expected messages.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for processing a message of a comment area, the comment area having a plurality of presentation cycles, each presentation cycle being divided into a first specified duration and a second specified duration, the method including:
collecting messages needing to be displayed in the comment area to obtain a message set;
for each collected message, determining a first parameter for representing the importance degree of the message;
the first parameter is used for screening a plurality of target messages from the message set of the comment area;
the target messages are used for controlling the comment area to finish alternate display of the target messages within the first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the comment area are continuously displayed according to the second specified time length.
In an optional implementation manner, the method further includes:
sending the message set to the terminal equipment, wherein each message in the message set is associated with the first parameter; alternatively, the first and second electrodes may be,
screening the plurality of target messages from the message set according to the first parameter;
and sending the target messages to the terminal equipment.
An optional embodiment is that each message in the message set is further associated with a message type, and the screening the plurality of target messages from the message set according to the first parameter includes:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
An optional implementation manner is that the corresponding relationship between different message types and the target number is stored in advance; the screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages respectively comprises:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
According to a third aspect of the embodiments of the present disclosure, there is provided a message processing apparatus of a comment area having a plurality of presentation periods, each of the presentation periods being divided into a first specified duration and a second specified duration, the apparatus including, for each of the presentation periods:
the first display unit is configured to execute acquisition and control of the comment area to finish alternate display of the target messages within the first specified time; the target messages are screened from the message set in advance according to a first parameter representing the message importance degree;
and the second display unit is configured to continue displaying the target messages retained in the comment area according to the second designated time length when the first designated time length is finished.
In an optional embodiment, the first presentation unit is configured to perform:
receiving the plurality of pieces of target information screened out from the message set by the server;
alternatively, the first and second electrodes may be,
receiving the message set issued by the server; each message in the message set is associated with the first parameter;
and screening the plurality of target messages from the message set according to the first parameter.
In an optional embodiment, each message in the message set is further associated with a message type, and the first presentation unit is configured to perform:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
An optional implementation manner is that the corresponding relationship between different message types and the target number is stored in advance; the first presentation unit is configured to perform:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
In an optional embodiment, the first presentation unit is configured to perform:
and selecting the messages of the target number corresponding to the message type from the messages of the message type according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of selection is.
An optional implementation is that each message type corresponds to a type priority; the first presentation unit is configured to perform:
the following operations are performed in a loop until a specified number of messages are filtered out:
selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter;
after each message is selected, the probability of reselecting the message type of the selected message is reduced.
In an optional embodiment, the first presentation unit is configured to perform:
sequencing the target messages according to the importance degree represented by the first parameter;
and alternately displaying the target messages according to the sequencing result and the sequence of the importance degrees from low to high.
In an optional embodiment, before the first display unit, the apparatus further includes:
the acquisition unit is configured to execute the acquisition of the total number of expected messages corresponding to the display period issued by the server;
if the total number of the plurality of target messages is greater than the total number of the expected messages, the apparatus further includes:
and the processing unit is configured to perform multiple random filtering processes on the plurality of target messages until the total amount of the remaining target messages is the total amount of the expected messages.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a message processing apparatus of a comment area, the comment area having a plurality of presentation cycles, each presentation cycle being divided into a first specified duration and a second specified duration, the apparatus including:
the acquisition unit is configured to acquire the messages required to be displayed in the comment area to obtain a message set;
the determining unit is configured to determine a first parameter for representing the importance degree of each collected message;
the first parameter is used for screening a plurality of target messages from the message set of the comment area; the target messages are used for controlling the comment area to finish alternate display of the target messages within the first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the comment area are continuously displayed according to the second specified time length.
In an optional embodiment, the apparatus further comprises:
a first sending unit configured to execute sending the message set to the terminal device, wherein each message in the message set is associated with the first parameter; alternatively, the first and second electrodes may be,
a screening unit configured to perform screening of the plurality of target messages from the message set according to the first parameter;
a second transmitting unit configured to perform transmitting the plurality of target messages to the terminal device.
In an optional embodiment, each message in the message set is further associated with a message type, and the filtering unit is configured to perform:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
An optional implementation manner is that the corresponding relationship between different message types and the target number is stored in advance; the screening unit configured to perform:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a message processing apparatus of a comment area, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message processing method of the comment area according to the first aspect.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a message processing apparatus of a review zone, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message processing method of the comment area according to the second aspect.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a message processing apparatus of a comment area, enable the message processing apparatus of the comment area to execute the message processing method of the comment area according to the first aspect.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a message processing apparatus of a comment area, enable the message processing apparatus of the comment area to execute the message processing method of the comment area according to the second aspect.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product which, when run on an electronic device, causes the electronic device to perform a method implementing the above aspects of the embodiments of the present disclosure and any possible design to which the aspects relate.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
because the comment area of the embodiment of the disclosure has a plurality of display cycles, and each display cycle is divided into a first designated time length and a second designated time length, a plurality of important messages can be screened out as target messages for each display cycle, and the comment area is controlled to finish alternate display of the plurality of target messages within the first designated time length during display; and then when the first specified duration is over, continuously displaying the target messages retained in the comment area according to the second specified duration, so that part of important information can be screened out in each display period for effective display, a user can know more important messages in the comment area, and the utilization rate of processing resources used in the message processing process of the comment area is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of a message processing system for a comment field shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of message processing for a comment field in accordance with an exemplary embodiment;
FIG. 3 is a diagram illustrating a method of filtering out multiple targeted messages in accordance with an exemplary embodiment;
FIG. 4 is a diagram illustrating a method of filtering out multiple targeted messages in accordance with an exemplary embodiment;
FIG. 5 is a diagram illustrating a method of message screening for a review zone in accordance with an exemplary embodiment;
FIG. 6 is a diagram illustrating a message presentation method for a review zone in accordance with an exemplary embodiment;
FIG. 7(a) is a diagram illustrating a method of presenting portions of a plurality of targeted messages, according to an example embodiment;
FIG. 7(b) is a diagram illustrating a method of presenting portions of multiple targeted messages, according to an example embodiment;
FIG. 7(c) is a diagram illustrating a method of presenting portions of multiple targeted messages, according to an example embodiment;
FIG. 8(a) is a diagram illustrating a method of presenting multiple targeted messages, according to an example embodiment;
FIG. 8(b) is a diagram illustrating a method of presenting multiple targeted messages, according to an example embodiment;
FIG. 8(c) is a diagram illustrating a method of presenting multiple targeted messages, according to an example embodiment;
FIG. 9 is a flowchart illustrating a method of message processing for a comment field in accordance with an exemplary embodiment;
FIG. 10 is an interaction flow diagram illustrating message processing for a comment field in accordance with an illustrative embodiment;
FIG. 11 is an interaction flow diagram illustrating message processing for a comment field in accordance with an illustrative embodiment;
FIG. 12 is a block diagram illustrating a message processing apparatus of a comment field in accordance with an illustrative embodiment;
FIG. 13 is a block diagram illustrating a message processing apparatus 1300 of a comment field in accordance with an illustrative embodiment;
FIG. 14 is a block diagram illustrating a message processing apparatus of a comment field in accordance with an illustrative embodiment;
fig. 15 is a block diagram illustrating a message processing apparatus 1500 of a comment field according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Hereinafter, some terms in the embodiments of the present disclosure are explained to facilitate understanding by those skilled in the art.
(1) The term "plurality" in the embodiments of the present disclosure means two or more, and other terms are similar thereto.
(2) "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
(3) A server serving the terminal, the contents of the service such as providing resources to the terminal, storing terminal data; the server is corresponding to the application program installed on the terminal and is matched with the application program on the terminal to run.
(4) The terminal device may refer to an APP (Application) of a software class, or may refer to a client. The system is provided with a visual display interface and can interact with a user; is corresponding to the server, and provides local service for the client. For software applications, except some applications that are only run locally, the software applications are generally installed on a common client terminal and need to be run in cooperation with a server terminal. After the internet has developed, more common applications include e-mail clients for e-mail receiving and sending, and instant messaging clients. For such applications, a corresponding server and a corresponding service program are required in the network to provide corresponding services, such as database services, configuration parameter services, and the like, so that a specific communication connection needs to be established between the client terminal and the server terminal to ensure the normal operation of the application program.
With the development of networks, various terminals have been widely used. The types of the application programs on the terminal are more and more, and the functions of the application programs are more and more abundant. At present, the development of live webcast application programs is better and better, and users can watch live videos in a live webcast room through the live webcast application programs.
In the related technology, when a user enters a live broadcast room, a comment area of the live broadcast room can display a prompt of user admission, and in the process of watching a live broadcast video, the user can interact with a main broadcast by sending comment messages, and can also broadcast gifts, praise and the like to the main broadcast. The user can also share the live broadcast room for other users, and aiming at the condition that the anchor broadcast introduces commodities through live broadcast videos, the comment area can also display the prompt of commodity shelf-on and the prompt of purchasing commodities by the user, so that the user can acquire the dynamic state of the live broadcast room in real time through the comment area messages of the live broadcast room. However, the frequency of refreshing the messages in the comment area is unstable, and when the messages in the comment area in the live broadcast room are too many, the rate of refreshing the messages in the comment area becomes fast, and it is a common situation that the messages are not completely read by the user and the messages stop being displayed, so that the user cannot well read and understand the messages, and the comment area cannot effectively display the messages, which results in the waste of processing resources of the messages in the comment area.
Based on the problems, the invention provides a method for processing the information of the comment area, and the inventive concept of the invention is as follows: the message processing of the review zone is summarized into two parts. One part is message screening, namely screening a plurality of target messages, and the other part is message display, namely setting the comment area to a plurality of display periods in time and completing the display of a plurality of target messages in one display period. And then when the first specified time length is finished, continuously displaying the target messages reserved in the evaluation area according to the second specified time length.
Therefore, a part of messages are screened and displayed alternately in one display period, so that a proper amount of messages can be guaranteed to roll in the comment area in each display period, and each message can obtain enough long rolling display time in the comment area so that a user can check the rolling messages conveniently. And a certain amount of messages are continuously displayed for at least a second designated time in each period, so that the messages can be stably and continuously displayed, and a user can conveniently know the message contents of the messages.
The preferred embodiments of the present disclosure will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present disclosure, and are not intended to limit the present disclosure, and that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
As shown in fig. 1, which is a schematic diagram of a system to which the message processing method of the comment area provided by the present disclosure is applicable. The system comprises a database 10, a server 20 and a terminal device 30. The database 10 may store comment area messages related to different live rooms, such as comment messages of users, reply messages of anchor, prompt messages of users for salutation, prompt messages of users for entering live rooms, and the like. In a scenario of message comment in a live room, the server 20 may be provided in plurality to satisfy live broadcast quality of different anchor.
The terminal device 30 in fig. 1 may include a plurality of, for example, a terminal device 30_1, a terminal device 30_2 … …, and a terminal device 30_ N. The terminal device 30 and the server 20 can communicate with each other through the network 40. In some embodiments, the network is a wired network or a wireless network. The terminal device 30 and the server 20 may be directly or indirectly connected through wired or wireless communication, and the disclosure is not limited thereto.
In the disclosed embodiment, the message processing about the comment area can be summarized into two parts. One part is the screening of the message, namely screening a plurality of target messages, and the other part is the presentation of the message, namely completing the presentation of the message in one presentation period. The displaying of the message is completed at the terminal device side, and the screening of the message may be completed by the server 20 or the terminal device 30. Of course, the screening operation of the message may also be performed partly by the server 20 and partly by the terminal device 30.
Taking the example that the server completes the screening of the message, in the embodiment of the present disclosure, different users respectively corresponding to multiple terminal devices 30 (for example, terminal device 30_ N) may all send the message to the same live broadcast room to the server 20 in the same live broadcast room. Taking the live broadcast room M as an example, in this scenario the terminal device 30 (e.g. 30_1, 30_2 … 30_ N) may send messages to the live broadcast room M at the same time. The server will gather the messages of the live broadcast room M, and screen out a plurality of important messages C and send them to the terminal device 30 for display. And after the terminal equipment receives the message sent by the server, the display of the message is completed in a display period. That is, alternate presentation of a plurality of important messages C is completed within a first specified time period, and if Q messages remain in the comment area at the end of the first specified time period, the Q messages will be continuously presented for a second specified time period.
It should be noted that, in some embodiments, no matter whether the screening of the messages is completed by the server 20, the terminal device 30, or a part of the screening of the messages is completed by the server 20 and a part of the screening of the messages is completed by the terminal device 30, when the messages are displayed after the screening of the messages, the messages sent to the comment area of the live broadcast by each user are displayed in the comment area of the terminal device of the user. At this time, it can be understood that, for each user, the messages sent by other users are screened, and the message sent by the user serves as the message that the comment area must be displayed.
In the embodiment of the present disclosure, the terminal device 30 is an electronic device used by a user, and the electronic device may be a computer device with certain computing capability, such as a personal computer, a smart phone, a tablet computer, a notebook, a desktop computer, a smart speaker, a smart watch, and an e-book reader. The server 20 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform.
To facilitate further understanding of the message processing method of the comment area provided in the embodiments of the present application, the following description is further made with reference to the accompanying drawings. Since the operation of each display period is the same, the embodiment of the present application is described by taking one display period as an example, and fig. 2 is a schematic flow chart of a message processing method of a comment area provided by the embodiment of the present application, where the method includes the following steps:
s201, acquiring and controlling a comment area to finish alternate display of a plurality of target messages within a first specified time; the target messages are screened from the message set in advance according to a first parameter representing the importance degree of the messages.
In the embodiment of the application, after the server receives a batch of messages, one batch of messages can be used as a message set. The messages of a batch may be determined according to the time length, for example, messages generated within each 10ms (millisecond) and 30 milliseconds are used as messages of a batch, or messages of a specified number are generated as messages of a batch, or messages of the specified number are generated within the specified time length, and if messages of the specified number are generated within the specified time length, the messages of the specified number are used as a batch, and when messages of the specified number are not generated within the specified time length, all messages within the specified time length are counted as a batch.
In implementation, after the message of the last presentation period is processed each time, all messages that are not currently processed may be used as a message set.
S202, when the first designated duration is over, the target messages retained in the comment area are continuously displayed according to the second designated duration.
As described above, the message of the review zone is processed into two parts: screening of messages and presentation of messages. The implementation of these two parts is explained in detail below.
Screening of messages
Here, for the terminal device, the plurality of target messages may be acquired by any one of the following manners:
in the first mode, a plurality of pieces of target information screened from the message set by the server are received.
And receiving a message set issued by the server, wherein each message in the message set is associated with a first parameter, and screening a plurality of target messages from the message set according to the first parameter.
The following describes an embodiment of the present disclosure by taking an example (i.e., manner two) in which the terminal device completes the screening operation. The specific processes of the server completing the screening operation (i.e., the method one), the server completing the screening partially, and the terminal device completing the screening are described in the subsequent steps, which is not repeated herein.
Specifically, the terminal device receives a message set issued by the server, and each message in the message set is associated with the first parameter. The first parameter may be implemented as a weight coefficient corresponding to the message, and as shown in table 1, the message set includes: message 1, message 2 …, message n, and each message has a respective weight factor. Assuming that a message set sent by a server and received by a terminal device includes 100 messages, at this time, n is 100, if 5 pieces of labeled messages need to be screened out, sorting the messages in the message set in table 1 from high to low according to the size of the weight coefficient, and taking the first 5 pieces of sorted messages as target messages.
Here, it is described that the first parameter may be implemented as a setting of a weight coefficient corresponding to a message, when different message types exist, the setting may be such that each message type corresponds to a weight base, and the weight coefficient corresponding to the message in the same message type may float up and down according to the weight base; or each message type corresponds to a weight range, and the weight coefficient corresponding to the message in the same message type can take a value in the weight range.
In addition, for different live broadcast rooms, the weights corresponding to the message types of the comment areas can be different, and the message weights of the comment areas in different live broadcast scenes in the same live broadcast room can also be different. For example, regarding a live broadcast room of game contents, a live broadcast scene of the live broadcast room may be divided into a game commentary scene and a game PK (sports) scene. In both scenarios, the weight of the message may be different. For example, in a game commentary scenario, the commentary area is more concerned with commentary problem-like messages, and in a game PK scenario, is more concerned with other types of messages. For another example, the message of the comment area in the live scene of the anchor chatting with the user in the same live broadcast room and the message of the comment area in the live scene of the anchor karaoke, and the weight setting of the message type corresponding to the message of the comment area can be dynamically adjusted according to the requirements. In addition, the comment areas of different live broadcast rooms can be different in size, and even the comment areas of the same live broadcast room in different live broadcast scenes can be different.
TABLE 1
Message Weight coefficient
Message
1 Weight coefficient 1
Message 2 Weight coefficient 2
Message n Weight coefficient n
When the target message is determined by sorting only according to the weight coefficient, a problem that the message type of the target message is single may occur. For example, in the above example, 5 messages are determined after being sorted according to the weight coefficient, and the message types corresponding to the 5 messages may be all messages screened as shown in table 2 as type a messages, or most messages screened as shown in table 3 as type a messages. Therefore, the phenomenon that the type of the displayed message at a certain moment in the comment area is single when the user watches the live broadcast room can be caused, so that the user can only know the messages corresponding to part of the message types and can not know more messages corresponding to other message types in the comment area.
TABLE 2
Message Message type
Message 1 A
Message 2 A
Message 3 A
Message 4 A
Message 5 A
TABLE 3
Message Message type
Message 1 A
Message 2 B
Message 3 A
Message 4 A
Message 5 A
To solve the problem, at least one message can be screened from at least two message types respectively based on the first parameter to obtain a plurality of target messages. The message types may include: the method comprises the following steps of one or more of comment information of a user, reply information of a main broadcast, gift sending prompt information of the user, prompt information of the user entering a live broadcast room, prompt information of the user for agreeing with the main broadcast, prompt information of the user sharing the live broadcast room, prompt information of goods on shelf in the live broadcast room and prompt information of the user for purchasing goods.
Exemplarily, when the first parameter is a weight coefficient, as shown in table 4, the message set includes: message 1, message 2, …, message n, a weight coefficient corresponding to each message, and a message type corresponding to each message. As can be seen from table 4, message type a includes: message 1, message 2, message 3, message type B includes: message 4, message 5, message 6, message type C includes: message 7, message 8, …, message n.
When 3 items of target messages need to be screened out, the target messages may be as shown in fig. 3 and include message 1, message 5 and message 7, or the messages of the review area may also be message 2, message 4 and message 7, and when 4 items of target messages need to be screened out, the target messages may be as shown in fig. 4 and include message 2, message 4, message 6 and message 7, or the messages of the review area may also be message 1, message 2, message 3 and message 4.
TABLE 4
Message Weight coefficient Message type
Message
1 Weight coefficient 1 A
Message 2 Weight coefficient 2 A
Message 3 Weight coefficient of 3 A
Message 4 Weight coefficient 4 B
Message 5 Weight factor 5 B
Message 6 Weight coefficient of 6 B
Message 7 Weight coefficient of 7 C
Message n Weight coefficient n C
For the above example, based on the first parameter, at least one message is respectively screened out from at least two message types, so that various different schemes for determining multiple target messages can be obtained, and the comment area can display important messages of different types as much as possible, so as to improve the diversity of message types of the comment area. Two schemes for determining the plurality of target messages are specifically described below, including the following scheme 1 and scheme 2.
In case 1, an upper limit of the number of messages that can be obtained for different types of messages, which is called the target number, can be predetermined. When the method provided by the application is executed, the corresponding relation between different message types and the target number is stored in advance, and then when a plurality of messages are screened, aiming at each message type of at least two message types, the following steps are respectively executed: and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
For example, the number of the target pieces corresponding to the messages of the like type may be 5, and the total number of the like messages in the message set is 10, then at most 5 messages are selected from the 10 messages.
Here, when the information associated with each message includes the first parameter, the message type, and the type priority corresponding to each message type, the number of the target pieces may be determined according to the priority of the message type, for example, according to a principle that the higher the priority of the message type is, the larger the number of the corresponding target pieces is, when the priority of the like type is greater than the priority of the user's admission type, the number of the target pieces corresponding to the message of the like type is set to 5, and the number of the target pieces corresponding to the message of the user's admission type is set to 3.
Or the number of the target items corresponding to different types of messages can be determined according to the type of the live broadcast room, the live broadcast scene and the like, for example, in the live broadcast room of the anchor and the user chat, the number of the target items corresponding to the messages of the like type is set to be 5, and in the live broadcast room of the game PK, the number of the target items corresponding to the messages of the like type is set to be 2.
In the screening, a target number of messages can be screened from the corresponding message types according to any one of the following manners.
In the first mode, according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of being selected is, the messages of the target number corresponding to the message type are selected from the messages of the message type.
Exemplarily, as shown in table 4, it is assumed that the total target number is 3, and the pre-stored correspondence relationship is: the message type A, the message type B and the message type C respectively correspond to a target message, when the first parameter is a weight coefficient, if the weight coefficient 1 is greater than the weight coefficient 2, and the weight coefficient 2 is greater than the weight coefficient 3, the target message corresponding to the message type A is determined to be either the message 1 or the message 2 according to the principle that the greater the weight coefficient is, the greater the probability of being selected is; determining the target messages corresponding to the message type B and the message type C may refer to a method for determining the target message corresponding to the message type a, which is not described herein again.
In the second embodiment, compared to the first embodiment, the second embodiment is a simplified method. The first parameter may be sorted from high to low according to the importance degree, and then selected from the messages corresponding to the highest importance degree in sequence until the number of messages meeting the target number corresponding to the message type is reached.
Exemplarily, as shown in table 4, according to the example of the first mode, if the messages of the target number corresponding to the message type are determined according to the weight coefficients sorted from high to low, the target message corresponding to the message type a can only be the message 1; determining the target messages corresponding to the message type B and the message type C may refer to a method for determining the target message corresponding to the message type a, which is not described herein again.
In case of scheme 2, the information associated with each message in the scheme may include the first parameter, the message type, and the type priority corresponding to each message type. Each type of message may be filtered by looping through the following operations until a specified number of messages are filtered, and the looping step may include, as shown in fig. 5:
step S501: selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter;
step S502: after each message is selected, the probability of reselecting the message type of the selected message is reduced.
Illustratively, as shown in table 4, the message types include message type a, message type B, and message type C, and initially, the message type a, the message type B, and the message type C are assumed to be in order of the type priority from high to low. When the first parameter is a weight coefficient, if 4 messages are screened in advance, one message can be screened from the message type A in high probability according to the principle that the selected probability is in direct proportion to the type priority, and then the probability that the message type A is selected again is reduced so as to screen out other types of messages as far as possible. And after the 2 nd message is screened out, reducing the probability that the message type of the 2 nd message is selected again, screening the 3 rd message, and so on until 4 messages are screened out.
In practice, the method of reducing the probability that a selected message type is selected again may be implemented by either prioritizing the type to the lowest, or by reducing at least one priority. It can also be implemented that when screening messages, the selection probability is calculated according to the type priority and the first parameter, and after a type of message is selected, the contribution of the type priority to the selection probability is reduced. For example, for each message, the type priority and the first parameter of the message are weighted and summed to calculate the selection probability of the message, and when the contribution of a certain type of message to the selection probability is reduced, the weight coefficient of the certain type can be directly reduced.
The method and the device for determining the target messages utilize the first parameter which represents the message importance degree and the message types corresponding to the messages to determine the target messages so as to ensure the diversity of the contents of the target messages. Determining a plurality of target messages according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of being selected is, by presetting the number of the targets corresponding to the message types; or according to the principle that the selected probability is in direct proportion to the type priority and the importance degree represented by the first parameter, selecting one message, and reducing the probability of reselecting the message type of the selected message after each message is selected to determine a plurality of target messages so as to achieve the purpose that different terminal devices display different target messages.
After determining a plurality of target messages by the above method, the following describes how to display the plurality of target messages by the terminal device in the embodiment of the present disclosure.
Second, display of messages
For the step S201, the alternative display of the plurality of target messages in the first specified time period in the comment area is controlled, as shown in fig. 6, the following steps are implemented:
step S601: sequencing the plurality of target messages according to the importance degree represented by the first parameter;
step S602: and according to the sorting result, alternately displaying the item mark messages according to the sequence of the importance degrees from low to high.
For example, as shown in fig. 7, assuming that the comment area can display 5 messages at most at the same time, and the number of the screened target messages is 13, the 13 messages are sorted from low to high according to the importance degree represented by the first parameter, and named as message 1-message 13 according to the sorted result. Messages 1-13 will be presented in turn in the comment field. As shown in fig. 7(a), the comment area displays messages 1 to 5 first, continues to scroll, as shown in fig. 7(b), displays messages 6 to 10, continues to scroll, as shown in fig. 7(c), and finally displays messages 9 to 13, and the corresponding scroll display is completed. It should be noted that if the messages 1 to 13 are alternately displayed within the first specified time period, the scrolling speed may be controlled according to the number of messages to be alternately displayed and the first preset time period. After the first specified time length is over, as shown in (c) of fig. 7, the messages 9-13 are continuously displayed according to the second specified time length, where the specific times of the first specified time length and the second specified time length are not specifically limited, and may be adjusted according to the actual application.
After the plurality of target messages are sorted according to the importance degree represented by the first parameter, the above example can ensure that relatively important messages in the plurality of target messages are continuously displayed at the second designated time of the plurality of display periods, so that a user can know more information resources in the messages, and the resource utilization rate is improved.
In another embodiment, the server may dynamically determine the upper limit of the number of messages allowed to be exposed in each exposure period as the total number of expected messages according to a rate control policy. After the terminal equipment displays the message in each display period, the total number of the expected messages corresponding to the display period issued by the server can be obtained. And if the total number of the target messages is larger than the total number of the expected messages, the terminal equipment controls the evaluation area to perform random filtering processing on the target messages for multiple times until the total number of the remaining target messages is the total number of the expected messages before the alternate display of the target messages is completed within the first specified time. Therefore, the number of messages displayed alternately in the evaluation area is controlled not to be too large, the phenomenon that the scrolling speed is too high and the obtained alternate messages cannot be effectively displayed is avoided.
In other embodiments, when the server separately filters out multiple pieces of target messages for each terminal device, the server may filter out multiple pieces of target messages that each terminal device will eventually display according to a rate control policy, so that the terminal device may not filter messages according to the rate control policy.
In other embodiments, the server may filter out multiple messages, for example, 100 messages, for each terminal device in the same live broadcast room, then send the 100 messages to different terminal devices, and each terminal device randomly selects some messages from the 100 messages for display according to the total number of expected messages.
In some embodiments, the total number of expected messages corresponding to the display period issued by the server is determined according to the area size parameter of the evaluation area in the terminal device, and the specific determination method is not limited herein and may be adjusted according to the actual application situation. For example, the size of the comment area corresponding to different types of live rooms may be determined according to the type of the live room, that is, the total number of expected messages is different. The corresponding comment areas in different scenes of the same type of live broadcast are different in size, namely the total number of expected messages is different.
Exemplarily, as shown in fig. 8, when the total number of the plurality of target messages is 10, and the total number of the expected messages corresponding to the display period issued by the server 20 is 3, the 10 messages are randomly filtered for multiple times until 3 messages remain, so that 3 messages seen by the user 1 are, as shown in (a) of fig. 8, the messages 1, the messages 2, and the messages 3 seen by the user 2 are, as shown in (b) of fig. 8, the messages 2, the messages 3, and the messages 3 seen by the user 3 are, as shown in (c) of fig. 8, the messages 4, the messages 5, and the messages 6, which are seen by different users, may be the same or different, and the number here is merely an example, and may be specifically adjusted according to an actual application situation.
Therefore, the purpose that different terminal devices watch different messages can be achieved, the users can be guaranteed to know more information of the comment area, and the resource utilization rate is improved.
In summary, the comment area is provided with a plurality of display periods, each display period is divided into a first specified time length and a second specified time length, and then for each display period, the comment area is obtained and controlled to finish alternate display of a plurality of target messages within the first specified time length; and then when the first specified duration is over, continuously displaying the target messages reserved in the appraisal area according to the second specified duration, so that part of important information can be screened out in each display period for displaying, a user can know more information of the appraisal area, and the resource utilization rate is improved.
The foregoing introduces a message processing method of a comment area executable by a terminal device. Based on the same inventive concept, the embodiment of the application also provides a message processing method which is applicable to the server side and aims at the comment area. As shown in fig. 9, is a flow chart of the method. Similar to the method described above, in the embodiment of the present application, the review area has a plurality of display periods, each display period is divided into a first designated duration and a second designated duration, and the implementation may include the following steps:
and S901, collecting messages needing to be displayed in the comment area to obtain a message set.
S902, aiming at each collected message, determining a first parameter for representing the importance degree of the message; the first parameter is used for screening a plurality of target messages from the message set of the comment area; the multiple target messages are used for controlling the evaluating area to finish alternate display of the multiple target messages within a first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the evaluating area are continuously displayed according to a second specified time length.
Specifically, each message in the message set is associated with a first parameter, and in implementation, the message set can be sent to the terminal device to enable the terminal device to perform message screening; or screening a plurality of target messages from the message set according to the first parameter; and sending the plurality of target messages to the terminal equipment.
Here, the specific screening process of the plurality of target messages performed by the terminal device has been described in the foregoing step, and is not described herein again.
The following describes a specific process of the server completing screening of multiple pieces of target messages in the embodiment of the present disclosure. The implementation is as described above in the schemes and ways,
specifically, when each message in the message set is also associated with a message type, the server can screen out a plurality of target messages by a method in the step of screening messages through the terminal equipment; in addition, if the server stores the corresponding relationship between different message types and the number of the targets in advance, a plurality of target messages can be screened out through the scheme 1 in the message screening step by the terminal equipment.
Here, the specific implementation may refer to a specific implementation in which the terminal device filters a plurality of target messages, and details are not described here.
The method comprises the steps of acquiring messages needing to be displayed in a comment area to obtain a message set, and then determining a first parameter for representing the importance degree of the messages according to each acquired message; the first parameter is used for screening a plurality of target messages from the message set of the comment area; the multiple target messages are used for controlling the evaluation area to finish alternate display of the multiple target messages within a first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the evaluation area are continuously displayed according to a second specified time length, so that part of important information can be screened out for display in each display period, a user can know more information of the evaluation area, and the resource utilization rate is improved.
Fig. 10 shows an interaction flowchart of message processing of a comment field, which specifically includes the following steps:
s1001, collecting messages needing to be displayed in the comment area to obtain a message set.
S1002, aiming at each collected message, determining a first parameter for representing the importance degree of the message.
S1003, when each message in the message set further has a message type associated therewith and a corresponding relationship between different message types and a target number is stored in advance, for each of at least two message types, respectively executing: and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
And S1004, sending the target messages and the total expected messages corresponding to the display period to the terminal equipment.
S1005, if the total number of the target messages is greater than the total number of the expected messages, performing multiple random filtering processes on the target messages until the total number of the remaining target messages is the total number of the expected messages.
S1006, in a display period, the evaluation area is controlled to finish alternate display of the messages corresponding to the total number of the expected messages in the first designated time, and when the first designated time is over, the messages corresponding to the total number of the expected messages reserved in the evaluation area are continuously displayed according to the second designated time.
Fig. 11 shows an interaction flowchart of message processing of a comment field, which specifically includes the following steps:
s1101, collecting messages needing to be displayed in the comment area to obtain a message set, wherein each message is associated with the first parameter.
And S1102, sending the message set to the terminal equipment.
S1103, each message in the message set further has a message type associated therewith, and a corresponding relationship between different message types and a target number is stored in advance, and for each message type of the at least two message types, the following steps are respectively performed: and selecting the messages of the target number corresponding to the message type from the messages of the message type according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of selection is.
S1104, each message in the message set is also associated with a message type, each message type corresponds to a type priority, and the following operations are executed in a circulating manner until a specified number of messages are screened out: selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter; after each message is selected, the probability of reselecting the message type of the selected message is reduced.
S1105, determining the total number of expected messages corresponding to the display period.
And S1106, sending the total expected messages corresponding to the display period to the terminal equipment.
S1107, if the total number of the target messages is greater than the total number of the expected messages, the target messages are randomly filtered for multiple times until the total number of the remaining target messages is the total number of the expected messages.
And S1108, controlling the evaluating area to finish alternate display of the messages corresponding to the total number of the expected messages in the first specified time length in a display period, and continuously displaying the messages corresponding to the total number of the expected messages reserved in the evaluating area according to the second specified time length when the first specified time length is finished.
Fig. 12 is a block diagram illustrating a message processing apparatus of a comment field according to an exemplary embodiment, and referring to fig. 12, the comment field has a plurality of presentation periods, each of which is divided into a first specified duration and a second specified duration, and the apparatus includes, for each presentation period: a first display unit 1201 and a second display unit 1202.
The first display unit 1201 is configured to execute acquisition and control of the comment area to finish alternate display of the plurality of target messages within the first specified time; the target messages are screened from the message set in advance according to a first parameter representing the message importance degree;
and the second presentation unit 1202 is configured to perform that when the first specified time length is finished, the target messages retained in the comment area are continuously presented according to the second specified time length.
In an optional implementation manner, the first presentation unit 1201 is configured to perform:
receiving the plurality of pieces of target information screened out from the message set by the server;
alternatively, the first and second electrodes may be,
receiving the message set issued by the server; each message in the message set is associated with the first parameter;
and screening the plurality of target messages from the message set according to the first parameter.
In an optional implementation manner, each message in the message set is further associated with a message type, and the first presenting unit 1201 is configured to perform:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
An optional implementation manner is that the corresponding relationship between different message types and the target number is stored in advance; the first presentation unit 1201 is configured to perform:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
In an optional implementation manner, the first presentation unit 1201 is configured to perform:
and selecting the messages of the target number corresponding to the message type from the messages of the message type according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of selection is.
An optional implementation is that each message type corresponds to a type priority; the first presentation unit 1201 is configured to perform:
the following operations are performed in a loop until a specified number of messages are filtered out:
selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter;
after each message is selected, the probability of reselecting the message type of the selected message is reduced.
In an optional implementation manner, the first presentation unit 1201 is configured to perform:
sequencing the target messages according to the importance degree represented by the first parameter;
and alternately displaying the target messages according to the sequencing result and the sequence of the importance degrees from low to high.
In an optional embodiment, before the first display unit 1201, the apparatus further includes:
an obtaining unit 1203, configured to perform obtaining of a total number of expected messages corresponding to the presentation period issued by the server;
if the total number of the plurality of target messages is greater than the total number of the expected messages, the apparatus further includes:
the processing unit 1204 is configured to perform multiple random filtering processes on the plurality of target messages until the total amount of the remaining target messages is the total amount of the expected messages.
Fig. 13 is a block diagram illustrating a message processing apparatus 1300 of a comment field according to an exemplary embodiment, including:
a processor 1301 and a memory 1302 for storing instructions executable by the processor 1301;
wherein the processor 1301 is configured to execute the instructions to implement the message processing method of the comment area as in the above embodiments.
In an exemplary embodiment, there is also provided a computer storage medium comprising instructions, such as a memory 1302 comprising instructions executable by a processor 1301 of a message processing apparatus 1300 of a comment area to perform the message processing method of the comment area. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is further provided, which, when run on an electronic device, causes the electronic device to execute a message processing method that implements any one of the possible comment areas referred to at the auxiliary client side as described above in the embodiments of the present disclosure.
Based on the same inventive concept, the embodiment of the present disclosure further provides a device for processing a comment area message, and because the device corresponds to a server in the system for processing a comment area message in the embodiment of the present disclosure, and the principle of the device for solving the problem is similar to that of the method, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Fig. 14 is a block diagram illustrating a message processing apparatus of a comment field according to an exemplary embodiment, and referring to fig. 14, the comment field has a plurality of presentation periods each divided into a first specified duration and a second specified duration, the apparatus includes: acquisition unit 1401, determining unit 1402.
The collecting unit 1401 is configured to collect messages required to be displayed in the comment area, and obtain a message set;
a determining unit 1402 configured to perform determining, for each collected message, a first parameter indicating an importance degree of the message;
the first parameter is used for screening a plurality of target messages from the message set of the comment area; the target messages are used for controlling the comment area to finish alternate display of the target messages within the first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the comment area are continuously displayed according to the second specified time length.
In an optional embodiment, the apparatus further comprises:
a first sending unit 1403, configured to perform sending the set of messages to the terminal device, where each message in the set of messages is associated with the first parameter; alternatively, the first and second electrodes may be,
a screening unit 1404 configured to perform screening of the plurality of target messages from the message set according to the first parameter;
a second transmitting unit 1405 configured to perform transmitting the plurality of target messages to the terminal device.
In an optional embodiment, each message in the message set is further associated with a message type, and the filtering unit 1404 is configured to perform:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
An optional implementation manner is that the corresponding relationship between different message types and the target number is stored in advance; the filtering unit 1404 configured to perform:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
Fig. 15 is a block diagram illustrating a message processing apparatus 1500 of a comment field according to an exemplary embodiment, including:
a processor 1501 and a memory 1502 for storing instructions executable by the processor 1501;
wherein the processor 1501 is configured to execute the instructions to implement the message processing method of the comment area as in the above embodiments.
In an exemplary embodiment, there is also provided a computer storage medium including instructions, for example, the memory 1502 including instructions executable by the processor 1501 of the message processing apparatus 1500 of the comment area to perform the message processing method of the comment area. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is further provided, which, when run on an electronic device, causes the electronic device to execute a message processing method that implements any one of the possible comment areas referred to at the auxiliary client side as described above in the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (27)

1. A message processing method of a comment area is characterized in that the comment area is provided with a plurality of display periods, each display period is divided into a first specified time length and a second specified time length, and for each display period, the method comprises the following steps:
acquiring and controlling the comment area to finish alternate display of a plurality of target messages within the first specified time; the target messages are screened from the message set in advance according to a first parameter representing the message importance degree; wherein, the first parameter of the message importance degree is determined according to the type of the live broadcast room;
and when the first specified time length is finished, continuing displaying the target messages retained in the comment area according to the second specified time length.
2. The method of claim 1, wherein obtaining the plurality of target messages comprises:
receiving the plurality of pieces of target information screened out from the message set by the server; alternatively, the first and second electrodes may be,
receiving the message set issued by the server; each message in the message set is associated with the first parameter;
and screening the plurality of target messages from the message set according to the first parameter.
3. The method of claim 2, wherein each message in the set of messages is further associated with a message type, and wherein the filtering out the plurality of target messages from the set of messages according to the first parameter comprises:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
4. The method according to claim 3, wherein the corresponding relationship between different message types and the number of objects is stored in advance; the screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages respectively comprises:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
5. The method of claim 4, wherein selecting a target number of messages from the message types according to the first parameter of each message comprises:
and selecting the messages of the target number corresponding to the message type from the messages of the message type according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of selection is.
6. The method of claim 3, wherein each message type corresponds to a type priority; the screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages respectively comprises:
the following operations are performed in a loop until a specified number of messages are filtered out:
selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter;
after each message is selected, the probability of reselecting the message type of the selected message is reduced.
7. The method according to any one of claims 1-6, wherein said controlling said comment area to complete alternate presentation of said plurality of target messages within said first specified time period comprises:
sequencing the target messages according to the importance degree represented by the first parameter;
and alternately displaying the target messages according to the sequencing result and the sequence of the importance degrees from low to high.
8. The method of claim 7, wherein before controlling the comment area to complete the alternate presentation of the plurality of target messages within the first specified time period, the method further comprises:
acquiring the total number of expected messages corresponding to the display period issued by the server;
if the total number of the target messages is greater than the total number of the expected messages, before the controlling the comment area completes alternate display of the target messages within the first specified time, the method further comprises:
and performing multiple random filtering treatments on the target messages until the total amount of the remaining target messages is the total amount of the expected messages.
9. A message processing method for a comment area is characterized in that the comment area is provided with a plurality of display periods, and each display period is divided into a first specified time length and a second specified time length, and the method comprises the following steps:
collecting messages needing to be displayed in the comment area to obtain a message set;
for each collected message, determining a first parameter for representing the importance degree of the message;
the first parameter is used for screening a plurality of target messages from the message set of the comment area; wherein, the first parameter of the message importance degree is determined according to the type of the live broadcast room; the target messages are used for controlling the comment area to finish alternate display of the target messages within the first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the comment area are continuously displayed according to the second specified time length.
10. The method of claim 9, further comprising:
sending the message set to the terminal equipment, wherein each message in the message set is associated with the first parameter; alternatively, the first and second electrodes may be,
screening the plurality of target messages from the message set according to the first parameter;
and sending the target messages to the terminal equipment.
11. The method of claim 10, wherein each message in the set of messages is further associated with a message type, and wherein the filtering the plurality of target messages from the set of messages according to the first parameter comprises:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
12. The method according to claim 11, wherein the correspondence between different message types and the number of objects is stored in advance; the screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages respectively comprises:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
13. A message processing apparatus of a comment area, the comment area having a plurality of presentation periods, each presentation period being divided into a first specified duration and a second specified duration, the apparatus comprising, for each presentation period:
the first display unit is configured to execute acquisition and control of the comment area to finish alternate display of a plurality of target messages within the first specified time; the target messages are screened from the message set in advance according to a first parameter representing the message importance degree; wherein, the first parameter of the message importance degree is determined according to the type of the live broadcast room;
and the second display unit is configured to continue displaying the target messages retained in the comment area according to the second designated time length when the first designated time length is finished.
14. The apparatus of claim 13, wherein the first presentation unit is configured to perform:
receiving the plurality of pieces of target information screened out from the message set by the server;
alternatively, the first and second electrodes may be,
receiving the message set issued by the server; each message in the message set is associated with the first parameter;
and screening the plurality of target messages from the message set according to the first parameter.
15. The apparatus according to claim 14, wherein each message in the set of messages is further associated with a message type, and wherein the first presentation unit is configured to perform:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
16. The apparatus according to claim 15, wherein the correspondence between different message types and the number of objects is stored in advance; the first presentation unit is configured to perform:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
17. The apparatus of claim 16, wherein the first presentation unit is configured to perform:
and selecting the messages of the target number corresponding to the message type from the messages of the message type according to the principle that the higher the importance degree represented by the first parameter is, the higher the probability of selection is.
18. The apparatus of claim 15, wherein each message type corresponds to a type priority; the first presentation unit is configured to perform:
the following operations are performed in a loop until a specified number of messages are filtered out:
selecting a message according to the principle that the selected probability is in direct proportion to both the type priority and the importance degree represented by the first parameter;
after each message is selected, the probability of reselecting the message type of the selected message is reduced.
19. The apparatus according to any one of claims 13-18, wherein the first presentation unit is configured to perform:
sequencing the target messages according to the importance degree represented by the first parameter;
and alternately displaying the target messages according to the sequencing result and the sequence of the importance degrees from low to high.
20. The apparatus of claim 19, wherein the apparatus further comprises, prior to the first display unit:
the acquisition unit is configured to execute the acquisition of the total number of expected messages corresponding to the display period issued by the server;
if the total number of the plurality of target messages is greater than the total number of the expected messages, the apparatus further includes:
and the processing unit is configured to perform multiple random filtering processes on the plurality of target messages until the total amount of the remaining target messages is the total amount of the expected messages.
21. A message processing apparatus of a comment area, wherein the comment area has a plurality of presentation cycles, each presentation cycle being divided into a first specified duration and a second specified duration, the apparatus comprising:
the acquisition unit is configured to acquire the messages required to be displayed in the comment area to obtain a message set;
the determining unit is configured to determine a first parameter for representing the importance degree of each collected message;
the first parameter is used for screening a plurality of target messages from the message set of the comment area; wherein, the first parameter of the message importance degree is determined according to the type of the live broadcast room; the target messages are used for controlling the comment area to finish alternate display of the target messages within the first specified time length in a display period by the terminal equipment, and when the first specified time length is finished, the target messages reserved in the comment area are continuously displayed according to the second specified time length.
22. The apparatus of claim 21, further comprising:
a first sending unit configured to execute sending the message set to the terminal device, wherein each message in the message set is associated with the first parameter; alternatively, the first and second electrodes may be,
a screening unit configured to perform screening of the plurality of target messages from the message set according to the first parameter;
a second transmitting unit configured to perform transmitting the plurality of target messages to the terminal device.
23. The apparatus of claim 22, wherein each message in the set of messages is further associated with a message type, and wherein the filtering unit is configured to perform:
and respectively screening out at least one message from at least two message types based on the first parameter to obtain the plurality of target messages.
24. The apparatus according to claim 23, wherein the correspondence between different message types and the number of objects is stored in advance; the screening unit configured to perform:
for each of the at least two message types, performing:
and selecting the messages with the target number corresponding to the message type from the message types according to the first parameters of the messages.
25. A message processing apparatus of a comment area, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a message processing method for a review zone as claimed in any one of claims 1 to 8.
26. A message processing apparatus of a comment area, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a message processing method for a review zone as claimed in any of claims 9 to 12.
27. A computer storage medium characterized in that instructions in the computer storage medium, when executed by a processor of a message processing apparatus of a comment area, enable the message processing apparatus of the comment area to execute the message processing method of the comment area according to any one of claims 1 to 12.
CN202011379570.8A 2020-11-30 2020-11-30 Comment area message processing method and device and computer storage medium Active CN112565803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011379570.8A CN112565803B (en) 2020-11-30 2020-11-30 Comment area message processing method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011379570.8A CN112565803B (en) 2020-11-30 2020-11-30 Comment area message processing method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN112565803A CN112565803A (en) 2021-03-26
CN112565803B true CN112565803B (en) 2022-04-22

Family

ID=75045582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011379570.8A Active CN112565803B (en) 2020-11-30 2020-11-30 Comment area message processing method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112565803B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8744979B2 (en) * 2010-12-06 2014-06-03 Microsoft Corporation Electronic communications triage using recipient's historical behavioral and feedback
CN109582413A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 Message informing method, device and electronic equipment
CN110087118B (en) * 2019-04-26 2022-01-21 北京达佳互联信息技术有限公司 Comment message processing method, comment message processing device, comment message processing terminal, comment message processing server and comment message processing medium
CN111787362A (en) * 2020-06-18 2020-10-16 北京字节跳动网络技术有限公司 Message processing method and device
CN111770351B (en) * 2020-06-23 2022-11-29 北京字节跳动网络技术有限公司 Live broadcast message display method and device
CN112000404A (en) * 2020-07-20 2020-11-27 第四范式(北京)技术有限公司 Message pushing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112565803A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US20170230317A1 (en) Method of providing instant messaging service and multiple services expanded from instant messaging service
US9832144B2 (en) Method and device for implementing instant communication
US8626836B2 (en) Providing context for an automated agent to service multiple avatars within a virtual universe
US20090254616A1 (en) Simultaneous Instant Messaging In Single Window
CN111385594B (en) Virtual character interaction method, device and storage medium
EP3321876A1 (en) Methods and devices for carrying out service operation on the basis of a chat group and acquiring group member information
CN105208088B (en) Evaluation number determines method and apparatus
CN112367528B (en) Live broadcast interaction method and computer equipment
CN111581521A (en) Group member recommendation method, device, server, storage medium and system
CN112511856B (en) Virtual resource pushing method, device and server
JP2019215865A (en) Method for displaying chat room list and medium
CN113535991A (en) Multimedia resource recommendation method and device, electronic equipment and storage medium
CN105337841A (en) Information processing method and system, client, and server
CN104618420A (en) Information display method and device
CN112565803B (en) Comment area message processing method and device and computer storage medium
CN111400616A (en) Account recommendation method and device
KR20210022966A (en) Method and apparatus for displaying an interface for providing a social network service through an anonymous based profile
US11361042B1 (en) System, method, and computer program product for determining peers of a user by evaluating persons identified from a calendar of the user
CN113573131B (en) Data processing method and device applied to live broadcast, electronic equipment and storage medium
CN113807912A (en) Method and computer program product for dynamically matching user and broker connections
CN103425389A (en) Microblog message interactive display method and microblog client side
US9058478B1 (en) System and method of determining entities operating accounts
CN112769673A (en) Communication record generation, recommendation and display method and device
CN114124415B (en) Information interaction method and device in target interaction application
CN106934655A (en) Advertisement sending method and device based on user feedback

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