Message output method, device and system

文档序号:245287 发布日期:2021-11-12 浏览:4次 中文

阅读说明:本技术 一种消息输出方法、装置及系统 (Message output method, device and system ) 是由 赵大昊 王强 于 2021-08-10 设计创作,主要内容包括:本申请公开了一种消息输出方法、装置及系统,确定预设时长内获得的多个待输出信息,确定每个待输出信息的输出用户及每个待输出信息的信息类型,基于输出用户及信息类型确定待输出信息的输出等级信息,基于输出等级信息输出至少部分多个待输出信息。本方案通过对每个待输出信息的输出用户及信息类型进行分析,从而实现当获得的待输出信息较多时,能够基于待输出信息的输出用户及信息类型确定信息的优先级,从而实现基于优先级对待输出信息的至少部分进行输出,避免了当人数较多时,对服务器造成的信息处理压力,提高了系统的流畅度。(The application discloses a message output method, a message output device and a message output system, wherein a plurality of pieces of information to be output obtained within a preset time length are determined, an output user of each piece of information to be output and an information type of each piece of information to be output are determined, output grade information of the piece of information to be output is determined based on the output user and the information type, and at least part of the plurality of pieces of information to be output is output based on the output grade information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.)

1. A message output method, comprising:

determining a plurality of pieces of information to be output, which are obtained within a preset time length;

determining an output user of each piece of information to be output and an information type of each piece of information to be output;

determining output grade information of the information to be output based on the output user and the information type;

outputting at least part of the plurality of information to be output based on the output level information.

2. The method of claim 1, wherein the determining output level information of the information to be output based on the output user and the information type comprises:

determining the user grade of each output user of the information to be output;

determining a type grade corresponding to the information type of each piece of information to be output;

and determining the output grade information of the information to be output based on the type grade of the information type and the user grade of the output user.

3. The method of claim 2, wherein the determining the output level information of the information to be output based on the type level of the information type and the user level of the output user comprises:

determining a first output sequence of the plurality of information to be output according to the type grade of the information type;

and if the first output sequence has not less than two pieces of information to be output with the same type grade, determining the output sequence of not less than two pieces of information to be output based on the user grades of the output users of not less than two pieces of information to be output.

4. The method of claim 1, wherein outputting at least a portion of the plurality of information to be output based on the output level information comprises:

and outputting a preset amount of information to be output based on the output grade information of the plurality of information to be output.

5. The method according to claim 4, wherein outputting a preset number of pieces of information to be output based on the output level information of the plurality of pieces of information to be output comprises:

determining a preset number based on the number of the information to be output obtained in the preset time length;

and outputting a first group of information to be output, of which the output level information is higher than other information to be output, wherein the quantity of the first group of information to be output is the preset quantity.

6. The method of claim 5, further comprising:

determining other information to be output in the information to be output except the first group of information to be output as a second group of information to be output, and stopping outputting the second group of information to be output;

wherein the suspending the output of the second set of information to be output comprises:

and stopping outputting the second group of information to be output until the number of the information to be output obtained in the preset time period is smaller than a first threshold value, and simultaneously outputting the second group of information to be output and the information to be output, the number of which is smaller than the first threshold value, obtained in the current time period, wherein the first threshold value is not larger than the preset number.

7. A message output system, comprising:

the first determining unit is used for determining a plurality of pieces of information to be output, which are obtained within a preset time length;

the second determining unit is used for determining an output user of each piece of information to be output and an information type of each piece of information to be output;

a third determining unit, configured to determine output level information of the information to be output based on the output user and the information type;

an output unit configured to output at least part of the plurality of information to be output based on the output level information.

8. The system of claim 7, wherein the third determination unit is configured to:

determining the user grade of an output user of each piece of information to be output, determining the type grade corresponding to the information type of each piece of information to be output, and determining the output grade information of the information to be output based on the type grade of the information type and the user grade of the output user.

9. A message output apparatus, characterized by comprising:

the processor is used for determining a plurality of pieces of information to be output, which are obtained within a preset time length; determining an output user of each piece of information to be output and an information type of each piece of information to be output; determining output grade information of the information to be output based on the output user and the information type; outputting at least part of the plurality of information to be output based on the output level information;

