Method and apparatus for displaying on-screen comment
Through the black hole barrage technology, the sliding display method with the display material position as the entrance or exit is solved, the problem of poor barrage display effect is improved, user interactivity and playability are improved, and user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/114573
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-27
- Filing Date
- 2024-08-26
- Publication Date
- 2025-07-03
AI Technical Summary
The existing barrage display effect is poor, and the interactivity and playability are insufficient, resulting in poor user experience.
The black hole barrage technology is adopted to slide the display with the display material position as the entrance or exit during the display process of barrage comments, so as to realize the instant hidden and special effects of barrage comments, and enhance the display effect.
Improve the display effect of barrage comments and enhance the user experience.
Smart Images

Figure CN2024114573_03072025_PF_FP_ABST
Abstract
Description
Method and device for displaying barrage
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 27, 2023, with application number 202311832078.5 and invention name “Method and device for displaying barrage”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of barrage technology, and in particular to a barrage display method, device, computer equipment, and computer-readable storage medium. Background Art
[0003] With the rapid development of video technology, more and more users can watch various video programs through the Internet. In the process of watching video programs, users can interact with the anchor or other users by sending barrages. The barrage refers to the subtitles that pop up and move in a predetermined direction when watching videos through the Internet. It is a kind of communication information. There is no fixed word for barrage in English. It is usually called: comment, danmaku, barrage, bullet screen, bullet-screen comment, etc. Barrage allows users to post comments or thoughts, but unlike ordinary video sharing websites that only display them in a dedicated comment area under the player, it will appear in real time on the video screen in the form of sliding subtitles to ensure that all viewers can notice it. However, the barrage as described above has poor display effect, lacks interactivity and playability, resulting in a poor user experience.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, apparatus, computer device, and computer-readable storage medium for displaying a bullet screen to solve or alleviate one or more of the technical problems raised above.
[0007] One aspect of an embodiment of the present application provides a method for displaying a bullet screen, the method comprising:
[0008] Playing a target video, the target video being associated with a black hole barrage, the black hole barrage being associated with a first display material;
[0009] The target barrage comment is displayed on the target video by sliding, with the location of the display material as the entrance and / or exit.
[0010] Optionally, the display material includes a first display material and / or a second display material; and the target barrage comment is slidably displayed on the target video using the location of the display material as an entrance and / or exit, comprising:
[0011] Slide and display the target barrage comment on the target video in a first preset direction;
[0012] Displaying the first display material on the sliding track of the target bullet comment and in front of the sliding of the target bullet comment;
[0013] When the characters in the target barrage comment slide to the first position where the first display material is located, the characters that slide to the first position are hidden, forming a display effect in which the characters in the target barrage comment enter a black hole and disappear one by one;
[0014] and / or,
[0015] displaying the second display material at a second position on the target video, where the second position is different from the first position;
[0016] The second position is used as the starting position of the target barrage comment, and the target barrage comment is slid and displayed in a second preset direction, forming a display effect in which the characters in the target barrage comment come out one by one from the other end of the black hole.
[0017] Optionally, the start display time of the first display material and the start display time of the second display material are the same.
[0018] Optionally, the first display material and the second display material do not overlap with other black hole images.
[0019] Optionally, the method further includes:
[0020] When the last character in the target barrage comment slides to the first position, hiding the first display material;
[0021] When the last character in the target bullet comment slides out from the second position, the second display material is hidden.
[0022] Optionally, the first display material includes a first black hole image, and the second display material includes a second black hole image.
[0023] Optionally, the font size of the target barrage comment is positively correlated with the sizes of the first display material and the second display material.
[0024] Optionally, the first display material and / or the second display material is a picture in a frame animation format including a plurality of frames.
[0025] Optionally, sliding and displaying the target bullet screen comment on the target video in a first preset direction includes:
[0026] During the display process, the target video is slid and displayed along the first preset direction at a plurality of different speeds.
[0027] Another aspect of the embodiments of the present application provides a method for displaying a bullet screen, the method comprising:
[0028] During the playback of a target video, obtaining special effect configuration parameters of a target black hole barrage of the target video;
[0029] Loading display materials according to the special effect configuration parameters, and determining a display time interval for the display materials;
[0030] Overlaying and displaying display material on the target video according to the display time interval;
[0031] The target barrage comment is slid and displayed on the target video with the position of the display material as the starting point and / or end point.
[0032] Optionally, the special effect configuration parameters include a special effect identifier, a start time, and an end time;
[0033] Correspondingly, loading display materials according to the special effect configuration parameters and determining a display time interval of the display materials include:
[0034] Loading the display material according to the special effect identifier;
[0035] A display time interval of the display material is determined according to the start time and the end time.
[0036] Optionally, the target bullet comment is slid and displayed on the target video with the position of the display material as the starting point and / or the end point, including:
[0037] Select a target barrage comment from multiple barrage comments of the target video according to a preset rule;
[0038] Identify the target barrage comments;
[0039] The marked target barrage comments are displayed on the target video by sliding, with the location of the display material as the starting point and / or end point.
[0040] Among them, the preset rules include the string length range and / or the target barrage comment density range on the same screen at the same time point.
[0041] Optionally, the display material is associated with a first display material and a second display material;
[0042] Correspondingly, the target bullet comment is slid and displayed on the target video with the position of the display material as the starting point and / or the end point, including:
[0043] Taking the first display material as the intermediate end point, sliding the target bullet comment from the initial position until it reaches the first position where the first display material is located;
[0044] Taking the second display material as the middle starting point, slide the target bullet comment from the second position where the second display material is located to the end edge;
[0045] The target barrage comment slides from an initial position to the first position, then moves from the first position to a second position, and then slides out with the second position as an intermediate starting point and continues to slide in a predetermined direction until reaching an end position.
[0046] Optionally, the method further includes:
[0047] When the playback speed of the target video is updated, the moving speed of the target barrage comment is adjusted, and the playback speeds of the sequence frame animation of the first display material and the sequence frame animation of the second display material are kept unchanged.
[0048] Optionally, the method further includes:
[0049] Receive the character color of the target barrage comment sent by the service platform, where the character color includes a first color and a second color;
[0050] In a case where the target barrage comment is sent by the client itself, adjusting the character color to the first color;
[0051] When the target barrage comment is sent by other clients, the character color is adjusted to the second color.
[0052] Another aspect of an embodiment of the present application provides a device for displaying a bullet screen, the device comprising:
[0053] A playback module, configured to play a target video, wherein the target video is associated with a black hole barrage, and the black hole barrage is associated with a first display material;
[0054] A first display module is configured to slide and display the target bullet screen comment on the target video in a first preset direction;
[0055] A second display module is configured to display the first display material on the sliding track of the target bullet comment and in front of the sliding of the target bullet comment;
[0056] The first hiding module is used to hide the characters in the target barrage comment when the characters in the target barrage comment slide to the first position where the first display material is located, thereby forming a display effect in which the characters in the target barrage comment enter a black hole and disappear one by one.
[0057] Another aspect of an embodiment of the present application provides a device for displaying a bullet screen, the device comprising:
[0058] An acquisition module, used to acquire special effect configuration parameters of a target black hole barrage of a target video during playback of the target video;
[0059] A loading and determining module, configured to load display materials according to the special effect configuration parameters, and determine a display time interval for the display materials;
[0060] A first display module, configured to overlay display material on the target video according to the display time interval;
[0061] The second display module is used to slide and display the target barrage comment on the target video with the position of the display material as the starting point and / or end point.
[0062] Another aspect of an embodiment of the present application provides a computer device, including:
[0063] at least one processor; and
[0064] a memory communicatively coupled to the at least one processor;
[0065] Wherein: the memory stores computer-readable instructions that can be executed by the at least one processor, and the computer-readable instructions are executed by the at least one processor to enable the at least one processor to perform the method described above.
[0066] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the method described above is implemented.
[0067] The embodiment of the present application adopts the above-mentioned technical solution, which may include the following advantages: realizing a new barrage display method (i.e., black hole barrage). Specifically: when playing a target video associated with a black hole barrage, the target barrage comments (barrage comments that need to be displayed in the form of black hole barrage) are slid and displayed with the location of the display material as the entrance and / or exit. The advantages of doing so are: on the one hand, the target barrage comments can be hidden at the location of the display material, forming a display effect of the target barrage comments entering the black hole and disappearing, thereby improving the display effect of the target barrage comments. On the other hand, the target barrage comments can appear instantly at the location of the display material, forming a display effect of the target barrage comments coming out of the black hole, thereby improving the display effect of the target barrage comments. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.
[0069] FIG1 schematically shows an operating environment diagram of a method for displaying a bullet screen according to a first embodiment of the present application;
[0070] FIG2 schematically shows a flow chart of a method for displaying a bullet screen according to the first embodiment of the present application;
[0071] FIG3 schematically shows a schematic diagram of a display material (black hole image) according to an embodiment of the present application;
[0072] FIG4 schematically shows a flow chart of sub-steps of step S202 in FIG2 ;
[0073] FIG5 schematically shows a flowchart of newly added steps of the method for displaying a bullet screen according to the first embodiment of the present application;
[0074] FIG6 schematically shows a flow chart of a method for displaying a bullet screen according to a second embodiment of the present application;
[0075] FIG7 schematically shows a flow chart of sub-steps of step S602 in FIG6 ;
[0076] FIG8 schematically shows a flow chart of sub-steps of step S606 in FIG6 ;
[0077] FIG9 schematically shows a flowchart of another sub-step of step S606 in FIG6 ;
[0078] FIG10 schematically shows an example diagram of an application of a method for displaying a bullet screen according to an embodiment of the present application;
[0079] FIG11 schematically shows a flowchart of newly added steps of the method for displaying a bullet screen according to the second embodiment of the present application;
[0080] FIG12 schematically shows an example of an application of a method for displaying a bullet screen according to an embodiment of the present application;
[0081] FIG13 schematically shows a block diagram of a device for displaying a bullet screen according to a third embodiment of the present application;
[0082] FIG14 schematically shows a block diagram of a device for displaying a bullet screen according to a fourth embodiment of the present application; and
[0083] FIG15 schematically shows a hardware architecture diagram of a computer device according to the fifth embodiment of the present application. DETAILED DESCRIPTION
[0084] In order to make the purpose, technical solutions and advantages of this application more clear, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0085] It should be noted that the descriptions of "first", "second", etc. in the embodiments of the present application are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0086] In the description of this application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed. They are only used to facilitate the description of this application and to distinguish each step. Therefore, they cannot be understood as limitations on this application.
[0087] First, an explanation of the terms involved in this application is provided:
[0088] Danmu (bullet screen) is a type of subtitle that appears when watching a video online and moves in a predetermined direction. While there's no fixed term for it in English, it's commonly referred to as comment, danmaku, barrage, bullet screen, or bullet-screen comment. Danmu allows viewers to leave comments or reflections on a video. However, unlike typical video sharing sites, where comments are displayed in a dedicated area below the video player, these subtitles appear in real time on the video screen as sliding subtitles, ensuring that all viewers are aware of them.
[0089] For example, the data structure of a bullet comment can be as follows:
[0090] {
[0091] The time of emission in the video is in seconds;
[0092] Type of barrage;
[0093] The size of the barrage text;
[0094] The color of the barrage text;
[0095] Date the comment was created;
[0096] The class name of the barrage;
[0097] The user ID that created the barrage;
[0098] Barrage logo;
[0099] Barrage comments (e.g., text and other characters);
[0100] The duration of the barrage;
[0101] Whether the bullet screen has a border;
[0102] The color of the bullet screen border;
[0103] The interline style of the barrage;
[0104] }
[0105] Black hole barrage: Associated display materials, such as black hole images and special effects in videos. The location of the black hole image is used as the appearance or disappearance location of other barrage comments. The display material used as the appearance location can be called an exit black hole, which can create a visual effect of barrage comments coming out of the hole. The display material used as the disappearance location can be called an entrance black hole, which can create a visual effect of barrage comments entering the hole. Black hole images can be regular or irregular images of specific colors (such as black, red, and a combination of colors). For example, the display material can be a black image that resembles the shape of a black hole in the universe. For another example, the black hole image can also have customized images of buildings, caves, tunnels, etc. for the exit / entrance.
[0106] Black hole: An object with a hole-like shape or opening or entrance.
[0107] Secondly, to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the following describes the relevant technologies:
[0108] With the rapid development of video technology, more and more users are able to watch various video programs online. While watching a video program, users can interact with the host or other users by sending barrages. Barrages are subtitles that pop up and move in a predetermined direction when watching a video online, and are a form of communication information.
[0109] However, all of the above bullet comments maintain the characteristic of gradually moving from one side of the screen to the other. In order to present a more unique and interesting bullet comment, we break the sliding pattern of gradually moving from one side of the screen to the other and achieve the effect of instantly moving from one position on the screen to another during the movement.
[0110] To this end, the embodiment of the present application provides a barrage display technology solution. In this technical solution, (1) a new barrage display method (i.e., black hole barrage) is implemented, which supports the instantaneous movement of barrage comments from one position on the screen to another position on the screen during the movement of the barrage comments, and can achieve compatibility with multiple black hole barrages. (2) It supports configuration through the server background and enables the display of barrage comments in the form of black hole barrages in different videos. (3) It supports the application of different barrage special effect materials under different video content, and can configure different barrage special effects for barrage comments. See below for details.
[0111] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0112] As shown in FIG1 , the environmental application diagram includes: a service platform 2 and a client.
[0113] The service platform 2 can be connected to the client terminals ( 4A, 4B, ..., 4N) via a network.
[0114] The service platform 2 can provide various content and bullet comment services to the client. For example, the bullet comment is sent to the client via the network. The network includes various network devices, such as routers, switches, multiplexers, hubs, modems, 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, combinations thereof, etc. The network can also include wireless links, such as cellular links, satellite links, Wi-Fi links, etc.
[0115] The service platform 2 can be a single server, a server cluster or a cloud computing service center, which is used to provide various services. For example:
[0116] The service platform 2 can provide content services. The content services can be configured to provide content such as video, audio, text data, or combinations thereof. The content can 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.
[0117] The service platform 2 can be configured to manage messages for various content items. Users can browse content and access different content items to view comments for specific content, such as comments posted by other users for the specific content. Comments from users associated with a specific content item can be output to other users who view the specific content item. For example, all users who access a content item (e.g., a video) can view comments associated with the content item. The input comment content can be output in real time or near real time.
[0118] The service platform 2 may be configured to receive a plurality of messages. The plurality of messages may include a plurality of bullet comments associated with the content.
[0119] The service platform 2 can be configured to process multiple messages, for example, performing various processing operations such as message storage, message filtering, and message push. Message storage is used to store multiple messages in a data store such as a database. Message filtering can include rejecting or marking messages that match filtering criteria. The filtering criteria can specify terms and / or phrases, such as profanity. The filtering criteria can also specify characters, such as symbols and fonts. The filtering criteria can also specify languages, computer-readable code patterns, and the like.
[0120] The service platform 2 can perform natural language processing, topic recognition, pattern recognition, artificial intelligence, etc. to automatically determine the characteristics of the message and / or group the messages. As an example, frequently occurring phrases or patterns can be identified as topics. As another example, a database of topics associated with the content can be maintained. Topics can include genres (e.g., action, drama, comedy), personalities (e.g., actors, actresses, directors), languages, etc. Messages can be grouped based on the characteristics of the client device and / or the user sending the message. Demographics, interests, history, and / or the like can be stored for multiple users to determine potential groups of messages. For example, the barrages uploaded by each user can be screened, filtered, sorted, and personalized push notifications can be performed.
[0121] The service platform 2 may provide a bullet screen service that allows users to comment on and / or share comments associated with the content (i.e., bullet screen). The bullet screen is presented on the same screen as the content. The bullet screen may be displayed in an overlay above the content and may include animation effects. For example, the bullet screen may scroll (e.g., from right to left, from left to right, from top to bottom, etc.), and the animation effect may be implemented based on the transition property of CSS3.
[0122] Clients (4A, 4B, ..., 4N) can be configured to access content and services on the service platform 2. Clients (4A, 4B, ..., 4N) can include electronic devices with or connected to a display panel, such as mobile devices, tablet devices, laptop computers, workstations, virtual reality devices, gaming devices, digital streaming devices, vehicle clients, smart televisions, set-top boxes, etc., and can also include virtualized computing instances. Virtualized computing instances can include virtual machines, such as emulations of computer systems, operating systems, servers, etc.
[0123] Clients (4A, 4B, ..., 4N) may be associated with one or more users. A single user may also use one or more of the clients (4A, 4B, ..., 4N) to access the service platform 2. Clients (4A, 4B, ..., 4N) may travel to various locations and use different networks to access the service platform 2.
[0124] The client (4A, 4B, ..., 4N) may include multiple client programs, such as a video app, a live broadcast app, or a mini-program with a built-in bullet screen system. In this embodiment, the client program can present the video and other content provided by the service platform 2, and the bullet screen system can present the bullet screen content in a specific manner.
[0125] The client (4A, 4B, ..., 4N) may include an interface, which may include a touchpad, a touch screen, a mouse, a keyboard, or other sensing elements. For example, the input element may be configured to receive user instructions, which may cause the client (4A, 4B, ..., 4N) to perform various operations, such as inputting comments.
[0126] It should be noted that the above devices are exemplary, and the number and type of devices can be adjusted in different scenarios or according to different needs.
[0127] The following describes the technical solutions of the present application using a client (eg, 4A) as the execution subject through a number of embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be construed as being limited to the embodiments described herein.
[0128] Example 1
[0129] FIG2 schematically shows a flow chart of a method for displaying a bullet screen according to the first embodiment of the present application.
[0130] As shown in FIG2 , the method for displaying a bullet screen may include steps S200 to S202 , wherein:
[0131] Step S200: play a target video, the target video is associated with a black hole barrage, and the black hole barrage is associated with display material.
[0132] Step S202: The target bullet screen comment is displayed on the target video by sliding, with the location of the display material as the entrance and / or exit.
[0133] The method for displaying the barrage provided in this embodiment realizes a new way of displaying barrage (i.e., black hole barrage). Specifically: when playing a target video associated with a black hole barrage, the target barrage comments (barrage comments that need to be displayed in the form of black hole barrage) are displayed by sliding with the location of the display material as the entrance and / or exit. The advantages of doing so are: on the one hand, the target barrage comments can be hidden at the location of the display material, forming a display effect of the target barrage comments entering the black hole and disappearing, thereby improving the display effect of the target barrage comments. On the other hand, the target barrage comments can appear instantly at the location of the display material, forming a display effect of the target barrage comments coming out of the black hole, thereby improving the display effect of the target barrage comments and enhancing the user experience.
[0134] The following describes in detail each step in steps S200 to S202 and other optional steps in conjunction with FIG. 2 .
[0135] Step S200: play a target video, the target video is associated with a black hole barrage, and the black hole barrage is associated with display material.
[0136] The target video can be any type of video on a video website, such as a film or TV series, or a game commentary. The target video is associated with a barrage, which can be of various types, such as ordinary text barrage, image barrage, or black hole barrage.
[0137] As shown in FIG3 , the display material may be an entrance black hole and / or an exit black hole, for allowing target comments to enter and exit the video, thereby achieving the effect of entering and exiting through a black hole. It should be noted that the size, color, shape, transparency, and other appearance of the display material can be set according to actual circumstances and are not limited here.
[0138] Step S202: The target bullet screen comment is displayed on the target video by sliding, with the location of the display material as the entrance and / or exit.
[0139] It should be noted that there can be only an exit, only an entrance, or both. The materials corresponding to the entrance and exit can be the same or different. The exit time can be the same as or different from the entrance time.
[0140] In an optional embodiment, the display material includes a first display material and / or a second display material.
[0141] As shown in FIG4 , step S202 may include S400 to S404:
[0142] Step S400: Display the target bullet screen comment by sliding on the target video in a first preset direction.
[0143] The target comment moves continuously along a predetermined path. If the target comment is configured to appear as a black hole comment on the target video, the comment may first slide a certain distance on the target video before being combined with the first display material to create a corresponding display effect.
[0144] The first preset direction may be from left to right or from right to left, which is not limited here.
[0145] It should be noted that the target comment can slide at a constant speed or a variable speed. When the target video playback speed changes, the speed at which the target comment slides on the target video can be changed accordingly, as follows:
[0146] In an optional embodiment, the target barrage comment is slid and displayed on the target video in a first preset direction, including: during the display process, the target barrage comment is slid and displayed on the target video along the first preset direction at a plurality of different speeds. For example, if the playback speed of the target video is adjusted from 1x speed to 2x speed, the speed at which the target barrage comment is slid and displayed on the target video should also be adjusted from 1x speed to 2x speed accordingly. In the above optional embodiment, when the playback speed of the target video changes, the moving speed of the target barrage comment is adjusted accordingly, so that the target barrage comment maintains synchronization and consistency with the target video content.
[0147] Step S402: display the first display material on the sliding track of the target bullet comment and in front of the sliding of the target bullet comment.
[0148] The sliding track of the target barrage comment may refer to the path or trajectory of the target barrage comment moving on the target video, such as a horizontal sliding track or a special track (such as an oblique track or a curved track).
[0149] For example, when the target comment slides a certain distance on the sliding track, the first display material may be displayed on the sliding track and located in front of the target comment. The specific position of the first display material may be as follows: when the first display material pops up, the rightmost side of the first character in the target comment is exactly adjacent to or separated by a preset distance from the left side. The specific position can be configured as needed.
[0150] In step S404, when the characters in the target barrage comment slide to the first position where the first display material is located, the characters that slide to the first position are hidden, forming a display effect in which the characters in the target barrage comment enter a black hole and disappear one by one.
[0151] The first position is directly in front of the target comment's current sliding direction and can be a designated position within a preset horizontal range of the display interface (player). The preset range can be set based on actual conditions, such as 10%-90%. Setting the first position within the preset horizontal range of the display interface ensures that the first display material is not too close to the edge of the screen, thereby ensuring the display effect of the first display material on the target video.
[0152] In some embodiments, as shown in FIG3 , a center line (which may be invisible to the naked eye) may be provided on the first display material. When characters in the target comment slide to the first position of the first display material (i.e., the characters in the target comment slide to the center line), the characters that slide to the first position are hidden, thereby creating a display effect in which the characters in the target comment disappear one by one after entering a black hole.
[0153] It should be noted that, in addition to being associated with the first display material, the black hole barrage can also be associated with a second display material. The second display material can be used to teleport the characters hidden in the first display material to another location, as follows:
[0154] In an optional embodiment, step S202 may further include:
[0155] The second display material is displayed at a second position on the target video, where the second position is different from the first position.
[0156] The second position is used as the starting position of the target barrage comment, and the target barrage comment is slid and displayed in a second preset direction, forming a display effect in which the characters in the target barrage comment come out one by one from the other end of the black hole.
[0157] As shown in FIG3 , the second display material may be an exit black hole. The size, color, shape, transparency and other appearance of the second display material may be set according to actual conditions and are not limited here.
[0158] The second position may be any position within a preset range in the horizontal direction of the display interface, and the preset range may be set according to actual conditions, such as 10%-90%. It should be noted that the first position and the second position at least partially do not overlap, and preferably, there may be a certain preset threshold height difference between the first position and the second position in the vertical direction of the display interface, such as a height difference of at least 10% (of the display interface).
[0159] Exemplarily, after the target barrage comment slides a certain distance on the target video in a first preset direction, the first display material and the second display material can be displayed on the target video at the same time. The first display material is located at the first position, and the second display material is located at the second position. When the characters in the target barrage comment slide to the first position, the characters that slide to the first position can be hidden, that is, a display effect is formed in which the characters in the target barrage comment disappear one by one after entering a black hole. At the same time, the characters that disappear and are hidden after sliding to the first position (i.e., the first display material) can be redisplayed at the second position (i.e., the second display material), and the second position is used as the starting position of the target barrage comment, and the target barrage comment is slid and displayed on the target video in a second preset direction to form a display effect in which the characters in the target barrage comment come out one by one from the second display material (such as the center line). It should be noted that the characters that have not disappeared and hidden in the first display material and the characters that have come out of the second display material can form the complete characters of the target barrage comment.
[0160] In the above optional embodiment, a second display material is displayed at the second position of the target video, so that the characters hidden by sliding to the first position can gradually come out from the black hole corresponding to the second display material with the second position as the starting position, thereby forming a display effect in which the characters in the target barrage comment come out one by one from the black hole at the other end (i.e., the black hole corresponding to the second display material), thereby achieving the target barrage comment being able to instantly move from one position (i.e., the first position) to another position (i.e., the second position) during the movement, thereby improving the display effect of the target barrage comment.
[0161] In an optional embodiment, the first display material includes a first black hole image, and the second display material includes a second black hole image. The first black hole image as the appearance position can be called an exit black hole, which can form a visual effect of the barrage comments coming out of the hole. The second black hole image as the disappearance position can be called an entrance black hole, which can form a visual effect of the barrage comments entering the hole. The black hole image can be a regular or irregular image of a specific color (such as black, red, or a combination of colors). For example, the display material can be a black image similar to the shape of a black hole in the universe. For another example, the black hole image can also have customized images of buildings, caves, tunnels, etc. for the exit / entrance.
[0162] It should be noted that the black hole image can be part of the black hole barrage or not. In an exemplary application, the black hole image can be a pre-stored image or an image included in the black hole barrage. The black hole image and barrage can be one-to-one or one-to-many. In another exemplary application, the display material can also be a special effect in a video instead of an image.
[0163] The following specifically introduces the corresponding settings (ie, display rules) of the first display material and the second display material.
[0164] Setting 1: Start display time.
[0165] In an optional embodiment, the start display time of the first display material and the start display time of the second display material are the same.
[0166] The start display time may refer to a time point when the first display material or the second display material starts to be displayed on the target video during the playback of the target video.
[0167] Exemplarily, after the target barrage comment slides a certain distance on the target video in a first preset direction, the first display material and the second display material may be simultaneously displayed at different positions on the target video.
[0168] In the above optional embodiment, the start display time of the first display material and the start display time of the second display material are set to the same moment, so that the first display material and the second display material can appear on the target video at the same time, which helps the user to determine whether the display materials are the same group of black hole barrages, thereby ensuring the display effect of the display materials.
[0169] It should be noted that the start display time of the first display material and the start display time of the second display material may also be different, which is not limited here.
[0170] Exemplarily, after the target barrage comment slides a certain distance on the target video in a first preset direction, the first display material is displayed at the first position of the target video (in front of the target barrage comment). When the characters in the target barrage comment slide to the first position, the characters that slide to the first position can be hidden, that is, a display effect is formed in which the characters in the target barrage comment enter the black hole one by one and then disappear. Then, after a certain period of time (such as 1 second), the second display material is displayed at the second position of the target video (which can be randomly configured), and the target barrage comment that has completely disappeared for a period of time or at least partially disappeared for a period of time is rolled out with the second position (i.e., the second display material) as the starting position, and the target barrage comment is slid and displayed on the target video in a second preset direction to form a display effect in which the characters in the target barrage comment come out one by one from the second display material, thereby forming an effect in which the target barrage comment that disappears in the black hole for a period of time appears in one place, like the display effect of a train entering a large cave and coming out of the cave.
[0171] Setting 2: Non-overlapping display.
[0172] In an optional embodiment, the first display material and the second display material do not overlap or at least partially overlap with other black hole images. For example, there may be multiple display materials on the target video, and the display materials do not overlap with each other.
[0173] In the above optional embodiment, the display materials are not displayed overlappingly, thereby ensuring the display effect of the display materials and reducing the occurrence of overlapping display materials.
[0174] Setting 3: The display material size is positively correlated with the font size of the target barrage comment.
[0175] In an optional embodiment, the font size of the target barrage comment is positively correlated with the size of the first display material and the second display material.
[0176] For example, if the target comment has a larger font size, the sizes of the first and second display materials will also be increased accordingly, that is, the sizes of the first and second display materials are positively correlated with the font size.
[0177] In the above optional embodiment, the sizes of the first display material and the second display material are positively correlated with the font size, thereby reducing the situation where the font of the target barrage comment is too large but the sizes of the first display material and the second display material are too small, thereby ensuring the display effect of the target barrage comment (displayed in the form of black hole barrage).
[0178] Setting 4: Display as a sequence frame animation.
[0179] In an optional embodiment, the first display material and / or the second display material is a picture in a frame animation format including a plurality of frames.
[0180] In the above optional embodiment, presenting the first black hole (entrance black hole) and the second black hole (exit black hole) in the form of sequential animation frames can improve the display effect of the first display material and the second display material, that is, the display effect of the black hole barrage can be improved.
[0181] Setting 5: Hide or delete the displayed material after it is displayed.
[0182] It should be noted that in order to reduce the impact of black hole barrage on the target video during display (for example, the display material obscures part of the target video content for a long time), the display material can be hidden after the corresponding display, as follows:
[0183] In an optional embodiment, as shown in FIG5 , the method further includes:
[0184] Step S500: When the last character in the target bullet comment slides to the first position, the first display material is hidden.
[0185] Step S502: When the last character in the target bullet comment slides out from the second position, the second display material is hidden.
[0186] For example, assuming that the target comment 1 is "abcdefhigklmn", when the last character (i.e., "n") in the target comment 1 slides to the first position, that is, the target comment "abcdefhigklmn" has completely moved into the black hole corresponding to the first display material, the first display material is hidden. Correspondingly, if the last character (i.e., "n") in the target comment 1 slides out from the second position, that is, the target comment "abcdefhigklmn" has completely slid out of the black hole corresponding to the second display material, the second display material is hidden.
[0187] In the above optional embodiment, when the last character in the target barrage comment slides to the first position, the first display material is hidden (i.e., the sequence frame animation of the entrance black hole disappears). When the last character in the target barrage comment slides out from the second position, the second display material is hidden (i.e., the sequence frame animation of the exit black hole disappears). It can be seen that when the target barrage comment has completed the corresponding display special effects through the first display material and the second display material, the first and second display materials are hidden, thereby reducing the impact of the display material on the target video (such as reducing the occlusion of the video content of the target video) and improving the display effect.
[0188] Example 2
[0189] FIG6 schematically shows a flow chart of a method for displaying a bullet screen according to the second embodiment of the present application.
[0190] As shown in FIG6 , the method for displaying a bullet comment may include steps S600 to S606 , wherein:
[0191] Step S600: During the playback of the target video, obtain the special effect configuration parameters of the target black hole barrage of the target video.
[0192] Step S602: loading display materials according to the special effect configuration parameters, and determining a display time interval of the display materials.
[0193] Step S604: Overlaying and displaying display material on the target video according to the display time interval.
[0194] Step S606: The target bullet screen comment is slid and displayed on the target video with the position of the display material as the starting point and / or end point.
[0195] The method for displaying the barrage provided in this embodiment can first obtain the special effect configuration parameters of the target black hole barrage when playing the target video. Afterwards, the display material is loaded according to the special effect configuration parameters, and the display time interval of the display material on the target video is determined. On this basis, if the target barrage comment is to be displayed in the form of a black hole barrage (within the display time interval), the display material can be overlaid on the target video. Afterwards, the target barrage comment is slid and displayed on the target video with the position of the display material as the starting point and / or end point. It can be seen that the display material is overlaid on the target video and the sliding display is performed with the position of the display material as the starting point and / or end point. The advantages of doing so are: on the one hand, the target barrage comment can be hidden at the position where the display material is located, forming a display effect of the target barrage comment entering the black hole and disappearing, thereby improving the display effect of the target barrage comment. On the other hand, the target barrage comment can appear instantly at the position where the display material is located, forming a display effect of the target barrage comment coming out of the black hole, thereby improving the display effect of the target barrage comment.
[0196] The following describes in detail each step in steps S600 to S606 and other optional steps in conjunction with FIG. 6 .
[0197] Step S600: During the playback of the target video, obtain the special effect configuration parameters of the target black hole barrage of the target video.
[0198] For example, when the client (such as 4A) starts playing the target video, the service platform 2 can send the corresponding special effect configuration parameters to the client (such as 4A) through the interface. After receiving the special effect configuration parameters, the client (such as 4A) can display the target black hole barrage on the target video according to certain rules based on the special effect configuration parameters.
[0199] The special effect configuration parameters may be parameters used to describe the target black hole barrage in the target video, such as the display material, appearance time, shape style, etc. of the target black hole barrage.
[0200] It should be noted that the special effect configuration parameters can be obtained according to the background configuration, specifically:
[0201] In an optional embodiment, the special effect configuration parameters are obtained based on background configuration. For example, the operator can configure the special effect configuration parameters through the background, such as configuring the appearance time of the target barrage and the shape and style of the display material. In addition, the operator can also determine through the background which videos' barrages need to display black hole barrages, thereby displaying black hole barrages under different video content.
[0202] In the above optional embodiment, corresponding special effect configuration parameters are configured in the background so that the subsequent client can effectively display the black hole barrage according to the special effect configuration parameters.
[0203] Step S602: loading display materials according to the special effect configuration parameters, and determining a display time interval of the display materials.
[0204] As shown in Figure 3, the display material can be associated with a first display material and a second display material. It should be noted that the display material can be a black hole image. The size, color, shape, transparency, and other appearance of the black hole image can be set according to actual circumstances and are not limited here. The black hole image can be selected and configured as needed and uploaded to service platform 2. Service platform 2 can then distribute the black hole image to the corresponding client for local loading.
[0205] The display time interval can be a display time interval of the display material, that is, it can be used to indicate: in which time intervals of the target video the display material can appear. The display time interval can be obtained according to user definition or event triggering.
[0206] The following describes in detail how to load display materials and determine the display time interval of the display materials according to special effect configuration parameters.
[0207] In an optional embodiment, the special effect configuration parameters include a special effect identifier, a start time, and an end time. As shown in FIG7 , step S602 may include:
[0208] Step S700: loading the display material according to the special effect identifier.
[0209] Step S702: determining a display time interval of the display material according to the start time and the end time.
[0210] The special effect identifier may be an identifier for identifying a bullet screen special effect style (such as a black hole bullet screen), such as a special effect ID. Through the special effect identifier, the client may load the corresponding display material.
[0211] The start time and end time can be used to determine the time interval in which the black hole barrage (i.e., display material) appears in the target video. For example, assuming the start time is 1 minute and the end time is 2 minutes, the display material can be displayed between 1 minute and 2 minutes of the target video, that is, the black hole barrage can appear between 1 minute and 2 minutes.
[0212] In the above optional embodiment, the display material is loaded according to the special effect identifier so that when the black hole barrage is needed later, the display material can be quickly pulled for display. In addition, the display time interval of the display material is determined according to the start time and end time to ensure the correct display of the display material (i.e., the black hole barrage).
[0213] Step S604: Overlaying and displaying display material on the target video according to the display time interval.
[0214] For example, when the display time interval is 5-10 minutes and there are target barrage comments displayed in the form of black hole barrage within the display time interval, after the corresponding conditions are triggered, the display material can be overlaid on the target video.
[0215] Step S606: The target bullet screen comment is slid and displayed on the target video with the position of the display material as the starting point and / or end point.
[0216] Taking the position of the display material as the starting point: it means gradually moving the target barrage comment out of the black hole represented by the display material, forming a display effect in which the characters in the target barrage comment come out of the black hole.
[0217] Taking the position where the display material is located as the end point: it means hiding the target barrage comment that is slid to the position where the display material is located, forming a display effect in which the characters in the target barrage comment enter a black hole and disappear.
[0218] It should be noted that the target video may be associated with a large number of barrage comments. If all barrage comments are displayed on the target video in the form of black hole barrage, the target video screen may be filled with display material, affecting the display of barrage comments and the viewing experience of the target video. Therefore, to alleviate the above situation, the following optional embodiments are provided.
[0219] In an optional embodiment, as shown in FIG8 , step S606 may include:
[0220] Step S800: Select a target barrage comment from multiple barrage comments of the target video according to a preset rule.
[0221] Step S802: Mark the target barrage comment.
[0222] Step S804: The marked target bullet comment is displayed on the target video by sliding, with the location of the display material as the starting point and / or end point.
[0223] Among them, the preset rules include the string length range and / or the target barrage comment density range on the same screen at the same time point.
[0224] The string length range may refer to the interval limit value of the number of characters that a string of a bullet comment can contain, such as 6-20 characters.
[0225] Target barrage comment density range on the same screen at the same time point: the interval value of the target number of barrage comments that can be displayed on the screen at a specific time point. The barrage comment range density can be selected according to actual conditions, such as 0-5 target barrage comments.
[0226] For example, assuming that multiple target barrage comments are to be selected from the barrage comments of the target video, the specific process can be as follows: (1) First, select barrage comments with a string length within the string length range from the barrage comments of the target video, such as barrage comments with a string length of 6-20 characters. (2) Then, select some barrage comments from the multiple barrage comments that meet the string length range with a certain random probability (such as 30%). (3) Then, select multiple target barrage comments from the randomly selected part of the barrage comments. It should be noted that in order to ensure the display effect of the target barrage comments, the number of target barrage comments displayed on the same screen at the same time on the target video must be within the barrage comment density range, and only a preset number (such as 1) of target barrage comments will be generated per second in the display time interval. In addition, in order to be able to quickly process the selected target barrage comments, a displayer can be added to the view controller of the ordinary barrage to specifically process black hole barrages.
[0227] In the above optional embodiment, some of the barrage comments are selected from the multiple barrage comments of the target video according to the preset rules as the target barrage comments, and the target barrage comments are marked. The benefits of this are: (1) When displaying the barrage comments in the target video, it is possible to quickly and accurately determine which target barrage comments need to be displayed in the form of black hole barrages, thereby ensuring the correct display of the target barrage comments and optimizing the display effect. (2) Selecting some of the barrage comments as the target barrage comments can ensure the appearance frequency and display density of the target barrage comments on the target video, thereby improving the display effect of the target barrage comments.
[0228] As mentioned above, during the display of barrage comments, the target barrage comments can be slid and displayed on the target video with the location of the display material as the starting point and / or end point. The following specifically introduces how the target barrage comments are slid and displayed on the target video.
[0229] In an optional embodiment, the display material is associated with the first display material and the second display material. As shown in FIG9 , step S606 may include:
[0230] Step S900 , taking the first display material as the intermediate end point, sliding the target bullet comment from the initial position until it reaches the first position where the first display material is located.
[0231] Step S902 , using the second display material as the middle starting point, sliding the target bullet comment from the second position where the second display material is located to the end edge.
[0232] The target barrage comment slides from an initial position to the first position, then moves from the first position to a second position, and then slides out with the second position as an intermediate starting point and continues to slide in a predetermined direction until reaching an end position.
[0233] For example, as shown in FIG10 , taking the target bullet comment 1 (BBBBBBBBBBBBBBBBBB) sliding from right to left as an example, correspondingly, FIG10A is the first display material, and FIG10B is the second display material, then the display process of the target bullet comment 1 on the target video can be as follows: (1) First, the target bullet comment 1 first comes out from the rightmost side (i.e., the initial position) of the target video display interface and slides to the left along the sliding track. (2) After the target bullet comment 1 slides a certain distance on the sliding track, the first display material will be displayed at the first position (i.e., the position of FIG10A ), and at the same time, the second display material will be displayed at a second position different from the first position (i.e., the position of FIG10B ). (3) When the characters in the target bullet comment slide to the first position, the characters that slide to the first position can be hidden by the first display material, forming a display effect in which the characters in the target bullet comment 1 enter the black hole and disappear one by one. At the same time, the character hidden at the first position may gradually emerge from the second display material at the second position, that is, starting from the middle of the second display material, and continuously sliding in a predetermined direction until reaching the leftmost side of the screen.
[0234] In the above optional embodiment, the first display material is used as the intermediate end point of the target barrage comment, and the second display material is used as the intermediate starting point of the target barrage comment, so that the target barrage comment can be instantly moved from the first position where the first display material is located to the second position where the second display material is located, thereby achieving the goal of instantly moving the target barrage comment to another position and continuing to move during the movement process, thereby improving the display effect of the target barrage comment.
[0235] It should be noted that the moving speed of the target barrage comment can be uniform or variable. If the playback speed of the target video changes, the moving speed of the target barrage comment can remain unchanged or change as the playback speed of the target video changes. In addition, when the first black hole and the second black hole are both displayed in the form of sequential frame animations, if the playback speed of the target video changes, the playback speed of the frame sequence animation can also have multiple options accordingly, such as maintaining the original speed or changing with the playback speed of the target video. An optional embodiment is provided below.
[0236] In an optional embodiment, the method further includes: when the playback speed of the target video is updated, adjusting the moving speed of the target barrage comment, and keeping the playback speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material unchanged.
[0237] For example, if the playback speed of the target video is adjusted to 2x speed, then correspondingly, the movement speed of the target barrage comment can be changed to 2x speed, and the playback speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material can remain unchanged.
[0238] In the aforementioned optional embodiment, if the target video playback speed changes, the movement speed of the target barrage comments is adjusted accordingly, so that the target barrage comments maintain synchronization and consistency with the target video content. In addition, maintaining the playback speed of the sequence frame animation of the first display material and the sequence frame animation of the second display material unchanged can effectively display the corresponding series of frame animations of the first display material and the second display material, enhancing the display effect of the black hole barrage.
[0239] In order to ensure the effect of the target barrage comment when entering or sliding out of the black hole represented by the display material (more harmonious and beautiful), the color of the characters can be set, for example, the character color can be uniformly set to one or more colors. It should be noted that the character color can be set by the client or specified by the server, as follows:
[0240] In an optional embodiment, as shown in FIG11 , the method further includes:
[0241] Step S1100: Receive the character color of the target barrage comment sent by the service platform, where the character color includes a first color and a second color.
[0242] Step S1102: When the target barrage comment is sent by the client itself, the character color is adjusted to the first color.
[0243] Step S1104: When the target barrage comment is sent by other clients, the character color is adjusted to the second color.
[0244] The first color (i.e., primary color) and the second color (i.e., guest color) can be set according to the appearance of the display material and are not limited here. For example, if the display material color is black, the first color can be white and the second color can be red. The primary color can be the color displayed by the barrage comments sent by the client itself. The guest color can be the color displayed by the barrage comments sent by other clients.
[0245] For example, if target barrage comment 1 in target video A is sent by a client (such as 4A), the character color of target barrage comment 1 can be displayed in the first color (such as red) when the client (such as 4A) plays the target video A. For other target barrage comments not sent by the client (such as 4A), they can be displayed in the second color (such as white).
[0246] In the above optional embodiment, the character color of the target barrage comment is set so that the character color of the target barrage comment can adapt to the color of the display material, thereby improving the display effect of the target barrage comment and the display material. In addition, highlighting the target barrage comment sent by the client itself with a different character color can improve the client's barrage experience and interactive effect.
[0247] In order to make this application easier to understand, an exemplary application is provided below.
[0248] S11, play the target video and obtain the special effect configuration parameters of the target black hole barrage (including special effect ID, start time, and end time).
[0249] S12, based on the special effect configuration parameters, load the black hole image and determine the display time interval, specifically:
[0250] S121: Load the black hole image according to the special effect ID.
[0251] S122, determining a display time interval of the black hole image according to the start time and the end time.
[0252] S13, selecting a target barrage comment from multiple barrage comments according to preset rules.
[0253] Among them, the preset rules can be set according to actual conditions, such as including a character string length range and / or a target barrage comment density range on the same screen at the same time point.
[0254] S14, identify the target barrage comment.
[0255] S15, the target comment is displayed on the target video by sliding, starting and / or ending at the location of the black hole image. Specifically:
[0256] S151, sliding the target bullet screen comment from the initial position to the first preset direction on the target video for display.
[0257] S152, when sliding to the first position (ie, the position of the first display material), the first position is used as the intermediate end point, and the slid-in characters are hidden.
[0258] S153, teleporting the hidden character from the first position to the second position (the position of the second display material).
[0259] S154 , using the second display material as the middle starting point, sliding the target bullet comment from the second position where the second display material is located to the end edge.
[0260] In this embodiment, as shown in Figure 12, during the specified time period of the target video, some of the barrage comments moving on the screen will be selected and displayed in the form of black hole barrages. The selected part of the barrage comments can be instantly transferred to another position on the screen that is different from the current horizontal and vertical coordinates during the movement, and continue to move at the new position. The selected part of the barrage comments will show the configured special effects when they disappear and appear.
[0261] Example 3
[0262] Figure 13 schematically shows a block diagram of a display device for a bullet screen according to embodiment three of the present application. The display device for the bullet screen can be divided into one or more program modules, one or more program modules are stored in a storage medium, and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer-readable 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 Figure 13, the device 1300 may include: a playback module 1310, a first display module 1320, a second display module 1330, and a first hidden module 1340, wherein:
[0263] A playing module 1310 is configured to play a target video, the target video being associated with a black hole barrage, and the black hole barrage being associated with a first display material;
[0264] The first display module 1320 is configured to slide and display the target comment on the target video in a first preset direction;
[0265] The second display module 1330 is configured to display the first display material on the sliding track of the target bullet comment and in front of the sliding target bullet comment;
[0266] The first hiding module 1340 is used to hide the characters in the target barrage comment when the characters in the target barrage comment slide to the first position where the first display material is located, thereby forming a display effect in which the characters in the target barrage comment enter a black hole and disappear one by one.
[0267] In an optional embodiment, the black hole barrage is associated with a second display material, and the barrage display device further includes a third display module, wherein the third display module is configured to:
[0268] displaying the second display material at a second position on the target video, where the second position is different from the first position;
[0269] The second position is used as the starting position of the target barrage comment, and the target barrage comment is slid and displayed in a second preset direction, forming a display effect in which the characters in the target barrage comment come out one by one from the other end of the black hole.
[0270] In an optional embodiment, the start display time of the first display material and the start display time of the second display material are the same.
[0271] In an optional embodiment, the first display material and the second display material do not overlap with other black hole images.
[0272] In an optional embodiment, the barrage display device further includes a second hidden module, wherein the second hidden module is configured to:
[0273] When the last character in the target barrage comment slides to the first position, hiding the first display material;
[0274] When the last character in the target bullet comment slides out from the second position, the second display material is hidden.
[0275] In an optional embodiment, the first display material includes a first black hole image, and the second display material includes a second black hole image.
[0276] In an optional embodiment, the font size of the target barrage comment is positively correlated with the size of the first display material and the second display material.
[0277] In an optional embodiment, the first display material and / or the second display material is a picture in a frame animation format including a plurality of frames.
[0278] In an optional embodiment, the first display module 1320 is further configured to:
[0279] During the display process, the target video is slid and displayed along the first preset direction at a plurality of different speeds.
[0280] Example 4
[0281] Figure 14 schematically shows a block diagram of a display device for a bullet screen according to the fourth embodiment of the present application. The display device for the bullet screen can be divided into one or more program modules, one or more program modules are stored in a storage medium, and executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer-readable 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 Figure 14, the device 1400 may include: an acquisition module 1410, a loading and determination module 1420, a first display module 1430, and a second display module 1440, wherein:
[0282] An acquisition module 1410 is configured to acquire special effect configuration parameters of a target black hole barrage of a target video during playback of the target video;
[0283] The loading and determining module 1420 is configured to load display materials according to the special effect configuration parameters and determine a display time interval for the display materials;
[0284] A first display module 1430 is configured to overlay display material on the target video according to the display time interval;
[0285] The second display module 1440 is used to slide and display the target barrage comment on the target video with the position of the display material as the starting point and / or end point.
[0286] In an optional embodiment, the special effect configuration parameters include a special effect identifier, a start time, and an end time; the loading and determining module 1420 is further configured to:
[0287] Loading the display material according to the special effect identifier;
[0288] A display time interval of the display material is determined according to the start time and the end time.
[0289] In an optional embodiment, the second display module 1440 is further configured to:
[0290] Select a target barrage comment from multiple barrage comments of the target video according to a preset rule;
[0291] Identify the target barrage comments;
[0292] The marked target barrage comments are displayed on the target video by sliding, with the location of the display material as the starting point and / or end point.
[0293] Among them, the preset rules include the string length range and / or the target barrage comment density range on the same screen at the same time point.
[0294] In an optional embodiment, the display material is associated with a first display material and a second display material;
[0295] Correspondingly, the second display module 1440 is further configured to:
[0296] Taking the first display material as the intermediate end point, sliding the target bullet comment from the initial position until it reaches the first position where the first display material is located;
[0297] Taking the second display material as the middle starting point, slide the target bullet comment from the second position where the second display material is located to the end edge;
[0298] The target barrage comment slides from an initial position to the first position, then moves from the first position to a second position, and then slides out with the second position as an intermediate starting point and continues to slide in a predetermined direction until reaching an end position.
[0299] In an optional embodiment, the barrage display device further includes a first adjustment module, and the first adjustment module is further configured to:
[0300] When the playback speed of the target video is updated, the moving speed of the target barrage comment is adjusted, and the playback speeds of the sequence frame animation of the first display material and the sequence frame animation of the second display material are kept unchanged.
[0301] In an optional embodiment, the barrage display device further includes a second adjustment module, and the second adjustment module is further configured to:
[0302] Receive the character color of the target barrage comment sent by the service platform, where the character color includes a first color and a second color;
[0303] In a case where the target barrage comment is sent by the client itself, adjusting the character color to the first color;
[0304] When the target barrage comment is sent by other clients, the character color is adjusted to the second color.
[0305] In an optional embodiment, the display device of the barrage further includes a configuration module, and the configuration module is further used to: obtain the special effect configuration parameters according to the background configuration.
[0306] Example 5
[0307] Figure 15 schematically shows a hardware architecture diagram of a computer device 10000 suitable for implementing a method for displaying barrage according to the third embodiment of the present application. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle-mounted terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. As shown in Figure 15, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them:
[0308] The memory 10010 includes at least one type of computer-readable storage medium, including 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 storage, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Of course, the memory 10010 may also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed on the computer device 10000, such as the program code of the method for displaying the bullet screen, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.
[0309] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to execute program code stored in the memory 10010 or process data.
[0310] The network interface 10030 may include a wireless network interface or a wired network interface. The network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal via a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile Communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth, or Wi-Fi.
[0311] It should be noted that FIG. 15 only shows a computer device having components 10010 - 10030 , but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0312] In this embodiment, the method for displaying barrage stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.
[0313] Example 6
[0314] An embodiment of the present application also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the steps of the method for displaying barrage in the embodiment are implemented.
[0315] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), 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, magnetic disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the method for displaying the barrage in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0316] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented using general-purpose computer devices. They can be concentrated on a single computer device or distributed on a network composed of multiple computer devices. Alternatively, they can be implemented using program codes executable by the computer device, so that they can be stored in a storage device and executed by the computer device. In some cases, the steps shown or described can be performed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps can be made into a single integrated circuit module for implementation. Thus, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0317] It should be noted that the above are only preferred embodiments of the present application and do not limit the scope of patent protection of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the scope of patent protection of the present application.
Claims
1. A method for displaying bullet screens, the method comprising: Playing a target video, where the target video is associated with black hole bullet screens, and the black hole bullet screens are associated with display materials; Sliding and displaying target bullet screen comments on the target video with the position where the display material is located as the entrance and / or exit.
2. The method according to claim 1, wherein the display material includes a first display material and / or a second display material; Sliding and displaying target bullet screen comments on the target video with the position where the display material is located as the entrance and / or exit includes: Sliding and displaying target bullet screen comments on the target video in a first preset direction; Displaying the first display material on the sliding track of the target bullet screen comment and in front of the sliding of the target bullet screen comment; When the characters in the target bullet screen comment slide to the first position where the first display material is located, hiding the characters that have slid to the first position, forming a display special effect in which the characters in the target bullet screen comment enter the black hole and disappear one by one; And / or, Displaying the second display material at a second position on the target video, where the second position is different from the first position; Taking the second position as the starting position of the target bullet screen comment, and sliding and displaying the target bullet screen comment in a second preset direction, forming a display special effect in which the characters in the target bullet screen comment come out from the other end of the black hole one by one.
3. The method according to claim 2, wherein the first display material includes a first black hole picture, and the second display material includes a second black hole picture.
4. The method according to claim 2, wherein the starting display time of the first display material is the same as the starting display time of the second display material.
5. The method according to claim 2, wherein neither the first display material nor the second display material overlaps with other black hole pictures.
6. The method according to any one of claims 2 to 5, the method further comprising: When the last character in the target bullet screen comment slides to the first position, hiding the first display material; When the last character in the target bullet screen comment slides out from the second position, hiding the second display material.
7. The method according to any one of claims 2 to 5, wherein the font size of the target bullet screen comment is positively correlated with the sizes of the first display material and the second display material.
8. The method according to any one of claims 2 to 5, wherein the first display material and / or the second display material is a picture in the format of a frame animation including multiple frames.
9. The method according to any one of claims 1 to 5, sliding and displaying the target bullet screen comment on the target video in a first preset direction includes: During the display process, sliding and displaying on the target video in the first preset direction at various different speeds in sequence.
10. A method for displaying bullet screens, the method comprising: During the playback of a target video, obtaining the special effect configuration parameters of the target black hole bullet screen of the target video; According to the special effect configuration parameters, loading display materials and determining the display time interval of the display materials; Overlay and display display materials on the target video according to the displayed time interval; Slide and display the target bullet screen comments on the target video with the position where the display material is located as the starting point and / or the ending point.
11. The method according to claim 10, wherein the special effect configuration parameters include a special effect identifier, a start time, and an end time; Correspondingly, according to the special effect configuration parameters, load the display material and determine the display time interval of the display material, including: Load the display material according to the special effect identifier; Determine the display time interval of the display material according to the start time and the end time.
12. The method according to claim 10, wherein sliding and displaying the target bullet screen comments on the target video with the position where the display material is located as the starting point and / or the ending point includes: Select target bullet screen comments from multiple bullet screen comments of the target video according to a preset rule; Identify the target bullet screen comments; For the identified target bullet screen comments, slide and display them on the target video with the position where the display material is located as the starting point and / or the ending point. Wherein, the preset rule includes a string length range and / or a density range of target bullet screen comments on the same screen at the same time point.
13. The method according to claim 10, wherein the display material is associated with a first display material and a second display material; Correspondingly, sliding and displaying the target bullet screen comments on the target video with the position where the display material is located as the starting point and / or the ending point includes: Use the first display material as the intermediate end point, and slide the target bullet screen comments from the initial position until reaching the first position where the first display material is located; The first position; Use the second display material as the intermediate starting point, and slide the target bullet screen comments out from the second position where the second display material is located until the end edge; Wherein, the target bullet screen comments slide from the initial position to the first position, then teleport from the first position to the second position, and then slide out with the second position as the intermediate starting point and continuously slide in a predetermined direction until reaching the end position.
14. The method according to claim 11, wherein the display material is associated with a first display material and a second display material; Correspondingly, sliding and displaying the target bullet screen comments on the target video with the position where the display material is located as the starting point and / or the ending point includes: Use the first display material as the intermediate end point, and slide the target bullet screen comments from the initial position until reaching the first position where the first display material is located; Use the second display material as the intermediate starting point, and slide the target bullet screen comments out from the second position where the second display material is located until the end edge; Wherein, the target bullet screen comments slide from the initial position to the first position, then teleport from the first position to the second position, and then slide out with the second position as the intermediate starting point and continuously slide in a predetermined direction until reaching the end position.
15. The method according to claim 14, wherein the method further includes: When the playing speed of the target video is updated, adjust the moving speed of the target barrage comment, and keep the playing speeds of the sequence frame animations of the first display material and the second display material unchanged.
16. The method according to claim 10, wherein the method further comprises: Receiving the character colors of the target barrage comment sent by the service platform, where the character colors include a first color and a second color; When the target barrage comment is sent by the client itself, adjusting the character color to the first color; When the target barrage comment is sent by other clients, adjusting the character color to the second color.
17. A display device for barrages, the device comprising: A playing module, configured to play a target video, where the target video is associated with a black hole barrage, and the black hole barrage is associated with a first display material; A first display module, configured to slide and display the target barrage comment on the target video in a first preset direction; A second display module, configured to display the first display material on the sliding track of the target barrage comment and be in front of the sliding of the target barrage comment; A first hiding module, configured to, when the characters in the target barrage comment slide to a first position where the first display material is located, hide the characters that slide to the first position, so as to form a display special effect in which the characters in the target barrage comment gradually enter the black hole and disappear.
18. A display device for barrages, the device comprising: An obtaining module, configured to obtain the special effect configuration parameters of the target black hole barrage of the target video during the playing of the target video; A loading and determining module, configured to load a display material according to the special effect configuration parameters, and determine the display time interval of the display material; A first display module, configured to cover and display the display material on the target video according to the display time interval; A second display module, configured to slide and display the target barrage comment on the target video with the position where the display material is located as the starting point and / or the ending point.
19. A computer device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein: The memory stores computer-readable instructions executable by the at least one processor, and when the computer-readable instructions are executed by the at least one processor, the at least one processor is enabled to execute the method according to any one of claims 1 to 16.
20. A computer-readable storage medium, wherein computer-readable instructions are stored in the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Video bullet screen display control method and device, storage medium and electronic equipment
CN111683259A
Bullet screen information display method and device, computer equipment and storage medium
CN112533051A
Bullet screen processing method and device, electronic equipment and storage medium
CN112804582A
Special effect processing method and device, processing equipment and storage medium
CN116471438A
Bullet screen display method and device
CN117793475A