CN107295387A - Barrage display methods and device - Google Patents

Barrage display methods and device Download PDF

Info

Publication number
CN107295387A
CN107295387A CN201710458423.1A CN201710458423A CN107295387A CN 107295387 A CN107295387 A CN 107295387A CN 201710458423 A CN201710458423 A CN 201710458423A CN 107295387 A CN107295387 A CN 107295387A
Authority
CN
China
Prior art keywords
barrage
message
speed
distance
barrage 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.)
Granted
Application number
CN201710458423.1A
Other languages
Chinese (zh)
Other versions
CN107295387B (en
Inventor
姜雨晴
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing longzhixin Technology Co.,Ltd.
Original Assignee
Beijing Panda Mutual Entertainment Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201710458423.1A priority Critical patent/CN107295387B/en
Publication of CN107295387A publication Critical patent/CN107295387A/en
Application granted granted Critical
Publication of CN107295387B publication Critical patent/CN107295387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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/4316Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The embodiment of the present invention provides a kind of barrage display methods and device, and this method includes:Client receives barrage message to be shown, barrage message, which carries out collision calculation, have been shown to the last item in each row in this barrage message to be shown and barrage viewing area, judge whether two barrage message can collide, that is, judge whether two barrage message occurs the situation of overlapping display.Barrage message to be shown is included in the row to be shown that will not occur barrage collision according to the result of collision calculation, every barrage message clearly, is intactly shown by client, improves the usage experience of main broadcaster and viewing user.Moreover, cause after collision calculation in barrage viewing area be not in the overlapping display of barrage situation, also avoid to occur in barrage viewing area the situation of the overlapping display of barrage message or sparse display, improve the space availability ratio of barrage viewing area.

Description

Barrage display methods and device
Technical field
The present invention relates to net cast field, more particularly to a kind of barrage display methods and device.
Background technology
With the development of the communication technology, increasing entertainment way, such as microblogging, mobile phone games, Internet video are occurred in that It is live etc., wherein internet video live broadcasting due to its it is directly perceived, abundant in content the features such as, be particularly subject to the welcome of people.
When accessing webcast website, user can realize the interaction with main broadcaster by way of sending barrage.But it is existing In technology, barrage is shown by the way of display is inserted line by line, be that is to say and successively will according to the time order and function for receiving barrage Barrage is shown in each row of barrage viewing area.It is different in size due to each bar barrage, therefore use bullet of the prior art The barrage that curtain display mode is likely to occur in some rows, which is shown, to overlap, and barrage shows very sparse feelings in some rows Condition, the unbalanced space availability ratio that result in barrage viewing area that barrage is shown is not high, also reduces main broadcaster and user Usage experience.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of barrage display methods and device, by barrage to be shown with having shown Show the collision calculation between barrage, improve the space availability ratio of barrage viewing area.
The embodiment of the present invention provides a kind of barrage display methods, including:
Receive barrage message to be shown;
Determine that the barrage message to be shown has shown whether barrage message can collide with the last of row to be shown, its In, any barrage display line in the behavior barrage viewing area to be shown;
If will not collide, the barrage message to be shown is shown in the row to be shown.
Alternatively, it is described to determine that the barrage message to be shown has shown that barrage message whether with the last of row to be shown Collide, including:
It is defined below whether formula is set up:
Pursue and attack distance/(speed of 2 speed of barrage-barrage 1)>The speed of 1 Distance Remaining of barrage/barrage 1,
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance;
If formula is set up, it is determined that the barrage message to be shown has shown that barrage message can be sent out with the last of row to be shown Raw collision.
Alternatively, it is described to determine that the barrage message to be shown has shown that barrage message whether with the last of row to be shown Collide, including:
According to the quantity of the barrage message stored in buffer queue in the current adjustment cycle, speed weight coefficient a, institute are determined The cycle that the adjustment cycle is the default weight coefficient a that regulates the speed is stated, the buffer queue, which is used for storage, to be shown in real time Barrage message in the barrage viewing area;
It is defined below whether formula is set up:
Pursue and attack distance/(speed of 2 speed-a* barrages of barrage 1)>The Distance Remaining of barrage 1/(speed of a* barrages 1),
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * a* barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance;
If so, then determine that the barrage message to be shown has shown that barrage message can be touched with the last of row to be shown Hit.
Alternatively, methods described also includes:
If the barrage message to be shown has shown barrage with the last of each barrage display line in the barrage viewing area Message can all collide, then the barrage message to be shown is stored in buffer queue.
Alternatively, methods described also includes:
If there is free space in the barrage viewing area, caching barrage message is extracted from buffer queue, it is described Free space is the free space in any barrage display line;
Caching barrage message is included in the free space.
The embodiment of the present invention provides a kind of barrage display device, including:
Receiving module, for receiving barrage message to be shown;
Determining module, for determining whether the barrage message to be shown and the last of row to be shown have shown barrage message It can collide, wherein, any barrage display line in the behavior barrage viewing area to be shown;
Display module, if for that will not collide, the barrage message to be shown is shown in into the row to be shown In.
Alternatively, the determining module is specifically included:
First determining unit, for being defined below whether formula is set up, if formula is set up, it is determined that the barrage to be shown Message has shown that barrage message can collide with the last of row to be shown:
Pursue and attack distance/(speed of 2 speed of barrage-barrage 1)>The speed of 1 Distance Remaining of barrage/barrage 1,
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
Alternatively, the determining module also includes:
Second determining unit, for the quantity according to the barrage message stored in buffer queue in the current adjustment cycle, really Constant speed degree weight coefficient a, the adjustment cycle is the default weight coefficient a that regulates the speed cycle, and the buffer queue is used for Storage can not be shown in the barrage message in the barrage viewing area in real time;
First determining unit, is additionally operable to be defined below whether formula is set up, if formula is set up, it is determined that described to wait to show Show that barrage message has shown that barrage message can collide with the last of row to be shown:
Pursue and attack distance/(speed of 2 speed-a* barrages of barrage 1)>The Distance Remaining of barrage 1/(speed of a* barrages 1),
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * a* barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
Alternatively, described device also includes:
Cache module, if for each barrage display line in the barrage message to be shown and the barrage viewing area most Show that barrage message can all collide afterwards, then the barrage message to be shown has been stored in buffer queue.
Alternatively, described device also includes:
Extraction module, if for there is free space in the barrage viewing area, caching is extracted from buffer queue Barrage message, the free space is the free space in any barrage display line;
The display module, is additionally operable to include caching barrage message in the free space.
Barrage display methods provided in an embodiment of the present invention and device, client receive barrage message to be shown, and this is treated Display barrage message has shown that barrage message carries out collision calculation with the last item in each row in barrage viewing area, judges two Whether bar barrage message can collide, that is, judge whether two barrage message occurs the situation of overlapping display.Client The result according to collision calculation is held, barrage message to be shown is included in the row to be shown that will not occur barrage collision, is made every Bar barrage message can clearly, intactly be shown, improve the usage experience of main broadcaster and viewing user.Moreover, So that being not in the situation of the overlapping display of barrage in barrage viewing area after collision calculation, also avoid aobvious in barrage Show occur the situation of the overlapping display of barrage message or sparse display in region, improve the space availability ratio of barrage viewing area.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of barrage display methods embodiment one provided in an embodiment of the present invention;
Fig. 2 is the flow chart of barrage display methods embodiment two provided in an embodiment of the present invention;
Position relationship between Fig. 3 each distance parameters for needed for carrying out barrage collision calculation in embodiment two;
Fig. 4 is the flow chart of barrage display methods embodiment three provided in an embodiment of the present invention;
Fig. 5 is the structural representation of barrage display device embodiment one provided in an embodiment of the present invention;
Fig. 6 is the structural representation of barrage display device embodiment two provided in an embodiment of the present invention;
Fig. 7 is the structural representation of barrage display device embodiment three provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not Exclude and include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, not departing from implementation of the present invention In the case of example scope, the first XXX can also be referred to as the 2nd XXX, similarly, and the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of key elements not only include those key elements, but also including without clear and definite Other key elements listed, or also include for this commodity or the intrinsic key element of system.In the feelings of not more limitations Under condition, the key element limited by sentence "including a ...", it is not excluded that in the commodity or system including the key element also There is other identical element.
Fig. 1 is the flow chart of barrage display methods embodiment one provided in an embodiment of the present invention, and what the present embodiment was provided should The executive agent of barrage display methods can be client, as shown in figure 1, this method comprises the following steps:
S101, receives barrage message to be shown.
User is watched during some direct broadcasting room is watched, all viewing users for watching this direct broadcasting room can Carried out by way of sending barrage with main broadcaster interactive.Behaviour is sent when the viewing user in the direct broadcasting room triggers barrage After work, barrage message is sent from client to message server.Message server is received can be according to barrage after this barrage message Recipient's mark that message includes knows the direct broadcasting room that this barrage message is specifically directed towards.
For a certain direct broadcasting room, all viewing users in the direct broadcasting room can send barrage to the direct broadcasting room.And After the barrage that any one viewing user in the direct broadcasting room sends, other viewing users in the direct broadcasting room can also be seen that This barrage.Therefore, the barrage message for this direct broadcasting room received to be sent into the direct broadcasting room corresponding for message server Each client.Client is required for being made whether that the judgement for showing the barrage message is grasped to the every barrage message received Make, judge just carry out the display of barrage message after operation herein, therefore the barrage message that client is received is referred to as treated Show barrage message.
S102, determines that barrage message to be shown has shown whether barrage message can collide with the last of row to be shown, Wherein, any barrage display line in behavior barrage viewing area to be shown, if will not collide, performs step S103.
S103, barrage message to be shown is shown in row to be shown.
Barrage viewing area is arranged to multirow in advance, alternatively, and multirow can be preset number row.Client exists Receive after barrage message to be shown, this barrage message to be shown has been shown that barrage message carries out collision calculation with last, its In, this has finally shown barrage message to finally enter the barrage message of barrage viewing area in row to be shown.
When barrage viewing area is divided into N rows in advance, alternatively, client can be calculated positioned at first first Capable has finally shown whether barrage message can collide with barrage message to be presented.If can collide, continue to calculate Last positioned at the second row has shown whether barrage message can collide with barrage message to be presented, the like, until really Make in M rows it is last shown that barrage message will not collide with barrage message to be presented, wherein M≤N, now client End stops the process that barrage message transition collision is calculated, and barrage message to be shown is shown in the M rows in barrage message region.
Alternatively, client can also calculate barrage message to be shown N bars whether corresponding with N rows respectively and finally show Barrage message collides.It may be obtained a plurality of not colliding most with barrage message to be shown according to such a calculation Barrage message has been shown afterwards.Now, client can be randomly choosed from a plurality of last multirow shown where barrage message A line, barrage message to be shown is shown in the row that this chooses.
Alternatively, client can carry out the collision of barrage message by the way of the barrage speed of barrage message is compared Calculate.
In actual applications, in order to ensure fairness that barrage is shown, usually the barrage message of different length is all set There is identical to show the time, more long then its barrage speed of such barrage length is faster.When the barrage speed of barrage message to be shown When degree is more than finally the barrage speed of barrage message has been shown, just occur barrage message to be shown with finally having shown that barrage disappears Cease situation about colliding so that the overlapping display of two barrage message.Specifically, it is possible to use below equation obtains barrage message Speed:
Barrage speed=barrage length/default display duration
The barrage length gauge that client can include according to the display duration and barrage message pre-set, which is calculated, to be treated Display barrage message and the last barrage speed for having shown barrage message, and then by the speed of barrage message to be shown and finally Show that the speed of barrage message is compared, finally known whether two barrage message can collide.
In the present embodiment, client receives barrage message to be shown, to this barrage message to be shown and barrage viewing area In the last item in each row shown that barrage message carries out collision calculation, judge whether two barrage message can collide, Namely judge whether two barrage message occurs the situation of overlapping display.Client will be treated according to the result of collision calculation Display barrage message is shown in the row to be shown that will not occur barrage collision, makes every barrage message can clearly, completely Ground is shown, improves the usage experience of main broadcaster and viewing user.Moreover, after collision calculation barrage is shown Be not in the situation of the overlapping display of barrage in region, also avoid to occur in barrage viewing area barrage message overlapping aobvious Show or sparse display situation, improve the space availability ratio of barrage viewing area.
Fig. 2 is the flow chart of barrage display methods embodiment two provided in an embodiment of the present invention, as shown in Fig. 2 this method It may include steps of:
S201, receives barrage message to be shown.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
S202, is defined below whether formula is set up:
Pursue and attack distance/(speed of 2 speed of barrage-barrage 1)>The speed of 1 Distance Remaining of barrage/barrage 1, if formula is invalid, Then perform step S203.
Wherein, barrage 2 is barrage message to be shown, and barrage 1 is finally to have shown barrage message,
Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
S203, barrage message to be shown is shown in row to be shown.
Client can determine barrage message to be shown according to above-mentioned formula and finally show that barrage message whether can Collide, wherein, the position relationship calculated between each distance parameter needed for collision process is as shown in Figure 3.When above-mentioned public affairs When formula is set up, then it represents that barrage message to be shown is with finally having shown that barrage message can collide.
Alternatively, calculate barrage collision process needed for speed and apart from etc. parameter can obtain in the following manner Take.
Client can record the relevant information of the barrage message shown in each row in barrage viewing area in a number In group, each element in array has shown barrage message corresponding to one, wherein, the relevant information of barrage message can include Barrage length, the time that barrage message enters barrage viewing area that is to say the barrage initial time being related in formula.Client Also the content that can come with the change that barrage message has been shown in barrage viewing area in real-time update array.Meanwhile, work as client End is received after barrage message to be shown, and time when receiving this barrage message to be shown that can record that is to say what is be related in formula Current time.Client can based on above-mentioned acquisition parameter carry out barrage message collision calculation.
Alternatively, client can calculate barrage collision downwards successively since the first row in barrage viewing area, directly To the last row shown where barrage message determined not with barrage message transition collision to be shown;Can also be to barrage viewing area All rows all carry out barrage collision calculation in domain, and then determine the row for showing barrage message to be shown.Both sides The detailed description of formula may be referred to the related content in embodiment one, will not be repeated here.
In practical application, after barrage collision calculation is carried out by above-mentioned formula, it is possible to occur that barrage to be shown disappears The situation that barrage message can all collide finally is shown in breath and each row, now barrage message to be shown just can not be shown In barrage viewing area.Such case is directed to, alternatively, client can disappear the barrage to be shown that this can not show in real time In breath deposit buffer queue.When there is vacant position in barrage viewing area, then show to be shown in deposit buffer queue Barrage message.
In the present embodiment, client is according to the speed of the barrage message to be shown received, finally shown barrage message Barrage speed and the last time for having shown that barrage message has shown that shown bullet to barrage message to be shown and finally Curtain message carries out collision calculation., will if finally having shown barrage message in the presence of what is do not collided with barrage message to be shown Barrage message to be shown is shown in this row where finally having shown barrage message, makes barrage is not present in barrage viewing area Overlapping situation, improves the usage experience of viewing user and main broadcaster.If barrage message to be shown and finally having shown in each row Show that barrage message can all collide, then this barrage message to be shown is stored in buffer queue by client, it is to avoid barrage shows Show occur the situation of the overlapping display of barrage in region, every a line in barrage viewing area can equably show at least one Barrage message, improves the space availability ratio of barrage viewing area.
Fig. 4 is the flow chart of barrage display methods embodiment three provided in an embodiment of the present invention, as shown in figure 4, this method It may include steps of:
S301, receives barrage message to be shown.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
S302, according to the quantity of the barrage message stored in buffer queue in the current adjustment cycle, determines speed weighting system Number a.
Finally show that barrage message all can when existing in each row in barrage message to be shown and barrage viewing area During situation about colliding, show that this barrage message to be shown can not be shown in barrage viewing area in real time, now client This barrage message to be shown can be put into the buffer queue pre-established.Client can count adjustment cycle memory and enter to cache team The quantity of the barrage message of row, can further according to the corresponding relation between the quantity and speed weight coefficient of the barrage message counted To determine speed weight coefficient a, wherein, the adjustment cycle is the default weight coefficient a that regulates the speed cycle.Alternatively, it is fast Degree weight coefficient a initial value could be arranged to 1, as adjustment cycle memory enters the increasing of the quantity of the barrage message of buffer queue Many or reduction, is that step-length incrementally increases or reduced this speed weight coefficient a with 0.1.
For example, when the barrage message in buffer queue gradually increases, show that client is received in this period Barrage size of message and barrage viewing area in the barrage size of message that shows all compare many.In order to avoid the bullet in buffer queue The continuous accumulation of curtain message, has now shown that barrage message carries out barrage collision calculation to barrage message to be shown and finally again When, client can be accelerated finally to have shown the barrage speed of barrage message, that is to say original finally having shown barrage message Barrage speed be multiplied with speed weight coefficient a, and as the new last barrage speed for having shown barrage message, use this Barrage speed after quickening calculates the collision of barrage message, and the barrage message in buffer queue can so shown as soon as possible In barrage viewing area.
It should be noted that during the quickening of barrage speed is only embodied in barrage collision calculation, and each bar barrage disappears Breath still shows barrage message according to original barrage speed.
Alternatively, buffer queue is directed to, client can also pre-set a caching upper limit for it.When in buffer queue When the quantity of barrage message is beyond the caching upper limit, client determines barrage message number and the caching upper limit in current cache queue Between number differences, the barrage message of the number differences in earliest deposit buffer queue is deleted from buffer queue, with guarantor Barrage message number in card buffer queue is maintained within the caching upper limit.
S303, is defined below whether formula is set up:
Pursue and attack distance/(speed of 2 speed-a* barrages of barrage 1)>The Distance Remaining of barrage 1/(speed of a* barrages 1), if not into It is vertical, then perform step S203.
Wherein, wherein, barrage 2 is barrage message to be shown, barrage 1 finally to have shown barrage message, pursue and attack apart from= The barrage length of move distance-barrage 1,
Barrage move distance=speed of (initial time of current time-barrage 1) * a* barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
Position relationship in formula between correlation distance as shown in figure 3, and obtain the mode of relevant parameter in formula can With the associated description in reference implementation example two, it will not be repeated here.
S304, barrage message to be shown is shown in row to be shown.
The formula of above-mentioned calculating barrage collision is similar in embodiment two, to finally having shown the corresponding bullet of barrage message Curtain speed is adjusted.After client carries out barrage collision calculation by above-mentioned formula, client can be obtained not with treating Show that the last of barrage message transmission collision has shown barrage message, and barrage message to be shown is shown in this and do not collide The last row shown where barrage message in.
In addition, showing that barrage message is touched to barrage message to be shown and finally according to above-mentioned adjustment barrage speed Hit after calculating, it is also possible that occurring that barrage message to be shown has shown that barrage disappears with the last of each row in barrage viewing area Cease situation about can all collide.Alternatively, this barrage message to be shown can be stored in buffer queue by client.When a certain section In time, the negligible amounts for the barrage message to be shown that client is received are showing bullet to be shown in barrage viewing area in real time Still there is free space while curtain message, now client can extract the barrage message in buffer queue, and enter to it After row barrage collision calculation, the barrage message that will not be occurred according to result of calculation in the buffer queue of barrage collision is shown in sky In free space.
, will when the barrage message to be shown that client is received can not be shown in barrage viewing area in the present embodiment In this barrage message to be shown deposit buffer queue, and enter according to adjustment cycle memory the barrage message to be shown in buffer queue The last barrage speed for having shown barrage message of quantity adjustment, so as to reduce the collision between barrage message, show barrage More barrage message can be shown in region, mitigate the caching pressure in buffer queue.Meanwhile, deposited in barrage viewing area In free space, client reads the barrage message in buffer queue, and the message of reading is shown in idle blank, makes Obtain and certain barrage amount is remained in barrage viewing area, improve the usage experience of viewing user and main broadcaster.
Fig. 5 is the structural representation of barrage display device embodiment one provided in an embodiment of the present invention, as shown in figure 5, should Barrage display device includes:Receiving module 11, determining module 12, display module 13.
Receiving module 11, for receiving barrage message to be shown.
Determining module 12, for determining that barrage message to be shown and the last of row to be shown have shown that barrage message whether can Collide, any barrage display line in behavior barrage viewing area to be shown.
Display module 13, if for that will not collide, barrage message to be shown is shown in row to be shown.
Fig. 5 shown devices can perform the method for embodiment illustrated in fig. 1, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 1.In implementation procedure and the technique effect embodiment shown in Figure 1 of the technical scheme Description, will not be repeated here.
Fig. 6 is the structural representation of barrage display device embodiment two provided in an embodiment of the present invention, as shown in fig. 6, On the basis of embodiment illustrated in fig. 5, the determining module 12 in the barrage display device is specifically included:First determining unit 121.
First determining unit 121, for being defined below whether formula is set up, if formula is set up, it is determined that barrage to be shown Message has shown that barrage message can collide with the last of row to be shown:
Pursue and attack distance/(speed of 2 speed of barrage-barrage 1)>The speed of 1 Distance Remaining of barrage/barrage 1,
Wherein, barrage 2 is barrage message to be shown, and barrage 1 is finally to have shown barrage message,
Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
Alternatively, the barrage display device also includes:Cache module 21.
Cache module 21, if having shown for barrage message to be shown with the last of each barrage display line in barrage viewing area Show that barrage message can all collide, then barrage message to be shown is stored in buffer queue.
Fig. 6 shown devices can perform the method for embodiment illustrated in fig. 2, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 2.In implementation procedure and the technique effect embodiment shown in Figure 2 of the technical scheme Description, will not be repeated here.
Fig. 7 is the structural representation of barrage display device embodiment three provided in an embodiment of the present invention, as shown in fig. 7, On the basis of embodiment illustrated in fig. 5, the determining module 12 in the barrage display device specifically also includes:Second determining unit 122.
Second determining unit 122, for the quantity according to the barrage message stored in buffer queue in the current adjustment cycle, Speed weight coefficient a is determined, the adjustment cycle is the default weight coefficient a that regulates the speed cycle, and buffer queue is used to store nothing Method is shown in the barrage message in barrage viewing area in real time.
First determining unit 121, is additionally operable to be defined below whether formula is set up, if formula is set up, it is determined that bullet to be shown Curtain message has shown that barrage message can collide with the last of row to be shown:
Pursue and attack distance/(speed of 2 speed-a* barrages of barrage 1)>The Distance Remaining of barrage 1/(speed of a* barrages 1),
Wherein, barrage 2 is barrage message to be shown, and barrage 1 is finally to have shown barrage message,
Distance=barrage the length of move distance-barrage 1 is pursued and attacked,
Barrage move distance=speed of (initial time of current time-barrage 1) * a* barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
Alternatively, the barrage display device includes:Cache module 21.
Cache module 21, if having shown for barrage message to be shown with the last of each barrage display line in barrage viewing area Show that barrage message can all collide, then barrage message to be shown is stored in buffer queue.
Alternatively, the barrage display device also includes:Extraction module 31.
Extraction module 31, if for there is free space in barrage viewing area, caching bullet is extracted from buffer queue Curtain message, free space is the free space in any barrage display line.
Display module 13, is additionally operable to include caching barrage message in free space.
Fig. 7 shown devices can perform the method for embodiment illustrated in fig. 4, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 4.In implementation procedure and the technique effect embodiment shown in Figure 4 of the technical scheme Description, will not be repeated here.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of general hardware platform necessary to add, naturally it is also possible to pass through hardware.Understood based on such, above-mentioned skill The part that art scheme substantially contributes to prior art in other words can be embodied in the form of product, computer production Product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause one Platform computer installation (can be personal computer, server, or network equipment etc.) performs each embodiment or embodiment Some parts described in method.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. a kind of barrage display methods, it is characterised in that including:
Receive barrage message to be shown;
Determine that the barrage message to be shown has shown whether barrage message can collide with the last of row to be shown, wherein, Any barrage display line in the behavior barrage viewing area to be shown;
If will not collide, the barrage message to be shown is shown in the row to be shown.
2. according to the method described in claim 1, it is characterised in that described to determine the barrage message to be shown and row to be shown It is last shown whether barrage message can collide, including:
It is defined below whether formula is set up:
Pursue and attack distance/(speed of 2 speed of barrage-barrage 1)>The speed of 1 Distance Remaining of barrage/barrage 1,
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, pursued and attacked Distance=barrage the length of move distance-barrage 1,
Barrage move distance=speed of (initial time of current time-barrage 1) * barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance;
If formula is set up, it is determined that the barrage message to be shown has shown that barrage message can be touched with the last of row to be shown Hit.
3. according to the method described in claim 1, it is characterised in that described to determine the barrage message to be shown and row to be shown It is last shown whether barrage message can collide, including:
According to the quantity of the barrage message stored in buffer queue in the current adjustment cycle, speed weight coefficient a, the tune are determined Complete cycle is the default weight coefficient a that regulates the speed cycle, and the buffer queue can not be shown in described in real time for storage Barrage message in barrage viewing area;
It is defined below whether formula is set up:
Pursue and attack distance/(speed of 2 speed-a* barrages of barrage 1)>The Distance Remaining of barrage 1/(speed of a* barrages 1),
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, pursued and attacked Distance=barrage the length of move distance-barrage 1,
Barrage move distance=speed of (initial time of current time-barrage 1) * a* barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance;
If so, then determine that the barrage message to be shown has shown that barrage message can collide with the last of row to be shown.
4. according to any described methods of claim 1-3, it is characterised in that methods described also includes:
If the barrage message to be shown has shown barrage message with the last of each barrage display line in the barrage viewing area It will collide, then the barrage message to be shown is stored in buffer queue.
5. method according to claim 4, it is characterised in that methods described also includes:
If there is free space in the barrage viewing area, caching barrage message, the free time are extracted from buffer queue Space is the free space in any barrage display line;
Caching barrage message is included in the free space.
6. a kind of barrage display device, it is characterised in that including:
Receiving module, for receiving barrage message to be shown;
Determining module, for determining that the last of the barrage message to be shown and row to be shown has shown whether barrage message can be sent out Raw collision, wherein, any barrage display line in the behavior barrage viewing area to be shown;
Display module, if for that will not collide, the barrage message to be shown is shown in the row to be shown.
7. device according to claim 6, it is characterised in that the determining module is specifically included:
First determining unit, for being defined below whether formula is set up, if formula is set up, it is determined that the barrage message to be shown Last with row to be shown has shown that barrage message can collide:
Pursue and attack distance/(speed of 2 speed of barrage-barrage 1)>The speed of 1 Distance Remaining of barrage/barrage 1,
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, pursued and attacked Distance=barrage the length of move distance-barrage 1,
Barrage move distance=speed of (initial time of current time-barrage 1) * barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
8. device according to claim 6, it is characterised in that the determining module also includes:
Second determining unit, for the quantity according to the barrage message stored in buffer queue in the current adjustment cycle, it is determined that fast Weight coefficient a is spent, the adjustment cycle is the default weight coefficient a that regulates the speed cycle, and the buffer queue is used to store The barrage message in the barrage viewing area can not be shown in real time;
First determining unit, is additionally operable to be defined below whether formula is set up, if formula is set up, it is determined that the bullet to be shown Curtain message has shown that barrage message can collide with the last of row to be shown:
Pursue and attack distance/(speed of 2 speed-a* barrages of barrage 1)>The Distance Remaining of barrage 1/(speed of a* barrages 1),
Wherein, the barrage 2 is the barrage message to be shown, and the barrage 1 has finally shown barrage message to be described, pursued and attacked Distance=barrage the length of move distance-barrage 1,
Barrage move distance=speed of (initial time of current time-barrage 1) * a* barrages 1,
The speed of barrage 2=(length of screen width+barrage 2)/default display duration,
The speed of barrage 1=(length of screen width+barrage 1)/default display duration,
1 Distance Remaining of barrage=screen width-pursues and attacks distance.
9. according to any described devices of claim 6-8, it is characterised in that described device also includes:
Cache module, if in the barrage message to be shown and the barrage viewing area each barrage display line it is last Display barrage message can all collide, then the barrage message to be shown is stored in buffer queue.
10. device according to claim 9, it is characterised in that described device also includes:
Extraction module, if for there is free space in the barrage viewing area, caching barrage is extracted from buffer queue Message, the free space is the free space in any barrage display line;
The display module, is additionally operable to include caching barrage message in the free space.
CN201710458423.1A 2017-06-16 2017-06-16 Bullet screen display method and device Active CN107295387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710458423.1A CN107295387B (en) 2017-06-16 2017-06-16 Bullet screen display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710458423.1A CN107295387B (en) 2017-06-16 2017-06-16 Bullet screen display method and device

Publications (2)

Publication Number Publication Date
CN107295387A true CN107295387A (en) 2017-10-24
CN107295387B CN107295387B (en) 2020-03-17

Family

ID=60097036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710458423.1A Active CN107295387B (en) 2017-06-16 2017-06-16 Bullet screen display method and device

Country Status (1)

Country Link
CN (1) CN107295387B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174276A (en) * 2018-01-04 2018-06-15 北京奇艺世纪科技有限公司 A kind of barrage display methods and display device
CN108391154A (en) * 2018-01-30 2018-08-10 广州虎牙信息科技有限公司 Barrage display control method, storage medium and terminal
CN108696767A (en) * 2018-05-15 2018-10-23 北京字节跳动网络技术有限公司 Barrage playback method, device, computer readable storage medium and terminal
CN109350967A (en) * 2018-09-29 2019-02-19 广州华多网络科技有限公司 A kind of expression display methods, device, server and computer readable storage medium
CN110545458A (en) * 2019-09-24 2019-12-06 网易(杭州)网络有限公司 barrage display method, device and equipment and computer readable storage medium
CN110958480A (en) * 2019-11-28 2020-04-03 湖南快乐阳光互动娱乐传媒有限公司 Bullet screen display method
CN108521583B (en) * 2018-04-23 2020-10-09 上海蓝云网络科技有限公司 Bullet screen concurrent processing method and device, storage medium and cloud computing server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578301A (en) * 2015-12-23 2016-05-11 武汉斗鱼网络科技有限公司 Optimization method and device for optimizing transmission length of screen-popping information in live telecast room
CN105828164A (en) * 2016-04-28 2016-08-03 武汉斗鱼网络科技有限公司 Method and system for avoiding overlapped display of bullet screen
CN105872709A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Display method and device of bullet screen information
CN105933783A (en) * 2016-05-16 2016-09-07 北京三快在线科技有限公司 Bullet screen play method and device and terminal equipment
CN105959818A (en) * 2016-07-01 2016-09-21 上海幻电信息科技有限公司 Bullet screen display method and display system
CN106028162A (en) * 2016-05-16 2016-10-12 上海幻电信息科技有限公司 Dynamic adaption method for bullet screens

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578301A (en) * 2015-12-23 2016-05-11 武汉斗鱼网络科技有限公司 Optimization method and device for optimizing transmission length of screen-popping information in live telecast room
CN105872709A (en) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 Display method and device of bullet screen information
CN105828164A (en) * 2016-04-28 2016-08-03 武汉斗鱼网络科技有限公司 Method and system for avoiding overlapped display of bullet screen
CN105933783A (en) * 2016-05-16 2016-09-07 北京三快在线科技有限公司 Bullet screen play method and device and terminal equipment
CN106028162A (en) * 2016-05-16 2016-10-12 上海幻电信息科技有限公司 Dynamic adaption method for bullet screens
CN105959818A (en) * 2016-07-01 2016-09-21 上海幻电信息科技有限公司 Bullet screen display method and display system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174276A (en) * 2018-01-04 2018-06-15 北京奇艺世纪科技有限公司 A kind of barrage display methods and display device
CN108174276B (en) * 2018-01-04 2020-10-20 北京奇艺世纪科技有限公司 Bullet screen display method and display device
CN108391154A (en) * 2018-01-30 2018-08-10 广州虎牙信息科技有限公司 Barrage display control method, storage medium and terminal
CN108391154B (en) * 2018-01-30 2021-07-30 广州虎牙信息科技有限公司 Barrage display control method, storage medium and terminal
CN108521583B (en) * 2018-04-23 2020-10-09 上海蓝云网络科技有限公司 Bullet screen concurrent processing method and device, storage medium and cloud computing server
CN108696767A (en) * 2018-05-15 2018-10-23 北京字节跳动网络技术有限公司 Barrage playback method, device, computer readable storage medium and terminal
CN109350967A (en) * 2018-09-29 2019-02-19 广州华多网络科技有限公司 A kind of expression display methods, device, server and computer readable storage medium
CN110545458A (en) * 2019-09-24 2019-12-06 网易(杭州)网络有限公司 barrage display method, device and equipment and computer readable storage medium
CN110958480A (en) * 2019-11-28 2020-04-03 湖南快乐阳光互动娱乐传媒有限公司 Bullet screen display method

Also Published As

Publication number Publication date
CN107295387B (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN107295387A (en) Barrage display methods and device
CN108235102B (en) Service processing method, device and storage medium
CN107302489A (en) Message display method and device
CN109698964B (en) Online live broadcast room gift sending method and system
CN108174296A (en) Malicious user recognition methods and device
CN107172498A (en) Live room methods of exhibiting and device
CN106993234A (en) Barrage display methods and device
CA2934627C (en) Communications security
CN107172452A (en) Direct broadcasting room recommends method and device
CN112418580A (en) Risk control method, computer equipment and readable storage medium
US20180108380A1 (en) Data processing system for automatically generating excitement levels with improved response times using prospective data
CN107197355A (en) Barrage display methods and device
CN107517200B (en) Malicious crawler defense strategy selection method for Web server
CN108206959A (en) A kind of method and apparatus for showing barrage message
CN108574668A (en) A kind of ddos attack peak flow prediction technique based on machine learning
CN109224453A (en) Game monitoring and managing method, system and computer equipment, computer readable storage medium
CN110365712A (en) A kind of defence method and system of distributed denial of service attack
CN104333816B (en) The determination method and device of downloading mode in a kind of P2P networks
CN109698960A (en) Methods of exhibiting, the apparatus and system of message is broadcast live
Sun et al. A workload analysis of live event broadcast service in cloud
US20160267502A1 (en) Selecting Sporting Events Based on Event Status
CN107888635A (en) Method and apparatus for realizing mobile edge storage
CN104253795A (en) Method and device for preventing utilizing plug-in in network games
CN111298447B (en) Method, device, server and storage medium for detecting plug-in game
CN102984191A (en) Method and device and equipment used for determining behavior related quality information

Legal Events

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

Effective date of registration: 20210318

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Patentee after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing

Patentee before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right