and the memory is used for storing the program of the processor for executing the processing procedure.

10. A readable storage medium storing at least one set of instructions;

the set of instructions is for being called and performing at least the method of message output of any of the above.

Technical Field

The present application relates to the field of communications, and in particular, to a method, an apparatus, and a system for outputting a message.

Background

At present, online live broadcast is widely applied in various fields, and a user message distribution function in live broadcast is a core function in a live broadcast system.

In the live broadcast process, after a user enters a live broadcast room, the user can see messages output by each user in the live broadcast room, such as: comment, like, send gift, etc. However, when the number of live rooms is too large, the number of messages to be distributed by the live system increases by the square, which causes a large message processing pressure on the server.

Disclosure of Invention

In view of this, the present application provides a method, an apparatus and a system for outputting a message, which have the following specific schemes:

a message output method, comprising:

determining a plurality of pieces of information to be output, which are obtained within a preset time length;

determining an output user of each piece of information to be output and an information type of each piece of information to be output;

determining output grade information of the information to be output based on the output user and the information type;

outputting at least part of the plurality of information to be output based on the output level information.

Further, the determining the output level information of the information to be output based on the output user and the information type includes:

determining the user grade of each output user of the information to be output;

determining a type grade corresponding to the information type of each piece of information to be output;

and determining the output grade information of the information to be output based on the type grade of the information type and the user grade of the output user.

Further, the determining the output level information of the information to be output based on the type level of the information type and the user level of the output user includes:

determining a first output sequence of the plurality of information to be output according to the type grade of the information type;

and if the first output sequence has not less than two pieces of information to be output with the same type grade, determining the output sequence of not less than two pieces of information to be output based on the user grades of the output users of not less than two pieces of information to be output.

Further, the outputting at least part of the plurality of information to be output based on the output level information includes:

and outputting a preset amount of information to be output based on the output grade information of the plurality of information to be output.

Further, the outputting a preset number of information to be output based on the output level information of the plurality of information to be output includes:

determining a preset number based on the number of the information to be output obtained in the preset time length;

and outputting a first group of information to be output, of which the output level information is higher than other information to be output, wherein the quantity of the first group of information to be output is the preset quantity.

Further, the method also comprises the following steps:

determining other information to be output in the information to be output except the first group of information to be output as a second group of information to be output, and stopping outputting the second group of information to be output;

wherein the suspending the output of the second set of information to be output comprises:

and stopping outputting the second group of information to be output until the number of the information to be output obtained in the preset time period is smaller than a first threshold value, and simultaneously outputting the second group of information to be output and the information to be output, the number of which is smaller than the first threshold value, obtained in the current time period, wherein the first threshold value is not larger than the preset number.

A message output system comprising:

the first determining unit is used for determining a plurality of pieces of information to be output, which are obtained within a preset time length;

the second determining unit is used for determining an output user of each piece of information to be output and an information type of each piece of information to be output;

a third determining unit, configured to determine output level information of the information to be output based on the output user and the information type;

an output unit configured to output at least part of the plurality of information to be output based on the output level information.

Further, the third determining unit is configured to:

determining the user grade of an output user of each piece of information to be output, determining the type grade corresponding to the information type of each piece of information to be output, and determining the output grade information of the information to be output based on the type grade of the information type and the user grade of the output user.

A message output apparatus comprising:

the processor is used for determining a plurality of pieces of information to be output, which are obtained within a preset time length; determining an output user of each piece of information to be output and an information type of each piece of information to be output; determining output grade information of the information to be output based on the output user and the information type; outputting at least part of the plurality of information to be output based on the output level information;

and the memory is used for storing the program of the processor for executing the processing procedure.

A readable storage medium storing at least one set of instructions;

the set of instructions is for being called and performing at least the method of message output of any of the above.

According to the technical scheme, the message output method, the message output device and the message output system determine a plurality of pieces of information to be output which are obtained within a preset time length, determine an output user of each piece of information to be output and an information type of each piece of information to be output, determine output grade information of the piece of information to be output based on the output user and the information type, and output at least part of the plurality of pieces of information to be output based on the output grade information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a flowchart of a message output method disclosed in an embodiment of the present application;

fig. 2 is a flowchart of a message output method disclosed in an embodiment of the present application;

fig. 3 is a flowchart of a message output method disclosed in an embodiment of the present application;

fig. 4 is a schematic structural diagram of a message output system disclosed in an embodiment of the present application;

fig. 5 is a schematic structural diagram of a message output apparatus according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The application discloses a message output method, the flow chart of which is shown in fig. 1, comprising:

step S11, determining a plurality of pieces of information to be output, which are obtained within a preset time length;

step S12, determining the output user of each information to be output and the information type of each information to be output;

step S13, determining output grade information of the information to be output based on the output user and the information type;

and step S14, outputting at least part of the information to be output based on the output level information.

In the live broadcast process, the live broadcast participants, whether the participants are the anchor in the live broadcast or the audience watching the live broadcast, only need to send the messages, and the live broadcast system can distribute the messages.

When the number of people in the live broadcast room is small, messages sent by live broadcast participants are relatively small, the data volume required to be processed by the system is relatively small, and if the data processing volume corresponding to the messages required to be distributed currently is lower than the processing threshold value of the system server, the system server displays and outputs all the received messages;

when the number of people in the live broadcast room is large, messages sent by live broadcast participants are increased, at the moment, the data volume needing to be processed by the system is increased in a square magnitude, and if the data processing volume corresponding to the current messages needing to be distributed is still lower than the processing threshold value of the system server, the system server still displays and outputs all the received messages; if the data processing amount corresponding to the message that needs to be distributed currently exceeds the processing threshold of the system server, the efficiency of the system server for processing data will be reduced.

Such as: there are 30 million people in a live room and 1000 people sending a message per second, and then the message throughput of the live room is 3 billion QPS, QPS being the number of requests per second.

In order to improve the efficiency of data processing, all the obtained information is analyzed in the scheme to determine the output user and the information type of each information to be output, so that the output grade information of the information to be output is determined based on the output user and the information type, and at least part of the information to be output can be output based on the output grade information.

Outputting at least part of the information to be output, namely directly outputting all the information to be output when the data volume of the information to be output is lower than a first preset value; when the data volume of the information to be output exceeds a first preset value, only the part of the information to be output is output, the part of the output information to be output is sorted according to the output grade information, the information to be output with the front preset number in the sorted sequence is output, and the information to be output later is not output any more.

When all information to be output is output, the data volume of the information to be output is judged to be lower than a first preset value, and then all the information to be output is directly output, wherein the output grade information of each information to be output can not be determined in the process;

or, the output level information of each piece of information to be output may be determined first, and then it is determined whether the data volume of the information to be output is lower than a first preset value, if so, all pieces of information to be output are output in sequence according to the output level information, that is, the information to be output with high output level information is output preferentially.

And the output grade information of the information to be output is determined based on the output user of the information to be output and the information type.

Different output users correspond to different user grades, different information types correspond to different type grades, and output grade information of information to be output is determined based on the type grades of the information types and the user grades of the output users.

Specifically, different weights are assigned to the user level and the type level, and output level information of information to be output is determined according to the user level and the weight thereof, and the type level and the weight thereof, for example: the output level information of the information to be output is equal to the sum of the product of the user level and the corresponding weight thereof plus the product of the type level and the corresponding weight thereof.

The weight of the user level and the weight of the type level may be predetermined, and are the same for each information to be output, or may be: for different output users, the weight of the corresponding user level and the weight of the type level are different from those of other users.

Alternatively, the output level information of the information to be output may be determined in other ways.

Of course, the message output method disclosed in this embodiment may also determine the output level information only based on the information type of the information to be output, that is, when there is more information to be output, only the information to be output with the information type higher than that of the message information is output, for example: information such as a prize and a gift; alternatively, the output level information may be determined only based on the output user of the information to be output, that is, when the information to be output is large, only the preset information to be output by the output user is output, or the output user may be randomly selected, only the information to be output by the selected output user is output, or the like.

The message output method disclosed in this embodiment determines a plurality of pieces of information to be output obtained within a preset time period, determines an output user of each piece of information to be output and an information type of each piece of information to be output, determines output level information of the piece of information to be output based on the output user and the information type, and outputs at least part of the plurality of pieces of information to be output based on the output level information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.

