CN109413484B - Bullet screen display method and device and storage medium - Google Patents
Bullet screen display method and device and storage medium Download PDFInfo
- Publication number
- CN109413484B CN109413484B CN201811645858.8A CN201811645858A CN109413484B CN 109413484 B CN109413484 B CN 109413484B CN 201811645858 A CN201811645858 A CN 201811645858A CN 109413484 B CN109413484 B CN 109413484B
- Authority
- CN
- China
- Prior art keywords
- bullet screen
- bullet
- screens
- similarity
- display
- 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 49
- 238000000638 solvent extraction Methods 0.000 claims abstract description 23
- 230000004931 aggregating effect Effects 0.000 claims abstract description 12
- 230000002776 aggregation Effects 0.000 claims description 26
- 238000004220 aggregation Methods 0.000 claims description 26
- 238000004364 calculation method Methods 0.000 claims description 23
- 238000005192 partition Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 6
- 238000006116 polymerization reaction Methods 0.000 claims description 4
- 239000013598 vector Substances 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 238000001914 filtration Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000008034 disappearance Effects 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 238000006073 displacement reaction Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Images
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/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
-
- 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
-
- 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/485—End-user interface for client configuration
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention relates to a bullet screen display method, a bullet screen display device and a storage medium, wherein the method comprises the following steps: acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period; based on the similarity among the bullet screens, aggregating the bullet screens with the similarity meeting the preset conditions in the bullet screen set to obtain each bullet screen subset; according to a preset display strategy, transversely partitioning a bullet screen display area of a video to obtain at least two display areas; for each bullet screen subset, respectively executing: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a bullet screen display method, a bullet screen display device and a storage medium.
Background
A bullet screen refers to a commentary subtitle that pops up when watching a video over a network. In the video playing process, a user can input the comment characters at any time point, and when other audiences play the comment characters at the time point, the comment characters sent by the user can be watched.
In the correlation technique, to the demonstration of barrage, often adopt a fixed display area to carry out the demonstration in proper order of many barrages, the single of display area has led to the singleness of barrage bandwagon effect, and, the demonstration in proper order of many barrages makes the barrage readability relatively poor, specifically speaking, the user can only be based on self interest, from many barrages seek, discern the content that self probably is interested in to it is lower to lead to the efficiency that the user obtained the information.
Disclosure of Invention
In view of this, embodiments of the present invention provide a bullet screen display method, device and storage medium, which can reduce bullet screen pollution and enable a user to experience diversity of bullet screens.
In a first aspect, an embodiment of the present invention provides a bullet screen display method, where the method includes:
acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period;
based on the similarity among the bullet screens, aggregating the bullet screens with the similarity meeting the preset conditions in the bullet screen set to obtain each bullet screen subset;
according to a preset display strategy, transversely partitioning a bullet screen display area of a video to obtain at least two display areas;
for each bullet screen subset, respectively executing: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas.
In the above solution, said displaying the bullet screen in the bullet screen subset in the at least two display areas includes:
displaying the bullet screens in the bullet screen subset in the adjacent first display area and second display area according to the following modes:
controlling and displaying a first bullet screen, enabling the first bullet screen to enter from one end of the first display area, and monitoring at least one of the following movement parameters of the first bullet screen: moving time and moving distance;
and when determining that the movement parameters of the first bullet screen accord with preset movement conditions, hiding the first bullet screen and displaying a second bullet screen, so that the first bullet screen disappears when moving to the other end of the first display area, and when the first bullet screen disappears, the second bullet screen enters one end of the second display area.
In the above scheme, the first display area includes at least one first bullet screen track, and the second display area includes at least one second bullet screen track;
confirm when the movement parameter of first bullet curtain accords with preset movement condition, hide first bullet curtain and show the second bullet curtain, include:
determining that the moving time of the first bullet screen reaches a set time and/or the moving distance of the first bullet screen reaches a set distance, hiding the first bullet screen and displaying a second bullet screen, so that the first bullet screen disappears when moving from the first end of the first bullet screen track to the second end of the first bullet screen track after entering from the first end of the first bullet screen track, and the second bullet screen enters from the first end of the second bullet screen track while disappearing;
the second end of the first bullet screen track is connected with the first end of the second bullet screen track in physical position or transversely spaced by a preset number of character lengths.
In the above scheme, the method further comprises:
displaying the bullet screens in the bullet screen subset in the adjacent first display area and second display area according to the following modes:
and when the first bullet screen or the second bullet screen disappears, a third bullet screen enters from one end of the first display area.
In the above-mentioned scheme, based on the similarity between the bullet screens, to the bullet screen that the similarity satisfies the preset condition in the bullet screen set carries out the polymerization, including:
calculating the similarity between the bullet screens in the bullet screen set;
and grading the bullet screens based on the result of the similarity calculation so as to aggregate bullet screens with the same grade.
In the above scheme, the method further comprises:
according to the levels, longitudinally partitioning the bullet screen display areas to enable each display area to comprise at least two longitudinal display areas with different levels;
and displaying the corresponding bullet screens in the longitudinal areas of the at least two display areas according to the grades of the bullet screens.
In a second aspect, an embodiment of the present invention provides a bullet screen display method, where the method includes:
acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period;
based on the similarity among the bullet screens, aggregating the bullet screens with the similarity meeting the preset conditions in the bullet screen set to obtain each bullet screen subset;
according to a preset display strategy, longitudinally partitioning a bullet screen display area of a video to obtain at least two display areas;
for each bullet screen subset, respectively executing: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas.
In a third aspect, an embodiment of the present invention provides a bullet screen display device, where the device includes:
the first acquisition unit is used for acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period;
the first aggregation unit is used for aggregating the bullet screens with the bullet screen centralized similarity meeting the preset conditions based on the similarity among the bullet screens to obtain all bullet screen subsets;
the first partition unit is used for transversely partitioning a bullet screen display area of the video according to a preset display strategy to obtain at least two display areas;
a first display unit, configured to perform, for each bullet screen subset, respectively: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas.
In the foregoing solution, the first display unit is further configured to display the bullet screen in the bullet screen subset in the adjacent first display area and second display area in the following manner:
controlling and displaying a first bullet screen, enabling the first bullet screen to enter from one end of the first display area, and monitoring at least one of the following movement parameters of the first bullet screen: moving time and moving distance;
and when determining that the movement parameters of the first bullet screen accord with preset movement conditions, hiding the first bullet screen and displaying a second bullet screen, so that the first bullet screen disappears when moving to the other end of the first display area, and when the first bullet screen disappears, the second bullet screen enters one end of the second display area.
In the above scheme, the first display area includes at least one first bullet screen track, and the second display area includes at least one second bullet screen track;
the first display device is further configured to determine that the moving time of the first bullet screen reaches a set time and/or that the moving distance of the first bullet screen reaches a set distance, hide the first bullet screen and display a second bullet screen, so that the first bullet screen disappears when moving from the first end of the first bullet screen track to the second end of the first bullet screen track along the first bullet screen track after entering from the first end of the first bullet screen track, and the second bullet screen enters from the first end of the second bullet screen track while disappearing;
the second end of the first bullet screen track is connected with the first end of the second bullet screen track in physical position or transversely spaced by a preset number of character lengths.
In the foregoing solution, the first display unit is further configured to display the bullet screen in the bullet screen subset in the adjacent first display area and second display area in the following manner:
and when the first bullet screen or the second bullet screen disappears, a third bullet screen enters from one end of the first display area.
In the above scheme, the first polymerization unit includes:
the calculation unit is used for calculating the similarity between the bullet screens in the bullet screen set;
and the grading unit is used for grading the barrages based on the similarity calculation result so as to aggregate barrages with the same grade.
In the above scheme, the first partitioning unit is further configured to perform longitudinal partitioning on the bullet screen display area according to the level of the display area, so that each display area includes at least two longitudinal display areas with different levels;
the first display unit is further used for displaying the corresponding bullet screens in the longitudinal areas of the at least two display areas according to the grades of the bullet screens.
In a fourth aspect, an embodiment of the present invention provides a bullet screen display device, where the device includes:
the second acquisition unit is used for acquiring a bullet screen set containing a plurality of bullet screens in the video unit playing time period;
the second aggregation unit is used for aggregating the bullet screens with the bullet screen centralized similarity meeting the preset conditions based on the similarity among the bullet screens;
the second partitioning unit is used for longitudinally partitioning the bullet screen display area of the video according to a preset display strategy to obtain at least two display areas;
and the second display unit is used for displaying the barrages in the barrage subsets in the at least two display areas, and the barrages displayed in each display area are different.
In a fifth aspect, an embodiment of the present invention provides a bullet screen display device, where the device includes: a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor is configured to execute the bullet screen display method provided by the embodiment of the invention when the computer program is run.
In a sixth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a computer program, and when the computer program is executed by at least one processor, the execution of the barrage displaying method provided in the embodiment of the present invention is implemented.
The embodiment of the invention provides a bullet screen display method, a bullet screen display device and a storage medium, wherein a bullet screen set containing a plurality of bullet screens in a video unit playing time period is obtained; based on the similarity among the bullet screens, aggregating the bullet screens with the similarity meeting the preset conditions in the bullet screen set to obtain each bullet screen subset; according to a preset display strategy, transversely partitioning a bullet screen display area of a video to obtain at least two display areas; for each bullet screen subset, respectively executing: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas. Therefore, by adopting the technical scheme of the embodiment of the invention, the aggregated barrage can be displayed in different partitions, on one hand, the barrages are classified through aggregation, and displayed according to the classification, so that a user can quickly find interesting contents, and on the other hand, as each partition independently displays the barrage, the display effect of the barrage can be more diversified.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of a bullet screen display method according to an embodiment of the present invention;
fig. 2 is a first schematic diagram illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 4 is a third schematic view illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a bullet screen displaying effect according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 9 is an eighth schematic view illustrating a bullet screen displaying effect according to an embodiment of the present invention;
fig. 10 is a schematic flow chart illustrating an implementation of a bullet screen display method according to an embodiment of the present invention;
fig. 11 is a third schematic flow chart illustrating an implementation of a bullet screen display method according to an embodiment of the present invention;
fig. 12 is a first schematic structural diagram of a bullet screen display device according to an embodiment of the present invention;
fig. 13 is a second schematic structural diagram of a bullet screen display device according to an embodiment of the present invention;
fig. 14 is a schematic hardware structure diagram of a bullet screen display device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as partial embodiments for implementing the present invention, not all embodiments for implementing the present invention, and the technical solutions described in the embodiments of the present invention may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present invention, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other related elements in a method or apparatus including the element (e.g., steps in a method or elements in an apparatus, such as units that may be part of a circuit, part of a processor, part of a program or software, etc.).
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention merely distinguish similar objects and do not represent specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange specific orders or sequences where allowed, so that the embodiments of the present invention described herein can be implemented in an order other than that shown or described herein.
An embodiment of the present invention provides a bullet screen display method, and fig. 1 is a schematic flow chart illustrating an implementation of the bullet screen display method provided in the embodiment of the present invention, as shown in fig. 1, the method mainly includes the following steps:
step S101: and acquiring a bullet screen set containing a plurality of bullet screens in the video unit playing time period.
Here, after the user sends the barrage through the terminal, the barrage is uploaded to the server, and the terminal acquires a barrage set including a plurality of barrages in the video unit playing time period from the server.
It should be noted that the unit playing time period may be preset, for example, 5 minutes or a single bullet screen full screen moving time, and the whole playing time of the video may be divided according to the unit playing time period.
Step S102: and based on the similarity among the bullet screens, aggregating the bullet screens with the concentrated similarity meeting the preset conditions to obtain each bullet screen subset.
In practical application, the terminal can judge according to the similarity between the bullet curtains, screen out the bullet curtain that satisfies the preset condition, aggregate the bullet curtain that obtains screening. For example, the preset condition may be that the similarity between the bullet screens is greater than 60%, and then the similarity between any two converged bullet screens is greater than 60% by determining whether the similarity between the bullet screens in the bullet screen set is greater than 60%.
In an embodiment, the terminal may aggregate the bullet screens whose bullet screen centralized similarity satisfies the preset condition in the following manner: calculating the similarity between the bullet screens in the bullet screen set; and based on the result of the similarity calculation, carrying out grade division on the bullet screens so as to aggregate bullet screens with the same grade to obtain bullet screen sets with different grades.
In practical application, the terminal can obtain the similarity between the bullet screens by acquiring the vector sum corresponding to each bullet screen and performing the cosine value operation of the included angle on the vector sum of any two bullet screens.
It should be noted that, the terminal may obtain the vector sum corresponding to the bullet screen by extracting the main words of the bullet screen and calculating the sum of the vectors corresponding to the main words of the bullet screen, for example, the bullet screen is "like this movie", and the main words are extracted as "like" and "movie", where the vector corresponding to "like" is (1,1), the vector corresponding to "movie" is (2,3), and then the vector sum corresponding to "like this movie" is (3, 4). And performing cosine value operation on the vector sum of any two bullet screens, wherein the range of the operation result is between 0 and 1, and 1 represents that the similarity is the highest and represents that the similarity is 100%.
In practical application, the terminal performs grade division on the barrage based on the result of the similarity calculation to aggregate barrages of the same grade, and the method comprises the following steps: the terminal extracts the bullet screens with the similarity larger than the similarity threshold value in the bullet screen set based on the result of the similarity calculation; determining a similarity interval where the similarity between the extracted bullet screens corresponding to the bullet screens is located; and grading the barrage according to the determined corresponding relation between the similarity interval and the preset similarity interval and grade to aggregate barrages with the same grade.
In an embodiment, a similarity threshold is preset, whether the similarity between the bullet screens corresponding to the bullet screens is greater than the preset similarity threshold is judged, if so, the bullet screens are classified as synonymous bullet screens, and the synonymous bullet screens are extracted. And performing grade division on the bullet screens according to the determined corresponding relation between the similarity interval and the preset similarity interval and grade, for example, dividing the similarity interval into 60% -75%, 75% -90% and 90% -100%, which respectively correspond to a low grade, a medium grade and a high grade, and if the similarity between two bullet screens is 80%, determining that the corresponding similarity interval is 75% -90%, dividing the two bullet screens into the medium grade.
Step S103: and according to a preset display strategy, transversely partitioning the bullet screen display area of the video to obtain at least two display areas.
It should be noted that, the terminal performs horizontal partition on the bullet screen display area of the video to obtain at least two display areas, which may be divided equally or in any proportion; the bullet screen display area of the video can be the whole display area of the video, or can be a partial display area of the video, such as the upper half of the display area of the video.
In an embodiment, the terminal may determine the number of the display areas according to the corresponding grade of the bullet screen in the bullet screen subset, and for the bullet screen with the higher grade corresponding to the bullet screen in the bullet screen subset, the divided display areas are more, so that the terminal can display more bullet screens within the same bullet screen time. For example, if the corresponding grade of the bullet screen in the bullet screen subset is a low grade, the bullet screen in the bullet screen subset is displayed in the two display areas, and if the corresponding grade of the bullet screen in the bullet screen subset is a high grade, the bullet screen in the bullet screen subset is displayed in the three display areas.
Step S104: for each bullet screen subset, respectively executing: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas.
In one embodiment, the terminal receives an aggregation instruction for the bullet screen; and responding to the aggregation instruction, and displaying the bullet screens in the bullet screen subsets in the at least two display areas.
In practical application, if a user needs to start a bullet screen aggregation function, an aggregation instruction aiming at the bullet screen is sent to a terminal, and the terminal receives the aggregation instruction and displays the bullet screens in bullet screen subsets in at least two display areas; if the user does not need to start the bullet screen aggregation function, the aggregation instruction aiming at the bullet screen can not be sent to the terminal, and the terminal does not receive the aggregation instruction, so that the bullet screen concentrated in the bullet screen display area of the screen can be directly displayed.
In one embodiment, the bullet screens in the bullet screen subset can be displayed in the adjacent first display area and the second display area according to the following modes:
controlling and displaying the first bullet screen, enabling the first bullet screen to enter from one end of the first display area, and monitoring at least one of the following movement parameters of the first bullet screen: moving time and moving distance; when the movement parameter of the first bullet screen is determined to accord with the preset movement condition, the first bullet screen is hidden and the second bullet screen is displayed, so that the first bullet screen is moved to the other end of the first display area and disappears, and when the first bullet screen disappears, the second bullet screen enters the one end of the second display area.
In practical application, when the terminal detects that the moving time or the moving distance of the first bullet screen meets the preset time or the preset distance, the first bullet screen is hidden and the second bullet screen is displayed. For example, as shown in fig. 2, the bullet screen "high energy warning" enters from the right side of the first display area, and when it is detected that the moving distance of the first bullet screen is equal to the width of the first display area, the bullet screen "high energy warning" is hidden, and the bullet screen "front high energy warning" is displayed in the second display area.
In an embodiment, the bullet screens in the bullet screen subset can be displayed in the adjacent first display area and the second display area in the following manner:
and the first bullet screen enters from one end of the first display area, and the second bullet screen enters from one end of the second display area. For example, as shown in fig. 3, the bullet screen "high energy warning" enters from the right side of the first display area, and the bullet screen "front high energy warning" enters from the right side of the second display area. Wherein, the bullet curtain can get into from the left end that corresponds the show area, moves to the right-hand member and disappears, perhaps gets into from the right-hand member that corresponds the show area, moves to the left end and disappears.
In one embodiment, the first display area includes at least one first bullet screen track and the second display area includes at least one second bullet screen track.
It should be noted that each display area includes one or more bullet screen tracks for displaying one or more bullet screens, wherein the multiple bullet screens are displayed in an aligned manner, or in a staggered manner, for example, two bullet screen columns shown in fig. 4 are displayed in an aligned manner, and two bullet screens shown in fig. 5 are displayed with one character therebetween.
In an embodiment, when it is determined that the movement parameter of the first bullet screen meets the preset movement condition, the first bullet screen is hidden and the second bullet screen is displayed, which can be completed in the following manner:
when the moving time of the first bullet screen reaches the set time and/or the moving distance of the first bullet screen reaches the set distance, hiding the first bullet screen and displaying the second bullet screen, so that the first bullet screen disappears when moving from the first end of the first bullet screen track to the second end of the first bullet screen track along the first bullet screen track after entering from the first end of the first bullet screen track, and the second bullet screen enters from the first end of the second bullet screen track while disappearing; the second end of the first bullet screen track is connected with the first end of the second bullet screen track in physical position or transversely spaced by a preset number of character lengths.
For example, as shown in fig. 6, divide video bullet screen display area into two display areas, bullet screen "the place ahead high energy" gets into the screen from the orbital right-hand member of first bullet screen, move left along first bullet screen track, when detecting that the displacement distance of first bullet screen reaches the orbital length of first bullet screen, hide bullet screen "high energy early warning", make bullet screen "high energy early warning" disappear at the orbital left end of first bullet screen, and when bullet screen "high energy early warning" disappears, bullet screen "the place ahead high energy early warning" gets into the screen from the orbital right-hand member of second bullet screen, move left along second bullet screen track, disappear from the orbital left end of first bullet screen. Wherein, a character space is arranged between the left end of the first bullet screen track and the right end of the second bullet screen track.
In an embodiment, the bullet screens in the bullet screen subset can be displayed in the adjacent first display area and second display area according to the following modes: and when the first bullet screen or the second bullet screen disappears, a third bullet screen enters from one end of the first display area.
In practical application, can be when first bullet curtain disappears from the one end in first show area, the third bullet curtain gets into from the one end in first show area, wherein, the one end that the third bullet curtain got into can be the same with the one end that first bullet curtain got into, also can be different, as shown in fig. 7, when bullet curtain "high energy early warning" disappears from the left end in first show area, bullet curtain "the place ahead high energy early warning" gets into from the right-hand member in first show area. Or, the third bullet screen enters from one end of the first display area while the second bullet screen disappears from one end of the second display area, as shown in fig. 8, the "front high-energy warning" bullet screen enters from the right end of the first display area while the "high-energy warning" bullet screen disappears from the left end of the second display area.
In one embodiment, the terminal filters the barrage in the barrage subset based on at least one of the first filtering rule and the second filtering rule; displaying the bullet screens in the filtered bullet screen subsets in the at least two display areas; the first filtering rules represent the text length of the bullet screen, and the second filtering rules represent the quantity of the bullet screen.
Here, the terminal may filter the bullet screens in the bullet screen subset based on the first filtering rule by: judging whether the character length of the bullet screen is larger than a character length threshold value corresponding to the display area or not; and when the bullet screen is determined to be larger than the preset value, rejecting the bullet screen.
It should be noted that the text length threshold may be determined according to the width of the corresponding display area, for example, the bullet screen display area of the video is divided into two display areas, and then the text length of the bullet screen cannot be greater than the full-screen width of 1/2, so that by removing the bullet screen whose text length exceeds the text length threshold, the problem that the space of the bullet screen is narrow and the user experience is affected when the bullet screen is displayed in a partitioned manner is solved.
In practical application, the terminal filters the bullet screen in the bullet screen subset based on the second filtering rule, including: sequencing the bullet screens in the bullet screen subset according to the number of the bullet screen characters; and rejecting the bullet screens with the largest number of characters in the sequencing result until the number of the bullet screens is smaller than the threshold value of the number of the bullet screens. For example, the threshold of the number of bullet screens is set to 4, and four bullet screens with the minimum number of words are screened out from the bullet screens in the bullet screen subset according to the principle that the number of words of the bullet screens is less and is preferred.
It should be noted that the bullet screen quantity threshold may be set according to the number of the display areas, for example, the bullet screen display area is divided into two display areas, the bullet screen quantity threshold is set to 4, the bullet screen display area is divided into three display areas, and the bullet screen quantity threshold is set to 6. The number of the display areas is determined according to the similarity between the bullet screens corresponding to the bullet screens in the bullet screen subset, and the higher the similarity is, the more the number of the divided display areas is. From this, to the bullet screen that the similarity is high, can show the bullet screen of more pieces of quantity in same bullet screen time, the pollution of reduction bullet screen that can bigger degree.
In an embodiment, the bullet screen display area can be divided longitudinally according to the levels, so that each display area comprises at least two longitudinal display areas with different levels; and displaying the corresponding bullet screens in the longitudinal areas of the at least two display areas according to the grades of the bullet screens.
In practical application, the bullet screens with higher levels are displayed in the lower area of the display area, and the bullet screens with lower levels are displayed in the upper area of the display area, so that a user can pay more attention to the bullet screens with lower levels, and pay less attention to the bullet screens with higher levels. For example, as shown in fig. 9, the bullet screen display area of the video is divided into three longitudinal display areas, which correspond to three different levels, respectively, and the low-level bullet screen is displayed in the upper area of the longitudinal direction of the screen, the middle-level bullet screen is displayed in the middle area of the longitudinal direction of the screen, and the high-level bullet screen is displayed in the lower area of the longitudinal direction of the screen. Wherein, bullet screen track of different grades can be separated a bullet screen space.
Therefore, the embodiment of the invention realizes the display of the aggregated barrage in different partitions, on one hand, the barrage is classified through aggregation, and the barrage is displayed according to the classification, so that a user can quickly find interesting contents, and on the other hand, the display effect of the barrage can be more diversified due to the fact that each partition independently displays the barrage.
An embodiment of the present invention provides a bullet screen display method, and fig. 10 is a schematic diagram illustrating an implementation flow of the bullet screen display method provided in the embodiment of the present invention, as shown in fig. 10, the method mainly includes the following steps:
step S201: and acquiring a bullet screen set containing a plurality of bullet screens in the video unit playing time period.
In practical application, a terminal can acquire a plurality of barrages in a video unit playing time period to form a barrage set; the server may also acquire a plurality of barrages of the video unit playing time period, and send the barrage set including the plurality of barrages to the terminal, and the terminal may receive the barrage set including the plurality of barrages of the video unit playing time period.
It should be noted that the unit playing time period may be preset, for example, 5 minutes or a single bullet screen full screen moving time, and the whole playing time of the video may be divided according to the unit playing time period.
Step S202: and calculating the similarity between the bullet screens in the bullet screen set.
In an embodiment, the terminal may obtain the similarity between the bullet screens by obtaining the vector sum corresponding to each bullet screen and performing cosine value operation on the vector sum of any two bullet screens.
In practical application, the corresponding vector sum of each bullet screen can be obtained by extracting the stem words of the bullet screen, and determining the coordinates of all the stem words of the bullet screen according to the corresponding relation between the stem words and the coordinates in the established synonym library, so that the corresponding vector sum of the bullet screens is determined, the cosine value of the vector sum of any two bullet screens is calculated, and the similarity of the two bullet screens can be obtained.
Here, the synonym library is a system for performing unique plane coordinate (x, y) labeling on all synonym groups, and synonyms such as "like" and "like" can be classified into one class, namely coordinate labeling (1, 1); the words "movie", etc. can be grouped into one category, coordinates (2, 3). And summing the coordinates corresponding to all the main words of the bullet screen, namely obtaining the vector sum corresponding to the bullet screen, for example, if the bullet screen is like the film, extracting the main words as like and film, wherein the coordinates corresponding to like are (1,1), the coordinates corresponding to film are (2,3), and the vector sum corresponding to like the film is (3, 4).
It should be noted that, the cosine value operation of the included angle is performed on the vector sum of any two bullet curtains, and the range of the operation result is between 0 and 1, where "1" represents the highest similarity, and represents that the similarity is 100%. And only the bullet screen containing the Chinese characters can be subjected to similarity calculation, and for the bullet screen not containing the Chinese characters, complete matching classification is only performed.
Step S203: and extracting the bullet screens with the similarity greater than the similarity threshold value in the bullet screen set based on the result of the similarity calculation.
In an embodiment, a similarity threshold is preset, whether the similarity between the bullet screens corresponding to the bullet screens is greater than the preset similarity threshold is judged, if so, the bullet screens are classified as synonymous bullet screens, and the synonymous bullet screens are extracted. For example, all bullet screens satisfying a similarity of greater than 60% between bullet screens can be classified as synonymous bullet screens.
Step S204: and grading the extracted bullet screen according to the corresponding relation of the preset similarity interval pre-grades.
And performing grade division on the bullet screens according to the determined corresponding relation between the similarity interval and the preset similarity interval and grade, for example, dividing the similarity interval into 60% -75%, 75% -90% and 90% -100%, which respectively correspond to a low grade, a medium grade and a high grade, and if the similarity between two bullet screens is 80%, determining that the corresponding similarity interval is 75% -90%, dividing the two bullet screens into the medium grade.
Step S205: and displaying the bullet screen in a display area corresponding to the grade according to the grade of the bullet screen.
In one embodiment, an aggregation instruction for the bullet screen is received; and responding to the aggregation instruction, and displaying the bullet screen in a display area corresponding to the grade according to the grade to which the bullet screen belongs.
In practical application, if a user needs to start a bullet screen aggregation function, an aggregation instruction for the bullet screen is sent to a terminal, the terminal receives the aggregation instruction, and the bullet screen is displayed in a display area corresponding to the level; if the user does not need to start the bullet screen aggregation function, the aggregation instruction aiming at the bullet screen can not be sent to the terminal, and the terminal does not receive the aggregation instruction, so that the bullet screen concentrated in the bullet screen display area of the screen can be directly displayed.
In one embodiment, according to the level, the barrage display area of the video is divided longitudinally; and simultaneously displaying the corresponding bullet screens in the display areas of all the grades according to the grades of the bullet screens.
In practical application, the bullet screens with higher levels are displayed in the lower area of the display area, and the bullet screens with lower levels are displayed in the upper area of the display area, so that a user can pay more attention to the bullet screens with lower levels, and pay less attention to the bullet screens with higher levels. For example, the barrage is divided into three levels, the barrage display area of the video is longitudinally divided into three areas, the barrage with the lower level is displayed in the upper area of the longitudinal screen partition, the barrage with the middle level is displayed in the middle area of the longitudinal screen partition, and the barrage with the higher level is displayed in the lower area of the longitudinal screen partition. Wherein, the bullet screen of different grades can appear with the mode of row alignment, also can appear in crisscross mode, can separate a bullet screen space between the bullet screen track of different grades.
In one embodiment, at least two bullet screen tracks corresponding to the grades are determined according to the grades to which the bullet screens belong; and respectively displaying the bullet screens of all the grades through the at least two bullet screen tracks corresponding to all the grades.
In practical application, can show the bullet screen at the corresponding at least two bullet screen tracks of each grade simultaneously, to the higher bullet screen of grade, the track figure of dividing is more, makes it can show more bullet screens in same bullet screen time. For example, the bullet screen is divided into three levels, namely, a low level, a middle level and a high level, wherein the low level and the middle level correspond to two bullet screen tracks, and the high level corresponds to three bullet screen tracks. Wherein, can keep the interval of at least one character length between two bullet screen tracks that every grade is adjacent, when placing the bullet screen characters of adjacent section and appearing simultaneously, influence the user and distinguish different bullet screens.
In an embodiment, the at least two bullet screen tracks corresponding to each grade are used for respectively displaying bullet screens of each grade, and the following display modes can be adopted:
first bullet curtain gets into from the orbital one end of first bullet curtain, moves extremely disappearance during the orbital other end of first bullet curtain to when disappearing, the second bullet curtain is in the orbital one end of second bullet curtain gets into, moves extremely disappearance during the orbital other end of second bullet curtain. For example, when two bullet screen tracks are determined, when two bullet screens are displayed simultaneously, a first bullet screen enters a screen from the right side of the first bullet screen track, and is removed from the left side, when the bullet screen moves to the left side of the first bullet screen track, a second bullet screen enters the screen from the right side of the second bullet screen track, and the bullet screen is removed after the bullet screen moves to the left side of the second bullet screen track.
It should be noted that each bullet screen track can display one or more bullet screens, for example, two bullet screen tracks are determined, when four bullet screens are displayed simultaneously, the first and three bullet screens enter the screen from the right side of the first bullet screen track and are removed from the left side, and when the bullet screen moves to the left side of the first bullet screen track, the second and four bullet screens enter the screen from the right side of the second bullet screen track until the bullet screen moves to the left side of the second bullet screen track and is removed.
In one embodiment, displaying the bullet screen in a display area corresponding to a grade according to the grade to which the bullet screen belongs includes: filtering the barrages of all levels respectively based on at least one of the first filtering rule and the second filtering rule; displaying the filtered barrages of all the grades in the areas corresponding to the grades; the first filtering rules represent the text length of the bullet screen, and the second filtering rules represent the number of the bullet screen at the current level.
In practical application, based on a first filtering rule, the bullet screens of all levels are respectively filtered, and whether the bullet screens are larger than the character length threshold corresponding to the level to which the bullet screens belong can be judged; and when the bullet screen is determined to be larger than the preset value, rejecting the bullet screen.
It should be noted that the text length threshold may be determined according to the number of bullet screen tracks corresponding to each level, for example, the level corresponds to two bullet screen tracks, and then the text length of the bullet screen cannot be greater than the full-screen width of 1/2, so that by removing the bullet screen whose text length exceeds the text length threshold, the problem that the user experience is affected because the bullet screen appears to be narrow in space when being displayed in segments is solved.
In practical application, based on the second filtering rule, the barrages of all levels are respectively filtered, and the barrages of all levels can be sorted according to the number of characters of the barrages; and respectively eliminating the bullet screens with the largest number of characters in each grade until the number of the bullet screens in each grade is smaller than the threshold value of the number of the bullet screens corresponding to the grade. For example, the number threshold of the bullet screens corresponding to the high level is set to 4, and four bullet screens with the minimum number of words in the bullet screens are screened out from the bullet screens of the high level according to the principle that the number of words in the bullet screens is small and is preferred. Wherein, to the higher bullet screen of grade, the quantity threshold value that sets up is big more, makes it can show the bullet screen of more numbers at same bullet screen time, the pollution of reduction bullet screen that can bigger degree.
Therefore, the bullet screen is displayed in the display area corresponding to the grade according to the grade to which the bullet screen belongs, so that a user can pay more attention to the bullet screen with low similarity, and more different information can be obtained.
An embodiment of the present invention provides a bullet screen display method, and fig. 11 is a schematic flow chart illustrating an implementation of the bullet screen display method provided in the embodiment of the present invention, as shown in fig. 11, the method mainly includes the following steps:
step S301: and acquiring a bullet screen set containing a plurality of bullet screens in the video unit playing time period.
Here, after the user sends the barrage through the terminal, the barrage is uploaded to the server, and the terminal acquires a barrage set including a plurality of barrages in the video unit playing time period from the server.
It should be noted that the unit playing time period may be preset, for example, 5 minutes or a single bullet screen full screen moving time, and the whole playing time of the video may be divided according to the unit playing time period.
Step S302: and based on the similarity among the bullet screens, aggregating the bullet screens with the concentrated similarity meeting the preset conditions to obtain each bullet screen subset.
In an embodiment, the terminal may aggregate the bullet screens whose bullet screen centralized similarity satisfies the preset condition in the following manner: calculating the similarity between the bullet screens in the bullet screen set; and based on the result of the similarity calculation, carrying out grade division on the bullet screens so as to aggregate bullet screens with the same grade to obtain bullet screen subsets with different grades.
Step S303: and longitudinally partitioning the bullet screen display area of the video according to a preset display strategy to obtain at least two display areas.
It should be noted that, the terminal performs longitudinal partition on the bullet screen display area of the video to obtain at least two display areas, which may be divided equally or in any proportion; the bullet screen display area of the video can be the whole display area of the video, or can be a partial display area of the video, such as the upper half of the display area of the video.
Step S304: for each bullet screen subset, respectively executing: and displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas.
Therefore, the embodiment of the invention realizes the display of the aggregated barrage in different partitions, on one hand, the barrage is classified through aggregation, and the barrage is displayed according to the classification, so that a user can quickly find interesting contents, and on the other hand, the display effect of the barrage can be more diversified due to the fact that each partition independently displays the barrage.
An embodiment of the present invention provides a bullet screen display device, and fig. 12 is a schematic structural diagram of a bullet screen display device provided in an embodiment of the present invention, as shown in fig. 12, the bullet screen display device 400 includes:
a first obtaining unit 401, configured to obtain a bullet screen set including multiple bullet screens in a video unit playing time period;
a first aggregation unit 402, configured to aggregate, based on similarities among the bullet screens, the bullet screens whose bullet screen centralized similarities meet preset conditions;
a first partitioning unit 403, configured to perform horizontal partitioning on a bullet screen display area of a video according to a preset display policy to obtain at least two display areas;
a first display unit 404, configured to display the barrage in the barrage subset in the at least two display areas, where the barrage displayed in each display area is different.
In an embodiment, the first display unit 404 is further configured to display the bullet screens in the bullet screen subset in the adjacent first display area and second display area in the following manner:
controlling and displaying a first bullet screen, enabling the first bullet screen to enter from one end of the first display area, and monitoring at least one of the following movement parameters of the first bullet screen: moving time and moving distance;
confirm when the movement parameter of first bullet curtain accords with predetermined movement conditions, hide first bullet curtain shows the second bullet curtain, makes first bullet curtain is moving extremely disappear during the other end of first show area, and when disappearing, the second bullet curtain is in the one end of second show area gets into.
In one embodiment, the first display area comprises at least one first bullet screen track, and the second display area comprises at least one second bullet screen track;
the first display unit 404 is further configured to determine that the moving time of the first bullet screen reaches a set time, and/or when the moving distance of the first bullet screen reaches a set distance, hide the first bullet screen and display a second bullet screen, so that the first bullet screen disappears after entering from the first end of the first bullet screen track when moving along the first bullet screen track to the second end of the first bullet screen track, and the second bullet screen enters at the first end of the second bullet screen track while the first bullet screen disappears;
the second end of the first bullet screen track is connected with the first end of the second bullet screen track in physical position or transversely spaced by a preset number of character lengths.
In an embodiment, the first display unit 404 is further configured to display the bullet screens in the bullet screen subset in the adjacent first display area and second display area in the following manner:
and when the first bullet screen or the second bullet screen disappears, a third bullet screen enters from one end of the first display area.
In an embodiment, the first aggregation unit 402 includes:
the calculation unit is used for calculating the similarity between the bullet screens in the bullet screen set;
and the grading unit is used for grading the barrages based on the similarity calculation result so as to aggregate barrages with the same grade.
In an embodiment, the first partitioning unit 403 is further configured to vertically partition the bullet screen display area according to the levels, so that each display area includes at least two vertical display areas of different levels;
the first display unit 404 is further configured to display a corresponding bullet screen in a longitudinal area of the at least two display areas according to a grade to which the bullet screen belongs.
An embodiment of the present invention provides a bullet screen display device, and fig. 13 is a schematic structural diagram of a bullet screen display device provided in an embodiment of the present invention, as shown in fig. 13, the bullet screen display device 500 includes:
a second obtaining unit 501, configured to obtain a bullet screen set including multiple bullet screens in a video unit playing time period;
a second aggregation unit 502, configured to aggregate, based on similarities among the bullet screens, bullet screens with the bullet screen centralized similarities meeting preset conditions;
the second partitioning unit 503 is configured to perform horizontal partitioning on the bullet screen display area of the video according to a preset display policy to obtain at least two display areas;
a second display unit 504, configured to display the barrage in the barrage subset in the at least two display areas, where the barrage displayed in each display area is different.
Fig. 14 is a schematic diagram of a hardware structure of a bullet screen display device according to an embodiment of the present invention, and it can be understood that fig. 14 only shows an exemplary structure of the bullet screen display device, and not a whole structure, and a part of the structure or the whole structure shown in fig. 14 may be implemented according to needs.
This bullet screen display device 600 includes: at least one processor 601, memory 602, and at least one communication interface 603. The various components of the bullet screen display apparatus 600 are coupled together by a bus system 604. It will be appreciated that the bus system 604 is used to enable communications among the components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 12.
It will be appreciated that the memory 602 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory.
The memory 602 of the embodiment of the present invention is used to store various types of data to support the operation of the bullet screen display device 600. Examples of such data include: any executable instructions for operating on the bullet screen device 600, such as executable instructions, may be included in the executable instructions, and the program for implementing the bullet screen displaying method according to the embodiment of the present invention may be included in the executable instructions.
The bullet screen display method disclosed by the embodiment of the invention can be applied to the processor 601 or realized by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In the implementation process, the steps of the bullet screen display method can be completed by an integrated logic circuit of hardware in the processor 601 or instructions in the form of software. The Processor 601 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 601 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the memory 602, and the processor 601 reads information in the memory 602, and completes the steps of the bullet screen display method provided in the embodiment of the present invention in combination with hardware thereof.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (14)
1. A bullet screen display method is characterized by comprising the following steps:
acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period;
based on the similarity among the bullet screens, aggregating the bullet screens with the similarity meeting the preset conditions in the bullet screen set to obtain each bullet screen subset;
according to a preset display strategy, transversely partitioning a bullet screen display area of a video to obtain at least two display areas;
for each bullet screen subset, respectively executing: displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas;
based on the similarity between the bullet screens, the bullet screen that the similarity satisfies the preset condition in bullet screen set is aggregated, including:
calculating the similarity between the bullet screens in the bullet screen set;
based on the result of the similarity calculation, carrying out grade division on the bullet screens so as to aggregate bullet screens with the same grade;
wherein the ranking the barrage based on the result of the similarity calculation to aggregate barrages of the same rank comprises: extracting the bullet screens with the similarity greater than a similarity threshold value in the bullet screen set based on the result of the similarity calculation; determining a similarity interval where the extracted similarity of the bullet screen is located; and according to the determined corresponding relation between the similarity interval and the preset similarity interval and the grade, carrying out grade division on the extracted bullet screen so as to aggregate bullet screens with the same grade.
2. The method of claim 1, wherein said displaying the bullet screen in the bullet screen subset in the at least two display areas comprises:
displaying the bullet screens in the bullet screen subset in the adjacent first display area and second display area according to the following modes:
controlling and displaying a first bullet screen, enabling the first bullet screen to enter from one end of the first display area, and monitoring at least one of the following movement parameters of the first bullet screen: moving time and moving distance;
and when determining that the movement parameters of the first bullet screen accord with preset movement conditions, hiding the first bullet screen and displaying a second bullet screen, so that the first bullet screen disappears when moving to the other end of the first display area, and when the first bullet screen disappears, the second bullet screen enters one end of the second display area.
3. The method of claim 2, wherein the first display area comprises at least one first bullet screen track and the second display area comprises at least one second bullet screen track;
confirm when the movement parameter of first bullet curtain accords with preset movement condition, hide first bullet curtain and show the second bullet curtain, include:
determining that the moving time of the first bullet screen reaches a set time and/or the moving distance of the first bullet screen reaches a set distance, hiding the first bullet screen and displaying a second bullet screen, so that the first bullet screen disappears when moving from the first end of the first bullet screen track to the second end of the first bullet screen track after entering from the first end of the first bullet screen track, and the second bullet screen enters from the first end of the second bullet screen track while disappearing;
the second end of the first bullet screen track is connected with the first end of the second bullet screen track in physical position or transversely spaced by a preset number of character lengths.
4. The method of claim 2, further comprising:
displaying the bullet screens in the bullet screen subset in the adjacent first display area and second display area according to the following modes:
and when the first bullet screen or the second bullet screen disappears, a third bullet screen enters from one end of the first display area.
5. The method of claim 1, further comprising:
according to the levels, longitudinally partitioning the bullet screen display areas to enable each display area to comprise at least two longitudinal display areas with different levels;
and displaying the corresponding bullet screens in the longitudinal areas of the at least two display areas according to the grades of the bullet screens.
6. A bullet screen display method is characterized by comprising the following steps:
acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period;
based on the similarity among the bullet screens, aggregating the bullet screens with the similarity meeting the preset conditions in the bullet screen set to obtain each bullet screen subset;
according to a preset display strategy, longitudinally partitioning a bullet screen display area of a video to obtain at least two display areas;
for each bullet screen subset, respectively executing: displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas;
based on the similarity between the bullet screens, the bullet screen that the similarity satisfies the preset condition in bullet screen set is aggregated, including:
calculating the similarity between the bullet screens in the bullet screen set;
based on the result of the similarity calculation, carrying out grade division on the bullet screens so as to aggregate bullet screens with the same grade;
wherein the ranking the barrage based on the result of the similarity calculation to aggregate barrages of the same rank comprises: extracting the bullet screens with the similarity greater than a similarity threshold value in the bullet screen set based on the result of the similarity calculation; determining a similarity interval where the extracted similarity of the bullet screen is located; and according to the determined corresponding relation between the similarity interval and the preset similarity interval and the grade, carrying out grade division on the extracted bullet screen so as to aggregate bullet screens with the same grade.
7. A bullet screen display device, characterized in that said device comprises:
the first acquisition unit is used for acquiring a bullet screen set containing a plurality of bullet screens in a video unit playing time period;
the first aggregation unit is used for aggregating the bullet screens with the bullet screen centralized similarity meeting the preset conditions based on the similarity among the bullet screens to obtain all bullet screen subsets;
the first partition unit is used for transversely partitioning a bullet screen display area of the video according to a preset display strategy to obtain at least two display areas;
a first display unit, configured to perform, for each bullet screen subset, respectively: displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas;
the first polymerization unit includes:
the calculation unit is used for calculating the similarity between the bullet screens in the bullet screen set;
the grading unit is used for grading the barrages based on the similarity calculation result so as to aggregate barrages with the same grade;
the level classification unit is specifically configured to: extracting the bullet screens with the similarity greater than a similarity threshold value in the bullet screen set based on the result of the similarity calculation; determining a similarity interval where the extracted similarity of the bullet screen is located; and according to the determined corresponding relation between the similarity interval and the preset similarity interval and the grade, carrying out grade division on the extracted bullet screen so as to aggregate bullet screens with the same grade.
8. The apparatus of claim 7,
the first display unit is further configured to display the bullet screens in the bullet screen subset in the adjacent first display area and second display area in the following manner:
controlling and displaying a first bullet screen, enabling the first bullet screen to enter from one end of the first display area, and monitoring at least one of the following movement parameters of the first bullet screen: moving time and moving distance;
and when determining that the movement parameters of the first bullet screen accord with preset movement conditions, hiding the first bullet screen and displaying a second bullet screen, so that the first bullet screen disappears when moving to the other end of the first display area, and when the first bullet screen disappears, the second bullet screen enters one end of the second display area.
9. The device of claim 8, wherein the first display area comprises at least one first bullet screen track and the second display area comprises at least one second bullet screen track;
the first display unit is further configured to determine that the moving time of the first bullet screen reaches a set time and/or that the moving distance of the first bullet screen reaches a set distance, hide the first bullet screen and display a second bullet screen, so that the first bullet screen disappears when moving from the first end of the first bullet screen track to the second end of the first bullet screen track along the first bullet screen track after entering from the first end of the first bullet screen track, and the second bullet screen enters from the first end of the second bullet screen track while disappearing;
the second end of the first bullet screen track is connected with the first end of the second bullet screen track in physical position or transversely spaced by a preset number of character lengths.
10. The apparatus of claim 8,
the first display unit is further configured to display the bullet screens in the bullet screen subset in the adjacent first display area and second display area in the following manner:
and when the first bullet screen or the second bullet screen disappears, a third bullet screen enters from one end of the first display area.
11. The apparatus of claim 8,
the first partition unit is further configured to longitudinally partition the bullet screen display area according to the level, so that each display area includes at least two longitudinal display areas of different levels;
the first display unit is further used for displaying the corresponding bullet screens in the longitudinal areas of the at least two display areas according to the grades of the bullet screens.
12. A bullet screen display device, characterized in that said device comprises:
the second acquisition unit is used for acquiring a bullet screen set containing a plurality of bullet screens in the video unit playing time period;
the second aggregation unit is used for aggregating the bullet screens with the bullet screen centralized similarity meeting the preset conditions based on the similarity among the bullet screens to obtain each bullet screen subset;
the second partitioning unit is used for longitudinally partitioning the bullet screen display area of the video according to a preset display strategy to obtain at least two display areas;
a second display unit, configured to perform, for each of the bullet screen subsets: displaying the bullet screens in the bullet screen subsets in the at least two display areas according to the mode of displaying different bullet screens in different display areas;
the second polymerization unit comprises:
the calculation unit is used for calculating the similarity between the bullet screens in the bullet screen set;
the grading unit is used for grading the barrages based on the similarity calculation result so as to aggregate barrages with the same grade;
the level classification unit is specifically configured to: extracting the bullet screens with the similarity greater than a similarity threshold value in the bullet screen set based on the result of the similarity calculation; determining a similarity interval where the extracted similarity of the bullet screen is located; and according to the determined corresponding relation between the similarity interval and the preset similarity interval and the grade, carrying out grade division on the extracted bullet screen so as to aggregate bullet screens with the same grade.
13. A bullet screen display device, characterized in that said device comprises: a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor is configured to execute the bullet screen display method according to any one of claims 1 to 6 when the computer program is executed.
14. A storage medium, characterized in that the storage medium stores a computer program which, when executed by at least one processor, implements the bullet screen presentation method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811645858.8A CN109413484B (en) | 2018-12-29 | 2018-12-29 | Bullet screen display method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811645858.8A CN109413484B (en) | 2018-12-29 | 2018-12-29 | Bullet screen display method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109413484A CN109413484A (en) | 2019-03-01 |
CN109413484B true CN109413484B (en) | 2022-05-10 |
Family
ID=65461487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811645858.8A Active CN109413484B (en) | 2018-12-29 | 2018-12-29 | Bullet screen display method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109413484B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306254A (en) * | 2019-07-31 | 2021-02-02 | 北京搜狗科技发展有限公司 | Expression processing method, device and medium |
CN110545458A (en) * | 2019-09-24 | 2019-12-06 | 网易(杭州)网络有限公司 | barrage display method, device and equipment and computer readable storage medium |
CN111147912B (en) * | 2019-12-31 | 2021-11-16 | 维沃移动通信有限公司 | Bullet screen display control method and electronic equipment |
CN111614993B (en) * | 2020-04-30 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Barrage display method and device, computer equipment and storage medium |
CN111885408A (en) * | 2020-06-12 | 2020-11-03 | 维沃移动通信有限公司 | Bullet screen display method and device and electronic equipment |
CN111538557B (en) * | 2020-07-09 | 2020-10-30 | 平安国际智慧城市科技股份有限公司 | Barrage rendering method based on cascading style sheet and related equipment |
CN111866596A (en) * | 2020-07-28 | 2020-10-30 | 游艺星际(北京)科技有限公司 | Bullet screen publishing and displaying method and device, electronic equipment and storage medium |
CN112423026B (en) * | 2020-10-19 | 2023-04-07 | 广州市百果园网络科技有限公司 | Comment processing method and device |
CN112765990B (en) * | 2020-12-31 | 2024-01-12 | 平安科技(深圳)有限公司 | Live bullet screen real-time merging method and device, computer equipment and storage medium |
CN113055734A (en) * | 2021-03-19 | 2021-06-29 | 安徽宝信信息科技有限公司 | Smart screen with voice recognition and online subtitle display functions |
CN114025225B (en) * | 2021-10-29 | 2023-08-29 | 北京字跳网络技术有限公司 | Bullet screen control method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106612463A (en) * | 2015-10-27 | 2017-05-03 | 中兴通讯股份有限公司 | Barrage processing methods and system, and terminal |
CN106899877A (en) * | 2017-03-16 | 2017-06-27 | 武汉斗鱼网络科技有限公司 | barrage sending method and device |
CN106921891A (en) * | 2015-12-24 | 2017-07-04 | 北京奇虎科技有限公司 | The methods of exhibiting and device of a kind of video feature information |
CN107360459A (en) * | 2017-07-07 | 2017-11-17 | 腾讯科技(深圳)有限公司 | A kind of processing method of barrage, device and storage medium |
CN108108353A (en) * | 2017-12-19 | 2018-06-01 | 北京邮电大学 | A kind of video semantic annotation method, apparatus and electronic equipment based on barrage |
CN108174276A (en) * | 2018-01-04 | 2018-06-15 | 北京奇艺世纪科技有限公司 | A kind of barrage display methods and display device |
CN108366286A (en) * | 2018-01-30 | 2018-08-03 | 河南职业技术学院 | Barrage display methods and barrage display device |
CN108521580A (en) * | 2018-03-30 | 2018-09-11 | 优酷网络技术(北京)有限公司 | Barrage method for information display and device |
CN108521583A (en) * | 2018-04-23 | 2018-09-11 | 黄宇松 | A kind of a large amount of barrage information concurrent processing methods and cloud computing server based on cloud computing |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102790923B (en) * | 2011-05-19 | 2015-11-25 | 华为终端有限公司 | Method, server of instant message and user terminal that user comment information is shared |
CN104462363B (en) * | 2014-12-08 | 2018-10-23 | 百度在线网络技术(北京)有限公司 | Comment point shows method and apparatus |
CN104822093B (en) * | 2015-04-13 | 2017-12-19 | 腾讯科技(北京)有限公司 | Barrage dissemination method and device |
CN104936035B (en) * | 2015-06-19 | 2018-04-17 | 腾讯科技(北京)有限公司 | A kind of barrage processing method and system |
CN106101862A (en) * | 2016-06-15 | 2016-11-09 | 武汉斗鱼网络科技有限公司 | A kind of intelligent barrage guard method for video website and device |
CN106101863B (en) * | 2016-06-24 | 2019-03-15 | 武汉斗鱼网络科技有限公司 | A kind of barrage sending method and device with deletion protection mechanism |
CN109040852A (en) * | 2018-07-13 | 2018-12-18 | 北京奇艺世纪科技有限公司 | A kind of barrage screening technique and device |
-
2018
- 2018-12-29 CN CN201811645858.8A patent/CN109413484B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106612463A (en) * | 2015-10-27 | 2017-05-03 | 中兴通讯股份有限公司 | Barrage processing methods and system, and terminal |
CN106921891A (en) * | 2015-12-24 | 2017-07-04 | 北京奇虎科技有限公司 | The methods of exhibiting and device of a kind of video feature information |
CN106899877A (en) * | 2017-03-16 | 2017-06-27 | 武汉斗鱼网络科技有限公司 | barrage sending method and device |
CN107360459A (en) * | 2017-07-07 | 2017-11-17 | 腾讯科技(深圳)有限公司 | A kind of processing method of barrage, device and storage medium |
CN108108353A (en) * | 2017-12-19 | 2018-06-01 | 北京邮电大学 | A kind of video semantic annotation method, apparatus and electronic equipment based on barrage |
CN108174276A (en) * | 2018-01-04 | 2018-06-15 | 北京奇艺世纪科技有限公司 | A kind of barrage display methods and display device |
CN108366286A (en) * | 2018-01-30 | 2018-08-03 | 河南职业技术学院 | Barrage display methods and barrage display device |
CN108521580A (en) * | 2018-03-30 | 2018-09-11 | 优酷网络技术(北京)有限公司 | Barrage method for information display and device |
CN108521583A (en) * | 2018-04-23 | 2018-09-11 | 黄宇松 | A kind of a large amount of barrage information concurrent processing methods and cloud computing server based on cloud computing |
Also Published As
Publication number | Publication date |
---|---|
CN109413484A (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109413484B (en) | Bullet screen display method and device and storage medium | |
CN107454475A (en) | Control method and device, computer installation and the readable storage medium storing program for executing of video playback | |
CN109508406B (en) | Information processing method and device and computer readable storage medium | |
CN105005429B (en) | A kind of method and terminal of terminal display picture | |
CN110751224A (en) | Training method of video classification model, video classification method, device and equipment | |
CN108206959B (en) | Method and device for displaying bullet screen message | |
CN105072465A (en) | Video play control method and electronic equipment | |
CN104239458A (en) | Method and device for representing search results | |
CN109327715B (en) | Video risk identification method, device and equipment | |
CN113407773A (en) | Short video intelligent recommendation method and system, electronic device and storage medium | |
CN104079960A (en) | File recommending method and device | |
CN104243590A (en) | Resource object recommendation method and device | |
CN105243105A (en) | Content sorting method and apparatus | |
CN106454431A (en) | Method and system for recommending television programs | |
Barthel et al. | Graph-based browsing for large video collections | |
CN110475132A (en) | Direct broadcasting room kind identification method, device and data processing equipment | |
CN112199582A (en) | Content recommendation method, device, equipment and medium | |
CN111400546A (en) | Video recall method and video recommendation method and device | |
CN108647227B (en) | Recommendation method and device | |
CN103763575A (en) | Program scheduling method and device | |
US20170092330A1 (en) | Video indexing method and device using the same | |
CN103092929A (en) | Method and device for generation of video abstract | |
CN114302212B (en) | Video bullet screen typesetting method, device, equipment and storage medium | |
CN105912544A (en) | Method and device for matching video content, server, and video playing system | |
CN103165157A (en) | Method and device for locating playing position of no-indexing audio video interleaved (AVI) file and player |
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 |