Bullet screen display method and display system

A display method and bullet screen technology, applied in the field of Internet video, can solve the problems of invisible bullet screen content, increased collision ratio, inconsistent bullet screen collision effects, etc.

Active Publication Date: 2016-09-21
SHANGHAI HODE INFORMATION TECH CO LTD
6 Cites 19 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0008] 2) Bullet screen collision detection refers to the maximum number of bullet screens that can be displayed on the same screen or in the same line. If this value is exceeded, the bullet screens in the same line will overlap, making the content of the bullet screen invisible
[0009] The main difficulty of collision detection is to detect the collision between horizontally scrolling barrages. Since the survival time of barrages in the prior art is determined by their display time and survival length, the collision be...
View more

Abstract

The invention discloses a bullet screen display method. The display method comprises the steps that a video device obtains the screen resolution, device screen density and display area size of the video device through an application programming interface of the video device; the video device obtains finally displayed bullet screen font size, rolling speed and bullet screen density according to the screen resolution, the device screen density and the display area size; and the video device adjusts and displays the bullet screens according to the finally displayed bullet screen font size, rolling speed and bullet screen density. According to the method and the system, the platform application programming interface of each display device platform is obtained, the basic metadata correlated to device hardware is obtained, the rolling speed, and the finally displayed bullet screen font size and bullet screen density of the bullet screens in the display device are determined, the current bullet screen displaying setting is modified, and the optimum bullet screen display effect can be watched by the user on the device.

Application Domain

Selective content distribution

Technology Topic

MetadataRolling speed +4

Image

  • Bullet screen display method and display system
  • Bullet screen display method and display system
  • Bullet screen display method and display system

Examples

  • Experimental program(1)

Example Embodiment

[0050] Specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0051] like figure 1 As shown, the present invention discloses a barrage display method, which specifically includes the following steps:
[0052] S1. Video devices, such as smart mobile terminals, computers, etc., obtain the screen resolution, device screen density and display area size of the video device through the application programming interface (api, Application Programming Interface) of its display device platform (operating system) . Among them, the device screen density refers to the number of screen pixels per inch, and the unit is dpi, which is the abbreviation of "dot per inch"; the display area size includes the display area height and display area width.
[0053]S2. The video device acquires the finally displayed barrage font size, scrolling speed, and barrage density according to the screen resolution, device screen density, and display area size.
[0054] S2.1. The video device obtains the font size of the final displayed barrage according to the screen density and screen resolution of the device.
[0055] S2.1.1. The video device obtains the maximum number of lines occupied by bullet chatting under the full screen according to the screen density of the device, obtains the resolution height from the screen resolution, and obtains the line height of each line of bullet chatting according to formula (1):
[0056] The line height of each line of bullet chatting = resolution height / maximum number of lines occupied by bullet chatting in full screen (1).
[0057] Among them, the video device or display device platform presets the relationship between the device screen density and the maximum number of lines occupied by the bullet screen under the full screen. In this embodiment, the corresponding relationship as shown in Table 1 is adopted.
[0058] As shown in Table 1, the density level of the screen can be obtained according to the value range of the device screen density (DPI), and then according to the density level of the screen, the maximum number of lines occupied by bullet screens in different full screens and the number of bullet screens in the same screen can be specified. The number of bullet chats includes the minimum number of bullet chats on the same screen, the normal number of bullet chats on the same screen, and the highest number of bullet chats on the same screen.
[0059]
[0060]
[0061] Table 1. The relationship between the preset device screen density and the maximum number of lines occupied by the bullet screen under full screen
[0062] S2.1.2. The line height of each line of barrage is brought into the font variable to obtain the scaling reference value of the standard font size finally displayed.
[0063] Among them, the font variable includes: the distance (Ascent) from the character baseline (Baseline) to the highest point of the character (Ascent), the distance (Descent) from the character baseline to the lowest point of the character (Descent), and the line spacing between characters (Leading), which is scaled The relational formula of the benchmark value is as follows:
[0064] Leading = line height of each line of barrage - (Ascent+Descent)
[0065] font size=height of each line of barrage-Leading/2
[0066] font size is the reference size of the bullet chat font size, and defines the reference size of the bullet chat font size as the scaling reference value of the final displayed standard font size.
[0067] S2.1.3. The video device or display device platform presets the font pixel size of the standard font size preset by the raw data of the bullet chat, which represents the pixel size of the bullet chat that you want to display, but this predefined size is not suitable for all display screens (too large or is too small), so it is necessary to combine the scaling reference value obtained above to obtain the scaling ratio according to formula (2). Combining the zoom ratio and the currently set font size, the final displayed bullet chat font size can be obtained according to formula (3):
[0068] Scaling ratio = scaling reference value / font pixel size of the standard font size preset by the bullet chat original data (2)
[0069] The font size of the finally displayed barrage = the currently set font size * zoom ratio (3).
[0070] S2.2 The video device obtains the scrolling speed according to the finally displayed barrage font size and display area size.
[0071] S2.2.1. The font size and text length of the bullet chat (the text length of the bullet chat content) displayed in the final bullet chat can be used to obtain the bullet chat display occupation size of each bullet chat by bringing in the font variable, and the bullet chat display occupation size includes the bullet chat display Occupied height and barrage display occupied width.
[0072] Among them, the font variable includes: the distance (Ascent) from the character baseline (Baseline) to the highest point of the character (Ascent), the distance (Descent) from the character baseline to the lowest point of the character (Descent), and the line spacing between characters (Leading).
[0073] S2.2.2. The preset scrolling speed reference value, combined with the width of the display area size, obtains the barrage scrolling display time according to formula (4). Then, according to the occupied width of the bullet chatting display, the width of the display area size, and the scrolling display time of the bullet chatting, the scrolling display time and scrolling speed of the bullet chatting are obtained according to formula (5):
[0074] Bullet chatting scrolling display time = width of display area size / reference value of scrolling speed (4) Scrolling speed = (width of display area size + bullet chatting display occupied width) / bullet chatting scrolling display time (5).
[0075] In this embodiment, the scroll speed reference value is a value preset by this method, such as defining 650 pixel width/4 seconds as the reference value, and the calculation formula is as follows:
[0076] Bullet chat scrolling display time (unit: second) = (actual display occupied width/650)*4.
[0077] S2.3. The video device obtains the barrage density according to the screen density of the device.
[0078] S2.3.1. According to the preset relationship between the screen density of the device and the range of the number of bullet screens on the same screen, the range of the number of bullet screens on the same screen is obtained from the screen density of the device. It can be obtained from Table 1 in this embodiment.
[0079] S2.3.2. In the range of the number of bullet chats on the same screen, the maximum number of bullet chats on the same screen is taken, and the density of bullet chats is obtained based on the maximum number of bullet chats on the same screen.
[0080] In addition, as shown in Table 2, the video device also needs to dynamically adjust the scrolling speed according to the barrage density. The relationship between the barrage scrolling time and the barrage density is inversely proportional, that is, the relationship between the scrolling speed and the barrage density is directly proportional.
[0081] Barrage scrolling time
[0082] Table 2. The relationship between the scrolling time of bullet chatting and the density of bullet chatting
[0083] S3. The video device adjusts the barrage display settings of the barrage according to the font size, scrolling speed and density of the barrage finally displayed, and displays the adjusted barrage on the display device of the video device.
[0084] like figure 2 As shown, the present invention also discloses a barrage display system, which system includes: application programming interface information collection module 21, video equipment information collection module 22, barrage information collection module 23, barrage adjustment module 24, display module 25.
[0085] The input end of the application programming interface information collection module 21 is connected to the application programming interface of the video equipment, and collects the application programming interface information of the video equipment.
[0086] The input end of the video device information collection module 22 is connected to the API information collection module to collect screen resolution, device screen density, and display area size.
[0087] The input end of the bullet chatting information collection module 23 is connected to the video equipment information collection module, and collects finally displayed bullet chatting font size, scrolling speed and bullet chatting intensity.
[0088] The input terminal of the barrage adjustment module 24 is connected with the barrage information collection module, and the barrage display setting is adjusted according to the finally displayed barrage font size, scrolling speed and barrage density.
[0089] The input end of the display module 25 is connected to the barrage adjustment module, and the barrage output is displayed according to the adjusted barrage display setting.
[0090] Wherein, the video device information collection module 22 includes: a screen resolution collection module 221 , a device screen density collection module 222 , and a display area size collection module 223 .
[0091] The input end of the screen resolution collection module 221 is connected to the application programming interface information collection module, and obtains the screen resolution from the application programming interface.
[0092] The input terminal of the device screen density collection module 222 is connected to the application programming interface information collection module, and obtains the device screen density from the application programming interface.
[0093] The input terminal of the display area size collection module 223 is connected to the application programming interface information collection module, and obtains the display area size from the application programming interface.
[0094] The barrage information collection module 23 includes: a final displayed barrage font size collection module 231 , a scrolling speed collection module 232 and a barrage density collection module 233 .
[0095] The input terminal of the finally displayed barrage font size acquisition module 231 is connected to the device screen density acquisition module and the screen resolution acquisition module, and obtains the finally displayed barrage font size according to the device screen density and screen resolution.
[0096] The input terminal of scrolling speed collection module 232 connects finally displayed barrage font size acquisition module and display area size acquisition module, obtains scrolling speed according to final displayed barrage font size and display area size;
[0097] The input terminal of the barrage intensity collection module 233 is connected to the device screen density acquisition module, and acquires the barrage intensity according to the device screen density.
[0098] In addition, the input end of the scrolling speed collection module 232 is connected to the bullet chatting density collection module 233, which receives the bullet chatting density to adjust the scrolling speed.
[0099] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be understood that the above description should not be considered as limiting the present invention. Various modifications and alterations to the present invention will become apparent to those skilled in the art upon reading the above disclosure. Therefore, the protection scope of the present invention should be defined by the appended claims.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products