The embodiment discloses a message output method, a flowchart of which is shown in fig. 2, and the method comprises the following steps:

step S21, determining a plurality of pieces of information to be output, which are obtained within a preset time length;

step S22, determining the output user of each information to be output and the information type of each information to be output;

step S23, determining a first output sequence of a plurality of information to be output according to the type grade of the information type;

step S24, if the first output sequence has not less than two pieces of information to be output with the same type grade, determining the output sequence of not less than two pieces of information to be output based on the user grade of the output user of not less than two pieces of information to be output;

and step S25, outputting at least part of the information to be output according to the finally determined output sequence.

The output user and the information type of the information to be output are used as reference parameters for determining the output grade information of the information to be output, on the basis, the information type is used as a first priority reference parameter, namely the information type is used as a main parameter for carrying out priority sequencing on the information to be output, and the output user is used as an auxiliary parameter for carrying out priority sequencing on the information to be output.

Specifically, when a plurality of pieces of information to be output are output and sorted, the information types of the pieces of information to be output are sorted firstly, that is, the information types of the pieces of information to be output are sorted according to the type grade corresponding to the information type, so that all pieces of information to be output are sorted according to the information types to obtain a first output sequence.

The information type of the information to be output may include: the message, the reward message, the gift giving message, the global broadcast message and the like correspond to different types of information and have different type grades.

Such as: the information type of the first information is a first type, and the type grade of the first information is a second grade; the information type of the second information is a second type, and the type grade of the second information is a third grade; the information type of the third information is a first type, and the type grade of the third information is a second grade; the information type of the fourth information is a third type, and the type level thereof is the first level. Wherein, the sort order of the type grades is as follows: first level → second level → third level, ordering the information to be output according to type level, namely: fourth information → first information, third information → second information.

In the above example, the type levels of the first information and the third information are the same, and then, if the information cannot be completely sorted only according to the type level sorting, the information to be output with the same type level is continuously sorted complementarily based on the user level of the output user, that is, only the information to be output with the same type level is sorted at this time.

Determining a corresponding user level for an output user, wherein the user level can be determined according to the activity, the user level with higher activity is higher, the user level with lower activity is lower, and the activity can be determined by the times of outputting messages by the user, wherein the output messages can be messages for outputting message leaving messages, sending gifts, rewarding and the like; or, the user level may also be determined according to the recharge amount, where the higher the recharge amount is, the higher the user level is, and the lower the recharge amount is, the lower the user level is.

The user grade determined by the user grade determining method is the user grade in a certain live broadcast room, and the corresponding user grades of the same output user in different live broadcast rooms can be the same or different. Such as: in the first live broadcasting room, the activity of the first output user is higher, so the user level of the first output user in the first live broadcasting room is higher, and in the second live broadcasting room, the activity of the first output user is lower, so the user level of the first output user in the second live broadcasting room is lower.

Continuing with the above example:

the type levels of the first information and the third information are the same, at this time, the first information and the third information are sorted by taking the user level as a reference parameter, the first information is output by a first user, and the third information is output by a second user, wherein the user level of the first user is lower than the user level of the third user, and the output level information of the third information is higher than the output level information of the first information, namely, the third information → the first information. Then, all the information is completely arranged, and the following can be obtained: fourth information → third information → first information → second information, whereby an output sequence of all information to be output is obtained, and at least part of all information to be output is output based on the output sequence.

And the output sequence, namely priority sequencing, determines at least part of the finally output information to be output according to the sequence of the output sequence.

The message output method disclosed in this embodiment determines a plurality of pieces of information to be output obtained within a preset time period, determines an output user of each piece of information to be output and an information type of each piece of information to be output, determines output level information of the piece of information to be output based on the output user and the information type, and outputs at least part of the plurality of pieces of information to be output based on the output level information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.

The embodiment discloses a message output method, a flowchart of which is shown in fig. 3, and the method comprises the following steps:

step S31, determining a plurality of pieces of information to be output, which are obtained within a preset time length;

step S32, determining the output user of each information to be output and the information type of each information to be output;

step S33, determining output grade information of the information to be written based on the output user and the information type;

step S34, determining a preset number based on the number of the information to be output obtained in the preset time length;

and step S35, outputting a first group of information to be output, wherein the output level information is higher than other information to be output, and the number of the first group of information to be output is a preset number.

When the information to be output is more, all the information to be output cannot be output, but only a part of the information to be output is selected for output, the selection process is determined according to the output grade information of each information to be output, and the quantity of the output information to be output is determined according to the quantity of the information to be output obtained in the preset time length.

Can be as follows: determining according to a proportion, namely presetting a preset proportion value, determining the quantity of all information to be output obtained within a preset time, and determining a numerical value according to the preset proportion value and the quantity of all information to be output, wherein the numerical value is the quantity of the information to be output finally;

alternatively, the following may be used: and presetting a numerical value, and selecting the information to be output which is consistent with the preset numerical value from all the information to be output for outputting as long as the quantity of the information to be output obtained in the preset time is higher than the data processing quantity of the system server.

Regardless of which way to determine the amount of information to be output is taken, as long as the amount of information to be output obtained exceeds the amount of information to be output that is output, there is information to be output that is not output.

The output information to be output is determined as a first group of information to be output, and other information to be output except the first group of information to be output in all the information to be output is determined as a second group of information to be output, wherein the output grade of each information to be output in the second group of information to be output is lower than that of any one information to be output in the first group of information to be output.

Further, the output of the second set of information to be output is suspended, i.e., the output of the second set of information to be output is temporarily stopped.

The suspension of outputting the second group of information to be output may be: directly deleting all the second group of information to be output, and no longer outputting and displaying the second group of information whenever;

the following steps can be also included: and reserving the second group of information to be output until the number of the information to be output obtained within a certain preset time period is smaller than a first threshold value, and simultaneously outputting the second group of information to be output together with the information to be output, the number of which is smaller than the first threshold value, obtained in the current time period, wherein the first threshold value is not larger than the preset number.

In the process of live broadcasting in a live broadcasting room, a plurality of preset durations exist, whether all information to be output is output or not is judged and output aiming at each preset duration, when part of the information to be output is not output in a certain preset duration, namely, a second group of information to be output is not output, and at the moment, the information to be output is stored; when the amount of information to be output in a certain preset time length is small and the data processing amount of the system server does not reach a threshold value, the amount of the information to be output can be increased in the preset time length, that is, at least part of the second group of information to be output which is not output before is output in the preset time length simultaneously with the information to be output obtained in the preset time length, wherein the simultaneous output is actually output according to the priority order after the arrangement of the output level information of the information to be output.

Such as: in the first preset time period, a second group of information to be output exists, the second group of information to be output has 3 information to be output, in the second preset time period, the second group of information to be output does not exist, the number of the first group of information to be output is less than the preset number, at the moment, the difference value between the preset number and the number of the first group of information to be output can be determined, and if the difference value is 3, all information to be output in the second group of information to be output which is not output in the first preset time period can be directly output in the second preset time period; if the difference is 2, 2 pieces of information to be output can be selected from a second group of information to be output which is not output in the first preset time period and output in the second preset time period, wherein the selected 2 pieces of information to be output are determined according to the output grade information of all 3 pieces of information to be output.

And after the information to be output in the second group of information to be output is output, deleting the output information to be output and not storing the output information to be output.

This scheme treats the quantity of output information waiting output information in every predetermined time length through the quantity and the output grade information adjustment of waiting to output information in predetermineeing time length, guaranteed when treating output information more, the smoothness degree of system operation, and simultaneously, when treating output information less, can supply the output to the information that does not export before, guaranteed most of output of treating output information, avoided not being output the information more and lead to the emergence of the unsatisfactory condition of spectator, user experience has been improved.

The message output method disclosed in this embodiment determines a plurality of pieces of information to be output obtained within a preset time period, determines an output user of each piece of information to be output and an information type of each piece of information to be output, determines output level information of the piece of information to be output based on the output user and the information type, and outputs at least part of the plurality of pieces of information to be output based on the output level information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.

The embodiment discloses a message output system, a schematic structural diagram of which is shown in fig. 4, and the message output system includes:

a first determining unit 41, a second determining unit 42, a third determining unit 43 and an output unit 44.

