Barrage display method and device

JP2025175942A5Pending Publication Date: 2026-02-13SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025003572
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-20
Filing Date
2025-01-09
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

Existing barrage display methods lack readability and interactivity due to fixed display times, leading to poor user experience, especially for long or dense barrages that move too quickly across the screen.

Method used

Dynamically adjust the display time of barrages based on the amount of effective information, incorporating factors such as information density and viewing difficulty, and adjust the display time according to the size of the video playback area to ensure optimal viewing speed and readability.

Benefits of technology

Enhances readability and interactivity by ensuring barrages with varying amounts of information have appropriate presentation times, optimizing the display effect and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

SOLUTION: To provide a barrage display method that includes displaying a video playback area for playing a target video, acquiring candidate barrages corresponding to the target video, and displaying the target barrage in the video playback area on the basis of the candidate barrages, and in which the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.EFFECT: The display time of the target barrage displayed in a video playback area can be dynamically adjusted according to the amount of effective information of the target barrage, such that barrages with different amounts of effective information can have more appropriate presentation times in the video playback area, thereby improving the readability and interactivity of the barrage and effectively optimizing the display effect of the barrage and the user experience.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] FIELD OF THE INVENTION The present application relates to the technical field of barrage display, and in particular to a barrage display method, device, computer equipment, computer-readable storage medium, and computer program product. [Background technology]

[0002] With the rapid development of video technology, more and more users are able to watch various video programs over the Internet. While watching a video program, users can interact with the broadcaster and other users by sending barrages. The barrages refer to communication information that pops up and moves in a specific direction while watching a video.

[0003] However, existing methods for displaying barrages of text have poor display effects for some of the barrages, and lack readability and interactivity, resulting in a poor user experience.

[0004] It should be noted that the above content is not necessarily prior art, and is not intended to limit the scope of protection of the present application. Summary of the Invention

[0005] SUMMARY OF THE INVENTION Embodiments of the present application provide a barrage display method, apparatus, computer equipment, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.

[0006] One aspect of an embodiment of the present application provides a barrage display method, the method comprising: Displaying a video playback area for playing the target video; Obtaining candidate barrages corresponding to the target video; Displaying a target barrage in the video playback area based on the candidate barrage, wherein the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.

[0007] Optionally, the effective information content of the target barrage is determined by the following operations: obtaining the information density and / or viewing difficulty of the target barrage; and determining an effective information amount of the target barrage based on the information density and / or viewing difficulty.

[0008] Optionally, the information density includes a length of the target barrage.

[0009] Optionally, the viewing difficulty of the target barrage can be increased by the following operations: performing a word segmentation process on the target barrage to obtain a plurality of subword sequences; Performing feature extraction and feature fusion for each subword sequence to obtain a feature vector; inputting the feature vector into a pre-trained difficulty recognition model, and outputting a score corresponding to the target barrage through the difficulty recognition model; and determining a viewing difficulty of the target barrage based on the score of the target barrage.

[0010] Selectably displaying a target barrage in the video playback area includes: obtaining size-related information of the video playback area; and dynamically adjusting the display time of the target barrage based on at least the effective information amount of the target barrage and the size related information of the video playback area.

[0011] Selectively dynamically adjusting the display time based on at least an effective information amount of the target barrage and size-related information of the video playback area; determining a time influence factor based on the effective information amount of the target barrage and the size related information of the video playback area; and dynamically adjusting the display time based on the time-influencing factor.

[0012] Optionally, determining the time influence factor based on an effective information amount of the target barrage and size-related information of the video playback area includes: obtaining a length of the target barrage based on an amount of effective information of the target barrage; determining a length of the video playback area based on size-related information of the video playback area; and determining a ratio between the length of the target barrage and the length of the video playback area, and determining the ratio as the time influence factor.

[0013] Optionally, dynamically adjusting the display time based on the time influence factor includes: and dynamically adjusting the display time based on the time influence factor and a preset reference display time.

[0014] Selectably, dynamically adjusting the display time based on the time influence factor and a preset reference display time includes: determining the display time within a preset display time interval based on the time influencing factor and a preset reference display time;

[0015] Selectively dynamically adjusting the display time based on at least an effective information amount of the target barrage and size-related information of the video playback area; determining a text scaling ratio corresponding to the video playback area based on the size-related information of the video playback area; and dynamically adjusting the display time based on the time influence factor and the text scaling factor.

[0016] Optionally, dynamically adjusting a display time of the target barrage based on a time influence factor of the target barrage and the text scale factor includes: determining the display time within a preset display time interval based on the time influencing factor, a text scaling rate, and a preset reference display time;

[0017] Optionally, the greater the time influence factor, the longer the display time.

[0018] Optionally, as the time influence factor increases, the display time increment converges to a preset value.

[0019] Optionally, in a first increase stage of the time influence factor, the display time increases at a first increase rate, in a second increase stage of the time influence factor, the display time increases at a second increase rate, and in a third increase stage of the time influence factor, the increment of the display time converges to a preset value, wherein the first increase rate is smaller than the second increase rate.

[0020] Selectably, the preset reference display time can be changed by the following operations: determining the viewing habits of a viewer on a calibration device relative to a standard effective information barrage; determining an optimal viewing time corresponding to the standard effective information volume barrage based on the viewing habits of a viewer in the calibration device for the standard effective information volume barrage; and determining an optimum viewing time corresponding to the standard effective information volume barrage as the predetermined reference display time.

[0021] Optionally, the display time interval includes a minimum display time and a maximum display time; Correspondingly, the display time interval is adjusted by the following operations: Displaying a control screen in which a first numerical value setting area and a second numerical value setting area are set; determining the minimum display time in response to a first value setting operation by a user in the first value setting area; and determining the maximum display time in response to a second numerical value setting operation by the user in the second numerical value setting area.

[0022] Optionally, the barrage display method further comprises: displaying a speed adjustment panel having one or more numeric controls; determining a barrage playback speed or a video playback speed in response to a selection operation of one of the numerical controls; and updating the display time in accordance with a preset rule based on the barrage playback speed or the video playback speed.

[0023] Another aspect of an embodiment of the present application provides a barrage display device, the device comprising: a first display module used to display a video playback area for playing a target video; an acquisition module used to acquire candidate barrages corresponding to the target video; and a second display module used to display a target barrage in the video playback area based on the candidate barrage, wherein the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.

[0024] Another aspect of an embodiment of the present application provides a computer facility, at least one processor; a memory communicatively connected to the at least one processor; Here, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, enabling the at least one processor to perform the method described above.

[0025] Another aspect of an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions, when executed by a processor, implementing the method as described above.

[0026] Another aspect of an embodiment of the present application provides a computer program product, comprising a computer program that, when executed by a processor, implements the method as described above.

[0027] The embodiments of the present application using the above technical solutions may have the following advantages:

[0028] For the target barrage displayed in the video playback area, the display time can be dynamically adjusted according to the amount of effective information of the target barrage, so that barrages with different amounts of effective information can have more appropriate presentation times (display times) in the video playback area, thereby improving the readability and interactivity of the barrage and effectively optimizing the display effect of the barrage and the user experience. [Brief explanation of the drawings]

[0029] The accompanying drawings illustrate examples and constitute a part of the specification and, together with the description in the main text of the specification, serve to introduce exemplary embodiments of the examples. The examples shown are for illustrative purposes only and are not intended to limit the scope of the claims. In all drawings, the same reference numerals indicate similar, but not necessarily identical, elements.

[0030] [Figure 1] 1 is a diagram schematically illustrating an operating environment of a barrage display method according to a first embodiment of the present application. [Figure 2] 1 is a schematic diagram illustrating a flowchart of a barrage display method according to a first embodiment of the present application. [Figure 3] 3 is a schematic flowchart of sub-steps of step S204 in FIG. 2. [Figure 4] 4 is a schematic flowchart of sub-steps of step S302 in FIG. 3. [Figure 5] 5 is a schematic flowchart of sub-steps of step S400 in FIG. 4. [Figure 6] 10 is a schematic diagram illustrating an additional flowchart of a barrage display method according to a first embodiment of the present application. [Figure 7] 10 is a schematic diagram illustrating a gradual increase curve of the barrage display time according to the first embodiment of the present application. [Figure 8] 4 shows a schematic flow chart of the sub-steps of step S302 of FIG. 3 according to a first embodiment of the present application; [Figure 9] 10 is a schematic diagram illustrating another gradual increase curve of the barrage display time according to the first embodiment of the present application; [Figure 10] 1 is a diagram showing an application example of the barrage display method according to the first embodiment of the present application. [Figure 11] 1 is a diagram showing an application example of the barrage display method according to the first embodiment of the present application. [Figure 12] 1 is a diagram comparing the application effect of the barrage display method according to the first embodiment of the present application with related art; [Figure 13] FIG. 10 is a block diagram of a barrage display device according to a second embodiment of the present application; [Figure 14] 10 is a schematic diagram illustrating a hardware architecture of a computer device according to a third embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0031] In order to more clearly understand the objectives, technical solutions and advantages of the present application, the following will further describe the present application in conjunction with figures and examples. It should be understood that the specific examples described herein are only for the purpose of interpreting the present application and do not limit the present application. Based on the examples in this application, all other examples that can be obtained by those skilled in the art without any creative effort shall fall within the protection scope of the present application.

[0032] In addition, terms such as "first" and "second" used in the examples of this application are for explanatory purposes only and should not be understood as indicating or suggesting the relative importance or the number of technical features indicated. Therefore, features defined by "first" and "second" may explicitly or implicitly include at least one of the features. Furthermore, the technical solutions in each example may be combined with each other as long as it is possible for a person skilled in the art to achieve them. However, if a combination of technical solutions causes a contradiction or is not feasible, such combination of technical solutions is considered to be non-existent and not within the scope of protection claimed in this application.

[0033] It should be understood that in the description of this application, the numerical designations preceding steps do not specify the order in which the steps are performed, but are merely intended to facilitate the description of this application and distinguish each step, and therefore should not be construed as limiting this application.

[0034] First, terms related to this application will be explained.

[0035] Danmaku: Comments, messages, or interactive content that slides, scrolls, or pops up in media such as video or live streaming. Danmaku may include text, emojis, photos, animations, etc.

[0036] Illustratively, a barrage may be a data structure such as: { Time to pop up on the video (unit: seconds) Types of bullets, The size of the bullet barrage characters, The color of the bullet barrage characters, the date the barrage was created, Danmaku class name, Danmaku content (text, photos, controls, etc.), Whether or not there is a bullet barrage border, Barrage border color, Bullet hell style between the lines. }

[0037] Danmaku Travel Distance: The distance from when the danmaku appears until it disappears, which can be expressed in pixels or other units. If the danmaku appears from the right side of the player screen and continues to move horizontally to the left side of the player screen until it disappears, the danmaku travel distance can be the sum of the pixel value of the player screen length and the pixel value of the length of a single danmaku.

[0038] Danmaku Display Time: Also known as presentation time, this refers to the length of time that elapses between the appearance of a danmaku and its complete disappearance, and may be the time it takes for a single danmaku to remain stationary on the player's screen, or to move from right to left (at a constant or variable speed).

[0039] Dimensionless quantity: one that has no unit in a particular dimensional system, or whose units are approximated, and which retains only its numerical magnitude; it can be used to describe ratios, relative magnitudes, or other scalar properties.

[0040] Next, in order for those skilled in the art to easily understand the technical solutions provided by the embodiments of the present application, the related art will be described below.

[0041] Danmaku is a type of communication information that pops up and moves in a specific direction when watching videos online. Among wide danmaku, long danmaku posts receive far more likes than short ones, and most of the long danmaku posts are of high quality, leaving a deep impression on users.

[0042] However, the applicant recognized that the display time of the barrage in the related art is a uniformly set fixed value. For example, the display time of the barrage may be uniformly set to 7 seconds, or a setting panel may be provided to the user that may include multiple numerical controls (10 seconds, 8.5 seconds, 7 seconds, 5.5 seconds, 4 seconds), each of which represents the duration of the barrage on the video screen. In response to a specific numerical control selected by the user, the display time of the barrage is uniformly adjusted to the value corresponding to the selected numerical control. Because the display time of the barrage is fixed, when the video screen size is small or the barrage is too long (e.g., with a large number of characters, e.g., 20 characters or more), the movement speed (movement distance / display time) of some of the barrage may be too fast, causing the barrage to quickly pass by on the video screen. As a result, the display effect of the barrage is poor and the readability and interactivity are insufficient, making it difficult for the user to clearly see the barrage, resulting in a poor viewing experience.

[0043] Therefore, the embodiments of this application provide a technical solution for displaying barrages. This technical solution (1) optimizes the display effect of a single barrage by using the amount of effective information of the barrage as an influencing factor for the barrage display time, ensuring a user's viewing experience of the barrage content. (2) Dynamically adjusts the display time of each barrage according to the size-related information of the player screen and changes in the amount of effective information of the barrage, ensuring that barrages with different numbers of characters have more appropriate presentation times and ensuring that the speed at which each character moves falls within the user's optimal viewing speed, thereby helping the user to more fully understand the content of long barrages. (3) The barrage speed is scaled according to the user's manual adjustment and changes in the video speed. Details will be provided below.

[0044] Finally, for ease of understanding, an example operating environment is provided below.

[0045] As shown in FIG. 1, the operating environment diagram includes a service platform 2 and a client.

[0046] The service platform 2 can be connected to clients (4A, 4B, . . . , 4N) via a network.

[0047] The service platform 2 can provide various content, barrage services, and the like to clients. For example, it transmits barrages to clients via the network. The network includes various network devices such as routers, switches, multiplexers, hubs, bridges, repeaters, firewalls, proxy devices, and / or the like. The network can include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, and combinations thereof. The network can also include wireless links such as cellular links, satellite links, and Wi-Fi links.

[0048] Here, the service platform 2 may be a single server, a cluster of servers, or a cloud computing service center for providing various services. For example, the service platform 2 may provide a content service. Here, the content service may be configured to provide content such as video, audio, text data, and combinations thereof. The content may include content streams (e.g., video streams, audio streams, information streams), content files (e.g., video files, audio files, text files), and / or other data.

[0049] The service platform 2 may be configured to manage messages for various content. Users may browse and access different content and view comments on specific content, such as comments posted by other users on that content. Comments from users associated with specific content may be output to other users viewing that content. For example, all users accessing content (such as a video) may view comments related to that content. Comments entered may be output in real time or near real time.

[0050] The service platform 2 may be configured to receive a plurality of messages, which may include a plurality of barrages related to content.

