CN105681868B - Barrage content display method and terminal equipment - Google Patents
Barrage content display method and terminal equipment Download PDFInfo
- Publication number
- CN105681868B CN105681868B CN201510209632.3A CN201510209632A CN105681868B CN 105681868 B CN105681868 B CN 105681868B CN 201510209632 A CN201510209632 A CN 201510209632A CN 105681868 B CN105681868 B CN 105681868B
- Authority
- CN
- China
- Prior art keywords
- barrage content
- barrage
- words
- content
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 4
- 238000001914 filtration Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005303 weighing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4882—Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a bullet screen content display method, which comprises the following steps: receiving the bullet screen content, and acquiring repeated bullet screen content and non-repeated bullet screen content; carrying out de-duplication processing on the repeated bullet screen content; carrying out weighted calculation on the non-repeated bullet screen content and the repeated bullet screen content subjected to the de-repetition processing to obtain a weight; and displaying the corresponding bullet screen content according to the calculated weight value. The invention also discloses a terminal device. The bullet screen content display method and the terminal equipment provided by the invention can avoid the phenomenon of congestion of bullet screen content, and further keep the timeliness and readability of the bullet screen content.
Description
Technical field
The present invention relates to communication technique field more particularly to a kind of barrage content display methods and terminal device.
Background technique
Television set with network access functions is more and more, and the player of television set plays the page and display box all
Start that barrage is supported then to will appear following phenomenon once encountering hot spot, such as: barrage content all over the screen has covered video content;
Barrage speed is very fast, and user is difficult to read;Barrage refreshing is too fast, and barrage content is caused to become junk data.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of barrage content display method and terminal devices, it is intended to avoid in barrage
There is congestion phenomenon in appearance, so keep barrage content timeliness and can be readability.
To achieve the above object, the present invention provides a kind of barrage content display method, the barrage content display method packet
Include following steps:
Barrage content is received, and obtains repetition barrage content and non-duplicate barrage content;
Deduplication processing is carried out to the barrage content that repeats;
By the non-duplicate barrage content and through deduplication treated repeat barrage content be weighted to obtain
Weight;
According to the weight size being calculated, corresponding barrage content is shown.
Preferably, described to include: to described the step of repeating the progress deduplication processing of barrage content
It obtains and repeats the repetition number of words of barrage content, repeats item number and repeat displayed entries;
Number of words, repetition item number and the repetition displayed entries of repeating that will acquire are deleted, and are integrated into a barrage and are disappeared
Breath.
Preferably, it is described by the non-duplicate barrage content and through deduplication treated repeat barrage content added
Weighing the step of weight is calculated includes:
Obtain the total of the sending time of every barrage message and number of words, current time and barrage message in current time piece
Number of words;
According to the sending time of every barrage message in current time piece and number of words, current time, barrage message it is total
Number of words and repetition item number, are calculated the weight of every barrage message.
Preferably, the weight size that the basis is calculated, the step of showing corresponding barrage content include:
The weight that every barrage message is calculated in current time piece is subjected to descending arrangement selection for the barrage of display
Content;
Sequentially in time, the barrage content of selection is shown.
Preferably, it is described sequentially in time, after the step of barrage content of selection is shown further include:
Obtain received barrage content bar number and number of words in different time piece;
According to number of words to be shown and the barrage content bar number is made a reservation for, calculate in the maximum barrage that each timeslice can be shown
Hold number of words;
Judge in each timeslice barrage content number of words and corresponding maximum barrage content number of words size relation;
If the barrage content number of words is greater than corresponding maximum barrage content number of words, terminating selection will be in the barrage of display
Hold;
If the barrage content number of words is less than corresponding maximum barrage content number of words, recalculate except current time piece it
The maximum barrage content number of words that outer other times piece can be shown.
In addition, to achieve the above object, the present invention also provides a kind of terminal device, the terminal device includes:
First obtains module, for receiving barrage content, and obtains repetition barrage content and non-duplicate barrage content;
Processing module, for carrying out deduplication processing to the barrage content that repeats;
First computing module, for will the non-duplicate barrage content and through deduplication treated repeatedly barrage content
It is weighted to obtain weight;
Display module, for showing corresponding barrage content according to the weight size being calculated.
Preferably, the processing module includes:
First acquisition unit repeats the repetition number of words of barrage content, repeats item number and repeats displayed entries for obtaining;
Processing unit, number of words, repetition item number and the repetition displayed entries of repeating for will acquire are deleted, and are integrated
At a barrage message.
Preferably, first computing module includes:
Second acquisition unit, for obtain in current time piece every barrage message sending time and number of words, it is current when
Between and barrage message total number of word;
Computing unit, for according to the sending time and number of words of every barrage message in current time piece, current time,
The total number of word and repetition item number of barrage message, are calculated the weight of every barrage message.
Preferably, the display module includes:
Selecting unit, for the weight that every barrage message is calculated in current time piece to be carried out descending arrangement selection
By the barrage content of display;
Display unit, for sequentially in time, the barrage content of selection to be shown.
Preferably, the terminal device further include:
Second obtains module, for obtaining received barrage content bar number and number of words in different time piece;
Second computing module, for calculating each timeslice according to number of words to be shown and the barrage content bar number is made a reservation for
The maximum barrage content number of words that can be shown;
Judgment module, for judging in each timeslice barrage content number of words and corresponding maximum barrage content number of words size
Relationship;
Module is terminated, if being greater than corresponding maximum barrage content number of words for the barrage content number of words, terminates selection
By the barrage content of display;
Third computing module, if being less than corresponding maximum barrage content number of words for the barrage content number of words, again
Calculate the maximum barrage content number of words that the other times piece in addition to current time piece can be shown.
Barrage content display method and terminal device provided by the invention by receiving barrage content, and obtain repetition bullet
Curtain content and non-duplicate barrage content carry out deduplication processing to the barrage content that repeats, by the non-duplicate barrage content
And treated repeats barrage content and be weighted to obtain weight through deduplication, according to the weight size being calculated,
Show corresponding barrage content.In this way, effective spam filtering can be made, read user in more effective barrages
Hold, the phenomenon that congestion occur so as to avoid barrage content, so keep barrage content timeliness and can be readability.
Detailed description of the invention
Fig. 1 is the flow diagram of barrage content display method first embodiment of the present invention;
Fig. 2 is the refinement flow diagram of step S102 in Fig. 1;
Fig. 3 is the refinement flow diagram of step S103 in Fig. 1;
Fig. 4 is the refinement flow diagram of step S104 in Fig. 1;
Fig. 5 is the flow diagram of barrage content display method second embodiment of the present invention;
Fig. 6 is the functional block diagram of terminal device first embodiment of the present invention;
Fig. 7 is the refinement the functional block diagram of processing module in Fig. 6;
Fig. 8 is the refinement the functional block diagram of the first computing module in Fig. 6;
Fig. 9 is the refinement the functional block diagram of display module in Fig. 6;
Figure 10 is the functional block diagram of terminal device second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of barrage content display method, and referring to Fig.1, in one embodiment, the barrage content is shown
Method the following steps are included:
Step S101 receives barrage content, and obtains repetition barrage content and non-duplicate barrage content;
In the present embodiment, terminal device receives barrage content, and obtains repetition barrage content therein and non-duplicate barrage
Content.Wherein, terminal device can be all equipment for supporting barrage function such as server, TV, mobile phone, computer.
In the present embodiment, the judgment method of barrage content is repeated are as follows: after going to space, symbol, letter gone all to turn small letter,
If content is completely the same, then it is assumed that be to repeat barrage content.
Step S102 carries out deduplication processing to the barrage content that repeats;
Further, as shown in Fig. 2, the step S102 includes:
Step S1021 is obtained and is repeated the repetition number of words of barrage content, repeats item number and repeat displayed entries;
In the present embodiment, terminal device carries out deduplication processing to barrage content is repeated, and specific method is first to obtain to repeat
The repetition number of words of barrage content repeats item number and repeats displayed entries.Wherein, the judgment method of entry has been displayed are as follows: fixed
The content shown in period (such as in 30 seconds) is stored in storage area, is no longer shown in next fixed cycle.The storage
Area can be the database of server, the memory array etc. being also possible on terminal device.
Step S1022, number of words, repetition item number and the repetition displayed entries of repeating that will acquire are deleted, and are integrated into
One barrage message.
In the present embodiment, terminal device will repeat the repetition number of words in barrage content, repeats item number and repeat display item
Mesh is deleted and is integrated into a piece of news.
Step S103, by the non-duplicate barrage content and through deduplication treated repeat barrage content be weighted
Weight is calculated;
Further, as shown in figure 3, the step S103 includes:
Step S1031 obtains the sending time and number of words, current time and bullet of every barrage message in current time piece
The total number of word of curtain message;
In the present embodiment, by the fixed cycle (minimum time scale) be divided into the period than isometric timeslice (timeslice 1,
2,3,4,5), the barrage message number received in different time piece is obtained respectively, the transmission of every barrage message in each timeslice
The total number of word of time and number of words, current time and barrage message.
Step S1032, according to the sending time and number of words, current time, bullet of every barrage message in current time piece
The total number of word and repetition item number of curtain message, are calculated the weight of every barrage message.
Step S104 shows corresponding barrage content according to the weight size being calculated.
As shown in figure 4, further, the step S104 includes:
Step S1041, the weight that every barrage message is calculated in current time piece is carried out descending arrangement selection will
The barrage content of display;
In the present embodiment, it is used as a display to refresh within totally 25 seconds 14:09:45 to 14:10:10 in time 2015-01-23
Period, and it is divided into 5 timeslices, by taking timeslice 2015-01-23 14:10:00~2015-01-2314:10:04 as an example, currently
Timeslice receives 24 records altogether, is 22 records after progress deduplication processing, specific as follows:
--- --- --- --- --- -- original record starts --- --- --- --- --- --- --- --- --- --
Step on the rotten very good bad 2015-01-23 14:10:00 that just acts charitably
Strong rotten row 2015-01-23 14:10:00
A good ox steps on rotten bad row 2015-01-23 14:10:00 on bad positive top
It is a to step on row 2015-01-23 14:10:00
Step on the positive 2015-01-23 14:10:00 in top
Positive 2015-01-23 14:10:01
Just a 2015-01-23 14:10:01
2015-01-23 14:10:01 is stepped on a rotten all right top top
Row steps on strong 2015-01-23 14:10:01
Positive 2015-01-23 14:10:02
Fine or not positive 2015-01-23 14:10:02
It goes bad and pushes up the rotten bad 2015-01-23 14:10:02 in top
Strong 2015-01-23 14:10:02
Rotten 2015-01-23 14:10:02 is stepped on rotten top of ox ox
Bad strong rotten 2015-01-23 14:10:02
A 2015-01-23 14:10:03
Strong 2015-01-23 14:10:03
Row is just rotten each and every one to push up well 2015-01-23 14:10:03 by force
Trample on top row row 2015-01-23 14:10:03
The bad rotten 2015-01-23 14:10:03 of ox Qiang Zhengding
Rotten 2015-01-23 14:10:03
Rotten 2015-01-23 14:10:04
Rotten 2015-01-23 14:10:04
It is all right to step on the bad 2015-01-23 14:10:04 of row
--- --- --- --- --- -- original record terminates --- --- --- --- --- --- --- --- --- --
Original record is 22 after carrying out deduplication processing, and the corresponding weight of each barrage message is as follows:
Step on the rotten very good bad 2015-01-23 14:10:00weight:185.0709438618137 that just acts charitably
Strong rotten row 2015-01-23 14:10:00weight:126.05042016806723
A good ox steps on rotten bad row 2015-01-23 14:10:00weight:190.900413617562 on bad positive top
It is a to step on row 2015-01-23 14:10:00weight:63.77551020408164
Step on the positive 2015-01-23 14:10:00weight:65.68144499178982 in top
Positive 2015-01-23 14:10:01weight:68.55575868372944
Just a 2015-01-23 14:10:01weight:69.45248292626462
2015-01-23 14:10:01weight:140.1541695865452 is stepped on a rotten all right top top
Row steps on strong 2015-01-23 14:10:01weight:71.69315330385948
Positive 2015-01-23 14:10:02weight:78.44162635638645
Fine or not positive 2015-01-23 14:10:02weight:79.6918581484925
It goes bad and pushes up the rotten bad 2015-01-23 14:10:02weight:160.66407818985138 in top
Strong 2015-01-23 14:10:02weight:80.79719903043362
Rotten 2015-01-23 14:10:02weight:163.08779559662952 is stepped on rotten top of ox ox
Bad strong rotten 2015-01-23 14:10:02weight:84.35259384226065
A 2015-01-23 14:10:03weight:88.96797153024912
Strong 2015-01-23 14:10:03weight:89.11332244170504
Row is just rotten each and every one to push up well 2015-01-23 14:10:03weight:276.7527675276753 by force
Trample on top row row 2015-01-23 14:10:03weight:193.05019305019303
The bad rotten 2015-01-23 14:10:03weight:194.71036832711343 of ox Qiang Zhengding
Rotten 2015-01-23 14:10:03weight:298.40848806366046
It is all right to step on the bad 2015-01-23 14:10:04weight:224.08963585434174 of row
According to calculated weight size, to being that 22 barrage message are ranked up after deduplication is handled, only display is used
The content that family can be seen, in this preferred embodiment, by reading rate control in 600 words/per minute~1200 words/every point
Clock, if more than 1200 words/per minute, do not show this barrage message, by taking current time piece as an example, can finally show
Entry is:
Show sendTime:2015-01-23 14:10:00content: the good ox in bad positive top steps on rotten bad row
Show sendTime:2015-01-23 14:10:03content: each and every one just rotten strong good top of row
Show sendTime:2015-01-23 14:10:03content: top row row is trampled on
Show sendTime:2015-01-23 14:10:03content: bad ox Qiang Zhengding is rotten
Show sendTime:2015-01-23 14:10:03content: rotten
Show sendTime:2015-01-23 14:10:04content: all right to step on row badly
Wherein, by taking barrage message " stepping on the rotten very good bad 2015-01-23 14:10:00 that just acting charitably " as an example, the tool of weight
Body calculating process is as follows:
The number of repetition repeat:1 of the barrage message;
The number of words len:9 of barrage message;
The barrage message total number of word Time Area Recive Count:25 that current time piece receives;
Area Duration:5000, Show Time Areas:5,
Time cycle Show Duration=Area Duration*Show Time Areas=5000*5;
Current time CurTime 14:10:10 switchs to UTC time, and (Coordinated Universal Time coordinates generation
When boundary) 1421993410000, sending time 14:09:59:870 (being shown as 14:10:00) switchs to UTC time
1421993399869,
According to formula weight=repeat*Time Area Recive Count* ((len+3)/4) * Show
Duration/ (CurTime-SendTime), is calculated the weight of the barrage message are as follows:
1*25* (9+3)/4*5000*5/ (1421993410000-1421993399868)=185.07, in current time
In piece, all barrage message carries out arrangement according to weight size and shows.
Step S1042 sequentially in time shows the barrage content of selection.
In the present embodiment, barrage message " rotten " this entry is repeated 3 times, and the weight being calculated is equal to multiplied by 3
298.40, its maximum weight in current time piece, thus display of standing out.And other barrage message entries are suitable according to the time
Sequence is successively selected maximum weight and show.
Barrage content display method provided by the invention by receiving barrage content, and obtains repetition barrage content and non-
Barrage content is repeated, deduplication processing is carried out to the barrage content that repeats, by the non-duplicate barrage content and through duplicate removal
Treated again, and repetition barrage content is weighted to obtain weight, according to the weight size being calculated, shows corresponding
Barrage content.In this way, effective spam filtering can be made, user is set to read more effective barrage contents, to avoid
There is the phenomenon that congestion in barrage content, so keep barrage content timeliness and can be readability.
In one embodiment, on the embodiment basis of above-mentioned Fig. 1, as shown in figure 5, also being wrapped after the step S104
It includes:
Step S105 obtains received barrage content bar number and number of words in different time piece;
Step S106 calculates what each timeslice can be shown according to number of words to be shown and the barrage content bar number is made a reservation for
Maximum barrage content number of words;
In the present embodiment, by taking 5 seconds time cycles as an example, minimum timeslice is 1 second, then shares 5 within the time cycle
A timeslice, it is assumed that the time cycle domestic demand number of words to be shown is 600, if the information bar number 10 that timeslice 1 receives, timeslice
The 2 information bar numbers 15 received, the information bar number 15 that timeslice 3 receives, the information bar number 10 that timeslice 4 receives, timeslice 5 receive
Information bar number 25, then the information content ratio of this 5 timeslices be 2:3:3:2:5, i.e., can only at most be shown in timeslice 1
Show 80 words, timeslice 2 is at most only able to display 120 words, and timeslice 2 is at most only able to display 120 words, and timeslice 4 is at most only
It can show 80 words, timeslice 5 is at most only able to display 200 words.
Step S107 judges that barrage content number of words is closed with corresponding maximum barrage content number of words size in each timeslice
System;
Step S108, if the barrage content number of words is greater than corresponding maximum barrage content number of words, terminating selection will be shown
The barrage content shown;
In the present embodiment, by each timeslice barrage content number of words and the maximum barrage content number of words that is calculated it is big
It is small to be compared, by taking timeslice 4 as an example, the barrage message entry in timeslice 4 is taken according to weight descending order, if a certain
After entry is chosen, total number of word is more than 80 bytes, then terminates and continue to select the barrage content of display.
Step S109 is recalculated to remove and be worked as if the barrage content number of words is less than corresponding maximum barrage content number of words
The maximum barrage content number of words that other times piece except preceding timeslice can be shown.
In the present embodiment, by each timeslice barrage content number of words and the maximum barrage content number of words that is calculated it is big
It is small to be compared, by taking timeslice 1 as an example, if the sum of number of words of all information is less than 80 in timeslice 1, then timeslice 2, time
The display number of words ability needs of piece 3, timeslice 4, timeslice 5 recalculate, 2 display capabilities of timeslice=(600-timeslice, 1 institute
Have the sum of information number of words) 2 the sum of all information numbers of words of * timeslice/(the sum of all information numbers of words of timeslice 2+timeslice 3 is all
The sum of the sum of all information numbers of words of the sum of information number of words+timeslice 4+all information numbers of words of timeslice 5).
The present invention also provides a kind of terminal devices 1, and referring to Fig. 6, in one embodiment, the terminal device 1 includes:
First obtains module 101, for receiving barrage content, and obtains repetition barrage content and non-duplicate barrage content;
In the present embodiment, terminal device 1 receives barrage content, and obtains repetition barrage content therein and non-duplicate barrage
Content.Wherein, terminal device 1 can be all equipment for supporting barrage function such as server, TV, mobile phone, computer.
In the present embodiment, the judgment method of barrage content is repeated are as follows: after going to space, symbol, letter gone all to turn small letter,
If content is completely the same, then it is assumed that be to repeat barrage content.
Processing module 102, for carrying out deduplication processing to the barrage content that repeats;
As shown in fig. 7, further, the processing module 102 includes:
First acquisition unit 1021 repeats the repetition number of words of barrage content, repeats item number and repeats display for obtaining
Entry;
In the present embodiment, 1 pair of repetition barrage content of terminal device carries out deduplication processing, and specific method is first to obtain to repeat
The repetition number of words of barrage content repeats item number and repeats displayed entries.Wherein, the judgment method of entry has been displayed are as follows: fixed
The content shown in period (such as in 30 seconds) is stored in storage area, is no longer shown in next fixed cycle.The storage
Area can be the database of server, the memory array etc. being also possible on terminal device 1.
Processing unit 1022, number of words, repetition item number and the repetition displayed entries of repeating for will acquire are deleted, and
It is integrated into a barrage message.
In the present embodiment, terminal device 1 will repeat the repetition number of words in barrage content, repeats item number and repeat display item
Mesh is deleted and is integrated into a piece of news.
First computing module 103, for will the non-duplicate barrage content and through deduplication treated repeatedly barrage
Content is weighted to obtain weight;
As shown in figure 8, further, first computing module 103 includes:
Second acquisition unit 1031, for obtain in current time piece every barrage message sending time and number of words, when
The total number of word of preceding time and barrage message;
In the present embodiment, by the fixed cycle (minimum time scale) be divided into the period than isometric timeslice (timeslice 1,
2,3,4,5), the barrage message number received in different time piece is obtained respectively, the transmission of every barrage message in each timeslice
The total number of word of time and number of words, current time and barrage message.
Computing unit 1032, for according to the sending time and number of words of every barrage message in current time piece, current
Time, the total number of word of barrage message and repetition item number, are calculated the weight of every barrage message.
Display module 104, for showing corresponding barrage content according to the weight size being calculated.
As shown in figure 9, further, the display module 104 includes:
Selecting unit 1041, for the weight that every barrage message is calculated in current time piece to be carried out descending arrangement
It selects the barrage content of display;
In the present embodiment, it is used as a display to refresh within totally 25 seconds 14:09:45 to 14:10:10 in time 2015-01-23
Period, and it is divided into 5 timeslices, by taking timeslice 2015-01-23 14:10:00~2015-01-2314:10:04 as an example, currently
Timeslice receives 24 records altogether, is 22 records after progress deduplication processing, specific as follows:
--- --- --- --- --- -- original record starts --- --- --- --- --- --- --- --- --- --
Step on the rotten very good bad 2015-01-23 14:10:00 that just acts charitably
Strong rotten row 2015-01-23 14:10:00
A good ox steps on rotten bad row 2015-01-23 14:10:00 on bad positive top
It is a to step on row 2015-01-23 14:10:00
Step on the positive 2015-01-23 14:10:00 in top
Positive 2015-01-23 14:10:01
Just a 2015-01-23 14:10:01
2015-01-23 14:10:01 is stepped on a rotten all right top top
Row steps on strong 2015-01-23 14:10:01
Positive 2015-01-23 14:10:02
Fine or not positive 2015-01-23 14:10:02
It goes bad and pushes up the rotten bad 2015-01-23 14:10:02 in top
Strong 2015-01-23 14:10:02
Rotten 2015-01-23 14:10:02 is stepped on rotten top of ox ox
Bad strong rotten 2015-01-23 14:10:02
A 2015-01-23 14:10:03
Strong 2015-01-23 14:10:03
Row is just rotten each and every one to push up well 2015-01-23 14:10:03 by force
Trample on top row row 2015-01-23 14:10:03
The bad rotten 2015-01-23 14:10:03 of ox Qiang Zhengding
Rotten 2015-01-23 14:10:03
Rotten 2015-01-23 14:10:04
Rotten 2015-01-23 14:10:04
It is all right to step on the bad 2015-01-23 14:10:04 of row
--- --- --- --- --- -- original record terminates --- --- --- --- --- --- --- --- --- --
Original record is 22 after carrying out deduplication processing, and the corresponding weight of each barrage message is as follows:
Step on the rotten very good bad 2015-01-23 14:10:00weight:185.0709438618137 that just acts charitably
Strong rotten row 2015-01-23 14:10:00weight:126.05042016806723
A good ox steps on rotten bad row 2015-01-23 14:10:00weight:190.900413617562 on bad positive top
It is a to step on row 2015-01-23 14:10:00weight:63.77551020408164
Step on the positive 2015-01-23 14:10:00weight:65.68144499178982 in top
Positive 2015-01-23 14:10:01weight:68.55575868372944
Just a 2015-01-23 14:10:01weight:69.45248292626462
2015-01-23 14:10:01weight:140.1541695865452 is stepped on a rotten all right top top
Row steps on strong 2015-01-23 14:10:01weight:71.69315330385948
Positive 2015-01-23 14:10:02weight:78.44162635638645
Fine or not positive 2015-01-23 14:10:02weight:79.6918581484925
It goes bad and pushes up the rotten bad 2015-01-23 14:10:02weight:160.66407818985138 in top
Strong 2015-01-23 14:10:02weight:80.79719903043362
Rotten 2015-01-23 14:10:02weight:163.08779559662952 is stepped on rotten top of ox ox
Bad strong rotten 2015-01-23 14:10:02weight:84.35259384226065
A 2015-01-23 14:10:03weight:88.96797153024912
Strong 2015-01-23 14:10:03weight:89.11332244170504
Row is just rotten each and every one to push up well 2015-01-23 14:10:03weight:276.7527675276753 by force
Trample on top row row 2015-01-23 14:10:03weight:193.05019305019303
The bad rotten 2015-01-23 14:10:03weight:194.71036832711343 of ox Qiang Zhengding
Rotten 2015-01-23 14:10:03weight:298.40848806366046
It is all right to step on the bad 2015-01-23 14:10:04weight:224.08963585434174 of row
According to calculated weight size, to being that 22 barrage message are ranked up after deduplication is handled, only display is used
The content that family can be seen, in this preferred embodiment, by reading rate control in 600 words/per minute~1200 words/every point
Clock, if more than 1200 words/per minute, do not show this barrage message, by taking current time piece as an example, can finally show
Entry is:
Show sendTime:2015-01-23 14:10:00content: the good ox in bad positive top steps on rotten bad row
Show sendTime:2015-01-23 14:10:03content: each and every one just rotten strong good top of row
Show sendTime:2015-01-23 14:10:03content: top row row is trampled on
Show sendTime:2015-01-23 14:10:03content: bad ox Qiang Zhengding is rotten
Show sendTime:2015-01-23 14:10:03content: rotten
Show sendTime:2015-01-23 14:10:04content: all right to step on row badly
Wherein, by taking barrage message " stepping on the rotten very good bad 2015-01-23 14:10:00 that just acting charitably " as an example, the tool of weight
Body calculating process is as follows:
The number of repetition repeat:1 of the barrage message;
The number of words len:9 of barrage message;
The barrage message total number of word Time Area Recive Count:25 that current time piece receives;
Area Duration:5000, Show Time Areas:5,
Time cycle Show Duration=Area Duration*Show Time Areas=5000*5;
Current time CurTime 14:10:10 switchs to UTC time, and (Coordinated Universal Time coordinates generation
When boundary) 1421993410000, sending time 14:09:59:870 (being shown as 14:10:00) switchs to UTC time
1421993399869,
According to formula weight=repeat*Time Area Recive Count* ((len+3)/4) * Show
Duration/ (CurTime-SendTime), is calculated the weight of the barrage message are as follows:
1*25* (9+3)/4*5000*5/ (1421993410000-1421993399868)=185.07, in current time
In piece, all barrage message carries out arrangement according to weight size and shows.
Display unit 1042, for sequentially in time, the barrage content of selection to be shown.
In the present embodiment, barrage message " rotten " this entry is repeated 3 times, and the weight being calculated is equal to multiplied by 3
298.40, its maximum weight in current time piece, thus display of standing out.And other barrage message entries are suitable according to the time
Sequence is successively selected maximum weight and show.
Terminal device 1 provided by the invention by receiving barrage content, and obtains repetition barrage content and non-duplicate barrage
Content carries out deduplication processing to the barrage content that repeats, by the non-duplicate barrage content and after deduplication is handled
Repetition barrage content be weighted to obtain weight, according to the weight size being calculated, show corresponding barrage content.
In this way, effective spam filtering can be made, user is set to read more effective barrage contents, so as to avoid barrage content
Occur congestion the phenomenon that, and then keep barrage content timeliness and can be readability.
In one embodiment, as shown in Figure 10, on the basis of the embodiment of Fig. 6, the terminal device 1 further include:
Second obtains module 105, for obtaining received barrage content bar number and number of words in different time piece;
Second computing module 106, for calculating each time according to number of words to be shown and the barrage content bar number is made a reservation for
The maximum barrage content number of words that piece can be shown;
In the present embodiment, by taking 5 seconds time cycles as an example, minimum timeslice is 1 second, then shares 5 within the time cycle
A timeslice, it is assumed that the time cycle domestic demand number of words to be shown is 600, if the information bar number 10 that timeslice 1 receives, timeslice
The 2 information bar numbers 15 received, the information bar number 15 that timeslice 3 receives, the information bar number 10 that timeslice 4 receives, timeslice 5 receive
Information bar number 25, then the information content ratio of this 5 timeslices be 2:3:3:2:5, i.e., can only at most be shown in timeslice 1
Show 80 words, timeslice 2 is at most only able to display 120 words, and timeslice 2 is at most only able to display 120 words, and timeslice 4 is at most only
It can show 80 words, timeslice 5 is at most only able to display 200 words.
Judgment module 107, for judging in each timeslice barrage content number of words and corresponding maximum barrage content number of words
Size relation;
Module 108 is terminated, if being greater than corresponding maximum barrage content number of words for the barrage content number of words, terminates choosing
It selects the barrage content of display;
In the present embodiment, by each timeslice barrage content number of words and the maximum barrage content number of words that is calculated it is big
It is small to be compared, by taking timeslice 4 as an example, the barrage message entry in timeslice 4 is taken according to weight descending order, if a certain
After entry is chosen, total number of word is more than 80 bytes, then terminates and continue to select the barrage content of display.
Third computing module 109 weighs if being less than corresponding maximum barrage content number of words for the barrage content number of words
The maximum barrage content number of words that the new other times piece calculated in addition to current time piece can be shown.
In the present embodiment, by each timeslice barrage content number of words and the maximum barrage content number of words that is calculated it is big
It is small to be compared, by taking timeslice 1 as an example, if the sum of number of words of all information is less than 80 in timeslice 1, then timeslice 2, time
The display number of words ability needs of piece 3, timeslice 4, timeslice 5 recalculate, 2 display capabilities of timeslice=(600-timeslice, 1 institute
Have the sum of information number of words) 2 the sum of all information numbers of words of * timeslice/(the sum of all information numbers of words of timeslice 2+timeslice 3 is all
The sum of the sum of all information numbers of words of the sum of information number of words+timeslice 4+all information numbers of words of timeslice 5).
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of barrage content display method, which is characterized in that the barrage content display method the following steps are included:
Barrage content is received, and obtains repetition barrage content and non-duplicate barrage content;
Deduplication processing is carried out to the barrage content that repeats;
By the non-duplicate barrage content and through deduplication treated repeat barrage content be weighted to obtain weight;
According to the weight size being calculated, corresponding barrage content is shown.
2. barrage content display method as described in claim 1, which is characterized in that described to be carried out to the barrage content that repeats
Deduplication processing the step of include:
It obtains and repeats the repetition number of words of barrage content, repeats item number and repeat displayed entries;
Number of words, repetition item number and the repetition displayed entries of repeating that will acquire are deleted, and are integrated into a barrage message.
3. barrage content display method as claimed in claim 2, which is characterized in that it is described by the non-duplicate barrage content with
And through deduplication treated repeat barrage content and be weighted the step of obtaining weight include:
Obtain total word of the sending time of every barrage message and number of words, current time and barrage message in current time piece
Number;
According to the total number of word of the sending time of every barrage message in current time piece and number of words, current time, barrage message
And item number is repeated, the weight of every barrage message is calculated.
4. barrage content display method as claimed in claim 3, which is characterized in that the weight that the basis is calculated is big
Small, the step of showing corresponding barrage content, includes:
The weight that every barrage message is calculated in current time piece is subjected to descending arrangement selection for the barrage content of display;
Sequentially in time, the barrage content of selection is shown.
5. barrage content display method as claimed in claim 4, which is characterized in that it is described sequentially in time, by selection
After the step of barrage content is shown further include:
Obtain received barrage content bar number and number of words in different time piece;
According to number of words to be shown and the barrage content bar number is made a reservation for, the maximum barrage content word that each timeslice can be shown is calculated
Number;
Judge in each timeslice barrage content number of words and corresponding maximum barrage content number of words size relation;
If the barrage content number of words is greater than corresponding maximum barrage content number of words, selection is terminated by the barrage content of display;
If the barrage content number of words is less than corresponding maximum barrage content number of words, recalculate in addition to current time piece
The maximum barrage content number of words that other times piece can be shown.
6. a kind of terminal device, which is characterized in that the terminal device includes:
First obtains module, for receiving barrage content, and obtains repetition barrage content and non-duplicate barrage content;
Processing module, for carrying out deduplication processing to the barrage content that repeats;
First computing module, for will the non-duplicate barrage content and through deduplication treated repeat barrage content progress
Weighted calculation obtains weight;
Display module, for showing corresponding barrage content according to the weight size being calculated.
7. terminal device as claimed in claim 6, which is characterized in that the processing module includes:
First acquisition unit repeats the repetition number of words of barrage content, repeats item number and repeats displayed entries for obtaining;
Processing unit, number of words, repetition item number and the repetition displayed entries of repeating for will acquire are deleted, and are integrated into one
Barrage message.
8. terminal device as claimed in claim 7, which is characterized in that first computing module includes:
Second acquisition unit, for obtain in current time piece sending time and the number of words, current time of every barrage message with
And the total number of word of barrage message;
Computing unit, for the sending time and number of words, current time, barrage according to every barrage message in current time piece
The total number of word and repetition item number of message, are calculated the weight of every barrage message.
9. terminal device as claimed in claim 8, which is characterized in that the display module includes:
Selecting unit will be shown for the weight that every barrage message is calculated in current time piece to be carried out descending arrangement selection
The barrage content shown;
Display unit, for sequentially in time, the barrage content of selection to be shown.
10. terminal device as claimed in claim 9, which is characterized in that the terminal device further include:
Second obtains module, for obtaining received barrage content bar number and number of words in different time piece;
Second computing module, for according to number of words to be shown and the barrage content bar number is made a reservation for, calculating each timeslice can be shown
The maximum barrage content number of words shown;
Judgment module, for judging in each timeslice that barrage content number of words is closed with corresponding maximum barrage content number of words size
System;
Module is terminated, if being greater than corresponding maximum barrage content number of words for the barrage content number of words, terminating selection will be shown
The barrage content shown;
Third computing module recalculates if being less than corresponding maximum barrage content number of words for the barrage content number of words
The maximum barrage content number of words that other times piece in addition to current time piece can be shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510209632.3A CN105681868B (en) | 2015-04-28 | 2015-04-28 | Barrage content display method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510209632.3A CN105681868B (en) | 2015-04-28 | 2015-04-28 | Barrage content display method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105681868A CN105681868A (en) | 2016-06-15 |
CN105681868B true CN105681868B (en) | 2019-04-16 |
Family
ID=56946796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510209632.3A Active CN105681868B (en) | 2015-04-28 | 2015-04-28 | Barrage content display method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105681868B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106101863B (en) * | 2016-06-24 | 2019-03-15 | 武汉斗鱼网络科技有限公司 | A kind of barrage sending method and device with deletion protection mechanism |
CN106028123A (en) * | 2016-06-30 | 2016-10-12 | 乐视控股(北京)有限公司 | Adjusting method and adjusting apparatus for bullet screen on display device |
CN106303746A (en) * | 2016-08-17 | 2017-01-04 | 乐视控股(北京)有限公司 | The processing method and processing device of barrage data |
CN106341703A (en) * | 2016-08-30 | 2017-01-18 | 乐视控股(北京)有限公司 | Bullet screen processing method and device |
CN106559695A (en) * | 2016-10-14 | 2017-04-05 | 北京金山安全软件有限公司 | Barrage message processing method and device and electronic equipment |
CN107147951B (en) * | 2017-04-11 | 2021-02-02 | 武汉斗鱼网络科技有限公司 | Information interaction method and device |
CN108924659A (en) * | 2018-06-13 | 2018-11-30 | 河南趣读信息科技有限公司 | A kind of barrage system read in application software for novel |
CN109510859A (en) * | 2018-08-27 | 2019-03-22 | 北京奇虎科技有限公司 | A kind of statistical method and device of the amount of reach of PUSH message |
CN110365848B (en) * | 2019-07-26 | 2021-04-13 | 维沃移动通信有限公司 | Message display method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831234A (en) * | 2012-08-31 | 2012-12-19 | 北京邮电大学 | Personalized news recommendation device and method based on news content and theme feature |
CN102929846A (en) * | 2012-10-26 | 2013-02-13 | 北京小米科技有限责任公司 | Method and device for processing long text |
JP2014216808A (en) * | 2013-04-25 | 2014-11-17 | 株式会社ドワンゴ | Motion picture viewing system, operation method of the system, motion picture reproduction terminal device, operation program for the device, and operation program distribution server |
CN104156390A (en) * | 2014-07-07 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | Comment recommendation method and system |
CN104281606A (en) * | 2013-07-08 | 2015-01-14 | 腾讯科技(北京)有限公司 | Method and device for displaying microblog comments |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6039915B2 (en) * | 2011-07-08 | 2016-12-07 | 株式会社ドワンゴ | Stage presentation system, presentation control subsystem, operation method of stage presentation system, operation method of presentation control subsystem, and program |
-
2015
- 2015-04-28 CN CN201510209632.3A patent/CN105681868B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831234A (en) * | 2012-08-31 | 2012-12-19 | 北京邮电大学 | Personalized news recommendation device and method based on news content and theme feature |
CN102929846A (en) * | 2012-10-26 | 2013-02-13 | 北京小米科技有限责任公司 | Method and device for processing long text |
JP2014216808A (en) * | 2013-04-25 | 2014-11-17 | 株式会社ドワンゴ | Motion picture viewing system, operation method of the system, motion picture reproduction terminal device, operation program for the device, and operation program distribution server |
CN104281606A (en) * | 2013-07-08 | 2015-01-14 | 腾讯科技(北京)有限公司 | Method and device for displaying microblog comments |
CN104156390A (en) * | 2014-07-07 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | Comment recommendation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105681868A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105681868B (en) | Barrage content display method and terminal equipment | |
CN107800888B (en) | Information display method and device | |
CN108289121A (en) | The method for pushing and device of marketing message | |
CN106294775A (en) | Content delivery method and device | |
CN107229754B (en) | Information sorting method and device, electronic equipment and storage medium | |
CN103945430B (en) | A kind of mobile terminal style recommends method and device | |
CN113412608B (en) | Content pushing method and device, server and storage medium | |
CN102006365B (en) | Contact affinity-disaffinity relationship display method, device and mobile terminal | |
CN104376083B (en) | It is a kind of that method is recommended based on concern relation and the figure of multi-user's behavior | |
CN102957949A (en) | Device and method for recommending video to user | |
CN113055701B (en) | Data processing method and device | |
CN101815261A (en) | Method and device for generating mobile terminal report forms | |
CN109977296A (en) | A kind of information-pushing method, device, equipment and storage medium | |
CN107832941A (en) | Order processing method and device | |
CN109597543A (en) | Application program image target display methods, system and terminal | |
CN109151488A (en) | According to the method and system of user behavior real-time recommendation direct broadcasting room | |
CN104572757A (en) | Microblog group processing method and device | |
CN106202465A (en) | The method for pushing of a kind of terminal wallpaper, device and mobile terminal | |
CN107770624A (en) | It is a kind of it is live during multimedia file player method, device and storage medium | |
CN107395252A (en) | Frequency-hopping method, frequency-hopping arrangement, terminal and baseband chip | |
CN108737486A (en) | Information-pushing method and device | |
CN112579906A (en) | Object recommendation method, device, equipment and storage medium | |
CN105095258B (en) | A kind of media information sort method, device and media information recommending system | |
CN107622101A (en) | Play method and device, the electronic equipment of song | |
CN109388737A (en) | A kind of sending method, device and the storage medium of the exposure data of content item |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |