Summary of the invention
The purpose of the present invention is intended to solve above-mentioned one of technical problem at least to a certain extent.
For this purpose, the first purpose of this invention is to propose that a kind of processing method of barrage message, this method enrich end
The barrage message shown is held, the interactivity between user is improved.
Second object of the present invention is to propose the processing method of another barrage message.
Third object of the present invention is to propose a kind of processing unit of barrage message.
Fourth object of the present invention is to propose the processing unit of another barrage message.
5th purpose of the invention is to propose a kind of processing system of barrage message.
6th purpose of the invention is to propose a kind of server.
7th purpose of the invention is to propose another terminal.
8th purpose of the invention is to propose a kind of non-transitorycomputer readable storage medium.
9th purpose of the invention is to propose another non-transitorycomputer readable storage medium.
Tenth purpose of the invention is to propose a kind of computer program product.
11st purpose of the invention is to propose another computer program product.
To achieve the goals above, first aspect present invention embodiment proposes a kind of processing method of barrage message, obtains
Take the total amount for multiple first barrage message that multiple first terminals are sent within the unit time;The multiple first barrage is calculated to disappear
Ratio value between the total amount and first threshold of breath;The multiple first barrage message is grouped according to the ratio value,
Wherein, using the multiple first barrage message after grouping as the second barrage message, and according to the ratio value by multiple
Two terminals are grouped,;The second terminal the multiple second barrage message being sent in corresponding group, wherein described second
The second barrage message in corresponding group is shown by terminal.
The processing method of the barrage message of the embodiment of the present invention, acquisition multiple first terminals within the unit time send more
The total amount of a first barrage message calculates the ratio value between the total amount and first threshold of multiple first barrage message, Jin Ergen
Multiple first barrage message are grouped according to ratio value, to generate the second barrage message, and according to ratio value by second terminal
It is grouped, the second terminal being later sent to the second barrage message in corresponding group.The barrage of terminal display is enriched as a result,
Message improves the interactivity between user.
In addition, the processing method of the barrage message of the embodiment of the present invention, also has following additional technical characteristic:
Optionally, while the second barrage message is sent to the second terminal in corresponding group, the method is also
Include:
By the first barrage message feedback sent to the second terminal for sending the first barrage message.
It is optionally, described to be grouped the multiple first barrage message according to the ratio value, comprising:
Obtain the identification information of the multiple first barrage message;
By the identification information of the multiple first barrage message to the ratio value modulus, obtain and the multiple first bullet
The corresponding modulus of curtain message;
According to the modulus corresponding with the multiple first barrage message, by the first barrage message with identical modulus
It is divided into one group.
It is optionally, described to be grouped multiple second terminals according to the ratio value, comprising:
Obtain the identification information of the multiple second terminal;
By the identification information of the multiple second terminal to the ratio value modulus, obtain and the multiple second terminal pair
The modulus answered;According to the modulus corresponding with the multiple second terminal, the second terminal with identical modulus is divided into one
Group.
Optionally, the first threshold is the total amount that the second terminal single screen can show barrage message.
To achieve the goals above, second aspect of the present invention embodiment proposes the processing method of another barrage message,
The following steps are included: receiving the first barrage message that user sends;The first barrage message is sent to server, wherein
The total amount for multiple first barrage message that the server statistics receive within the unit time, and calculate the multiple first bullet
Ratio value between the total amount and first threshold of curtain message, and according to the ratio value respectively by the multiple first barrage message
And terminal is grouped, and the multiple first barrage message after grouping is sent to the terminal in corresponding group, wherein institute
State the equipment that terminal is used to indicate barrage message to be received;Receive the second barrage message that the server is sent, described second
Barrage message is the first barrage message received in corresponding with the terminal after grouping group, and to the barrage message received
It is shown.
The processing method of the barrage message of the embodiment of the present invention receives the first barrage message that user sends, by the first bullet
Curtain message is sent to server, wherein the total amount for multiple first barrage message that server statistics receive within the unit time,
And the ratio value between the total amount and first threshold of multiple first barrage message is calculated, and according to ratio value respectively by multiple first
Barrage message and terminal are grouped, and multiple first barrage message after grouping are sent to the terminal in corresponding group,
In, the equipment that terminal is used to indicate barrage message to be received receives the second barrage message that server is sent, and to receiving
Second barrage message is shown.As a result, can by terminal be user show barrage message more abundant, improve user it
Between interactivity.
In addition, the processing method of another barrage message of the embodiment of the present invention, also has following additional technical characteristic:
Optionally, while being shown to the second barrage message received, the method also includes:
The the first barrage message sent to the user is shown.
Optionally, described pair of the second barrage message received is shown, comprising:
Whether the total amount of the second barrage message received described in detection is greater than first threshold;
It, then will be described when the total amount for detecting the second barrage message received is less than or equal to the first threshold
The the second barrage message received is shown;When the total amount for detecting the second barrage message received is greater than described the
One threshold value, then from the second barrage message received, obtain quantity be the first threshold the second barrage message simultaneously
It is shown, and remaining second barrage message is added in message queue;
When detecting that the quantity of the second barrage message of current presentation is less than the first threshold, from the message queue
The second barrage message of middle acquisition is simultaneously shown.
Optionally, when the size of message that the message queue can be born is second threshold, the method also includes:
When the quantity for detecting the second barrage message in the message queue is greater than or equal to the second threshold, no
The the second barrage message newly received is added in the message queue again, until the barrage message in the message queue
The the second barrage message for continuing newly to receive when quantity is less than until the second threshold is added in the message queue.
Optionally, the method also includes:
According to the quantity of the second barrage message in the message queue, barrage speed is adjusted;
Current second barrage message to be presented is shown according to barrage speed adjusted.
Optionally, the first threshold is the total amount that the terminal single screen can show barrage message;The second threshold is
N times of the first threshold, the N are the natural number more than or equal to 2.
To achieve the goals above, third aspect present invention embodiment proposes a kind of processing unit of barrage message, packet
It includes: obtaining module, for obtaining the total amount for multiple first barrage message that multiple first terminals are sent within the unit time;It calculates
Module, the ratio value between total amount and first threshold for calculating the multiple first barrage message;Grouping module is used for root
The multiple first barrage message is grouped according to the ratio value, and is carried out multiple second terminals according to the ratio value
Grouping, wherein using the multiple first barrage message after grouping as the second barrage message, the multiple second terminal is used for
Indicate the terminal of the second barrage message to be received;First sending module, for the second barrage message to be sent to pair
It should second terminal in group.
The processing unit of the barrage message of the embodiment of the present invention, acquisition multiple first terminals within the unit time send more
The total amount of a first barrage message calculates the ratio value between the total amount and first threshold of multiple first barrage message, Jin Ergen
Multiple first barrage message are grouped according to ratio value, to generate the second barrage message, and according to ratio value by second terminal
It is grouped, the second barrage message after grouping is sent to the second terminal in corresponding group later.Terminal exhibition is enriched as a result,
The barrage message shown, improves the interactivity between user.
In addition, the processing unit of the barrage message of the embodiment of the present invention also has following additional technical characteristic:
Optionally, first sending module is also used to the second barrage message after grouping being sent to corresponding group
While interior second terminal, by the first barrage message feedback sent to sending the second of the first barrage message eventually
End.
Optionally, the grouping module includes:
Acquiring unit, for obtaining the identification information of the multiple first barrage message;
Modulus unit, for the identification information of the multiple first barrage message to the ratio value modulus, is obtained with
The corresponding modulus of the multiple barrage message;
Grouped element, for the modulus corresponding with the multiple barrage message according to, by the bullet with identical modulus
Curtain message is divided into one group.
Optionally, the acquiring unit is also used to obtain the identification information of the multiple second terminal;
The modulus unit be also used to obtain the identification information of the multiple second terminal to the ratio value modulus with
The corresponding modulus of the multiple second terminal;
The grouped element is also used to have identical modulus according to the modulus corresponding with the multiple second terminal
Second terminal be divided into one group.
Optionally, the first threshold is the total amount that the second terminal single screen can show barrage message.
To achieve the goals above, fourth aspect present invention embodiment proposes the processing unit of another barrage message,
It include: the first receiving module, for receiving the first barrage message of user's transmission;Second sending module is used for described first
Barrage message is sent to server, wherein the server is for counting multiple first barrages received within the unit time
The total amount of message, and the ratio value between the total amount and first threshold of the multiple first barrage message is calculated, and according to described
The multiple barrage message and terminal are grouped by ratio value respectively, and by the multiple first barrage message after grouping
The terminal being sent in corresponding group, wherein the equipment that the terminal is used to indicate barrage message to be received;Second receiving module,
The the second barrage message sent for receiving the server;Display module, for being carried out to the second barrage message received
It shows.
The processing unit of the barrage message of the embodiment of the present invention receives the first barrage message that user sends, by the first bullet
Curtain message is sent to server, wherein the total amount for multiple first barrage message that server statistics receive within the unit time,
And the ratio value between the total amount and first threshold of multiple first barrage message is calculated, and according to ratio value respectively by multiple first
Barrage message and terminal are grouped, and multiple first barrage message after grouping are sent to the terminal in corresponding group,
In, the equipment that terminal is used to indicate barrage message to be received receives the second barrage message that server is sent, and to receiving
Second barrage message is shown.As a result, can by terminal be user show barrage message more abundant, improve user it
Between interactivity.
In addition, the processing unit of the barrage message of the embodiment of the present invention, also has following additional technical characteristic:
Optionally, the display module is also used to while being shown to the second barrage message received, to institute
The the first barrage message for stating user's transmission is shown.
Optionally, the display module includes:
Whether detection unit, the total amount for detecting the second barrage message received are greater than first threshold;
Display unit is less than or equal to the first threshold for the total amount in the second barrage message received
When, the second barrage message received is shown;
Allocation unit, when being greater than the first threshold for the total amount in the second barrage message received, from institute
It states in the second barrage message received, obtaining quantity is the second barrage information and sending of the first threshold to the displaying
Unit, and remaining second barrage message is added in message queue;
The display unit is also used to be less than first threshold in the quantity for the second barrage message for detecting current presentation
When value, the second barrage message is obtained from the message queue and is shown.
Optionally, when the size of message that the message queue can be born is second threshold, the allocation unit is also used to
When detecting that the quantity of the second barrage message in the message queue is greater than or equal to the second threshold, no longer will newly it receive
To the second barrage message be added in the message queue, until the message queue in barrage message quantity be less than institute
The the second barrage message for continuing newly to receive when until stating second threshold is added in the message queue.
Optionally, further includes:
Module is adjusted, for the quantity according to the second barrage message in the message queue, adjusts barrage speed;Its
In, the display module is also used to be shown current second barrage message to be presented according to barrage speed adjusted.
Optionally, the first threshold is the total amount that the terminal single screen can show barrage message;The second threshold is
Twice of the N of the first threshold, the N are the natural number more than or equal to 2.
To achieve the goals above, fifth aspect present invention embodiment proposes a kind of processing system of barrage message, packet
Include bullet described in the processing unit of barrage message and fourth aspect present invention embodiment described in third aspect present invention embodiment
The processing unit of curtain message.
The processing system of the barrage message of the embodiment of the present invention, server obtain multiple first terminal hairs within the unit time
The total amount for the multiple first barrage message sent calculates the ratio value between the total amount and first threshold of multiple first barrage message,
And then be grouped multiple first barrage message according to ratio value, using multiple first barrage message after grouping as the second bullet
Terminal, and is grouped according to ratio value, the second barrage message is sent to the terminal in corresponding group later by curtain message, with
Barrage message is shown in terminal.The barrage message for enriching terminal display as a result, improves the interactivity between user.
To achieve the goals above, sixth aspect present invention embodiment proposes a kind of server, comprising: processor is deposited
Reservoir, communication interface and bus;The processor, the memory and the communication interface are connected and are completed by the bus
Mutual communication;The memory stores executable program code;The processor is stored by reading in the memory
Executable program code run program corresponding with the executable program code, for executing a kind of barrage message
Processing method;Wherein, the processing method of the barrage message includes:
Obtain the total amount for multiple first barrage message that multiple first terminals are sent within the unit time;
Calculate the ratio value between the total amount and first threshold of the multiple first barrage message;
The multiple first barrage message is grouped according to the ratio value, wherein will be the multiple after grouping
First barrage message is as the second barrage message;
Multiple second terminals are grouped according to the ratio value, wherein the multiple second terminal be used to indicate to
Receive the terminal of the second barrage message;
The second terminal second barrage message being sent in corresponding group, wherein the second terminal will be in correspondence
The second barrage message in group is shown.
The server of the embodiment of the present invention obtains multiple first barrages that multiple first terminals are sent within the unit time and disappears
The total amount of breath calculates the ratio value between the total amount and first threshold of multiple first barrage message, and then will be more according to ratio value
A first barrage message is grouped, and to generate the second barrage message, and is grouped second terminal according to ratio value, later
The second barrage message after grouping is sent to the second terminal in corresponding group.The barrage message of terminal display is enriched as a result,
Improve the interactivity between user.
To achieve the goals above, the 7th aspect embodiment of the present invention proposes a kind of terminal, comprising:
Processor, memory, communication interface and bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual lead to
Letter;
The memory stores executable program code;
The processor is run by reading the executable program code stored in the memory can be performed with described
The corresponding program of program code, with the processing method for executing a kind of barrage message;Wherein, the processing side of the barrage message
Method includes:
Receive the first barrage message that user sends;
The first barrage message is sent to server, wherein the server is for counting inscribed in the unit time
The total amount of the multiple first barrage message received, and calculate between the total amount and first threshold of the multiple first barrage message
Ratio value, and be respectively grouped the multiple first barrage message and terminal according to the ratio value, and will be after grouping
The multiple first barrage message be sent to the terminal in corresponding group, wherein the terminal is used to indicate barrage to be received and disappears
The equipment of breath;
The second barrage message that the server is sent is received, the second barrage message is corresponding with the terminal after grouping
The the first barrage message received in group;
The the second barrage message received is shown.
The terminal of the barrage message of the embodiment of the present invention receives the first barrage message that user sends, the first barrage is disappeared
Breath is sent to server, wherein the total amount for multiple first barrage message that server statistics receive within the unit time, and count
The ratio value between the total amount and first threshold of multiple first barrage message is calculated, and according to ratio value respectively by multiple first barrages
Message and terminal are grouped, and multiple first barrage message after grouping are sent to the terminal in corresponding group, wherein eventually
The equipment for being used to indicate barrage message to be received is held, receives the second barrage message that server is sent, and to second received
Barrage message is shown.It can be as a result, that user shows barrage message more abundant by terminal, improve between user
It is interactive.
To achieve the goals above, eight aspect embodiments of the invention propose a kind of non-transitory computer-readable storage medium
Matter, when the instruction in the storage medium is performed by the processor of mobile terminal, so that mobile terminal is able to carry out one kind
The processing method of barrage message, which comprises
Obtain the total amount for multiple barrage message that multiple first terminals are sent within the unit time;
Calculate the ratio value between the total amount and first threshold of the multiple barrage message;
The multiple barrage message is grouped according to the ratio value;
Second terminal is grouped according to the ratio value, wherein the second terminal is used to indicate barrage to be received
The terminal of message;
The multiple barrage message after grouping is sent to the second terminal in corresponding group.
To achieve the goals above, nine aspect embodiments of the invention propose the computer-readable storage of another non-transitory
Medium, when the instruction in the storage medium is performed by the processor of mobile terminal, so that mobile terminal is able to carry out one
The processing method of kind barrage message, which comprises
Receive the first barrage message that user sends;
The first barrage message is sent to server, wherein the server is for counting inscribed in the unit time
The total amount of the multiple first barrage message received, and calculate between the total amount and first threshold of the multiple first barrage message
Ratio value, and be respectively grouped the multiple first barrage message and terminal according to the ratio value, and will be after grouping
The multiple first barrage message be sent to the terminal in corresponding group, wherein the terminal is used to indicate barrage to be received and disappears
The equipment of breath;
The second barrage message that the server is sent is received, the second barrage message is corresponding with the terminal after grouping
The the first barrage message received in group;
The the second barrage message received is shown.
To achieve the goals above, tenth aspect present invention embodiment proposes a kind of computer program product, when described
When instruction processing unit in computer program product executes, a kind of processing method of barrage message is executed, which comprises
Obtain the total amount for multiple barrage message that multiple first terminals are sent within the unit time;
Calculate the ratio value between the total amount and first threshold of the multiple barrage message;
The multiple barrage message is grouped according to the ratio value;
Second terminal is grouped according to the ratio value, wherein the second terminal is used to indicate barrage to be received
The terminal of message;
The multiple barrage message after grouping is sent to the second terminal in corresponding group.
To achieve the goals above, the tenth one side embodiment of the invention proposes another computer program product, when
When instruction processing unit in the computer program product executes, a kind of processing method of barrage message, the method packet are executed
It includes:
Receive the first barrage message that user sends;The first barrage message is sent to server, wherein the clothes
Business device is used to count the total amount of the multiple first barrage message received within the unit time, and calculates the multiple first barrage
Ratio value between the total amount and first threshold of message, and according to the ratio value respectively by the multiple first barrage message with
And terminal is grouped, and the multiple first barrage message after grouping is sent to the terminal in corresponding group, wherein described
The equipment that terminal is used to indicate barrage message to be received;Receive the second barrage message that the server is sent, second bullet
Curtain message is the first barrage message received in corresponding with the terminal after grouping group;
The the second barrage message received is shown.The additional aspect of the present invention and advantage will in the following description
Part provides, and partially will become apparent from the description below, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings processing method, device, system and its equipment of the barrage message of the embodiment of the present invention are described.
Currently, barrage is increasingly pursued by user, user as a kind of function of sending comment when watching video
Barrage message can be sent for the video of viewing, so that other users can watch oneself comment to the video, simultaneously
User can also be on currently playing interface, the barrage message for watching other users to send, to understand other users pair in real time
The comment of the video can also even be chatted etc. between different users by sending barrage.
And if the barrage message for currently playing video is more, it may cause that brush screen is too fast, and user is difficult to see clearly
The particular content of barrage message, for example, the live video of a certain well-known main broadcaster is directed to, if the barrage information that viewing user sends
It is more, then will lead to live streaming interface brush screen it is too fast, user can not see the particular content of barrage information clearly, and main broadcaster also can not basis
Comment of the barrage information acquisition viewer to live video, the interactivity between user are restricted.
And by the way that user to be grouped, and only, user provides the barrage information of the other users transmission of same grouping
In mode, due to the grouping of user be it is fixed, user can only see the other users in affiliated grouping transmission barrage information,
It cannot know the barrage information that other grouping users are sent, the barrage information known is single limited, and user experience is not high.
In order to avoid the above problem, the invention proposes a kind of processing methods of barrage message, are single based on individual subscriber
Position is grouped at random, and is grouped at random to current all barrage message, is user to be grouped according to where user
The barrage message of respective packets is provided, due to being based on big data to barrage message even group-division, thus enriches terminal display
Barrage message.
It should be noted that above-mentioned terminal can be the tool such as mobile phone, tablet computer, personal digital assistant, wearable device
There is the hardware device of various operating systems and display device, and the wearable device can be Intelligent bracelet, smartwatch, intelligence
Energy glasses etc..
For ease of description, server side is concentrated below to be specifically described, be described as follows:
Fig. 1 is the flow chart of the processing method of barrage message according to an embodiment of the invention.
As shown in Figure 1, the processing method of the barrage message can include:
S101 obtains the total amount for multiple first barrage message that multiple first terminals are sent within the unit time.
It, can will be all it is appreciated that when current barrage message number is not above the upper limit of terminal display capabilities
Barrage message is shown to user, when current barrage message number is more than the terminal display capabilities upper limit, then in order to avoid brush frequency, needs
Respective handling operation is carried out to barrage message.
It is then desired to obtain the total amount for multiple first barrage message that multiple first terminals are sent in the unit time, wherein
Above-mentioned first terminal is the terminal for sending the first barrage message.
In addition, specific duration representated by the above-mentioned unit time, related with the server reception frequency of barrage message, than
Such as, a length of when the unit time is corresponding to be less than or equal to appointing in 1 second if server is every the barrage message of reception in 1 second
Meaning value.
S102 calculates the ratio value between the total amount and first threshold of multiple first barrage message.
Multiple first barrage message are grouped by S103 according to ratio value, wherein by multiple first barrages after grouping
Message is as the second barrage message.
Multiple second terminals are grouped, wherein multiple second terminals are used to indicate to be received by S104 according to ratio value
The terminal of second barrage message.
Specifically, the ratio value between the total amount and first threshold of multiple first barrage message is calculated, wherein first threshold
It can show the total amount of barrage message for second terminal single screen, the size of the first threshold is big with the display font of barrage message
Small, terminal display screen size etc. is related.
For example, when multiple first barrage message total amount be 100, first threshold be 20 when, be calculated multiple first
Ratio value between the total amount and first threshold of barrage message is 5:1.
Wherein, second terminal corresponds to the terminal for receiving barrage message, may include whole in send barrage message first
It can also be only the terminal for showing barrage message in end.
It should be understood that if the ratio value between the total amount and first threshold of multiple first barrage message is greater than 1,
The total amount for showing the first barrage message is more than the upper limit that second terminal shows barrage message capability, if multiple first barrage message
Total amount and first threshold between ratio value be less than or equal to 1, then show the total amount of the first barrage message be not above second eventually
The upper limit of end display barrage message capability.
For example, the total amount of multiple first barrage message is 150, first threshold 50 then calculates multiple first barrage message
Total amount and first threshold between ratio value be 3:1, the total amount of the first barrage message is more than that second terminal shows barrage message
The upper limit of ability.
Further, after the ratio value between the total amount and first threshold for calculating multiple first barrage message, according to
The ratio value is grouped multiple first barrage message and second terminal at random, and by multiple first barrage message after grouping
As the second barrage message, thus, it is grouped at random as unit of single second terminal, and as unit of single barrage message
It is grouped at random, i.e. second terminal and multiple first barrage message is grouped respectively.
It should be noted that, the ratio value between the total amount and first threshold of above-mentioned multiple first barrage message is the
Two terminals and the parameter of multiple first barrage message grouping can be according to the ratio values with different according to the difference of application scenarios
Operation mode is grouped operation to second terminal and multiple first barrage message, is illustrated below:
The first example can be carried out according to the relevant parameter comparative example value modulus of second terminal and multiple first barrage message
Grouping.Wherein, the parameter of second terminal and multiple first barrage information can be used to distinguish different second eventually by digital representation
End and the first different barrage message.
For example, when second terminal and the corresponding parameter of multiple first barrage message can be identification information, such as second terminal
Identification information may include second terminal ID, the identification information of multiple first barrage message may include the ID etc. of barrage message.
For another example, corresponding reference numbers can be set for geographical location in advance, for example the corresponding reference numbers in a-quadrant are
25, the corresponding reference numbers of B area are 36 etc., and corresponding reference numbers are arranged for the sending time section of the first barrage message
Deng, for example it is 33 that 7:10, which assigns to 7:11 points of corresponding reference numbers, is 34 etc. in the corresponding reference numbers of 7:45 to 7:46.
In turn, it identifies the geographical location where second terminal, and is determined according to the geographical location where the second terminal
The corresponding number mark in second terminal geographic location, likewise, the time that the first barrage message of identification is sent, according to first
The sending time of barrage message determines corresponding number mark of the first barrage message etc..
Below with second terminal and the corresponding parameter of multiple first barrage message, to be illustrated for identification information, i.e.,
The identification information that would know that multiple first barrage message obtains the identification information comparative example value modulus of multiple first barrage message
To modulus corresponding with multiple first barrage message.
And then according to modulus corresponding with multiple first barrage message, the first barrage message with identical modulus is divided into
One group, and using the first barrage message after the grouping as the second barrage message.
For example, know that the ID of the first barrage message x is 66, if the total amount of multiple first barrage message and first threshold
Ratio is 5, then obtaining modulus corresponding with the first barrage message x is 1, if knowing, the ID of the first barrage message y is 19, is obtained
Modulus corresponding with the first barrage message y is 4, if knowing, the ID of the first barrage message z is 16, is obtained and the first barrage message
The corresponding modulus of z is 1, to be one group by the first barrage message x and z points, y is one group.
Similarly, in this example, the identification information for obtaining second terminal, by the identification information comparative example of multiple second terminals
It is worth modulus, obtains modulus corresponding with multiple second terminals, and according to modulus corresponding with multiple second terminals, will have identical
The second terminal of modulus is divided into one group.
For example, know that the ID of second terminal A is 66, if the ratio of the total amount of multiple second terminals and first threshold is 5,
Then obtaining modulus corresponding with second terminal A is 1, if knowing, the ID of second terminal B is 19, is obtained corresponding with second terminal B
Modulus be 4, if know second terminal C ID be 16, obtain modulus corresponding with second terminal C be 1, thus by second eventually
Holding A and C points is one group, and B is one group.
Second of example, can be multiplied according to second terminal with the relevant parameter comparative example value of multiple first barrage message into
Row grouping.Wherein, the parameter of second terminal and multiple first barrage message can be used to distinguish different second by digital representation
Terminal and the first different barrage message.Such as can corresponding to second terminal and the first barrage message ID identify
Deng.
In this example, the ID of second terminal can be multiplied with ratio value, by the identical second terminal point of multiplied value mantissa
It is one group.
I.e. knowing how the ID of second terminal A is 66, if the total amount of multiple second terminals and the ratio of first threshold are
5, then obtaining multiplied value corresponding with second terminal A mantissa is 0, if knowing, the ID of second terminal B is 19, is obtained with second eventually
Holding the corresponding multiplied value mantissa of B is 5, if knowing, the ID of second terminal C is 16, obtains multiplied value corresponding with second terminal C
Mantissa is 0, to be one group by second terminal A and C points, B is one group.
Similarly, the ID of the first barrage message can be multiplied with ratio value, by the identical first barrage message of multiplied value mantissa
It is divided into one group.
For example, know that the ID of the first barrage message x is 66, if the total amount of multiple first barrage message and first threshold
Ratio is 5, then obtaining multiplied value mantissa corresponding with the first barrage message x is 0, if knowing, the ID of the first barrage message y is 19,
Then obtain multiplied value mantissa corresponding with the first barrage message y be 5, if know the first barrage message z ID be 16, obtain with
The corresponding multiplied value mantissa of first barrage message z is 0, to be one group by the first barrage message x and z points, y is one group.
It should be noted that when to second terminal and the grouping of multiple first barrage message, multiple first barrage message roots
, can be different according to the parameter of ratio value group basis from second terminal according to the parameter of the foundation of ratio value grouping, can also be identical,
This is not limited.
S105, the second terminal the second barrage message being sent in corresponding group, wherein second terminal will be in corresponding group
Barrage message be shown.
Specifically, after being grouped at random to second terminal and multiple first barrage message, it is divided into multiple groups the second barrage message,
Second barrage message is sent to the second terminal in corresponding group, to carry out according to single barrage message to the first barrage message
Grouping, the first barrage message obtains relatively uniform distribution, so that second terminal can see barrage message more abundant.
For example, the barrage message in second packet may be i.e. including the bullet of first chatroom in the case where application scenarios are broadcast live
Curtain message, and including second, the barrage message of other chatrooms of the third gradegrade C, so that the second terminal in second packet can connect substantially
The barrage message of each chatroom is received, comment etc. of every a kind of user to current live video is understood.
In order to more clearly illustrate the embodiment of the present invention barrage message processing method, continue with live scene
For, it illustrates in practical applications, the treatment process of barrage message:
In one embodiment of the invention, when the first barrage size of message issued in direct broadcasting room exceeds the list that terminal is drafted
Shield size of message and when first threshold, message carries out shunting transmission.
Server is according to the ratio value of the first barrage message total amount and first threshold, to the first barrage message and second terminal
It is controlled.If the first barrage message total amount received in the unit time between current live is 1000, terminal single screen
The first threshold for the size of message that can be shown is 50, then the ratio value being calculated is 20:1.
In turn, according to 20 modulus of the ID of second terminal and ratio value, it is assumed that the ID of second terminal A1 is 25, second terminal B1
ID be 45, the ID of second terminal C1 is 77, then second terminal A1 is in the 5th point according to modulo operation 25%20=5
Group, second terminal B1 will be divided by modulo operation in the 5th grouping, and second terminal C1 will divide in 17 groupings.
Having the ID of the first barrage message x1 at this time is 65, and the ID of the first barrage message y1 is 97, then the first barrage message x1
By modulo operation 65%20=5, the first barrage message x1 is assigned to the 5th grouping, it will by the 5th group of second terminal (the
Two terminal A1, second terminal B1) it receives, barrage message y1 is in the 17th grouping by modulo operation 97%20=17, so
(second terminal C) can be received by the 17th group second and terminal.
In another embodiment of the present invention, it is assumed that the first barrage message total amount is 100 at this time, and terminal single screen can be shown
The first threshold of the size of message shown is 50, then calculates the ratio value between the total amount and first threshold of multiple first barrage message
For 2:1, the second terminal A2 that ID is 25 passes through modulo operation 25%2=1, is in first group, and ID is respectively the of 15 and 35
Two terminal B2 and C2 pass through modulo operation, are all in first group.
In the present embodiment, after the first barrage message x2 modulo operation 65%2=1 that ID is 65, it is in first group, ID
After 97 barrage message y2 modulo operation 97%2=1, it is also in first group, thus second terminal A2, B2, C2 can be seen
To barrage message x2, y2.
In conclusion the processing method of the barrage message of the embodiment of the present invention, obtains multiple first ends within the unit time
The total amount of the multiple first barrage message sent is held, the ratio between the total amount and first threshold of multiple first barrage message is calculated
Value, and then be grouped multiple first barrage message according to ratio value, wherein multiple first barrage message after grouping are made
For the second barrage message, and second terminal is grouped according to ratio value, the second barrage message is sent to corresponding group later
Interior second terminal.The barrage message for enriching terminal display as a result, improves the interactivity between user.
Based on above embodiments, it should be appreciated that in practical applications, in order to increase the sense of participation of user, should begin
The barrage message being sent to eventually is sent to itself.
Specifically, Fig. 2 is the flow chart of the processing method of barrage message accord to a specific embodiment of that present invention, such as
Shown in Fig. 2, while above-mentioned steps S105 is implemented, this method further include:
S201 judges the first barrage message whether sent comprising second terminal in the second barrage message.
S202 sends out the second barrage message when the barrage message in the second barrage message not comprising second terminal transmission
While giving the second terminal in corresponding group, the first barrage message that second terminal is sent is sent to second terminal.
S203, when in the second barrage message including the first barrage message that second terminal is sent, directly by the second barrage
Message is sent to the second terminal in corresponding group.
Specifically, it while the second barrage message is sent to the second terminal in corresponding group, needs second terminal
The the first barrage message sent is sent to second terminal itself, to enhance the sense of participation of user.
Specifically, judge the first barrage message whether sent comprising second terminal in the second barrage message, thus, when
When in the second barrage message not including the first barrage message that second terminal is sent, the second barrage message is sent in corresponding group
Second terminal while, by second terminal send the first barrage message be sent to second terminal.
Wherein, when the first barrage message in the second barrage message not comprising second terminal transmission, a variety of sides can be used
Formula obtains the first barrage message for sending of second terminal itself, such as can be by by the terminal iidentification of second terminal and the first barrage
The mark of message is matched, to obtain the first barrage message that the second terminal of successful match is sent.For another example, can directly from
In the first barrage message that second terminal is locally stored, the first barrage message etc. that second terminal is sent is obtained.
In addition, in the present embodiment, when in the second barrage message including the first barrage message that second terminal is sent, directly
Connect the second terminal the second barrage message being sent in corresponding group.
For example, it is assumed that at this time the first barrage message total amount be 100, the first of the size of message that terminal single screen can be shown
Threshold value is 50, then calculating ratio value between the total amount and first threshold of multiple first barrage message is 2:1, and ID is the of 25
Two terminal A2 pass through modulo operation 25%2=1, are in first group, ID be respectively 14 second terminal B2 by modulo operation,
It is in the 0th group.
In the present embodiment, the first barrage message x2, ID that second terminal A2 is sent is 65 and modulo operation 65%2=1
Afterwards, it is in first group, ID is respectively that the first barrage message y2, ID of 14 second terminal B2 transmission is 97 and modulo operation
After 97%2=1, it is also in first group, the first barrage message that other second terminals are sent, including ID are 97 and modulo operation
After 97%2=1, it is in the 0th group barrage message z2 etc..
To, the second barrage message in the first grouping that second terminal A2 is received, including the first barrage message x2, y2
Deng, wherein due to including the first barrage message x2 of second terminal A2 transmission in the second barrage message, directly by first point
Second barrage message of group is sent to second terminal A2.
Second barrage message in the zero packets that second terminal B2 is received, including the first barrage message z2 etc., wherein
The the first barrage message y2 sent due to not including second terminal B2 in the second barrage message, by the second bullet of zero packets
While curtain message is sent to second terminal B2, the first barrage message y2 is also sent to second terminal B2.
It should be understood that being judged whether whole comprising second in the second barrage message according to the difference of concrete application demand
It holds the mode of the first barrage message sent different, is illustrated below:
The first example obtains multiple terminal iidentifications of the second affiliated terminal of barrage message, by the terminal mark of second terminal
Know and above-mentioned multiple terminal iidentifications are matched, if successful match, knows in the second barrage message and sent out comprising second terminal
The barrage message sent, so that the second barrage message after grouping is directly sent to the second terminal in corresponding group.
In this example, if it fails to match for the terminal iidentification of second terminal and above-mentioned multiple terminal iidentifications, know
The barrage message not sent comprising second terminal in two barrage message, thus the second barrage message is sent in corresponding group
While two terminals, the barrage message of second terminal is sent to second terminal.
Second of example matches the first barrage message that second terminal stores with the second barrage message, such as into
The matching such as row IP address, keyword, font, sending time is known in the second barrage message if successful match comprising second
The first barrage message that terminal is sent, so that the second barrage message to be directly sent to the second terminal in corresponding group.
In this example, if it fails to match, know first not sent comprising second terminal in the second barrage message
Barrage message, thus while the second barrage message is sent to the second terminal in corresponding group, by the first bullet of second terminal
Curtain message is sent to second terminal.
In conclusion the processing method of the barrage message of the embodiment of the present invention, is sent to corresponding group for the second barrage message
While interior second terminal, the first barrage message that second terminal is sent is sent to second terminal, to promote the ginseng of user
With sense, user experience is further promoted.
The processing method that terminal side describes the barrage message of the embodiment of the present invention is concentrated below, and Fig. 3 is according to the present invention
The flow chart of the processing method of the barrage message of another embodiment, as shown in figure 3, this method comprises:
S301 receives the first barrage message that user sends.
Specifically, in order to improve the sense of participation of user, receiving the first barrage that user sends under application scenes and disappearing
Breath, to understand the comment of other users.
First barrage message is sent to server, wherein server statistics receive more within the unit time by S302
The total amount of a first barrage message, and the ratio value between the total amount and first threshold of multiple first barrage message is calculated, and root
Multiple first barrage message and terminal are grouped respectively according to ratio value, and multiple first barrage message after grouping are sent out
Give the terminal in corresponding group, wherein the equipment that terminal is used to indicate the first barrage message to be received.
Specifically, after the first barrage message for receiving user's transmission, the first barrage message is sent to server, with
For the total amount for multiple first barrage message that server statistics receive within the unit time, and calculate multiple first barrage message
Total amount and first threshold between ratio value.
In turn, multiple first barrage message and terminal are grouped respectively according to ratio value, and will be more after grouping
A first barrage message is sent to the terminal in corresponding group, wherein the equipment that terminal is used to indicate barrage message to be received.
It should be noted that treatment process of the server to the grouping of barrage message and terminal, can refer to above-mentioned combination Fig. 1
The description of the processing method of the barrage message of description, details are not described herein.
S303, receive server send the second barrage message, wherein the second barrage message be and the terminal pair after grouping
The the first barrage message received in should organizing.
S304 is shown the second barrage message received.
Specifically, server is received according to the second barrage message in the correspondence group of the terminal transmission after grouping, and is docked
The the second barrage message received is shown, and since the big data based on barrage message is grouped, thus barrage message obtains
Relatively uniform grouping so that user can see barrage message abundant at the terminal improves the interactivity between user.
In conclusion the processing method of the barrage message of the embodiment of the present invention, receives the first barrage message that user sends,
First barrage message is sent to server, wherein multiple first barrages that server statistics receive within the unit time disappear
The total amount of breath, and the ratio value between the total amount and first threshold of multiple first barrage message is calculated, and distinguish according to ratio value
Multiple first barrage message and terminal are grouped, and multiple first barrage message after grouping are sent in corresponding group
Terminal, wherein the equipment that terminal is used to indicate barrage message to be received, receive server send the second barrage message, and
The the second barrage message received is shown.It can be as a result, that user shows barrage message more abundant by terminal, mention
Interactivity between high user.
Based on above embodiments, it should be appreciated that be famous main broadcaster etc. in the main broadcaster of live video in practical applications
Under scene, it may cause increasing for barrage message, be grouped corresponding barrage message number where terminal and increase sharply, be more than terminal display
The upper limit of ability may can still result in the too fast phenomenon etc. of brush screen.
Thus, in the specific implementation process, need to be located accordingly according to the particular number of the barrage message received
Reason, specific as follows:
Fig. 4 is the flow chart of the processing method of the barrage message of another embodiment according to the present invention, as shown in figure 4, on
State step S303 can include:
Whether S401, the total amount for detecting the second barrage message received are greater than first threshold.
Specifically, first threshold is the total amount that terminal single screen can show barrage message, the size and barrage of the first threshold
Size, the size of terminal display screen of the display font of message etc. are related.
S402, when detect the second barrage message received total amount be less than or equal to first threshold, then will receive
The second barrage message be shown.
Specifically, if the total amount for receiving the second barrage message is less than first threshold, show that terminal can be shown entirely
The barrage message in portion, thus the barrage message received is shown.
S403, when the total amount for detecting the second barrage message received is greater than first threshold, then from second received
In barrage message, obtains the second barrage message that quantity is first threshold and be shown, and by remaining second barrage message
It is added in message queue.
Specifically, if the total amount of the second barrage message received is greater than first threshold, in order to avoid there is barrage
Message brush screen phenomenon obtains the second barrage message that quantity is first threshold and is opened up from the second barrage message received
Show, and remaining second barrage message is added into message queue.Wherein, shown to terminal is preserved in message queue
Two barrage message.
For example, it is assumed that the first threshold for the barrage message that terminal A3 is shown is every screen 50, when in message queue
When barrage size of message is less than 50, the second barrage message received is shown.
When the second barrage size of message in message queue is greater than 50,50 barrages are obtained from the second barrage message and are disappeared
Breath is shown, and remaining second barrage message is added in message queue.
It should be understood that in practical applications, preservable second barrage message number is limited in message queue,
When the upper limit of the second barrage message number saved in message queue is second threshold, wherein second threshold is first threshold
N (N be natural number) more than or equal to 2 times, that is, the total amount of the second barrage message can be shown by corresponding to two screen of terminal or multi-screen, then
It, will no longer will be new in order to avoid memory spilling if detect that the second barrage message in message queue is greater than second threshold
The the second barrage message received is added in message queue, until the quantity of the second barrage message in message queue is less than the
Until two threshold values, the second barrage message for just continuing to receive is added in message queue.
S404, when detecting that the quantity of the second barrage message of current presentation is less than first threshold, from message queue
It obtains the second barrage message and is shown.
Specifically, when detecting that the quantity of the second barrage message of current presentation is less than first threshold, in order to sufficiently sharp
With the display screen of terminal, more second barrage message are disposably shown convenient for user, and the second barrage is obtained from message queue and is disappeared
It ceases and is shown.
For example, when the quantity for the second barrage message for detecting current presentation is 30, and first threshold is 50, it is
Make full use of the display screen of terminal, and in message team in preserve 30 the second barrage message, then obtained from message queue
20 the second barrage message are simultaneously shown.
Based on above description, it should be understood that be, in practical applications, in order to further enhance the display effect of barrage message
Fruit can also be operated by size, the display speed etc. for controlling barrage message display font, and realization shows quantity to barrage message
Adjustment.Below by taking the display speed by control barrage message as an example, it is illustrated:
As an example, can according to the quantity of the second barrage message in message queue, comprehensive consideration barrage message
Display completely, the content of barrage message is clearly known with user, can adjust barrage speed, according to barrage speed adjusted
Current second barrage message to be presented is shown.
It should be noted that it is smaller to the adjusting range of barrage speed in the embodiment of the present invention, for example can be 0.9X-
It is slower to avoid the occurrence of brush screen, speed of sailing to ensure that the display of barrage message number is stablized by 1.1X.
Specifically, disappearing completely if the second barrage message number in message queue is more in order to be shown to user
The second barrage message in queue is ceased, can suitably increase barrage speed, and according to barrage speed adjusted to current to be presented
The second barrage message be shown.
If the second barrage message number in message queue is less, in order to enable user can more clearly see clearly
The content of second barrage message, can suitably reduce barrage speed, and according to barrage speed adjusted to current to be presented the
Two barrage message are shown.
In the present example it is assumed that the first threshold for the second barrage size of message that terminal A can be shown be every screen 50, at this time for
A prepares in message queue, and the second threshold of the second barrage message of two screens of storage is 100, when the message in message queue
When amount is less than 50, in order to more clearly show the second barrage message to user, consideration slows down barrage speed, such as by barrage
Speed slows down from 1.0X to 0.9X.
When the second barrage size of message is more than second threshold 100, subsequent second barrage message, which will not be added into, to disappear
It ceases in queue, at this point, in order to show complete second barrage message to user, consideration accelerates barrage speed to 1.1X from 1.0X.
In conclusion the processing method of the barrage message of the embodiment of the present invention, detects the total amount of the barrage message received
Whether it is greater than first threshold, if the total amount of the second barrage message received is less than or equal to first threshold, will receives
The second barrage message be shown, if the total amount of the second barrage message received is greater than first threshold, from receiving
The second barrage message in, obtain the second barrage message that quantity is first threshold and be shown, and by remaining second bullet
Curtain message is added in message queue, when detecting that the quantity of the second barrage message of current presentation is less than first threshold, from
The second barrage message is obtained in message queue and is shown, the particular number for the second barrage message that basis receives as a result,
Operation is performed corresponding processing to the second barrage message, improve barrage message treatment method of the present invention practicability and flexibly
Property.
Based on above embodiments, it should be appreciated that in order to increase the sense of participation of user, it is also necessary to by what is sent to user
First barrage message display gives itself.
Specifically, Fig. 5 is the flow chart of the processing method of the barrage message of further embodiment according to the present invention, such as scheme
Shown in 5, while above-mentioned steps S304 is implemented, this method further include:
S501 judges the first barrage message whether sent comprising user in the second barrage message.
S502, when the first barrage message in the second barrage message not containing user's transmission, to the second bullet received
The first barrage message that curtain message and user send is shown.
S503, when in the second barrage message including the first barrage message that user sends, to the second barrage message and
The first barrage message that user sends carries out duplicate removal, and to the first barrage of the second barrage message and user's transmission after duplicate removal
Message is shown.
Specifically, while second message is showed user, it is also necessary to user send the first barrage message into
Row is shown.
Specifically, the first barrage message whether sent comprising user in the second barrage message is judged, when the second barrage
When the first barrage message sent in message comprising user, the first barrage message that the second barrage message and user are sent into
Row duplicate removal, i.e., by the first barrage message screening in the second barrage message, and to after duplicate removal the second barrage message and user
The the first barrage message sent is shown.
In the present embodiment, it when the first barrage message in the second barrage message not containing user's transmission, directly docks
The first barrage message that the second barrage message received and user send is shown.
It should be noted that the processing method of the aforementioned barrage message referring to Fig. 2 description, is also applied for the embodiment of the present invention
Barrage message processing method, undisclosed details in the processing method embodiment of barrage message of the present invention is no longer superfluous herein
It states.
In conclusion the processing method of the barrage message of the embodiment of the present invention, to the second barrage message received into
While row is shown, the first barrage message sent to user is shown.The sense of participation for improving user as a result, improves
User experience.
In order to realize above-described embodiment, the invention also provides a kind of processing unit of barrage message, Fig. 6 is according to this hair
The structural schematic diagram of the processing unit of the barrage message of bright one embodiment, as shown in fig. 6, the server includes obtaining module
110, computing module 120, grouping module 130 and the first sending module 140.
Wherein, module 110 is obtained, is disappeared for obtaining multiple first barrages that multiple first terminals are sent within the unit time
The total amount of breath.
Computing module 120, the ratio value between total amount and first threshold for calculating multiple first barrage message.
Grouping module 130, for multiple first barrage message to be grouped according to ratio value, and will be more according to ratio value
A second terminal is grouped, wherein using multiple first barrage message after grouping as the second barrage message, multiple second eventually
End is used to indicate the terminal of the second barrage message to be received.
In one embodiment of the invention, Fig. 7 is the processing dress of the barrage message of second embodiment according to the present invention
The structural schematic diagram set, as shown in fig. 7, the grouping module 130 includes acquiring unit 131, modulus unit 132 and grouped element
133。
Wherein, acquiring unit 131, for obtaining the identification information of multiple first barrage message.
Modulus unit 132, for obtaining the identification information comparative example value modulus of multiple first barrage message and multiple bullets
The corresponding modulus of curtain message.
Grouped element 133, for basis modulus corresponding with multiple first barrage message, by the barrage with identical modulus
Message is divided into one group.
Wherein, first threshold is the total amount that second terminal single screen can show barrage message.
In one embodiment of the invention, acquiring unit 131 is also used to obtain the identification information of multiple second terminals.
Modulus unit 132 is also used to obtain the identification information comparative example value modulus of multiple second terminals and multiple second
The corresponding modulus of terminal.
Grouped element 133 is also used to according to modulus corresponding with multiple second terminals, eventually by second with identical modulus
End is divided into one group.
First sending module 140, the second terminal for being sent to the second barrage message in corresponding group, wherein second
The second barrage message in corresponding group is shown by terminal.
It should be noted that the processing method of the aforementioned barrage message described referring to Fig.1, it is also suitable and the embodiment of the present invention
Barrage message processing unit, undisclosed details in the processing device embodiment of barrage message of the present invention is no longer superfluous herein
It states.
In conclusion the processing unit of the barrage message of the embodiment of the present invention, obtains multiple first ends within the unit time
The total amount of the multiple first barrage message sent is held, the ratio between the total amount and first threshold of multiple first barrage message is calculated
Multiple first barrage message, and then are grouped by value according to ratio value, using multiple first barrage message after grouping as the
Two barrage message, and be grouped second terminal according to ratio value, the second barrage message is sent in corresponding group later
Second terminal.The barrage message for enriching terminal display as a result, improves the interactivity between user.
In one embodiment of the invention, the first sending module 140 is also used to be sent to pair by the second barrage message
Should second terminal in group while, the first barrage message that second terminal is sent is sent to second terminal.
It, can be by the first bullet for judging in the second barrage message whether to send comprising second terminal in specific implementation procedure
Curtain message,
Further, the first barrage that the first sending module 140 is not sent comprising second terminal in the second barrage message
When message, while the second barrage message is sent to the second terminal in corresponding group, by the first barrage of second terminal transmission
Message is sent to second terminal.
In the present embodiment, the barrage that the first sending module 140 is sent in the second barrage message comprising second terminal disappears
When breath, the second terminal that is directly sent to the second barrage message in corresponding group.
It should be noted that the processing method of the aforementioned barrage message referring to Fig. 2 description, is also suitable and the embodiment of the present invention
Barrage message device, undisclosed details in the processing device embodiment of barrage message of the present invention, details are not described herein.
In conclusion the processing unit of the barrage message of the embodiment of the present invention, is sent to corresponding group for the second barrage message
While interior second terminal, the first barrage message that second terminal is sent is sent to second terminal, to promote the ginseng of user
With sense, user experience is further promoted.
In order to realize above-described embodiment, the invention also provides the processing unit of another barrage message, Fig. 8 is according to this
The structural schematic diagram of the processing unit of the barrage message of invention third embodiment, as shown in figure 8, the processing of the barrage message fills
Set includes: the first receiving module 210, the second sending module 220, the second receiving module 230 and display module 240.
Wherein, the first receiving module 210, for receiving the first barrage message of user's transmission.
Second sending module 220, for the first barrage message to be sent to server, wherein server is for counting
The total amount of the multiple first barrage message received in unit time, and calculate the total amount and the first threshold of multiple first barrage message
Ratio value between value, and be respectively grouped multiple first barrage message and terminal according to ratio value, and will be after grouping
Multiple first barrage message be sent to the terminal in corresponding group, wherein the equipment that terminal is used to indicate barrage message to be received.
Wherein, first threshold is the total amount that terminal single screen can show barrage message.
Second receiving module 230, for receiving the second barrage message of server transmission.
Display module 240, for being shown to the second barrage message received.
It should be noted that the processing method of the aforementioned barrage message referring to Fig. 3 description, is also applied for the embodiment of the present invention
Barrage message processing unit, undisclosed details in the processing device embodiment of barrage message of the present invention is no longer superfluous herein
It states.
In conclusion the processing unit of the barrage message of the embodiment of the present invention, receives the first barrage message that user sends,
First barrage message is sent to server, wherein server is for counting multiple first bullets received within the unit time
The total amount of curtain message, and the ratio value between the total amount and first threshold of multiple first barrage message is calculated, and according to ratio value
Multiple first barrage message and terminal are grouped respectively, and multiple first barrage message after grouping are sent to correspondence
Terminal in group, wherein the equipment that terminal is used to indicate barrage message to be received receives server and sent out according to the terminal after grouping
The second barrage message in the correspondence group sent, and the second barrage message received is shown.Can be by terminal as a result,
User shows barrage message more abundant, improves the interactivity between user.
Fig. 9 is the structural schematic diagram of the processing unit of the barrage message of the 4th embodiment according to the present invention, such as Fig. 9 institute
Show, on the basis of as shown in Figure 8, display module 240 includes detection unit 241, display unit 242 and allocation unit 243.
Wherein, whether detection unit 241, the total amount for detecting the second barrage message received are greater than first threshold.
Display unit 242 will connect when being less than or equal to first threshold for the total amount in the second barrage message received
The the second barrage message received is shown.
Allocation unit 243, when being greater than first threshold for the total amount in the second barrage message received, from what is received
In second barrage message, the second barrage information and sending that quantity is first threshold is obtained to display unit, and by remaining the
Two barrage message are added in message queue.
In one embodiment of the invention, display unit 242 is also used to disappear in the second barrage for detecting current presentation
When the quantity of breath is less than first threshold, the second barrage message is obtained from message queue and is shown.
In one embodiment of the invention, when the size of message that message queue can be born is second threshold, allocation unit
243 are also used to when the quantity for detecting the second barrage message in message queue is greater than or equal to second threshold, no longer will be new
The the second barrage message received is added in message queue, until the quantity of the barrage message in message queue is less than the second threshold
The the second barrage message for continuing to receive when until value is added in message queue.
Wherein, second threshold is the N (N is the natural number more than or equal to 2) times of first threshold, and second threshold is terminal double screen
It can show the total amount of barrage message.
Figure 10 is the structural schematic diagram of the processing unit of the barrage message of the 5th embodiment according to the present invention, such as Figure 10 institute
Show, on the basis of as shown in Figure 8, the processing unit of barrage message further includes adjustment module 250.
Wherein, module 250 is adjusted, for the quantity according to the second barrage message in message queue, adjusts barrage speed.
In one embodiment of the invention, display module 240 be also used to according to barrage speed adjusted to currently to
The the second barrage message shown is shown.
It should be noted that the processing method of the barrage message of foregoing description, is also applied for the barrage of the embodiment of the present invention
The processing unit of message, undisclosed details in the processing device embodiment of barrage message of the present invention, details are not described herein.
In conclusion the processing unit of the barrage message of the embodiment of the present invention, detects the second barrage message received
Whether total amount is greater than first threshold, if the total amount of the second barrage message received is less than or equal to first threshold, will connect
The the second barrage message received is shown, if the total amount of the second barrage message received is greater than first threshold, from connecing
It in the second barrage message received, obtains the second barrage message that quantity is first threshold and is shown, and by remaining the
Two barrage message are added in message queue, when the quantity for the second barrage message for detecting current presentation is less than first threshold
When, the second barrage message is obtained from message queue and is shown, as a result, according to the specific of the second barrage message received
Quantity performs corresponding processing operation to the second barrage message, improve barrage message treatment method of the present invention practicability and
Flexibility.
In one embodiment of the invention, display module 240 is also used to carry out to the second barrage message received
While displaying, the first barrage message sent to user is shown.
In specific implementation procedure, the first barrage message whether sent comprising user in the second barrage message is judged,
Further, display module 240 in the second barrage message not containing user send the first barrage message when, it is right
The first barrage message that the second barrage message received and user send is shown.
In the present embodiment, when display module 240 includes the first barrage message that user sends in the second barrage message,
Duplicate removal carried out to the first barrage message that the second barrage message and user send, and to after duplicate removal the second barrage message and
The first barrage message that user sends is shown.
It should be noted that the processing method of the barrage message of foregoing description, is also applied for the barrage of the embodiment of the present invention
The processing unit of message, undisclosed details in the processing device embodiment of barrage message of the present invention, details are not described herein.
In conclusion the processing unit of the barrage message of the embodiment of the present invention, to the second barrage message received into
While row is shown, the first barrage message sent to user is shown.The sense of participation for improving user as a result, improves
User experience.
In order to realize above-described embodiment, the invention also provides a kind of processing system of barrage message, Figure 11 is according to this
The structural schematic diagram of the processing system of invention one embodiment barrage message, as shown in figure 11, the processing system of the barrage message
It may include the processing unit 100 of barrage message and the processing unit 200 of barrage message.
Wherein, the processing unit 100 of barrage message can be server or exist in server, to be used to obtain
The total amount for multiple first barrage message that multiple first terminals are sent in unit time calculates the total amount of multiple first barrage message
Multiple first barrage message are grouped, wherein will be more after grouping by the ratio value between first threshold according to ratio value
Multiple second terminals are grouped by a first barrage message as the second barrage message, and according to ratio value, wherein Duo Ge
Two terminals are used to indicate the terminal of the second barrage message to be received, and then second the second barrage message is sent in corresponding group
Terminal, wherein the second barrage message in corresponding group is shown by second terminal.
The processing unit 200 of barrage message, it may include barrage message sending end and barrage message sink end, for that will receive
The first barrage message that user sends, is sent to server for the first barrage message, wherein server is for counting in unit
In the total amount of multiple first barrage message that receives, and calculate between the total amount and first threshold of multiple first barrage message
Ratio value, and multiple first barrage message and terminal are grouped respectively according to ratio value, and will be multiple after grouping
First barrage message is sent to the terminal in corresponding group, wherein the equipment that terminal is used to indicate barrage message to be received, Jin Erjie
The second barrage message that server is sent is received, the second barrage message is described the received in corresponding with the terminal after grouping group
One barrage message;The the second barrage message received is shown.
It should be noted that the processing 100 of the barrage message of the embodiment of the present invention includes above-mentioned referring to Fig. 6 to Fig. 7 description
Barrage message processing device embodiment it is corresponding, the processing 200 of the barrage message of the embodiment of the present invention, with above-mentioned referring to Fig. 8
The processing unit of the barrage message described to Figure 10 is corresponding, and realization principle is similar, and details are not described herein.
In the processing system of barrage message in order to more clearly illustrate the embodiment of the present invention, the processing of barrage message is filled
Set 100 is with the processing unit 100 of barrage message below with reference to Figure 12 with the interactive process of the processing unit 200 of barrage message
Server B, the processing unit 200 of barrage message includes that barrage message sends terminal A and barrage message sink terminal C, to barrage
The interactive process of the processing unit 200 of the processing unit 100 and barrage message of message is illustrated, and is described as follows:
As shown in figure 12, in the actual operation process, terminal A receives the first barrage message (S1) that user sends, to clothes
Business device B sends multiple first barrage message (S2) that terminal A is sent, and terminal A is sent multiple in the server B acquisition unit time
First barrage message (S3) calculates multiple the according to multiple first barrage message that the terminal A that receives in the unit time is sent
Ratio value between one barrage message and first threshold, to be grouped multiple first barrage message according to ratio value, wherein
Using multiple first barrage message after grouping as the second barrage message (S4).
In turn, terminal C is grouped by (S5) according to ratio value, after to barrage message and end packet, by the second bullet
Curtain message is sent to the terminal C (S6) in corresponding group.
Terminal C in corresponding group receives the second barrage message (S7) in corresponding group, carries out to the second barrage message
Before displaying, judge whether the total amount of the second barrage message is greater than first threshold (S8), if it is greater than first threshold, then shows to work as
The quantity of preceding second barrage message is more than that terminal C single screen can show the total amount of barrage message, to obtain the second of first threshold
Barrage message is shown, and remaining second barrage message is added in message queue (S9), in order to the of current presentation
When two barrage message are less than first threshold, barrage message is obtained from message queue and is shown (S10).
If the total amount of the second barrage message is not more than first threshold, show that the quantity of current second barrage message does not have
More than the total amount that displaying terminal C single screen can show barrage message, so that the second barrage message is directly shown (S11).
In conclusion the processing system of the barrage message of the embodiment of the present invention, server obtains multiple within the unit time
The total amount for multiple barrage message that first terminal is sent, calculates the ratio between the total amount and first threshold of multiple barrage message
Value, and then be grouped multiple barrage message according to ratio value, and be grouped second terminal according to ratio value, later will
Multiple barrage message after grouping are sent to the terminal in corresponding group, and barrage message displayed on the terminals.End is enriched as a result,
The barrage message shown is held, the interactivity between user is improved.
In order to realize above-described embodiment, the invention also provides a kind of electronic equipment, Figure 13 is one according to the present invention
The structural schematic diagram of the server of embodiment, as shown in figure 13, the server 1000 include: processor 1010, memory 1020,
Communication interface 1030 and bus 1040;
Processor 1010, memory 1020 and communication interface 1030 are connected by bus 1040 and complete mutual lead to
Letter;
Memory 1020 stores executable program code;
Processor 1010 is run by reading the executable program code stored in memory 1020 can be performed with described
The corresponding program of program code, with the processing method for executing a kind of barrage message;Wherein, the processing method packet of barrage message
It includes:
Obtain the total amount for multiple first barrage message that multiple first terminals are sent within the unit time;
Calculate the ratio value between the total amount and first threshold of multiple first barrage message;
Multiple first barrage message are grouped according to ratio value, wherein by multiple first barrage message after grouping
As the second barrage message;
Multiple second terminals are grouped according to ratio value, wherein multiple second terminals are used to indicate to be received second
The terminal of barrage message;
Second barrage message feedback is given to the second terminal for being transmitted across the first barrage message, wherein second terminal will
The second barrage message in corresponding group is shown.
It should be noted that the processing method of the aforementioned barrage message described referring to Figures 1 and 2, with the embodiment of the present invention
Server it is corresponding, realization principle is similar, and details are not described herein.
In conclusion the server of the embodiment of the present invention, acquisition multiple first terminals within the unit time send multiple
The total amount of first barrage message calculates the ratio value between the total amount and first threshold of multiple first barrage message, and then basis
Multiple first barrage message are grouped by ratio value, multiple first barrage message after saying grouping as the second barrage message,
And multiple second terminals are grouped according to ratio value, the second end being later sent to the second barrage message in corresponding group
End.The barrage message for enriching terminal display as a result, improves the interactivity between user.
In order to realize above-described embodiment, the invention also provides a kind of terminal, referring to Fig.1 3, also include processor 1010,
Memory 1020, communication interface 1030 and bus 1040;
Processor 1010, memory 1020 and communication interface 1030 are connected by bus 1040 and complete mutual lead to
Letter;
Memory 1020 stores executable program code;
Processor 1010 is run by reading the executable program code stored in memory 1020 can be performed with described
The corresponding program of program code, with the processing method for executing a kind of barrage message;Wherein, the processing method packet of barrage message
It includes:
Receive the first barrage message that user sends;
First barrage message is sent to server, wherein server statistics received within the unit time multiple
The total amount of one barrage message, and calculate the ratio value between the total amount and first threshold of multiple first barrage message, and according to than
Multiple first barrage message and terminal are grouped by example value respectively, and multiple first barrage message after grouping are sent to
Terminal in corresponding group, wherein the equipment that terminal is used to indicate barrage message to be received;
The second barrage message that server is sent is received, the second barrage message is in corresponding with the terminal after grouping group
The the first barrage message received;
The the second barrage message received is shown.
It should be noted that the processing method of the aforementioned barrage message described referring to Fig. 3 to Fig. 5, with the embodiment of the present invention
Terminal it is corresponding, realization principle is similar, and details are not described herein.
In conclusion the terminal of the embodiment of the present invention, receives the first barrage message that user sends, barrage message is sent
To server, wherein the total amount for multiple first barrage message that server statistics receive within the unit time, and calculate multiple
Ratio value between the total amount and first threshold of first barrage message, and according to ratio value respectively by multiple first barrage message with
And terminal is grouped, and multiple first barrage message after grouping are sent to the terminal in corresponding group, wherein terminal is used for
The equipment for indicating the first barrage message to be received receives server according to the second bullet in the correspondence group of the terminal transmission after grouping
Curtain message, and the second barrage message received is shown.It can be as a result, that user shows bullet more abundant by terminal
Curtain message, improves the interactivity between user.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.