[0051] The service platform 2 may be configured to process a plurality of messages. For example, various processing operations may be performed, such as storing messages, filtering messages, and pushing messages. Here, storing messages may be used to store a plurality of messages in a data storage system, such as a database. Filtering messages may include rejecting or labeling messages that match filtering criteria. Here, filtering criteria may specify terms and / or phrases, such as profanity, hate speech, obscene language, etc. Filtering criteria may specify characters, such as symbols or fonts. Filtering criteria may specify languages, computer-readable codes, etc.

[0052] Service platform 2 may perform natural language processing, subject recognition, pattern recognition, artificial intelligence, etc. to automatically determine message characteristics and / or group messages. As one example, frequently occurring phrases or patterns may be recognized as themes. As another example, a database of themes related to content may be maintained. Themes may include genres (e.g., action, drama, comedy), personalities (e.g., actors, actresses, directors), languages, etc. Message grouping may continue based on customer premises equipment and / or characteristics of the user sending the message. Demographics, interests, history, and / or the like may be stored to allow multiple users to determine potential groupings of messages. For example, screening, filtering, sorting, and personalized pushes of messages uploaded by each user may be performed.

[0053] The service platform 2 may provide a danmaku service that may be configured to enable users to post and / or share comments (i.e., danmaku) related to content. The danmaku is displayed on the same screen as the content. The danmaku may be displayed as an overlay above the content and may have an animation effect. For example, the danmaku may scroll (e.g., from right to left, from left to right, from top to bottom, etc.), and the animation effect may be realized based on the transition attribute of CSS3.

[0054] The clients (4A, 4B, ... 4N) may be configured to access content and services of the service platform 2. The clients (4A, 4B, ... 4N) may include electronic devices with portable or external display panels, such as mobile devices, tablet devices, laptop computers, workstations, virtual reality equipment, gaming devices, digital streaming devices, vehicle clients, smart televisions, set-top boxes, etc., and may also include virtualized computing examples. The virtualized computing examples may include virtual machines for computer systems, operating systems, servers, etc.

[0055] The clients (4A, 4B, ... 4N) may include multiple client programs, such as a video app, a live streaming app, or a mini program, that incorporate the barrage system. In an embodiment of the present application, content such as videos provided by the service platform 2 can be presented by the client programs, and the barrage content can be presented in a specific manner by the barrage system.

[0056] The clients (4A, 4B, ... 4N) may include an interface, which may include a touchpad, touchscreen, mouse, keyboard, or other sensory element. For example, the input element may be configured to accept user commands that can cause the clients (4A, 4B, ... 4N) to perform various operations, such as barrage input.

[0057] It should be noted that the above facilities are merely examples, and the number and types of facilities can be adjusted according to different scenarios or needs.

[0058] The technical solutions of the present application will be described below through several examples, taking a client (e.g., 4A) as the execution subject. It should be understood that these examples can be implemented in many different forms and should not be construed as being limited to the examples described herein.

[0059] Example 1 FIG. 2 is a schematic diagram showing a flowchart of a barrage display method according to a first embodiment of the present application.

[0060] As shown in FIG. 2, the barrage display method may include steps S200 to S204, in which: In step S200, a video playback area for playing the target video is displayed.

[0061] In step S202, candidate barrages corresponding to the target moving image are acquired.

[0062] In step S204, a target barrage is displayed in the video playback area based on the candidate barrage, and the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.

[0063] According to this embodiment, the display time of the target barrage displayed in the video playback area can be dynamically adjusted according to the amount of effective information of the target barrage, so that barrages with different amounts of effective information can have more appropriate presentation times in the video playback area, thereby improving the readability and interactivity of the barrage and effectively optimizing the display effect and user experience of the barrage.

[0064] Steps S200 to S204 and other optional steps will be described in detail below.

[0065] Step S200 Now, display the video playback area for playing the target video.

[0066] The video playback area may be an area or combination of areas on a device screen for displaying video content (e.g., a target video) and may include a player, controls, and / or other display elements such as play / pause, volume control, speed, progress bar, and / or barrage settings, where the player may support various video types such as live streaming, on-demand (movies, TV shows, user-uploaded videos, animations, etc.), and embodiments of the present invention are not limited thereto.

[0067] Step S202 Then, the candidate barrage corresponding to the target video is obtained.

[0068] A target video can be associated with a danmaku pool, which can store communication information (danmaku) posted by viewers while they are watching the target video. The candidate danmaku can be all danmaku in the danmaku pool, or a portion of danmaku selected from the danmaku pool based on pre-defined criteria. Here, the selection criteria can include random selection, viewer level, type of danmaku, blocked words, posting time, etc.

[0069] Step S204In the method, a target barrage is displayed in the video playback area based on the candidate barrage, and the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.

[0070] Candidate barrages related to the target video can be displayed overlaid on the target video.

[0071] In some selectable examples, the candidate barrage can be displayed in a specific display format in the target video based on preset trigger logic (e.g., a specific time period), i.e., the target barrage can be displayed in the video playback area. For example, the target barrage can be moved or fixed to full screen, 1 / 4 screen, 1 / 2 screen, 3 / 4 screen, top / bottom, etc. During display, specific interactions or special effects can be further provided depending on the settings.

[0072] Illustratively, the target barrage may slide in from the right side of the player screen and continue to slide horizontally until it completely slides out the left side of the player screen. While moving, the target barrage may be displayed on the player screen for a certain period of time so that the viewer can view it. In this case, the distance the target barrage moves may be the sum of the length of the player screen and the pixel value corresponding to the length of the target barrage. If the video playback area is the same size and the display time of the barrage is a fixed value (e.g., 7 seconds), a long barrage (e.g., number of characters ≥ 20) will move faster than a short barrage, and therefore the long barrage will quickly cross the video playback area, making it difficult for the viewer to read.

[0073] As can be seen from the above, in the barrage display means of the related art, barrages of different lengths have the same display time or movement speed, or if the display time is set only according to the length of the barrage, the more characters in the barrage, the longer the display time, resulting in the following technical defects: (1) The display time for long barrages is too short, resulting in a poor effect; (2) The display time for long, meaningless barrages is too long, occupying too much screen space. Unlike the related art, the embodiments of the present application do not rely on fixed thinking and creatively configure the display time of the target barrage in the video playback area to be positively correlated with the amount of effective information of the target barrage, that is, the presentation time of the barrage in the video playback area is estimated according to the amount of effective information, thereby ensuring a reasonable display time and overcoming the above technical defects and technical prejudices.

[0074] Here, the effective information amount can be determined based on the length of the target barrage, the richness of the content, the relevance to the target video, the presence or absence of links, the type of barrage (for example, whether it is a jump barrage), etc. There are various methods for obtaining the effective information amount, such as machine learning and natural language analysis. One exemplary solution is provided below.

[0075] In an alternative embodiment, the effective information amount of the target barrage can be obtained by obtaining the information density and / or viewing difficulty of the barrage. The effective information amount of the barrage is determined based on the information density and / or viewing difficulty.

[0076] For example, a grammatical structure analysis and / or semantic analysis of the target barrage comment can be performed based on statistics or machine learning to obtain the information density and / or viewing difficulty of the barrage comment. For example, in an alternative embodiment, natural language processing technology can be used to perform word segmentation on the target barrage comment to obtain multiple subword sequences. Feature extraction and feature fusion can be performed on each subword sequence using word embedding or part-of-speech tagging to obtain a feature vector. The feature vector is input into a pre-trained difficulty recognition model, and a score corresponding to the target barrage comment is output by the difficulty recognition model. The viewing difficulty of the target barrage comment can be quickly determined based on the score corresponding to the target barrage comment and a preset score-viewing difficulty mapping table.