The first determining unit 41 is configured to determine a plurality of pieces of information to be output, which are obtained within a preset time period;

the second determining unit 42 is configured to determine an output user of each piece of information to be output and an information type of each piece of information to be output;

the third determining unit 43 is configured to determine output level information of information to be output based on an output user and an information type;

the output unit 44 is configured to output at least part of the plurality of pieces of information to be output based on the output level information.

In the live broadcast process, the live broadcast participants, whether the participants are the anchor in the live broadcast or the audience watching the live broadcast, only need to send the messages, and the live broadcast system can distribute the messages.

When the number of people in the live broadcast room is small, messages sent by live broadcast participants are relatively small, the data volume required to be processed by the system is relatively small, and if the data processing volume corresponding to the messages required to be distributed currently is lower than the processing threshold value of the system server, the system server displays and outputs all the received messages;

when the number of people in the live broadcast room is large, messages sent by live broadcast participants are increased, at the moment, the data volume needing to be processed by the system is increased in a square magnitude, and if the data processing volume corresponding to the current messages needing to be distributed is still lower than the processing threshold value of the system server, the system server still displays and outputs all the received messages; if the data processing amount corresponding to the message that needs to be distributed currently exceeds the processing threshold of the system server, the efficiency of the system server for processing data will be reduced.

Such as: there are 30 million people in a live room and 1000 people sending a message per second, and then the message throughput of the live room is 3 billion QPS, QPS being the number of requests per second.

In order to improve the efficiency of data processing, all the obtained information is analyzed in the scheme to determine the output user and the information type of each information to be output, so that the output grade information of the information to be output is determined based on the output user and the information type, and at least part of the information to be output can be output based on the output grade information.

Outputting at least part of the information to be output, namely directly outputting all the information to be output when the data volume of the information to be output is lower than a first preset value; when the data volume of the information to be output exceeds a first preset value, only the part of the information to be output is output, the part of the output information to be output is sorted according to the output grade information, the information to be output with the front preset number in the sorted sequence is output, and the information to be output later is not output any more.

When all information to be output is output, the data volume of the information to be output is judged to be lower than a first preset value, and then all the information to be output is directly output, wherein the output grade information of each information to be output can not be determined in the process;

or, the output level information of each piece of information to be output may be determined first, and then it is determined whether the data volume of the information to be output is lower than a first preset value, if so, all pieces of information to be output are output in sequence according to the output level information, that is, the information to be output with high output level information is output preferentially.

And the output grade information of the information to be output is determined based on the output user of the information to be output and the information type.

Different output users correspond to different user grades, different information types correspond to different type grades, and output grade information of information to be output is determined based on the type grades of the information types and the user grades of the output users.

Specifically, different weights are assigned to the user level and the type level, and output level information of information to be output is determined according to the user level and the weight thereof, and the type level and the weight thereof, for example: the output level information of the information to be output is equal to the sum of the product of the user level and the corresponding weight thereof plus the product of the type level and the corresponding weight thereof.

The weight of the user level and the weight of the type level may be predetermined, and are the same for each information to be output, or may be: for different output users, the weight of the corresponding user level and the weight of the type level are different from those of other users.

Alternatively, the output level information of the information to be output may be determined in other ways.

Of course, the message output method disclosed in this embodiment may also determine the output level information only based on the information type of the information to be output, that is, when there is more information to be output, only the information to be output with the information type higher than that of the message information is output, for example: information such as a prize and a gift; alternatively, the output level information may be determined only based on the output user of the information to be output, that is, when the information to be output is large, only the preset information to be output by the output user is output, or the output user may be randomly selected, only the information to be output by the selected output user is output, or the like.

Further, the third determining unit is configured to: determining a first output sequence of a plurality of information to be output according to the type grade of the information type; and if the first output sequence has not less than two pieces of information to be output with the same type grade, determining the output sequence of not less than two pieces of information to be output based on the user grade of the output user of not less than two pieces of information to be output.

The output user and the information type of the information to be output are used as reference parameters for determining the output grade information of the information to be output, on the basis, the information type is used as a first priority reference parameter, namely the information type is used as a main parameter for carrying out priority sequencing on the information to be output, and the output user is used as an auxiliary parameter for carrying out priority sequencing on the information to be output.