[0077] Here, information density may include the number of characters, the number of words, the number of emojis, the number of special characters and / or the complexity of the grammatical structure of the target barrage.

[0078] In an alternative embodiment, the information density may further include the length of the target barrage, which may be determined based on the character drawing interface provided by the platform (client), the font set by the user / system, and the font size of the target barrage.

[0079] The viewing difficulty may include the language complexity, type of emotion, expression method, and / or number of themes of the target barrage, etc. Based on the information density and / or viewing difficulty and a preset rule, the effective information amount of the target barrage can be effectively and accurately determined.

[0080] In this embodiment, the effective information amount of the barrage is determined based on the information density and viewing difficulty of the target barrage, and the display time of the target barrage can be adjusted more flexibly and accurately based on the effective information amount, thereby further optimizing the display effect of the barrage in the video, which is different from related technologies that are limited by the number of characters in the barrage.

[0081] In some embodiments, the barrage display rules may be configured such that the greater the amount of effective information in the target barrage, the longer the display time. For example, the amount of effective information in a barrage may be positively correlated, and in the case of Chinese, the display time for a 15-character barrage may be 7 seconds, the movement of a 40-character barrage may be 10 seconds, and the display time for an 80-character barrage may be 12 seconds. In this embodiment, by setting a relatively long barrage to move continuously for a longer period of time on the video playback area, the movement speed of each individual character in the barrage can be controlled within the viewer's optimal viewing speed range, thereby helping the user to more fully understand the barrage content and further enhancing the user's perception of the richness of the content.

[0082] In some embodiments, the barrage display rules may be configured to gradually slow down the increment of the display time as the amount of effective information increases. In practical applications, because there is a positive correlation between the amount of effective information in the barrage and the display time, if the barrage is too long (e.g., 100 words), the display time may become too long, occupying screen space for a long time, disrupting the presentation of the video content and degrading the user experience. To alleviate this problem, the increment of the display time may be gradually slowed down as the amount of effective information in the barrage increases, thereby controlling the display time within a reasonable range and avoiding visual interference with the viewer caused by some barrages occupying screen space for a long time. Furthermore, lengthening the display time according to the amount of effective information in the barrage makes it easier for the viewer to view and understand the barrage content, further optimizing the display effect of the barrage.

[0083] In some embodiments, a somewhat long barrage may pause for a predetermined time after moving to a predetermined position, and the time-effective information amount of the pause may be related to the information density of the barrage, the viewing difficulty, the current barrage density on the video screen, and the position of the next barrage at the same height, etc.

[0084] For example, the barrage may return from a stationary state to a moving state when the next barrage at the same height is about to catch up. For example, the movement speed of a long barrage may be slowed down, and then returned to its original speed just before the next barrage on the same trajectory as the long barrage catches up.

[0085] It should be understood that the "same height" described in the embodiments of the present invention is not limited to the completely identical height range of the danmaku when displayed, but may also refer to overlapping height ranges of the danmaku when displayed. For example, if the height range of the previous danmaku when displayed is 15 to 25 pixels, and the height range of the next danmaku when displayed is 15 to 25 pixels or 23 to 38 pixels, the next danmaku can be considered to be "the next danmaku at the same height."

[0086] In the above embodiments, a method for dynamically adjusting the display time of a target barrage of bullets according to the amount of effective information of the target barrage of bullets is described as an example to optimize the barrage of bullets display effect. In actual applications, the barrage of bullets display effect is also affected by various factors such as the size of the video playback area, resolution, display format, etc. Methods for further optimizing the barrage of bullets display effect will be described later with reference to more embodiments.

[0087] In an alternative embodiment, as shown in FIG. 3, step S204 may include the following steps S300 and S302.

[0088] In step S300, information relating to the size of the video playback area is obtained.

[0089] In step S302, the display time is dynamically adjusted based on at least the amount of effective information of the target barrage and information related to the size of the video playback area.

[0090] In practical applications, the size of the video playback area has various effects on the display effect of the barrage. For example, the length of the video playback area directly affects the actual movement distance of the barrage. For the same barrage, different font sizes can be used for different video playback area sizes to ensure a good display effect of the barrage. Different layout methods for the barrage can be used depending on the size of the video playback area to ensure proper display of the barrage. To further optimize the barrage display effect and adapt to different devices, size-related information for the video playback area can be obtained to adjust the display time of the barrage. For example, size-related information for the video playback area can be jointly determined based on device information (e.g., the screen size of the model), display mode (e.g., landscape, portrait, full screen, non-full screen, etc.), screen configuration parameters, etc. Here, the size-related information can include the length of the video playback area, the text zoom ratio corresponding to the video playback area, etc. Next, by dynamically adjusting the display time based on the changes in the effective information amount of the target barrage and the size-related information of the video playback area, multiplexing can be realized in various playback devices with different player sizes and scenarios where the effective information amount of the barrage is different, and the barrage display effect can be further optimized.

[0091] In practical applications, the effective information amount of the target barrage and the size-related information of the video playback area can be combined to dynamically adjust the display time of the target barrage by weighted averaging, establishing a linear or nonlinear relationship, setting a threshold, etc. Several exemplary solutions are provided below.

[0092] In an alternative embodiment, as shown in FIG. 4, step S302 may include the following steps S400 and S402.

[0093] In step S400, a time influence factor is determined based on the effective information amount of the barrage and information related to the size of the video playback area.

[0094] In step S402, the display time is dynamically adjusted based on the time influencing factors.

[0095] In this embodiment, in order to eliminate the influence of the player size of the equipment on the display time, the time influence factor can be finally determined based on the effective information amount of the target barrage and the size related information of the video playback area.

[0096] For example, the effective information amount of the target barrage is the first time influence factor, and the size-related information of the video playback area is the second time influence factor. The two time influence factors can be weighted according to the actual situation, and the time influence factor can be obtained by weighted averaging.

[0097] For example, the calculation formula may be expressed as time influence factor X=m1*effective information amount of target barrage+m2*size-related information of video playback area, where m1 and m2 represent weights.

[0098] In an alternative embodiment, the time influence factor may be the ratio of the effective information amount of the target barrage to the size-related information of the video playback area, which can be expressed as time influence factor X = effective information amount of barrage / size-related information of the video playback area, where X is a dimensionless quantity without a unit and only has a numerical magnitude. This time influence factor makes the relationship between variables clearer, simplifies the problem, reduces calculation complexity, and makes it easier to adjust the display time.

[0099] In an alternative embodiment, as shown in FIG. 5, step S400 may include the following steps S500, S502, and S504.

[0100] In step S500, the length of the target barrage is obtained based on the amount of effective information of the target barrage.

[0101] In step S502, the length of the video playback area is determined based on the size-related information of the video playback area.

[0102] In step S504, the ratio between the length of the target barrage and the length of the video playback area is calculated, and the ratio is determined as the time influence factor.

[0103] In this embodiment, the length of the target barrage can be obtained based on the amount of effective information of the target barrage, and the length of the video playback area can be determined based on information related to the size of the video playback area.

[0104] For example, the screen occupancy rate, i.e., the horizontal ratio of the target barrage to the video playback area, can be calculated based on the length of the target barrage and the length of the video playback area. By using this screen occupancy rate as a time-influencing factor, it is possible to effectively avoid the influence of the video playback area length on the barrage display time and ensure the rationality of the display time.