Specifically, when a plurality of pieces of information to be output are output and sorted, the information types of the pieces of information to be output are sorted firstly, that is, the information types of the pieces of information to be output are sorted according to the type grade corresponding to the information type, so that all pieces of information to be output are sorted according to the information types to obtain a first output sequence.

The information type of the information to be output may include: the message, the reward message, the gift giving message, the global broadcast message and the like correspond to different types of information and have different type grades.

Such as: the information type of the first information is a first type, and the type grade of the first information is a second grade; the information type of the second information is a second type, and the type grade of the second information is a third grade; the information type of the third information is a first type, and the type grade of the third information is a second grade; the information type of the fourth information is a third type, and the type level thereof is the first level. Wherein, the sort order of the type grades is as follows: first level → second level → third level, ordering the information to be output according to type level, namely: fourth information → first information, third information → second information.

In the above example, the type levels of the first information and the third information are the same, and then, if the information cannot be completely sorted only according to the type level sorting, the information to be output with the same type level is continuously sorted complementarily based on the user level of the output user, that is, only the information to be output with the same type level is sorted at this time.

Determining a corresponding user level for an output user, wherein the user level can be determined according to the activity, the user level with higher activity is higher, the user level with lower activity is lower, and the activity can be determined by the times of outputting messages by the user, wherein the output messages can be messages for outputting message leaving messages, sending gifts, rewarding and the like; or, the user level may also be determined according to the recharge amount, where the higher the recharge amount is, the higher the user level is, and the lower the recharge amount is, the lower the user level is.

The user grade determined by the user grade determining method is the user grade in a certain live broadcast room, and the corresponding user grades of the same output user in different live broadcast rooms can be the same or different. Such as: in the first live broadcasting room, the activity of the first output user is higher, so the user level of the first output user in the first live broadcasting room is higher, and in the second live broadcasting room, the activity of the first output user is lower, so the user level of the first output user in the second live broadcasting room is lower.

Continuing with the above example:

the type levels of the first information and the third information are the same, at this time, the first information and the third information are sorted by taking the user level as a reference parameter, the first information is output by a first user, and the third information is output by a second user, wherein the user level of the first user is lower than the user level of the third user, and the output level information of the third information is higher than the output level information of the first information, namely, the third information → the first information. Then, all the information is completely arranged, and the following can be obtained: fourth information → third information → first information → second information, whereby an output sequence of all information to be output is obtained, and at least part of all information to be output is output based on the output sequence.

And the output sequence, namely priority sequencing, determines at least part of the finally output information to be output according to the sequence of the output sequence.

Further, the output unit is configured to: determining a preset number based on the number of the information to be output obtained in the preset time length; and outputting the output grade information higher than the first group of information to be output of other information to be output, wherein the number of the first group of information to be output is a preset number.

When the information to be output is more, all the information to be output cannot be output, but only a part of the information to be output is selected for output, the selection process is determined according to the output grade information of each information to be output, and the quantity of the output information to be output is determined according to the quantity of the information to be output obtained in the preset time length.

Can be as follows: determining according to a proportion, namely presetting a preset proportion value, determining the quantity of all information to be output obtained within a preset time, and determining a numerical value according to the preset proportion value and the quantity of all information to be output, wherein the numerical value is the quantity of the information to be output finally;

alternatively, the following may be used: and presetting a numerical value, and selecting the information to be output which is consistent with the preset numerical value from all the information to be output for outputting as long as the quantity of the information to be output obtained in the preset time is higher than the data processing quantity of the system server.

Regardless of which way to determine the amount of information to be output is taken, as long as the amount of information to be output obtained exceeds the amount of information to be output that is output, there is information to be output that is not output.

The output information to be output is determined as a first group of information to be output, and other information to be output except the first group of information to be output in all the information to be output is determined as a second group of information to be output, wherein the output grade of each information to be output in the second group of information to be output is lower than that of any one information to be output in the first group of information to be output.

Further, the output of the second set of information to be output is suspended, i.e., the output of the second set of information to be output is temporarily stopped.

The suspension of outputting the second group of information to be output may be: directly deleting all the second group of information to be output, and no longer outputting and displaying the second group of information whenever;

the following steps can be also included: and reserving the second group of information to be output until the number of the information to be output obtained within a certain preset time period is smaller than a first threshold value, and simultaneously outputting the second group of information to be output together with the information to be output, the number of which is smaller than the first threshold value, obtained in the current time period, wherein the first threshold value is not larger than the preset number.

In the process of live broadcasting in a live broadcasting room, a plurality of preset durations exist, whether all information to be output is output or not is judged and output aiming at each preset duration, when part of the information to be output is not output in a certain preset duration, namely, a second group of information to be output is not output, and at the moment, the information to be output is stored; when the amount of information to be output in a certain preset time length is small and the data processing amount of the system server does not reach a threshold value, the amount of the information to be output can be increased in the preset time length, that is, at least part of the second group of information to be output which is not output before is output in the preset time length simultaneously with the information to be output obtained in the preset time length, wherein the simultaneous output is actually output according to the priority order after the arrangement of the output level information of the information to be output.

Such as: in the first preset time period, a second group of information to be output exists, the second group of information to be output has 3 information to be output, in the second preset time period, the second group of information to be output does not exist, the number of the first group of information to be output is less than the preset number, at the moment, the difference value between the preset number and the number of the first group of information to be output can be determined, and if the difference value is 3, all information to be output in the second group of information to be output which is not output in the first preset time period can be directly output in the second preset time period; if the difference is 2, 2 pieces of information to be output can be selected from a second group of information to be output which is not output in the first preset time period and output in the second preset time period, wherein the selected 2 pieces of information to be output are determined according to the output grade information of all 3 pieces of information to be output.

And after the information to be output in the second group of information to be output is output, deleting the output information to be output and not storing the output information to be output.

This scheme treats the quantity of output information waiting output information in every predetermined time length through the quantity and the output grade information adjustment of waiting to output information in predetermineeing time length, guaranteed when treating output information more, the smoothness degree of system operation, and simultaneously, when treating output information less, can supply the output to the information that does not export before, guaranteed most of output of treating output information, avoided not being output the information more and lead to the emergence of the unsatisfactory condition of spectator, user experience has been improved.

The message output system disclosed in this embodiment determines a plurality of pieces of information to be output obtained within a preset time period, determines an output user of each piece of information to be output and an information type of each piece of information to be output, determines output level information of the piece of information to be output based on the output user and the information type, and outputs at least part of the plurality of pieces of information to be output based on the output level information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.

The embodiment discloses a message output device, a schematic structural diagram of which is shown in fig. 5, including:

a processor 51 and a memory 52.

The processor 51 is configured to determine a plurality of pieces of information to be output, which are obtained within a preset time period; determining an output user of each information to be output and an information type of each information to be output; determining output grade information of information to be output based on the output user and the information type; outputting at least part of the plurality of information to be output based on the output level information;

the memory 52 is used to store programs for the processor to perform the above-described processing procedures.

The message output device disclosed in this embodiment is implemented based on the message output method disclosed in the above embodiment, and is not described herein again.

The message output device disclosed in this embodiment determines a plurality of pieces of information to be output obtained within a preset time period, determines an output user of each piece of information to be output and an information type of each piece of information to be output, determines output level information of the piece of information to be output based on the output user and the information type, and outputs at least part of the plurality of pieces of information to be output based on the output level information. According to the scheme, the output users and the information types of the information to be output are analyzed, so that when more information to be output is obtained, the priority of the information can be determined based on the output users and the information types of the information to be output, at least part of the information to be output is output based on the priority, the information processing pressure on a server is avoided when more people are used, and the smoothness of the system is improved.

The embodiment of the present application further provides a readable storage medium, where a computer program is stored, and the computer program is loaded and executed by a processor to implement each step of the message output method, where a specific implementation process may refer to descriptions of corresponding parts in the foregoing embodiment, and details are not described in this embodiment.

The present application also proposes a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instruction from the computer-readable storage medium, and executes the computer instruction, so that the electronic device executes the method provided in the various optional implementation manners in the aspect of the message output method or the aspect of the message output apparatus.

The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.

Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种显示操控与显控计算动态耦合系统及方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类