[0105] In an alternative embodiment, step S402 may include the following step S600.

[0106] In step S600, the display time is dynamically adjusted based on the time influencing factors and the preset reference display time.

[0107] The reference display time can be obtained in various ways, such as empirical setting, experimental study, data analysis, etc. An exemplary solution is provided below.

[0108] In an alternative embodiment, as shown in FIG. 6, the preset reference display time can be set by the following operations: Step S700 of determining the viewing habits of a viewer on a calibration device for a standard barrage of available information; Step S702: determining an optimal viewing time corresponding to the standard effective information volume barrage based on the viewing habits of the viewer in the calibration device for the standard effective information volume barrage; and step S704 of determining the optimum viewing time corresponding to the standard effective information amount barrage as a preset reference display time.

[0109] For example, the calibration device can be selected according to actual needs; for example, for a 6-inch device, the video playback area can be 6 inches accordingly. Multiple standard effective information volume barrages can be set according to actual situations, such as a barrage with an effective information volume of 120, a barrage with an effective information volume of 15, etc. In actual applications, the viewing habits of the viewer for the standard effective information volume barrage on the calibration device can be determined based on the recorded viewing behavior (dragging the progress bar, pausing repeatedly, slowing down the playback speed), viewing time (e.g., average viewing time), etc. Based on the viewing habits, the optimal viewing time for the standard effective information volume barrage can be determined (e.g., 7 seconds for a barrage with an effective information volume of 120, and 1.8 seconds for a barrage with an effective information volume of 15), which can be used as the preset reference display time. In some embodiments, a mapping relationship between screen occupancy and display time can be further established, for example, (120 / 6,7), (15 / 6,1.8), which becomes (20,7), (2.5,1.8).

[0110] In embodiments of the present invention, it is understood that data related to a viewer, if applicable to a particular product or technology, may require separate permission or consent from the viewer, and the collection, use and processing of related data should comply with the relevant laws and standards of the relevant countries and regions.

[0111] In this embodiment, the optimal reading time of the barrage can be customized according to individual differences, that is, the standard display time can be optimized according to the user's viewing habits, thereby better satisfying the needs of users, optimizing the barrage display effect, and improving the user experience.

[0112] In the above embodiment, a preset reference display time is used as a reference, and the display time can be dynamically adjusted based on the time-influencing factor. For example, with the reference display time as the reference, as the time-influencing factor increases, the display time also increases accordingly. Using the reference display time as the reference can maintain stability and consistency in the display time adjustment, reduce unnecessary changes caused by external factors, improve the efficiency and accuracy of the display time adjustment, and further optimize the barrage display effect.

[0113] In an alternative embodiment, step S600 may include the following step S800.

[0114] In step S800, a display time is determined within a preset display time interval based on the time influencing factors and a preset reference display time.

[0115] To avoid the situation where the display time of a target barrage with too few characters is too short or too long for a target barrage with too many characters, a display time interval can be preset. After limiting the display time interval, the display time of the target barrage is changed based on time-influencing factors and a preset reference display time, ensuring the rationality of setting and adjusting the display time.

[0116] As mentioned above, the display time can be dynamically adjusted by weighted averaging, establishing linear or non-linear relationships, setting thresholds, etc. One particular exemplary solution is as follows: Given a reference display time and a display time interval [t min ,t max ] is preset, where t min is the minimum display time, t max is the maximum display time. The display time calculation formula can be expressed as follows: f(x)=t max -e a-bX

[0117] In the formula, X is a dimensionless quantity, which is the ratio of the effective information amount of the target barrage to the size-related information of the video playback area, a and b are constants, and tmin , t max and can be determined based on a preset reference display time. For example, if the preset reference display times are (20,7) and (2.5,1.8), the calculation formulas for a and b can be expressed as follows: b=ln[(t max -t min ) / (t max -7)] / 17.5 a=ln(t max -7)+20b.

[0118] In the above formula, the standard display time is used as a reference, and the lower and upper limits of the barrage display time are set. As the dimensionless quantity (time influence factor) increases, the barrage display time follows a gradual increase curve, as shown in Figure 7. As can be seen from Figure 7, in a selectable embodiment, the larger the time influence factor of the target barrage, the longer the display time. As the time influence factor increases, the increment of the display time gradually slows down (converging to a preset value, which can be set by the user or technician), slowly reaching the maximum display time t max approaching.

[0119] As explained, FIG. 7 only shows a schematic increase curve of the display time, which is intended to represent the tendency that the display time increases with an increase in the dimensionless quantity, and other curves that fit the characteristics of the increase curve should also be considered to fall within the protection scope of the embodiments of the present invention.

[0120] In this embodiment, by dynamically adjusting the display time based on the time-influencing factors, the reference display time, and the display time interval, barrages with different numbers of characters (e.g., [1, 100]) can all complete their transition within an appropriate time, that is, ensure a more appropriate presentation time in the video playback area, thereby improving the readability and interactivity of the barrage and effectively optimizing the display effect and user experience of the barrage.

[0121] In practical applications, when the screen occupancy rate is small (for example, 0-20%), the barrage display method according to the above embodiment has the drawback that barrages with different screen occupancy rates flow by at approximately the same speed, making the barrage display bland and monotonous, resulting in a poor viewing experience. Therefore, in order to further optimize the visual effect of the barrage, some exemplary solutions are provided below.

[0122] In an alternative embodiment, as shown in FIG. 8, step S302 may further include the following steps S800 and S802.

[0123] In step S800, a text enlargement / reduction ratio corresponding to the video playback area is determined based on the size-related information of the video playback area.

[0124] In step S802, the display time is dynamically adjusted based on the time influence factor and the text scaling factor.

[0125] As mentioned above, the size-related information may include a text scaling factor. The text scaling factor may include a font size scaling factor, a line spacing scaling factor, etc. A video playback area of ​​a certain size may be associated with a specified font size scaling factor for adjusting the font size of the target barrage, thereby ensuring the display effect of the target subtitle in different video playback areas. The font size scaling factor may be adjusted according to the actual visual effect.

[0126] For example, the font size scaling factor corresponding to a 3-inch video playback area may be 0.32, the font size scaling factor corresponding to a 4-inch video playback area may be 0.48, and the font size scaling factor corresponding to a 5-inch video playback area may be 0.64.

[0127] In this embodiment, by obtaining the text zoom ratio corresponding to the video playback area as one of the factors for adjusting the display time, it is possible to effectively avoid the influence of different sized video playback areas on the barrage display time, make the display time of barrages with the same amount of effective information in different video playback areas the same, and ensure the rationality of the display time.

[0128] In an alternative embodiment, step 802 may include the following step S900.

[0129] In S900, the display time is determined within a preset display time interval based on the time influencing factor, the text scaling rate and a preset reference display time.

[0130] As mentioned above, a single display time interval can be preset. After limiting the display time interval, the display time of the target barrage can be changed based on the time-influencing factors, text scaling rate, and the preset reference display time, ensuring the rationality of the setting and adjustment of the display time.

[0131] Specifically, the display time can be dynamically adjusted by weighted averaging, establishing linear or non-linear relationships, setting thresholds, and the like.

[0132] One particular exemplary solution is as follows: min ,t max ] is preset, where t min is the minimum display time, t max is the maximum display time. The display time calculation formula can be expressed as follows: f(x)=t min +(t max -t min ) / (1+e -k(X-a) ) a=ln((t max -t min ) / d t -1) / k+r r=0.2p

[0133] In the formula, X is a dimensionless quantity, which is the ratio of the effective information amount of the target barrage to the size-related information of the video playback area, and d t is the time tolerance, k is a control factor for controlling the rate at which the display time increases, and p is the text scaling factor.

[0134] k, d t It should be noted that the value of r can be dynamically adjusted according to the actual situation. t =0.1s, k=0.2, r=0.5p.

[0135] In the above formula, the base display time is used as a reference, and the barrage display time is limited by lower and upper limits. As the dimensionless quantity (time influence factor) increases, the barrage display time follows a gradual increase curve, as shown in Figure 9. As can be seen from Figure 9, in an alternative embodiment, the larger the time influence factor of the target barrage, the longer the display time. As the time influence factor increases, the display time increment increases in three stages.

[0136] In the first increase stage of the time influence factor, the display time increases slowly at the first increase rate. The difference between the display time at the end and the start of this increase stage is the time tolerance value d. t , for example, equal to 0.1 seconds. In the second increase stage of the time influence factor, the display time increases at a second rate, which is significantly smaller than the first rate. In the third increase stage of the time influence factor, the display time increment gradually slows down (converging to a preset value, which can be set by the user or technician), slowly approaching the maximum display time tmax.

[0137] As will be explained, FIG. 9 only shows a schematic curve of the display time, which first increases smoothly, then increases dramatically, and finally increases smoothly, in order to express a different trend in which the display time increases with an increase in the dimensionless quantity.

[0138] The barrage display method provided by this embodiment overcomes the drawbacks of the previous embodiment. When the screen occupancy rate is small (e.g., 0-20%), the display time of barrages with different screen occupancy rates is approximately the same. At this time, long barrages scroll by at a high speed, while short barrages scroll by at a low speed, adding a unique touch to the barrage display. Furthermore, since long barrages contain less useful information, the fast scrolling does not affect the viewing experience. On the other hand, when the screen occupancy rate is large (e.g., 20-100%), the larger the screen occupancy rate, the longer the display time, i.e., the slower the movement speed, effectively optimizing the display effect of the barrage with a large amount of useful information. In this way, this embodiment optimizes the visual effect of each barrage and significantly improves the viewing experience.

[0139] Here, the display time interval can be preset by the system or manually set by the user. One exemplary configuration means is provided below.

[0140] In an alternative embodiment, the display time interval may include a minimum display time and a maximum display time. Correspondingly, the display time interval may be set by the following operations: displaying a control screen having a first numerical setting area and a second numerical setting area; determining the minimum display time in response to a user's operation to set a first numerical value in the first numerical setting area; and determining the maximum display time in response to a user's operation to set a second numerical value in the second numerical setting area.

[0141] In practical applications, the video playback area may be configured with a barrage setting control. In response to a user-selected barrage setting control, a control screen may be displayed, for example, fixed on top of a specific area of ​​the video playback area. The control screen may include a first numerical setting area and a second numerical setting area. Here, the first numerical setting area may correspond to the duration of one character, i.e., the minimum display time. The second numerical setting area may correspond to the maximum duration, i.e., the maximum display time. In response to a user's numerical setting operation in the different numerical setting areas (e.g., custom input, dragging a value bar, selecting a value, etc.), the minimum display time and the maximum display time may be determined accordingly.

[0142] In this embodiment, a visual setting screen for the display time interval is provided, which allows users to adjust it themselves according to their actual needs, thereby further improving flexibility and user experience.

[0143] In some embodiments, the display time interval can be set by the following operation: displaying a barrage setting panel, in which one or more barrage speed controls are provided, each barrage speed control corresponding to one display time interval; and, in response to selecting one of the barrage speed controls, determining the display time interval corresponding to that barrage speed control as the display time interval.

[0144] In this embodiment, by associating a plurality of different display time intervals with a plurality of different barrage speed controls (slow, relatively slow, medium, relatively fast, fast), the user can quickly determine the display time interval by selecting one barrage speed control, thereby reducing the difficulty of operation.

[0145] In an alternative embodiment, the video playback area may further include a speed control. The barrage display method may further include the following steps S900, S902, and S904.

[0146] In step S900, a speed adjustment panel with one or more numerical controls set thereon is displayed in response to the selected speed control.

[0147] In step S902, the barrage playback speed or video playback speed is determined in response to the selection operation of one of the numerical controls.

[0148] In step S904, the display time is updated according to a preset rule based on the barrage playback speed or the video playback speed.

[0149] For example, in response to a user's selection of a speed control in the video playback area, a speed adjustment panel is popped up. The speed adjustment panel provides numerical controls such as 0.5x, 0.75x, 1.0x, 1.25x, 1.5x, and 2.0x. In response to the selected numerical control, the danmaku playback speed or video playback speed is determined. Depending on the determined danmaku playback speed or video playback speed, the display time of the danmaku can be scaled by the same factor, thereby maintaining synchronization between the danmaku and the video content.

[0150] In this embodiment, the display time of the barrage is doubled according to the user's manual adjustment and the change in video speed, and synchronization is maintained, thereby improving the user's viewing experience.

[0151] To make the present application easier to understand, one exemplary application is provided below in conjunction with FIGS.

[0152] In step S100, the effective information amount of the barrage and size-related information of the player screen (video playback area) are obtained. Here, the effective information amount includes the length of the barrage, and the size-related information includes the length of the video playback area and the corresponding font size scaling ratio.

[0153] In step S102, the optimal reading time of the barrage is limited to match the user's viewing habits, for example, the standard display time for a standard effective amount of information barrage (effective amount of information 20) on a 6-inch model is set to 7 seconds. Step S103 or step S104 is then executed.

[0154] In step S103, the reference display time is used as a reference, and the lower limit t min and upper limit t max After limiting the above, the barrage display time shows a gradual increase curve as the dimensionless quantity increases.

[0155] Here, the dimensionless quantity X is the information relating to the effective information amount of the barrage / size of the video playback area.

[0156] The display time of the barrage is f(x)=t max -e a-bX It can be expressed as:

[0157] In the formula, a and b are t min , t max , can be determined according to the reference display time.

[0158] In step S104, the reference display time is used as a reference, and the lower limit t min and upper limit t max After limiting the above, the display time is dynamically adjusted according to the time influence factor, the font size scaling rate, to obtain a display time curve that first increases smoothly, then increases dramatically, and finally increases smoothly, which can be expressed as follows: f(x)=t min +(t max -t min ) / (1+e -k(X-a) ) a=ln((t max -t min ) / d t -1) / k+r r=0.2p

[0159] In the formula, X is a dimensionless quantity, which is the ratio of the effective information amount of the target barrage to the size-related information of the video playback area, and d tis the time tolerance, and the display time interval of the barrage when the screen occupancy is in a predetermined range (for example, the display time when the screen occupancy is 0 to 20%) is [t min ,t min +d t ]), k is a control factor for controlling the rate of increase in the display time, and p is the text zoom ratio.

[0160] In some embodiments, dt=0.1s, k=0.2, and the values ​​of both can be adjusted according to the actual situation, for example, dt=0.5s, k=0.8, r=0.5p.

[0161] FIG. 10 is a diagram showing an example of a barrage display according to the related art, and FIG. 11 is a diagram showing an example of a barrage display provided by an embodiment of the present application. As shown in FIG. 10, in the related art, for a short barrage and a long barrage that appear simultaneously with a frame, when the short barrage is about to disappear, the long barrage also appears to disappear, that is, the display time of the short and long barrages is the same. As shown in FIG. 11, in the embodiment of the present application, for a short barrage and a long barrage that appear simultaneously with a frame, when the short barrage is about to disappear, the long barrage is still moving slowly, that is, the more effective information the barrage contains, the longer the display time of the barrage, which improves the readability and interactivity of the barrage and effectively optimizes the barrage display effect and user experience.

[0162] FIG. 12 is a diagram comparing the application effect of the barrage display method provided by the embodiment of the present application with that of the related art. Here, the upper diagram illustrates an application example of the embodiment of the present application, and the lower diagram illustrates an application example of the related art. The barrages displayed by both may have the same number of characters or amount of effective information (they may even be the same barrage). When both barrages appear on the screen at the same time and the same amount of time has passed, as shown in FIG. 12, the upper barrage has a shorter actual movement distance and the lower barrage has a longer actual movement distance. That is, the upper barrage moves at a slower speed than the lower barrage. As can be seen from this, in the same video playback area, the upper barrage has a longer presentation time. In other words, in the embodiment of the present application, a more reasonable presentation time can be set for barrages with a larger amount of effective information, improving the barrage display effect.

[0163] In summary, in this exemplary application, (1) the effective information volume of a single barrage and information related to the screen size of the display device are used as influencing factors for the barrage display time, thereby optimizing the display effect of the barrage in the video and ensuring the user's viewing experience of the barrage content. (2) The display time of each barrage is dynamically adjusted according to information related to the size of the player screen and changes in the length of the effective information volume of the barrage, ensuring that barrages with different numbers of characters have more appropriate presentation times and ensuring that the movement speed of each character of the barrage falls within the user's optimal viewing speed range, thereby helping the user to more fully understand the content of long barrages. (3) The barrage display is tasteful, ensuring the visual effect of each effective information volume of barrage.

[0164] Example 2 FIG. 13 is a block diagram of a barrage display device according to a second embodiment of the present application. The device can be divided into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the embodiment of the present application. The program modules described in the embodiments of the present application are a series of computer program instruction segments that can perform specific functions. The following description will specifically introduce the functions of each program module in this embodiment. As shown in FIG. 13, the device 1000 may include a first display module 1100, an acquisition module 1200, and a third display module 1300, where: The first display module is used to display a video playback area for playing a target video.

[0165] The acquisition module is used to acquire candidate barrages corresponding to the target video.

[0166] A second display module is used to display a target barrage in the video playback area based on the candidate barrage, and the display time of the target barrage in the video playback area is positively correlated with the effective information amount of the target barrage.

[0167] In an alternative embodiment, the amount of effective information of the target barrage is determined by the following operation: obtaining the information density and / or viewing difficulty of the target barrage; and determining an effective information amount of the target barrage based on the information density and / or viewing difficulty.

[0168] In an alternative embodiment, the information density includes the length of the target barrage.

[0169] In an alternative embodiment, the viewing difficulty of the target barrage can be adjusted by the following operations: performing a word segmentation process on the target barrage to obtain a plurality of subword sequences; Performing feature extraction and feature fusion for each subword sequence to obtain a feature vector; inputting the feature vector into a pre-trained difficulty recognition model, and outputting a score corresponding to the target barrage through the difficulty recognition model; and determining a viewing difficulty of the target barrage based on the score of the target barrage.

[0170] In an optional embodiment, displaying the target barrage in the video playback area includes: obtaining size-related information of the video playback area; and dynamically adjusting the display time of the target barrage based on at least the effective information amount of the target barrage and the size related information of the video playback area.

[0171] As an optional embodiment, dynamically adjusting the display time based on at least the effective information amount of the target barrage and the size related information of the video playback area includes: determining a time influence factor based on the effective information amount of the target barrage and the size related information of the video playback area; and dynamically adjusting the display time based on the time-influencing factor.

[0172] As an optional embodiment, determining the time influence factor based on the effective information amount of the target barrage and the size related information of the video playback area includes: obtaining a length of the target barrage based on an amount of effective information of the target barrage; determining a length of the video playback area based on size-related information of the video playback area; and determining a ratio between the length of the target barrage and the length of the video playback area, and determining the ratio as the time influence factor.

[0173] In an optional embodiment, dynamically adjusting the display time based on the time influence factor includes: and dynamically adjusting the display time based on the time influence factor and a preset reference display time.

[0174] As an optional example, dynamically adjusting the display time based on the time influence factor and a preset reference display time may include: determining the display time within a preset display time interval based on the time influencing factor and a preset reference display time;

[0175] As an alternative embodiment, the barrage display device 1000 further comprises: determining a text scaling ratio corresponding to the video playback area based on the size-related information of the video playback area; and dynamically adjusting the display time based on the time influence factor and the text scaling factor.

[0176] As an optional example, dynamically adjusting the display time of the target barrage based on a time-influencing factor of the target barrage and the text scaling factor includes: determining the display time within a preset display time interval based on the time influencing factor, a text scaling rate, and a preset reference display time;

[0177] As an alternative embodiment, the greater the time influence factor, the longer the display time. As an alternative embodiment, as the time influence factor increases, the display time increments converge to a preset value.

[0178] As an alternative embodiment, in a first increase stage of the time influence factor, the display time increases at a first increase rate, in a second increase stage of the time influence factor, the display time increases at a second increase rate, and in a third increase stage of the time influence factor, the growth rate of the display time converges to a preset value; Here, the first increase rate is smaller than the second increase rate.

[0179] In an alternative embodiment, the preset reference display time can be set by the following operation: determining the viewing habits of a viewer on a calibration device relative to a standard effective information barrage; determining an optimal viewing time corresponding to the standard effective information volume barrage based on the viewing habits of a viewer in the calibration device for the standard effective information volume barrage; and determining an optimum viewing time corresponding to the standard effective information volume barrage as the predetermined reference display time.

[0180] In an alternative embodiment, the display time interval includes a minimum display time and a maximum display time; Correspondingly, the display time interval is adjusted by the following operations: Displaying a control screen in which a first numerical value setting area and a second numerical value setting area are set; determining the minimum display time in response to a first value setting operation by a user in the first value setting area; and determining the maximum display time in response to a second numerical value setting operation by the user in the second numerical value setting area.

[0181] In an alternative embodiment, the method further comprises: displaying a speed adjustment panel having one or more numeric controls; determining a barrage playback speed or a video playback speed in response to a selection operation of one of the numerical controls; and updating the display time in accordance with a preset rule based on the barrage playback speed or the video playback speed.

[0182] Example 3 FIG. 13 schematically illustrates the hardware architecture of a computer system 10000 suitable for implementing a barrage display method according to a third embodiment of the present application. In some embodiments, the computer system 10000 may be a terminal device such as a smartphone, a wearable device, a tablet, a personal computer, an in-vehicle terminal, a game console, a virtual device, a workstation, a digital assistant, a set-top box, or a robot. In some other embodiments, the computer system 10000 may be a rack server, a blade server, a tower server, or a cabinet server (an independent server or a server cluster consisting of multiple servers). As shown in FIG. 13, the computer system 10000 includes, but is not limited to, a memory 10010, a processor 10020, and a network interface 10030, which are communicatively connected to each other via a system bus. Here, The memory 10010 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer equipment 10000, such as a hard disk or internal memory of the computer equipment 10000. In some other embodiments, the memory 10010 may be an external storage device of the computer equipment 10000, such as an external hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card, etc., installed in the computer equipment 10000. Of course, the memory 10010 may include both an internal storage module of the computer equipment 10000 and its external storage device. In this embodiment, the memory 10010 is typically used to store the operating system and various application software installed on the computer equipment 10000, such as the program code for a barrage display method. Furthermore, the memory 10010 may also be used to temporarily store various data that has been output or is to be output.

[0183] The processor 10020 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other chip in some embodiments. The processor 10020 is typically used to control the overall operation of the computer equipment 10000, for example, to perform control and processing related to data exchange or communication with the computer equipment 10000. In this embodiment, the processor 10020 is used to execute program code or process data stored in the memory 10010.

[0184] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is typically used to establish a communication link between the computer equipment 10000 and other computer equipment. For example, the network interface 10030 connects the computer equipment 10000 to an external terminal via a network and establishes a data transmission path, a communication link, etc. between the computer equipment 10000 and the external terminal. The network may be a wireless or wired network such as an enterprise intranet, the Internet, Global System of Mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth, Wi-Fi, etc.

[0185] As noted, FIG. 13 shows only a computer system having components 10010-10030, but it should be understood that not all of the components shown need be implemented, and that more or fewer components may alternatively be implemented.

[0186] In this embodiment, the barrage display method stored in memory 10010 can also be divided into one or more program modules and executed by one or more processors (e.g., processor 10020) to complete the embodiments of the present application.

[0187] Example 4 An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the barrage display method in the embodiment are realized.

[0188] In this embodiment, the computer-readable storage medium may include flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or internal memory of the computer device. In some other embodiments, the computer-readable storage medium may be an external storage device of a computer device, such as an external hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card, etc., installed in the computer device. Of course, the computer-readable storage medium may include both the internal storage unit of a computer device and its external storage device. In this embodiment, the computer-readable storage medium is typically used to store an operating system and various application software installed in the computer device, such as the program code of the barrage display method in this embodiment. Furthermore, the computer-readable storage medium can also be used to temporarily store various data that has been output or is to be output.

[0189] Example 5 An embodiment of the present application also provides a computer program product including a computer program, which, when executed by a processor, implements the method of the above-described embodiment.

[0190] Of course, each module or step of the embodiments of the present application described above may be implemented using a general-purpose computing device, may be centralized in a single computing device, or may be distributed across a network of multiple computing devices, and optionally may be implemented in program code executable by the computing device and thus stored in a storage device and executed by the computing device, and in some cases, the steps illustrated or described may be performed in a different order than described herein, or may be separately manufactured into individual integrated circuit modules, or may be performed by manufacturing multiple modules or steps into a single integrated circuit module. Thus, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0191] It should be noted that the above is merely a preferred embodiment of the present application and is not intended to limit the scope of protection of the patent of the present application. Any equivalent configuration or equivalent flow conversion made by the specification and accompanying drawings of the present application, or any direct or indirect application thereof in other related technical fields, are all similarly included in the scope of protection of the present application.

Claims

1. A barrage display method, comprising: Displaying a video playback area for playing the target video; Obtaining candidate barrages corresponding to the target video; A barrage display method characterized by including the step of displaying a target barrage in the video playback area based on the candidate barrage, wherein the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.

2. The effective information content of the target barrage is calculated by the following operation: obtaining the information density and / or viewing difficulty of the target barrage; and determining an effective information amount of the target barrage based on the information density and / or viewing difficulty.

3. 3. The method of claim 2, wherein the information density includes a length of the target barrage.

4. The viewing difficulty of the target barrage can be adjusted by the following operations: performing a word segmentation process on the target barrage to obtain a plurality of subword sequences; Performing feature extraction and feature fusion for each subword sequence to obtain a feature vector; inputting the feature vector into a pre-trained difficulty recognition model, and outputting a score corresponding to the target barrage through the difficulty recognition model; and determining a viewing difficulty of the target barrage based on the score of the target barrage.

5. Displaying the target barrage in the video playback area includes obtaining size-related information of the video playback area; and dynamically adjusting the display time of the target barrage based on at least an effective information amount of the target barrage and size-related information of the video playback area.

6. Dynamically adjusting the display time based on at least the effective information amount of the target barrage and the size related information of the video playback area determining a time influence factor based on the effective information amount of the target barrage and the size related information of the video playback area; and dynamically adjusting the display time based on the time-influencing factor.

7. Determining the time influence factor based on the effective information amount of the target barrage and the size related information of the video playback area, obtaining a length of the target barrage based on an amount of effective information of the target barrage; determining a length of the video playback area based on size-related information of the video playback area; 7. The method of claim 6, further comprising: determining a ratio between a length of the target barrage and a length of the video playback area; and determining the ratio as the time influence factor.

8. Dynamically adjusting the display time based on the time influence factor includes:

7. The method of claim 6, further comprising dynamically adjusting the display time based on the time-influencing factor and a preset reference display time.

9. Dynamically adjusting the display time based on the time influence factor and a preset reference display time includes:

9. The method of claim 8, further comprising determining the display time within a preset display time interval based on the time-influencing factor and a preset reference display time.

10. determining a text scaling ratio corresponding to the video playback area based on the size-related information of the video playback area; 7. The method of claim 6, further comprising: dynamically adjusting the display time based on the time influence factor and the text scale factor.

11. dynamically adjusting a display time of the target barrage based on a time influence factor of the target barrage and the text scaling factor; 11. The method of claim 10, further comprising determining the display time within a preset display time interval based on the time-influencing factor, a text scaling factor, and a preset reference display time.

12. The method of claim 6, wherein the greater the time influence factor, the longer the display time.

13. 13. The method of claim 12, wherein the display time increments converge to a preset value as the time influence factor increases.

14. In a first increase stage of the time influence factor, the display time increases at a first increase rate, in a second increase stage of the time influence factor, the display time increases at a second increase rate, and in a third increase stage of the time influence factor, the increment of the display time converges to a preset value; 13. The method of claim 12, wherein the first rate of increase is less than the second rate of increase.

15. The preset reference display time can be set by the following operation: determining the viewing habits of a viewer on a calibration device relative to a standard effective information barrage; determining an optimal viewing time corresponding to the standard effective information volume barrage based on the viewing habits of a viewer in the calibration device for the standard effective information volume barrage; and determining an optimal viewing time corresponding to the standard effective information volume barrage as the predetermined reference display time.

16. the display time interval includes a minimum display time and a maximum display time; Correspondingly, the display time interval is adjusted by the following operations: Displaying a control screen in which a first numerical value setting area and a second numerical value setting area are set; determining the minimum display time in response to a first value setting operation by a user in the first value setting area; and determining the maximum display time in response to a second value setting operation by a user in the second value setting area.

17. The method further comprises: displaying a speed adjustment panel having one or more numeric controls; determining a barrage playback speed or a video playback speed in response to a selection operation of one of the numerical controls; The method according to claim 1 , further comprising updating the display time in accordance with a preset rule based on the barrage playback speed or the video playback speed.

18. a first display module used to display a video playback area for playing the target video; an acquisition module used to acquire candidate barrages corresponding to the target video; A barrage display device comprising: a second display module used to display a target barrage in the video playback area based on the candidate barrage, wherein the display time of the target barrage in the video playback area is positively correlated with the amount of effective information of the target barrage.

19. at least one processor; a memory communicatively connected to the at least one processor; 18. A computer system, characterized in that the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 17.

20. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, result in the implementation of a method according to any one of claims 1 to 17.

21. A computer program product comprising a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 17 are implemented.