Bullet screen display method and device

By setting the swallowing area in the playback area and moving the barrage to it, the problem of poor display effect of the existing barrage is solved, the user experience and interactivity are improved, and the visual effect of the barrage being gradually swallowed by the designated area is achieved.

CN118870089APending Publication Date: 2024-10-29SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410816755.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing barrage display solution has poor effect, lack of interactivity and playability, resulting in poor user experience.

Method used

Set the swallowing area in the playback area, move the target barrage to the swallowing area through predetermined rules, and hide it when entering the swallowing area so that it disappears in the playback area to achieve the visual effect of the barrage being gradually swallowed by the designated area.

Benefits of technology

It enhances coordination with video content, improves user viewing experience, and provides a new and more interesting barrage display method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870089A_ABST
    Figure CN118870089A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a bullet screen display method, and the method comprises the steps: displaying a playing region used for playing a target video, and enabling the playing region to be provided with a swallowing region; obtaining a target bullet screen corresponding to the target video, and movably displaying the target bullet screen in the playing area; and moving the target bullet screen to the phagocytosis area according to a preset rule to present a display special effect that the target bullet screen is attracted by the phagocytosis area to approach and enter and / or disappear after entering the phagocytosis area. According to the technical scheme provided by the embodiment of the invention, the bullet screens can be effectively converged to the specified area, and the bullet screens entering the specified area are hidden, so that the visual effect that the bullet screens are gradually swallowed by the specified area is realized, the coordination with video contents is enhanced, and the watching experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of barrage technology, and in particular, to a barrage display method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] 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 anchors or other users by sending barrages. The barrage refers to the communication information that pops up and moves in a predetermined direction when watching a video.

[0003] However, the existing bullet screen display solutions have poor bullet screen display effects, insufficient 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. Summary of the invention

[0005] The embodiments of the present application provide a bullet screen display method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.

[0006] One aspect of an embodiment of the present application provides a bullet screen display method, the method comprising:

[0007] Displaying a playback area for playing a target video, wherein the playback area is provided with an engulfing area;

[0008] Obtain a target bullet screen corresponding to the target video, and move and display the target bullet screen in the playback area;

[0009] The target bullet screen is moved to the engulfing area according to a predetermined rule to present a display effect in which the target bullet screen is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

[0010] Optionally, moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0011] Taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory;

[0012] Move the target barrage along the gravitational attraction trajectory to the engulfing area.

[0013] Optionally, taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory includes:

[0014] Taking the devouring center as a black hole, calculating the gravitational attraction trajectory of the black hole;

[0015] Move the target barrage along the black hole gravitational attraction trajectory to the engulfing area.

[0016] Optionally, the step of moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0017] When the characters in the target bullet screen move to the target position where the engulfing area is located, the characters moved to the target position are hidden, forming a display effect that the characters in the target bullet screen disappear after entering the engulfing area.

[0018] Optionally, the predetermined rule includes:

[0019] The closer the target barrage is to the engulfing area, the faster the target barrage moves.

[0020] Optionally, moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0021] Taking the engulfing area as the center, moving the target barrage radially to gradually approach the engulfing area; or

[0022] With the engulfing area as the center, the target barrage is moved in a spiral shape to gradually approach the engulfing area.

[0023] Optionally, in the process of moving the target barrage radially to gradually approach the engulfing area: each pixel point corresponding to the target barrage gradually approaches the engulfing area along a radial direction or a spiral path; the closer to the engulfing area, the faster the pixel points corresponding to the target barrage change.

[0024] Optionally, the step of moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0025] Acquire a first engulfing disturbance corresponding to the engulfing area, where the first engulfing disturbance is used to change the shape of the target barrage;

[0026] In the process of moving the target barrage to the engulfing area: dynamically adjusting the shape of the target barrage according to the first engulfing disturbance.

[0027] Optionally, there is a gravitational region extending outward from the center of the engulfing region;

[0028] Correspondingly, dynamically adjusting the shape of the target barrage according to the first engulfing disturbance includes:

[0029] Determining the current position of the target barrage;

[0030] Determining, according to the current position of the target barrage, whether the target barrage is at least partially located within the gravitational region;

[0031] In the case where the target bullet screen is partially located in the gravitational area, determining a first block and a second block of the target bullet screen; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area;

[0032] According to the first engulfing disturbance, the shape of the first block is dynamically adjusted.

[0033] Optionally, the predetermined rule includes: the closer the target barrage is to the engulfing area, the greater the deformation degree of the target barrage is.

[0034] Optionally, the step of moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0035] Obtaining a second engulfing disturbance corresponding to the engulfing area;

[0036] In the process of moving the target bullet screen to the engulfing area: according to the second engulfing disturbance, the target bullet screen is fragmented and displayed, wherein the fragmented target bullet screen includes a plurality of discrete pixel points;

[0037] The target bullet screen of the fragmented display is moved so that the target bullet screen of the fragmented display gradually approaches the engulfing area.

[0038] Optionally, there is a gravitational region extending outward from the center of the engulfing region;

[0039] Correspondingly, according to the second engulfing disturbance, fragmenting and displaying the target barrage includes:

[0040] Determining the current position of the target barrage;

[0041] Determining, according to the current position of the target barrage, whether the target barrage is at least partially located within the gravitational region;

[0042] In the case where the target bullet screen is partially located in the gravitational area, determining a first block and a second block of the target bullet screen; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area;

[0043] According to the second engulfing disturbance, the first block is fragmented and displayed.

[0044] Optionally, the predetermined rule includes: the closer the target barrage is to the engulfing area, the greater the degree of fragmentation of the target barrage is.

[0045] One aspect of an embodiment of the present application provides a bullet screen display method for a client, the method comprising:

[0046] Get the first bullet screen rendering result corresponding to the current video frame in the video playback area;

[0047] Determine the coordinates of the engulfment area and the current video playback time according to the current video frame;

[0048] Inputting the first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time into a pre-configured fragment shader to obtain a second bullet screen rendering result;

[0049] Displaying the second bullet screen rendering result in the video playback area;

[0050] Among them, the second bullet screen rendering results of the current video frame and the subsequent multiple continuous video frames are used to show the display effect that the bullet screen is gradually swallowed up by the swallowing area.

[0051] Optionally, the display special effect of the bullet screen being gradually swallowed by the swallowing area includes:

[0052] A display effect used to represent the pixel points of the bullet screen gradually approaching the engulfing area; and

[0053] When a pixel used to represent the bullet screen is located in the engulfing area, the pixel is made transparent to form a display effect in which the bullet screen is gradually engulfed and disappears by the engulfing area.

[0054] Optionally, the pre-configured fragment shader is obtained by the following operations:

[0055] Establishing a spatial coordinate system corresponding to the video playback area, wherein the spatial coordinate system is used to represent the position of the engulfing area in the video playback area and each pixel point of the video playback area;

[0056] According to the characteristics of phagocytic movement, the radial movement function and the angular movement function are determined;

[0057] Among them, the radial movement function and the angular movement function are used to indicate the pixel point corresponding to each pixel point in the reference video frame in the first barrage rendering result, so as to convert the first barrage rendering result into the second barrage rendering result, and the reference video frame is the video frame corresponding to the activation time of the display special effect.

[0058] Optionally, the radial movement function further includes a first engulfing disturbance function; the first engulfing disturbance function is obtained by the following operation:

[0059] Determining a first initial perturbation function according to the characteristics of the phagocytic movement;

[0060] Acquire a first noise map matching the size of the video playback area;

[0061] Sampling the first noise map based on the spatial coordinate system to obtain a first sampling result;

[0062] According to the first sampling result, the first initial disturbance function is adjusted to obtain the first engulfing disturbance function.

[0063] Optionally, the pre-configured fragment shader further includes:

[0064] Acquire a second noise map matching the size of the video playback area;

[0065] Sampling the second noise map based on the spatial coordinate system to obtain a second sampling result;

[0066] Determining a second engulfment disturbance function according to the second sampling result;

[0067] Based on the second engulfing disturbance function, a position of each pixel point in the first rendering result in the spatial coordinate system is adjusted.

[0068] Optionally, the establishing a space coordinate system corresponding to the video playback area includes:

[0069] Obtaining the vertical length and horizontal length of the video playback area;

[0070] Determining the aspect ratio of the video playback area according to the longitudinal length and the lateral length;

[0071] According to the aspect ratio, the longitudinal length and the transverse length are normalized to obtain a normalized coordinate system, wherein the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis of the normalized coordinate system are the same;

[0072] Scaling the normalized coordinate system according to a preset scaling factor;

[0073] A height coordinate axis is established on the scaled normalized coordinate system to obtain the spatial coordinate system, wherein the unit length of the height coordinate axis is the same as the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis.

[0074] Another aspect of an embodiment of the present application provides a bullet screen display device, the device comprising:

[0075] A first display module, used for displaying a playback area for playing a target video, wherein the playback area is provided with an engulfing area;

[0076] A second display module is used to obtain a target bullet screen corresponding to the target video, and to move and display the target bullet screen in the playback area;

[0077] The third display module is used to move the target barrage to the engulfing area according to a predetermined rule to present a display effect in which the target barrage is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

[0078] Another aspect of an embodiment of the present application provides a bullet screen display device for a client, the device comprising:

[0079] An acquisition module is used to obtain the first bullet screen rendering result corresponding to the current video frame in the video playback area;

[0080] A determination module, used to determine the coordinates of the engulfment area and the current video playback time according to the current video frame;

[0081] A rendering module, used for inputting the first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time into a pre-configured fragment shader to obtain a second bullet screen rendering result;

[0082] A display module, used for displaying the second bullet screen rendering result in the video playback area;

[0083] Among them, the second bullet screen rendering results of the current video frame and the subsequent multiple continuous video frames are used to show the display effect that the bullet screen is gradually swallowed up by the swallowing area.

[0084] Another aspect of an embodiment of the present application provides a computer device, including:

[0085] at least one processor; and

[0086] a memory communicatively coupled to the at least one processor;

[0087] Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0088] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.

[0089] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.

[0090] The embodiments of the present application using the above-mentioned technical solution may include the following advantages: a new way of displaying barrages, namely, swallowing barrages, may be provided. Specifically: a swallowing area is set in the playback area. When the target barrage corresponding to the target video is moved and displayed in the playback area, the target barrage is moved to the swallowing area according to a predetermined rule, and the target barrage may also be hidden when it enters the swallowing area, so that the target barrage disappears in the playback area. It can be seen that the embodiments of the present application can effectively gather the barrages to the designated area, and hide the barrages entering the designated area, to achieve the visual effect of the barrages being gradually swallowed by the designated area, thereby enhancing the coordination with the video content and improving the user viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0092] Figure 1 The following schematically shows an operating environment diagram of the bullet screen display method according to the first embodiment of the present application;

[0093] Figure 2 The flowchart of the bullet screen display method according to the first embodiment of the present application is schematically shown;

[0094] Figure 3 Schematically shows Figure 2 Flow chart of sub-steps of step S204;

[0095] Figure 4 Schematically shows Figure 3 Flow chart of sub-steps of step S502;

[0096] Figure 5 Schematically shows Figure 2 Flow chart of sub-steps of step S204;

[0097] Figure 6 Schematically shows Figure 5 Flow chart of sub-steps of step S702;

[0098] Figure 7 The flowchart of the bullet screen display method according to the second embodiment of the present application is schematically shown;

[0099] Figure 8 , Fig. 9 A schematic diagram showing the effect of applying a radial movement function to a bullet screen display according to the second embodiment of the present application is shown;

[0100] Fig.10The schematic diagram shows the effect of applying the radial movement function and the angular movement function to display the bullet screen according to the second embodiment of the present application;

[0101] Fig.11 , Fig.12 A schematic diagram showing the effect of applying the radial movement function, the first initial disturbance function and the angular movement function to the bullet screen display according to the second embodiment of the present application is shown;

[0102] Fig.13 A first noise graph according to the second embodiment of the present application is schematically shown;

[0103] Fig.14 , Fig.15 A schematic diagram showing the effect of barrage display using the radial movement function, the first engulfing disturbance function and the angular movement function according to the second embodiment of the present application is shown;

[0104] Fig.16 A second noise graph according to the second embodiment of the present application is schematically shown;

[0105] Fig.17 The schematic diagram shows the effect of applying the radial movement function, the first engulfing disturbance function, the second engulfing disturbance function and the angular movement function to the bullet screen display according to the second embodiment of the present application;

[0106] Fig.18 The normalized coordinate system according to the second embodiment of the present application is schematically shown;

[0107] Fig.19 The schematic diagram shows a normalized coordinate system after scaling according to the second embodiment of the present application;

[0108] Fig. 20 The spatial coordinate system according to the second embodiment of the present application is schematically shown;

[0109] Fig.21 A block diagram schematically shows a bullet screen display device according to the third embodiment of the present application

[0110] Fig. 22 A block diagram of a bullet screen display device according to a fourth embodiment of the present application is schematically shown; and

[0111] Fig.23 The hardware architecture diagram of the computer device according to the fifth embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0112] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0113] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0114] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.

[0115] First, the following terms are explained:

[0116] Bullet comments: refers to comments, messages or interactive content that appear in the form of sliding, scrolling or pop-up in videos or live broadcasts. Bullet comments can include text, emoticons, pictures, animations and other content.

[0117] Gravity: The force of attraction between objects.

[0118] Gravitational region: The region where an object causes gravitational effects.

[0119] Fragment: Also called pixel.

[0120] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below:

[0121] 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 anchors or other users by sending barrages. The barrage refers to the communication information that pops up and moves in a predetermined direction when watching a video.

[0122] However, the existing bullet screen display solutions all maintain the feature of gradually moving from one side of the screen / playing area to the other side. The interactivity and playability of the bullet screen are insufficient, and the bullet screen display effect is poor, resulting in a poor viewing experience for users.

[0123] To this end, an embodiment of the present application provides a technical solution for barrage display. In this technical solution: (1) a more special and interesting barrage display method is provided, which can break up and distort the barrage at a specified time point, and converge to a specific point / specific area, hiding the barrage that reaches the specific point / specific area, and achieving the visual effect of the barrage being gradually swallowed up and disappeared by the specific point / specific area, thereby configuring the screen content of the video at the current moment and improving the user's viewing experience. (2) It supports the reuse of the barrage display method under different manuscript contents (such as text, video, pictures, etc.) through background configuration, and supports the adjustment of the barrage color, swallowing coordinates and swallowing duration according to content differences. See below for details.

[0124] Finally, for ease of understanding, an exemplary operating environment is provided below.

[0125] like Figure 1 As shown, the operating environment diagram includes: a service platform 2 and a client.

[0126] The service platform 2 can be connected to the client terminals (4A, 4B, ..., 4N) via the network.

[0127] The service platform 2 can provide various content and bullet screen services for the client. For example, the bullet screen is sent to the client via the network. The network includes various network devices, such as routers, switches, multiplexers, hubs, bridges, repeaters, firewalls, proxy devices and / or similar devices. The network may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links and combinations thereof. The network may include wireless links, such as cellular links, satellite links, Wi-Fi links, etc.

[0128] The service platform 2 may be a single server, a server cluster or a cloud computing service center, which is used to provide various services. For example:

[0129] The service platform 2 can provide content services. Among them, the content service can be configured to provide content such as video, audio, text data and 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.

[0130] The service platform 2 can be configured to manage messages for various contents. Users can browse and access different contents to view comments for specific contents, such as comments posted by other users for the specific contents. Comments from users associated with specific contents can be output to other users viewing the specific contents. For example, all users accessing the contents (e.g., videos) can view comments associated with the contents. The inputted comments can be output in real time or near real time.

[0131] 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.

[0132] The service platform 2 can be configured to process multiple messages. For example, various processing operations such as message storage, message filtering, and message push. Among them, message storage is used to store multiple messages in a data storage system such as a database. Message filtering can include rejecting or marking messages that match the filtering criteria. Among them, the filtering criteria can specify terms and / or phrases, such as profanity, hate speech, indecent language, etc. The filtering criteria can specify characters, such as symbols, fonts, etc. The filtering criteria can specify languages, computer-readable codes, etc.

[0133] 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 message. 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 further 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 groupings of messages. For example, the bullet screens uploaded by each user can be screened, filtered, sorted, and personalized pushes can be performed.

[0134] The service platform 2 may provide a bullet screen service, which may be configured to allow users to comment and / or share comments (i.e. bullet screens) associated with the content. The bullet screens are presented on the same screen together with the content. The bullet screens may be displayed in an overlay above the content and may have animation effects. For example, the bullet screens may scroll (e.g., from right to left, from left to right, from top to bottom, ...), and the animation effect may be implemented based on the transition property of CSS 3.

[0135] The client (4A, 4B, ... 4N) may be configured to access the content and services of the service platform 2. The client (4A, 4B, ... 4N) may include an electronic device carrying or externally connected to a display panel, such as a mobile device, a tablet device, a laptop computer, a workstation, a virtual reality device, a gaming device, a digital streaming device, a vehicle client, a smart TV, a set-top box, etc., and may also include a virtualized computing example. The virtualized computing example may include a virtual machine, such as a simulation of a computer system, an operating system, a server, etc.

[0136] The client (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. The client (4A, 4B, ..., 4N) may travel to various locations and use different networks to access the service platform 2.

[0137] 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 the embodiment of the present application, the video and other content provided by the service platform 2 can be presented through the client program, and the bullet screen system can present the bullet screen content in a specific way.

[0138] The client (4A, 4B, ... 4N) may include an interface, which may include a touch pad, a touch screen, a mouse, a keyboard or other sensing elements. For example, the input element may be configured to receive user instructions, and the user instructions may enable the client (4A, 4B, ... 4N) to perform various operations, such as inputting bullet comments, etc.

[0139] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs.

[0140] The following uses the client (such as 4A) as the execution subject to introduce the technical solution of the present application through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.

[0141] Embodiment 1

[0142] Figure 2 The flowchart of the bullet screen display method according to the first embodiment of the present application is schematically shown.

[0143] like Figure 2 As shown, the bullet screen display method may include steps S200 to S204, wherein:

[0144] Step S200, displaying a play area for playing a target video, wherein the play area is provided with an engulfing area.

[0145] Step S202, obtaining the target bullet screen corresponding to the target video, and moving and displaying the target bullet screen in the playback area.

[0146] Step S204, moving the target bullet screen to the engulfing area according to a predetermined rule to present a display effect in which the target bullet screen is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

[0147] The barrage display method provided in this embodiment can provide a new way of displaying barrage, namely, swallowing barrage. Specifically: a swallowing area is set in the playback area. When the target barrage corresponding to the target video is moved and displayed in the playback area, the target barrage is moved to the swallowing area according to a predetermined rule, and the target barrage can also be hidden when it enters the swallowing area, so that the target barrage disappears in the playback area. It can be seen that the embodiment of the present application can effectively converge the barrage to the designated area, and hide the barrage entering the designated area, to achieve the visual effect of the barrage being gradually swallowed by the designated area, thereby enhancing the coordination with the video content and improving the user viewing experience.

[0148] The following combination Figure 2 , each step in steps S200 to S204 and other optional steps are described in detail.

[0149] Step S200 , a playback area for playing a target video is displayed, and the playback area is provided with an engulfing area.

[0150] The play area can be an area on the device screen for displaying content (such as text, pictures, videos, etc.). The play area can be used to play various types of videos (live or on-demand), that is, target videos, such as movies, TV shows, videos uploaded by users, animations, etc. One or more engulfment areas can be set in the play area. The engulfment area can be a pixel or a collection of multiple pixels in the play area. The engulfment area can be a transparent or non-transparent point or a mouth. The engulfment area can also be associated with display materials, which can include galaxies, black holes, planets (such as the earth, Jupiter), tornadoes, water vortices, sand vortices, storm eyes, etc. Of course, the display materials can be dynamic or static, and can be configured according to actual needs. In this embodiment, the display materials associated with the engulfment area are displayed in the play area, so that the engulfment area is visualized, which can further optimize the barrage display effect, enrich the display form, improve interactivity and fun, and optimize the user experience.

[0151] Step S202 , obtain the target barrage corresponding to the target video, and move and display the target barrage in the playback area.

[0152] The target video can be associated with a barrage pool, which is used to store the communication information (barrage) released by the user when watching the target video. The target barrage can be all the barrages in the barrage pool, or it can be a part of the barrage filtered out according to preset criteria. Among them, the screening criteria may include user level, barrage type, blocked words, release time, etc. The barrage may include: text barrage, picture barrage, emoticon barrage, animation barrage, etc. Movement rules can be set for the target barrage so that the target barrage moves and displays in the playback area according to predetermined movement rules. The rules can be set according to actual needs, such as: straight line movement, curve movement, random movement, etc. The following will specifically introduce the various movement rules and corresponding barrage display effects provided in the embodiments of the present application.

[0153] Step S204 , the target barrage is moved to the engulfing area according to a predetermined rule to present a display effect in which the target barrage is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

[0154] The predetermined rules are used to guide the target bullet screen to move to the engulfing area, and to hide the target bullet screen entering the engulfing area as needed. It can be set according to the actual situation. For example, the target bullet screen can be a static bullet screen (displayed at a specific position in the playback area for a period of time, without initial speed). If the engulfing area appears in the playback area during the display time of the target bullet screen, the target bullet screen can be moved to the engulfing area in a free fall manner, and hidden after entering the engulfing area, so as to achieve the visual effect of the bullet screen being engulfed. It should be noted that free fall is only an example of movement, and it can also be moved along an arc or other more complex trajectory, which is not limited here. In some embodiments, it can also be configured that when the target bullet screen enters the gravitational range of the engulfing area, it is affected by gravity and begins to move toward the engulfing area. The gravitational force of the engulfing area is limited, and can be weakened or enhanced according to preset conditions (such as time, distance, bullet screen type, etc.). In the case where the gravitational force of the engulfing area is not enough to completely attract the target bullet screen, the target bullet screen breaks free from the gravitational force of the engulfing area, slows down or stops approaching the engulfing area, and moves and displays again according to the original track or new track of the target bullet screen. Exemplarily, the target barrage may also be configured with escape conditions, random escape probabilities, and the like.

[0155] In one example, when the engulfing area should be a dot or a smaller area, the visual effect is: the closer the character is to the engulfing area, the smaller the character or the block of the character close to the engulfing area becomes, until it reaches a size that can be engulfed by the engulfing area, and then enters the engulfing area and disappears after entering the engulfing area, forming a special effect of being engulfed by the engulfing area.

[0156] The predetermined rules will be further exemplified below through more embodiments.

[0157] In an optional embodiment, step S204 may include:

[0158] Step S300: taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory; and moving the target bullet screen along the gravitational attraction trajectory to the engulfing area.

[0159] The engulfing area can simulate the gravitational effect of a planet (such as the Earth, Jupiter) or a star (such as the Sun) to attract the target barrage to gradually approach and enter the engulfing area. For example, the target barrage can directly approach (i.e., free fall) the engulfing area, or it can gradually approach the engulfing area along an elliptical orbit or other more complex orbits, which are not limited here.

[0160] In this embodiment, by simulating gravity, the target barrage can gradually approach and enter the engulfing area through a variety of movement methods, increasing the visual appeal and diversity of the barrage, and cooperating with the display materials of the engulfing barrage to make the barrage display more vivid and interesting, further optimizing the user experience.

[0161] In an optional embodiment, step S300 may include: taking the engulfing center as a black hole, calculating a black hole gravitational attraction trajectory; and moving the target barrage along the black hole gravitational attraction trajectory to the engulfing area.

[0162] The powerful gravitational field of a black hole can cause nearby objects to form a rotating accretion disk. Objects in the accretion disk will lose power and angular momentum due to internal friction and other effects, gradually spiral inward, and eventually be absorbed by the black hole. Therefore, the engulfing area can simulate the gravitational force and engulfment of a black hole on objects, attracting target barrages to gradually approach and enter the engulfing area, and hiding the target barrages that enter the engulfing area, achieving the visual effect of the barrage being engulfed. For example, the target barrage can approach the engulfing area directly, or it can gradually approach the engulfing area along an arc track or a spiral track, which is not limited here.

[0163] In this embodiment, by simulating the gravitational force and swallowing process of a black hole on an object, the swallowing visual effect of the target barrage can be further optimized, increasing the user's understanding and sense of participation in the movement of the barrage, thereby enhancing the interactivity and fun of the barrage.

[0164] In one embodiment, a physical model (algorithm) for simulating gravity can also be constructed, specifically: a gravitational field based on a physical model is established, the gravitational field is centered on the engulfing area, and its strength is inversely proportional to the distance from the engulfing area. Each bullet screen character or pixel is regarded as a mass point and is subjected to the force of the gravitational field according to its mass and position. The motion trajectory of each bullet screen character or pixel under the action of the gravitational field is calculated using a physical engine or other numerical calculation methods. During the movement of the bullet screen, its position and speed will be continuously updated, so that it can more realistically simulate the effect of being attracted by gravity to approach the engulfing area. Among them, the gravitational field can be controlled by multiple parameters, for example: the position of the center of gravity can control the position of the engulfing area; the gravitational strength can control the speed and strength of the bullet screen being attracted. The gravitational range can control which bullet screens will be affected by gravity. By adjusting these parameters, different types of gravitational effects can be achieved, for example: based on different gravitational rules, the bullet screen will move toward the engulfing area along a straight line, tangentially, and complex curves. In order to enhance the visual effect, the acceleration and deceleration effects of the bullet screen are added to make the movement of the bullet screen more natural. Add a barrage deformation effect to make the barrage deform during the process of being swallowed. Add particle effects to simulate the effect of the barrage being swallowed. It can be seen that through the above technical solution, the gravitational effect can be simulated more realistically, making the process of the barrage being attracted by the swallowed area more vivid and interesting. In some embodiments, specific physical formulas can be used to describe the gravitational field, such as Newton's law of universal gravitation or other specific formulas. A specific algorithm can be used to describe the calculation of the motion trajectory of the barrage, such as the Verlet integration algorithm. Specific graphics rendering technology can be used to achieve the visual effect of the barrage.

[0165] In an optional embodiment, step S204 may further include: when the characters in the target barrage move to the target position where the engulfing area is located, hiding the characters moved to the target position, forming a display effect in which the characters in the target barrage disappear when entering the engulfing area.

[0166] Exemplarily, if the engulfing area is composed of a pixel, the target position is the location of the pixel. If the engulfing area is a collection of multiple pixels, the target position can be the boundary of the engulfing area or the location of a specific pixel (e.g., the center pixel). The characters moved to the target position where the engulfing area is located are hidden or removed, and the pixels used to represent the characters can also be made transparent so that the characters disappear in the playback area, achieving the display effect of the characters in the target barrage entering the engulfing area one by one and disappearing. In some embodiments, after a certain number of characters are moved to the target position of the engulfing area, these characters can be hidden together to enrich the engulfing effect.

[0167] In this embodiment, characters enter the engulfing area one by one and are hidden, which can enhance the realism and visual experience of the engulfing barrage and further optimize the barrage display effect.

[0168] In an optional embodiment, the predetermined rule can also be configured as follows: the closer the target barrage is to the engulfing area, the faster it moves. The predetermined rule of this embodiment is more in line with the real scene. The farther the target barrage is from the engulfing area, the smaller the traction force it receives, the slower the moving speed, and the smaller the moving distance (displacement); the closer the target barrage is to the engulfing area, the greater the traction force it receives, the faster the moving speed, and the greater the moving distance. The rules configured by this embodiment can further enhance the realism of the engulfing barrage and optimize the barrage display effect.

[0169] In an optional embodiment, step S204 may include:

[0170] Step S400, taking the engulfing area as the center, moving the target bullet screen radially to gradually approach the engulfing area; or

[0171] Step S402, with the engulfing area as the center, the target barrage is moved in a spiral shape to gradually approach the engulfing area.

[0172] In practical applications, the movement mode of the target bullet screen can be determined based on the initial state of the target bullet screen and the rotation direction of the engulfing area. Fig. 9 , Fig.10 As shown, if the target barrage does not have angular momentum (such as the static barrage described above), the engulfing area can be used as the center and moved radially to gradually approach the engulfing area. If the target barrage has angular momentum (such as a barrage displayed by sliding), the engulfing area can be used as the center and moved spirally to gradually approach the engulfing area. In some embodiments, the rotation direction of the engulfing area (such as a black hole) will also affect the movement of the target barrage.

[0173] In this embodiment, the movement mode of the target barrage can be configured in a personalized manner, effectively enriching the visual effect of the engulfing barrage.

[0174] In an optional embodiment, step S400 may include: in the process of moving the target barrage radially to gradually approach the engulfing area: each pixel point corresponding to the target barrage gradually approaches the engulfing area in the radial direction; the closer to the engulfing area, the faster the pixel points corresponding to the target barrage change.

[0175] In practical applications, the target bullet screen is moved radially to gradually approach the engulfing area. This can be done by moving the target bullet screen as a whole to gradually approach the engulfing area, or by gradually approaching the engulfing area in the radial direction for each pixel representing the target bullet screen. Based on the predetermined rule described above: the closer the target bullet screen is to the engulfing area, the faster its movement speed is. It can be seen that the closer to the engulfing area, the faster the pixel points used to represent the target bullet screen change, causing the target bullet screen to distort and deform, further optimizing the bullet screen display method.

[0176] In this embodiment, the target bullet screen is managed and moved at the pixel level, so that the target bullet screen is distorted when it approaches the engulfing area, thereby enhancing the display effect of the engulfing bullet screen.

[0177] In an optional embodiment, step S402 may include: in the process of moving the target barrage in a spiral manner to gradually approach the engulfing area: each pixel point corresponding to the target barrage gradually approaches the engulfing area along the spiral path; the closer to the engulfing area, the faster the pixel points corresponding to the target barrage change.

[0178] In this embodiment, the target barrage is managed and moved at the pixel level, and each pixel used to represent the target barrage is gradually moved closer to the engulfing area along a spiral path. The closer to the engulfing area, the faster the pixel points used to represent the target barrage change, causing the target barrage to distort and deform, thereby enhancing the dynamic visual effect of the barrage and enriching the barrage display method.

[0179] In an optional embodiment, if Figure 3 As shown, step S204 may include:

[0180] Step S500, obtaining a first engulfing disturbance corresponding to the engulfing area, wherein the first engulfing disturbance is used to change the shape of the target barrage.

[0181] Step S502, in the process of moving the target barrage to the engulfing area: dynamically adjusting the shape of the target barrage according to the first engulfing disturbance.

[0182] In the actual swallowing process, in addition to the effect of swallowing gravity, there are also interferences such as gas resistance, collision or friction between objects, which makes the direction and magnitude of the resultant force acting on the object not equal to the swallowing gravity, resulting in the object not moving along the motion trajectory simulated by the gravity principle. In order to better simulate the swallowing movement and improve the authenticity of the barrage display effect, the predetermined rules can be further optimized.

[0183] For example, the first engulfing disturbance corresponding to the engulfing area can be obtained, and the first engulfing disturbance is used to simulate the interference force on the target barrage in the radial direction, and this interference force can change the shape of the target barrage. In the process of moving the target barrage to the engulfing area, the shape of the target barrage can be dynamically adjusted according to the first engulfing disturbance, so that the target barrage is distorted and deformed during the movement, such as Fig.12 , Fig.15 shown.

[0184] In this embodiment, the shape of the target barrage is dynamically adjusted in real time through the first engulfing interference, simulating the stretching effect of the target barrage under the interference force during the engulfing process, further improving the visual effect and realism of the engulfing barrage.

[0185] In an optional embodiment, there is a gravitational area extending outward from the center of the engulfing area. The gravitational area is the area range that the engulfing gravity corresponding to the engulfing area can affect (act on), and the target barrage can produce corresponding display effects (distortion, deformation, fragmentation, and gradually approaching the engulfing area) after entering the gravitational area. In practical applications, the engulfing area can be located within the gravitational area, and the gravitational area is greater than or equal to the engulfing area. The gravitational area's ability to attract, distort, and break the target barrage is less than that of the engulfing area.

[0186] Correspondingly, if Figure 4 As shown, step S502 may include:

[0187] Step S600, determining the current position of the target barrage.

[0188] Step S602: Determine whether the target barrage is at least partially located within the gravitational area according to the current position of the target barrage.

[0189] Step S604, when the target barrage is partially located in the gravitational area, determine the first block and the second block of the target barrage; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area.

[0190] Step S606: dynamically adjust the shape of the first block according to the first engulfing disturbance.

[0191] In fact, engulfment relies on gravity, and the range of engulfment gravity is limited. When the target barrage is outside the gravitational range (gravitational area) of the engulfment area, the engulfment gravity and interference force can be ignored. Therefore, the current position of the target barrage can be obtained, and it is determined whether the target barrage is at least partially located in the gravitational area, which is divided into the first block and the second block. According to the first engulfment disturbance, only the part of the target barrage located in the gravitational area, that is, the first block, is dynamically adjusted.

[0192] In this embodiment, only the shape of the first block is adjusted to simulate the range of gravity, expand the visual experience, and enhance the realism of the display effect.

[0193] In an optional embodiment, the predetermined rule can also be configured as follows: the closer the target barrage is to the engulfing area, the greater its deformation degree. The predetermined rule of this embodiment is more in line with the real scene. The farther the target barrage is from the engulfing area, the smaller the interference force (such as the collision and friction effect between the target barrages) is, and the smaller the deformation degree is; the closer the target barrage is to the engulfing area, the greater the interference force is, and the greater the deformation degree is. The rules configured by this embodiment can further enhance the realism of the engulfing barrage and optimize the barrage display effect.

[0194] In an optional embodiment, if Figure 5 As shown, step S204 may include:

[0195] Step S700, obtaining a second engulfing disturbance corresponding to the engulfing area.

[0196] Step S702, in the process of moving the target barrage to the engulfing area: according to the second engulfing disturbance, the target barrage is fragmented and displayed, wherein the fragmented displayed target barrage includes multiple discrete pixel points.

[0197] Step S704, moving the target bullet screen displayed in fragmented form so that the target bullet screen displayed in fragmented form gradually approaches the engulfing area.

[0198] As mentioned above, there are multiple forces in the actual swallowing process. Under the pulling and twisting of multiple forces, the deformation of the object may exceed the upper limit, causing the object to be unable to maintain its original shape and be torn into smaller particles. In order to better simulate the swallowing movement and improve the authenticity of the barrage display effect, the predetermined rules can be further optimized.

[0199] For example, the second engulfing disturbance corresponding to the engulfing area can be obtained, and the second engulfing disturbance is used to simulate multiple forces acting on the target bullet screen, which cause the deformation of the target bullet screen to exceed the upper limit and be torn into smaller particles. In the process of moving the target bullet screen to the engulfing area, the target bullet screen can be fragmented and displayed according to the second engulfing disturbance. The fragmented target bullet screen consists of multiple discrete pixel points, such as Fig.17 shown.

[0200] In this embodiment, the target barrage is broken up and displayed through the second engulfing interference, which can further enhance the visual effect and realism of the engulfing barrage.

[0201] In an optional embodiment, if Figure 6 As shown, step S702 may include:

[0202] Step S800, determining the current position of the target barrage.

[0203] Step S802: Determine whether the target barrage is at least partially located within the gravitational area according to the current position of the target barrage.

[0204] Step S804, when the target barrage is partially located in the gravitational area, determine the first block and the second block of the target barrage; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area.

[0205] Step S806: fragment and display the first block according to the second engulfing disturbance.

[0206] As mentioned above, when the target bullet screen is outside the gravitational area, the force acting on the target bullet screen can be ignored. Therefore, the current position of the target bullet screen can be obtained, and it is determined whether the target bullet screen is at least partially located in the gravitational area, divided into the first block and the second block. According to the second engulfing disturbance, only the first block is fragmented and displayed.

[0207] In this embodiment, only the first block is displayed in fragments to simulate the range of gravity, effectively expand the visual experience, and enhance the realism of the display effect.

[0208] In an optional embodiment, the predetermined rule can also be configured as follows: the closer the target barrage is to the engulfing area, the greater its fragmentation degree. The predetermined rule of this embodiment is more in line with the real scene. The farther the target barrage is from the engulfing area, the smaller the various forces it is subjected to, and the smaller the degree of fragmentation; the closer the target barrage is to the engulfing area, the greater the various forces it is subjected to, and the greater the degree of fragmentation. The rules configured in this embodiment can further enhance the realism of the engulfing barrage and optimize the barrage display effect.

[0209] Embodiment 2

[0210] Figure 7 The flowchart of the bullet screen display method according to the first embodiment of the present application is schematically shown.

[0211] like Figure 7 As shown, the bullet screen display method may include steps S900 to S906, wherein:

[0212] Step S900, obtaining the first bullet screen rendering result corresponding to the current video frame in the video playback area.

[0213] Step S902: determining the coordinates of the engulfing area and the current video playing time according to the current video frame.

[0214] Step S904, inputting the first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time into a pre-configured fragment shader to obtain a second bullet screen rendering result.

[0215] Step S906, displaying the second bullet screen rendering result in the video playback area, wherein the second bullet screen rendering result of the current video frame and the subsequent multiple consecutive video frames is used to show the display effect that the bullet screen is gradually swallowed by the swallowing area.

[0216] In practical applications, the first bullet screen rendering result can be represented by an image texture, and the bullet screen corresponding to the current video frame can be rendered on an image texture through a graphics processor GPU. The position of the engulfing area can be configured according to the content features of the current video frame, and the content features may include image features, motion information, object recognition information (objects, people or scenes), semantic information (posture, expression), time information, depth information, and audio information. According to the current video frame, the coordinates of the engulfing area and the current video playback time are determined. The first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time are input as parameters into a pre-configured fragment shader, and the value of each pixel in the first bullet screen rendering result (such as RGB (red, green, blue) channel value, transparency (Alpha) channel value) is adjusted by the fragment shader to obtain the second bullet screen rendering result and output it. The second bullet screen rendering result is displayed in the video playback area. The second bullet screen rendering result of the current video frame and the subsequent multiple consecutive video frames can be used to show the display effect of the bullet screen being gradually engulfed by the engulfing area. In an optional embodiment, the display effect of the barrage being gradually swallowed up by the swallowed area may include: the display effect of the pixel points used to represent the barrage gradually approaching the swallowed area; and when the pixel points used to represent the target barrage are located in the swallowed area, the corresponding pixel points are made transparent to form a special effect of the barrage being gradually swallowed up and disappearing by the swallowed area.

[0217] In this embodiment, by adjusting the different values ​​of each pixel in the image texture corresponding to the video playback area in each video frame, combining multiple consecutive video frames can show the display effect of the barrage being gradually swallowed up and disappearing by the swallowed area (distortion, fragmentation, gathering towards the swallowed area), effectively optimizing the barrage display effect, enriching the display form, improving interactivity and fun, and optimizing the user experience.

[0218] The barrage display method of the embodiment of the present application is simple to implement, highly versatile, and not limited to barrage. Any form of images, animations, etc. can be reused and performance optimized, and each frame only requires one rendering process.

[0219] In some embodiments, each bullet screen can also be rendered frame by frame. For example, an independent special effects canvas can be configured for each bullet screen to manage and draw its own distortion and fragmentation process. The special effects canvases drawn for each bullet screen are drawn one by one on the canvas corresponding to the video playback area, and the special effects canvas is managed to move and scale to the engulfing area. The bullet screen display method provided in this embodiment has strong controllability, rich effects, and can realize personalized configuration, but the rendering pressure is high and the equipment requirements are high.

[0220] The following is an exemplary introduction to how to configure the fragment shader used in the embodiments of the present application.

[0221] In an optional embodiment, the pre-configured fragment shader may be obtained by the following steps:

[0222] Step S1000: establishing a space coordinate system corresponding to the video playback area, wherein the space coordinate system is used to represent the position of the engulfing area in the video playback area and each pixel point of the video playback area.

[0223] Step S1002, determining a radial movement function and an angular movement function according to the characteristics of the engulfment movement.

[0224] Among them, the radial movement function and the angular movement function are used to indicate the pixel point corresponding to each pixel point in the reference video frame in the first barrage rendering result, so as to convert the first barrage rendering result into the second barrage rendering result, and the reference video frame is the video frame corresponding to the activation time of the display special effect.

[0225] In order to achieve pixel-level management of the video playback area, a spatial coordinate system corresponding to the video playback area can be established. Based on the spatial coordinate system and the coordinates of the input engulfing area, the position of the engulfing area in the video playback area can be quickly determined. The spatial coordinate system can also be used for each pixel in the video playback area.

[0226] According to the characteristics of the engulfment movement, the radial movement function and the angular movement function can be determined. For example, the coordinates of the engulfment area in the spatial coordinate system can be expressed as C(x c ,y c , z c ), starting from the moment t0, point C generates a swallowing gravity, and any point in the space is affected by the swallowing gravity and moves toward point C, which is the swallowing phenomenon.

[0227] As mentioned above, the engulfing gravity starts to be generated at point C at time t0. At time t, the displacement of any point in the space under the action of the engulfing gravity can be expressed as s. In order to show the engulfing effect in the video playback area, for the color of a certain pixel at time t, the coordinates of the pixel at time t can be used to invert the coordinates of the pixel at time t0, and the color of the pixel corresponding to the coordinates at time t0 is taken as the color of the pixel at time t.

[0228] The engulfing motion can be decomposed into two types of motion, radial movement toward the engulfing area and angular movement around the engulfing area. Any pixel point P(x, y, z) can be expressed in polar coordinates as P(r, θ), where r is the distance from the point to the center (radius) and θ is the angle with the polar axis.

[0229] For radial motion, the radius of any point P at time t is r, and the radius of point P at time t0 is r0, then the displacement s = r0-r, r0 is a function of r and t. Applying the separation of variables method, it is split into a function R(r) about r and a function T(t) about t, which can be expressed as: r0(r, t)-r = R(r)*T(t).

[0230] Based on the characteristics of engulfing movement, the larger r is, the smaller r0-r should be, that is, the farther the point is from the engulfing area, the smaller the traction force is and the smaller the displacement is, so r0-r is a monotonically decreasing function with respect to r. On the other hand, the larger r is, the larger r0 should also be, that is, r0 is a monotonically increasing function with respect to r, otherwise the points farther away from the engulfing area will surpass the closer points during the movement. Furthermore, the larger t is, the larger r0 is, and r0 is a monotonically increasing function with respect to t. Combining the above monotonic properties, it can be seen that T(t) is required to have a convergence property. There are many functions that meet this property, and you can choose according to your needs. The following is an example, T(t) can be: T(t) = 1-a -t . Where a>1. Accordingly, the slope of R(r) is required to be greater than -1 and less than 0. There are many functions that satisfy this property. In order to facilitate the adjustment effect, power function equations of different orders can be selected, for example: R(r)=b -r . Where b>1. Therefore, the radius r0 of P at time t0 can be expressed as r0(r, t)-r=R(r)*T(t)=b -r *(1-a -t ), a>1, b>1. It should be noted that constants a and b can be adjusted according to needs to obtain a close to real engulfing and attraction effect during operation. In actual application, r0-r can also be scaled by constant p (p>0) to adjust the speed of the barrage moving radially close to the engulfing area. The effect is as follows Figure 8 , Fig. 9 shown.

[0231] For angular movement, the angle between any point P and the polar axis at time t is θ, and the angle between point P and the polar axis at time t0 is θ0, which is a function of r and t. Applying the separation of variables method, it is split into a function G(r) about r and a function H(t) about t, which can be expressed as: θ0(r, t)-θ=G(r)*H(t).

[0232] Based on the characteristics of engulfing motion, the smaller the radius r, the faster the rotation. The longer the time t, the greater the rotation angle. There are many analytical formulas that meet the above two properties, which can be selected according to needs. Considering the limited duration of the actual engulfing effect animation and the convenience of adjusting the effect, the following piecewise function can be selected:

[0233] G(r)=(1-r / c) m , (r<c); 0, (r≥c).

[0234] H(t)=(t / d), (t<d); 1, (t≥d).

[0235] It should be noted that the constants c and d can be adjusted according to the needs to obtain a close to real engulfing attraction effect during operation. In actual application, θ0-θ can also be scaled by a constant q (q>0) to adjust the rotation direction of the bullet screen gradually approaching the engulfing area. Fig.10 shown.

[0236] After determining the radial movement function and the angular movement function, the radial movement function and the angular movement function can be used to find the pixel point corresponding to each pixel point in the first barrage rendering result in the reference video frame to convert the first barrage rendering result into the second barrage rendering result, and the reference video frame is the video frame corresponding to the activation time (t0) of the display special effect.

[0237] In this embodiment, the radial movement function and the angular movement function are configured according to the characteristics of the engulfing motion to obtain an engulfing attraction effect close to reality during operation.

[0238] In some embodiments, the fragment shader may also be configured with the start time t0 and end time te of the swallowing bullet screen display special effect to determine the duration of the display special effect. The input current playback time is matched with the duration of the display special effect, and if the match is successful, the first bullet screen rendering result is converted into the second bullet screen rendering result.

[0239] In an optional embodiment, the radial movement function also includes a first engulfing disturbance function; the first engulfing disturbance function is obtained by the following operations: determining a first initial disturbance function based on the characteristics of the engulfing movement; obtaining a first noise map that matches the size of the video playback area; sampling the first noise map based on the spatial coordinate system to obtain a first sampling result; and adjusting the first initial disturbance function based on the first sampling result to obtain the first engulfing disturbance function.

[0240] In order to simulate various interferences in the engulfing movement (such as collision friction between objects, gas resistance, etc.), one or more disturbance offsets can be added to the radial movement function. According to the characteristics of the engulfing movement, the disturbance offset should be continuously distributed along the radial direction of the engulfing area. These disturbance offsets are determined as the first initial disturbance function, which can be simulated by the superposition of one or more sine functions. The disturbance intensity S (r, t) can also be configured for the first initial disturbance function to dynamically adjust the disturbance size, thereby controlling the deformation degree of the target barrage. The display effect of directly applying the first initial disturbance function is as follows: Fig.11 , Fig.12 In order to enrich the disturbance effect and get closer to the real scene, the amplitude, period and phase of the sine function can also be disturbed. For example, a first noise image matching the size of the video playback area can be obtained, such as Fig.13 As shown. The noise map can include Perlin noise, simple noise, random noise, etc. Based on the space as the coordinate system, the first noise map is sampled, and the red, green, and blue channels of the sampling results are linearly changed and superimposed on the amplitude, phase, and period of the sine function to obtain the first swallowing disturbance function. The corresponding display effect is as follows Fig.14 , Fig.15 In this embodiment, by configuring the first swallowing disturbance function, the disturbance is made more random, and the shape of the target barrage is made more reasonable and realistic.

[0241] In an optional embodiment, the preconfigured fragment shader can also be obtained through the following steps: obtaining a second noise map that matches the size of the video playback area; sampling the second noise map based on the spatial coordinate system to obtain a second sampling result; determining a second engulfing disturbance function based on the second sampling result; and adjusting the position of each pixel point in the first rendering result in the spatial coordinate system based on the second engulfing disturbance function.

[0242] In order to simulate the phenomenon that once the resultant force acting on the object in the engulfing movement exceeds the upper limit of its elastic deformation, the object will be torn into small particles, a disturbance offset can also be added to the first bullet screen rendering result. Unlike the aforementioned radial disturbance offset, the disturbance offset added in this embodiment is discrete, which is used to break up and fragment the originally continuous content (such as the target bullet screen). Exemplarily, a second noise map matching the size of the video playback area can be obtained, such as Fig.16 As shown, the second noise map can be a white noise map. Based on the spatial coordinate system, the second noise map is sampled, and some linear changes are made to the red, green, and blue channels of the sampling results to obtain the second engulfing disturbance function. The second engulfing disturbance function (the red, green, and blue channel values ​​after the linear changes) is added to the point P (x, y, z), so that the originally continuous pixels in the first rendering result become discrete. This discretization will be synchronized to the second rendering result, thereby achieving the display effect of the bullet screen being broken, such as Fig.17 In some embodiments, the disturbance intensity D(r, t) may also be configured for the second engulfing disturbance function to dynamically adjust the disturbance size.

[0243] In actual applications, the bullet screen engulfing effect can be two-dimensional or three-dimensional. The two-dimensional display effect is that the bullet screen converges to the engulfing area and disappears, and the three-dimensional display effect is that the bullet screen converges and falls into the engulfing area and disappears. Different effects can be achieved by configuring different coordinate systems. An exemplary solution will be provided below.

[0244] In an optional embodiment, step S1000 may include:

[0245] Step S1100, obtaining the vertical length and horizontal length of the video playback area.

[0246] Step S1102: determining the aspect ratio of the video playback area according to the longitudinal length and the lateral length.

[0247] Step S1104 , normalizing the longitudinal length and the transverse length according to the aspect ratio to obtain a normalized coordinate system, wherein the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis of the normalized coordinate system are the same.

[0248] Step S1106: scaling the normalized coordinate system according to a preset scaling factor.

[0249] Step S1108, establishing a height coordinate axis on the scaled normalized coordinate system to obtain the spatial coordinate system, wherein the unit length of the height coordinate axis is the same as the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis.

[0250] In the fragment shader of the graphics processor GPU, a spatial coordinate system corresponding to the video playback area is established. The specific steps are as follows: Get the vertical length and horizontal length of the video playback area and determine the aspect ratio. According to the aspect ratio, the vertical length and horizontal length are normalized to obtain a normalized coordinate system, such as Fig.18 As shown in Figure 1, the unit length of the vertical axis of the normalized coordinate is the same as the unit length of the horizontal axis. In order to make the unit length of the coordinate system match the unit length of the real world space, a scaling factor can be introduced. The normalized coordinate system is scaled by the scaling factor, as shown in Figure 1. Fig.19 As shown. The coordinate system at this time is a two-dimensional coordinate system. In order to make the swallowing effect more realistic and shocking, a three-dimensional coordinate system can be established. The height coordinate axis is established on the scaled normalized coordinate system to obtain a spatial coordinate system, as shown Fig. 20 The unit length of the height coordinate axis is the same as the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis.

[0251] In this embodiment, through aspect ratio, normalization, scaling, and establishing a height axis, a three-dimensional space coordinate axis that matches the real world can be obtained, achieving a more realistic engulfing effect and further optimizing the barrage display effect.

[0252] Embodiment 3

[0253] Fig.21 The block diagram of the bullet screen display device according to the third embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are 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 program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig.21 As shown, the device 2000 may include: a first display module 2100, a second display module 2200 and a third display module 2300, wherein:

[0254] A first display module 2000 is used to display a playback area for playing a target video, wherein the playback area is provided with an engulfing area;

[0255] The second display module 2200 is used to obtain a target bullet screen corresponding to the target video, and move and display the target bullet screen in the playback area;

[0256] The third display module 2300 is used to move the target barrage to the engulfing area according to a predetermined rule to present a display effect in which the target barrage is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

[0257] As an optional embodiment, moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0258] Taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory;

[0259] Move the target barrage along the gravitational attraction trajectory to the engulfing area.

[0260] As an optional embodiment, taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory includes:

[0261] Taking the devouring center as a black hole, calculating the gravitational attraction trajectory of the black hole;

[0262] Move the target barrage along the black hole gravitational attraction trajectory to the engulfing area.

[0263] As an optional embodiment, the step of moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0264] When the characters in the target bullet screen move to the target position where the engulfing area is located, the characters moved to the target position are hidden, forming a display effect that the characters in the target bullet screen disappear after entering the engulfing area.

[0265] As an optional embodiment, the predetermined rule includes:

[0266] The closer the target barrage is to the engulfing area, the faster the target barrage moves.

[0267] As an optional embodiment, moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0268] Taking the engulfing area as the center, moving the target barrage radially to gradually approach the engulfing area; or

[0269] With the engulfing area as the center, the target barrage is moved in a spiral shape to gradually approach the engulfing area.

[0270] As an optional embodiment, in the process of moving the target barrage radially to gradually approach the engulfing area: each pixel point corresponding to the target barrage gradually approaches the engulfing area along a radial direction or a spiral path; the closer to the engulfing area, the faster the pixel points corresponding to the target barrage change.

[0271] As an optional embodiment, the step of moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0272] Acquire a first engulfing disturbance corresponding to the engulfing area, where the first engulfing disturbance is used to change the shape of the target barrage;

[0273] In the process of moving the target barrage to the engulfing area: dynamically adjusting the shape of the target barrage according to the first engulfing disturbance.

[0274] As an optional embodiment, there is a gravitational region extending outward from the center of the engulfing region;

[0275] Correspondingly, dynamically adjusting the shape of the target barrage according to the first engulfing disturbance includes:

[0276] Determining the current position of the target barrage;

[0277] Determining, according to the current position of the target barrage, whether the target barrage is at least partially located within the gravitational region;

[0278] In the case where the target bullet screen is partially located in the gravitational area, determining a first block and a second block of the target bullet screen; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area;

[0279] According to the first engulfing disturbance, the shape of the first block is dynamically adjusted.

[0280] As an optional embodiment, the predetermined rule includes: the closer the target barrage is to the engulfing area, the greater the deformation degree of the target barrage is.

[0281] As an optional embodiment, the step of moving the target bullet screen to the engulfing area according to a predetermined rule includes:

[0282] Obtaining a second engulfing disturbance corresponding to the engulfing area;

[0283] In the process of moving the target bullet screen to the engulfing area: according to the second engulfing disturbance, the target bullet screen is fragmented and displayed, wherein the fragmented target bullet screen includes a plurality of discrete pixel points;

[0284] The target bullet screen of the fragmented display is moved so that the target bullet screen of the fragmented display gradually approaches the engulfing area.

[0285] As an optional embodiment, there is a gravitational region extending outward from the center of the engulfing region;

[0286] Correspondingly, according to the second engulfing disturbance, fragmenting and displaying the target barrage includes:

[0287] Determining the current position of the target barrage;

[0288] Determining, according to the current position of the target barrage, whether the target barrage is at least partially located within the gravitational region;

[0289] In the case where the target bullet screen is partially located in the gravitational area, determining a first block and a second block of the target bullet screen; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area;

[0290] According to the second engulfing disturbance, the first block is fragmented and displayed.

[0291] As an optional embodiment, the predetermined rule includes: the closer the target barrage is to the engulfing area, the greater the degree of fragmentation of the target barrage is.

[0292] Embodiment 4

[0293] Fig. 22 The block diagram of the bullet screen display device according to the fourth embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are 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 program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig. 22 As shown, the device 3000 may include: an acquisition module 3100, a determination module 3200, a rendering module 3300 and a display module 3400, wherein:

[0294] The acquisition module 3100 is used to obtain the first bullet screen rendering result corresponding to the current video frame in the video playback area;

[0295] A determination module 3200, configured to determine the coordinates of the engulfment area and the current video playback time according to the current video frame;

[0296] The rendering module 3300 is used to input the first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time into a pre-configured fragment shader to obtain a second bullet screen rendering result;

[0297] The display module 3400 is used to display the second bullet screen rendering result in the video playback area;

[0298] Among them, the second bullet screen rendering results of the current video frame and the subsequent multiple continuous video frames are used to show the display effect that the bullet screen is gradually swallowed up by the swallowing area.

[0299] As an optional embodiment, the display special effect of the bullet screen being gradually swallowed by the swallowing area includes:

[0300] A display effect used to represent the pixel points of the bullet screen gradually approaching the engulfing area; and

[0301] When a pixel used to represent the bullet screen is located in the engulfing area, the pixel is made transparent to form a display effect in which the bullet screen is gradually engulfed and disappears by the engulfing area.

[0302] As an optional embodiment, the pre-configured fragment shader is obtained by the following operations:

[0303] Establishing a spatial coordinate system corresponding to the video playback area, wherein the spatial coordinate system is used to represent the position of the engulfing area in the video playback area and each pixel point of the video playback area;

[0304] According to the characteristics of phagocytic movement, the radial movement function and the angular movement function are determined;

[0305] Among them, the radial movement function and the angular movement function are used to indicate the pixel point corresponding to each pixel point in the reference video frame in the first barrage rendering result, so as to convert the first barrage rendering result into the second barrage rendering result, and the reference video frame is the video frame corresponding to the activation time of the display special effect.

[0306] As an optional embodiment, the radial movement function further includes a first engulfing disturbance function; the first engulfing disturbance function is obtained by the following operation:

[0307] Determining a first initial perturbation function according to the characteristics of the phagocytic movement;

[0308] Acquire a first noise map matching the size of the video playback area;

[0309] Sampling the first noise map based on the spatial coordinate system to obtain a first sampling result;

[0310] According to the first sampling result, the first initial disturbance function is adjusted to obtain the first engulfing disturbance function.

[0311] As an optional embodiment, the configuration operation of the fragment shader further includes:

[0312] Acquire a second noise map matching the size of the video playback area;

[0313] Sampling the second noise map based on the spatial coordinate system to obtain a second sampling result;

[0314] Determining a second engulfment disturbance function according to the second sampling result;

[0315] Based on the second engulfing disturbance function, a position of each pixel point in the first rendering result in the spatial coordinate system is adjusted.

[0316] As an optional embodiment, the establishing of a space coordinate system corresponding to the video playback area includes:

[0317] Obtaining the vertical length and horizontal length of the video playback area;

[0318] Determining the aspect ratio of the video playback area according to the longitudinal length and the lateral length;

[0319] According to the aspect ratio, the longitudinal length and the transverse length are normalized to obtain a normalized coordinate system, wherein the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis of the normalized coordinate system are the same;

[0320] Scaling the normalized coordinate system according to a preset scaling factor;

[0321] A height coordinate axis is established on the scaled normalized coordinate system to obtain the spatial coordinate system, wherein the unit length of the height coordinate axis is the same as the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis.

[0322] Embodiment 5

[0323] Fig.23 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the bullet screen display method according to the third embodiment of the present application is schematically shown. 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. Fig.23 As shown, 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:

[0324] The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as a hard disk or a 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 memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (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 in the computer device 10000, such as the program code of the bullet screen display method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.

[0325] 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 run the program code stored in the memory 10010 or process data.

[0326] The network interface 10030 may include a wireless network interface or a wired network interface, and 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 through 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 communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0327] It should be pointed out that Fig.23 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0328] In this embodiment, the barrage display method 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.

[0329] Embodiment 6

[0330] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the barrage display method in the embodiment are implemented.

[0331] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEP ROM), programmable read-only memory (PROM), magnetic memory, 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 bullet screen display method 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.

[0332] Embodiment 7

[0333] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.

[0334] 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 by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0335] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A bullet screen display method, characterized in that: The method comprises: Displaying a playback area for playing a target video, wherein the playback area is provided with an engulfing area; Obtain a target bullet screen corresponding to the target video, and move and display the target bullet screen in the playback area; The target bullet screen is moved to the engulfing area according to a predetermined rule to present a display effect in which the target bullet screen is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

2. The method according to claim 1, characterized in that Moving the target bullet screen to the engulfing area according to a predetermined rule includes: Taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory; Move the target barrage along the gravitational attraction trajectory to the engulfing area.

3. The method according to claim 2, characterized in that Taking the engulfing center as the gravitational center, calculating the gravitational attraction trajectory includes: Taking the devouring center as a black hole, calculating the gravitational attraction trajectory of the black hole; Move the target barrage along the black hole gravitational attraction trajectory to the engulfing area.

4. The method according to any one of claims 1 to 3, characterized in that: The step of moving the target bullet screen to the engulfing area according to a predetermined rule comprises: When the characters in the target bullet screen move to the target position where the engulfing area is located, the characters moved to the target position are hidden, forming a display effect that the characters in the target bullet screen disappear after entering the engulfing area.

5. The method according to any one of claims 1 to 3, characterized in that: The predetermined rules include: The closer the target barrage is to the engulfing area, the faster the target barrage moves.

6. The method according to any one of claims 1 to 3, characterized in that: Moving the target bullet screen to the engulfing area according to a predetermined rule includes: Taking the engulfing area as the center, moving the target barrage radially to gradually approach the engulfing area; or With the engulfing area as the center, the target barrage is moved in a spiral shape to gradually approach the engulfing area.

7. The method according to claim 6, characterized in that In the process of moving the target barrage radially to gradually approach the engulfing area: each pixel point corresponding to the target barrage gradually approaches the engulfing area along the radial direction or spiral path; the closer to the engulfing area, the faster the pixel points corresponding to the target barrage change.

8. The method according to any one of claims 1 to 3, characterized in that: The step of moving the target bullet screen to the engulfing area according to a predetermined rule comprises: Acquire a first engulfing disturbance corresponding to the engulfing area, where the first engulfing disturbance is used to change the shape of the target barrage; In the process of moving the target barrage to the engulfing area: dynamically adjusting the shape of the target barrage according to the first engulfing disturbance.

9. The method according to claim 8, characterized in that There is a gravitational region extending outward from the center of the engulfing region; Correspondingly, dynamically adjusting the shape of the target barrage according to the first engulfing disturbance includes: Determining the current position of the target barrage; Determining, according to the current position of the target barrage, whether the target barrage is at least partially located within the gravitational region; In the case where the target bullet screen is partially located in the gravitational area, determining a first block and a second block of the target bullet screen; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area; According to the first engulfing disturbance, the shape of the first block is dynamically adjusted.

10. The method according to claim 8, characterized in that The predetermined rule includes: the closer the target barrage is to the engulfing area, the greater the deformation degree of the target barrage is.

11. The method according to any one of claims 1 to 3, characterized in that: The step of moving the target bullet screen to the engulfing area according to a predetermined rule comprises: Obtaining a second engulfing disturbance corresponding to the engulfing area; In the process of moving the target bullet screen to the engulfing area: according to the second engulfing disturbance, the target bullet screen is fragmented and displayed, wherein the fragmented target bullet screen includes a plurality of discrete pixel points; The target bullet screen of the fragmented display is moved so that the target bullet screen of the fragmented display gradually approaches the engulfing area.

12. The method according to claim 11, characterized in that There is a gravitational region extending outward from the center of the engulfing region; Correspondingly, according to the second engulfing disturbance, fragmenting and displaying the target barrage includes: Determining the current position of the target barrage; Determining, according to the current position of the target barrage, whether the target barrage is at least partially located within the gravitational region; In the case where the target bullet screen is partially located in the gravitational area, determining a first block and a second block of the target bullet screen; wherein the first block is located in the gravitational area, and the second block is located outside the gravitational area; According to the second engulfing disturbance, the first block is fragmented and displayed.

13. The method according to claim 11, characterized in that The predetermined rule includes: the closer the target barrage is to the engulfing area, the greater the fragmentation degree of the target barrage is.

14. A bullet screen display method, characterized in that: For clients, including: Get the first bullet screen rendering result corresponding to the current video frame in the video playback area; Determine the coordinates of the engulfment area and the current video playback time according to the current video frame; Inputting the first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time into a pre-configured fragment shader to obtain a second bullet screen rendering result; Displaying the second bullet screen rendering result in the video playback area; Among them, the second bullet screen rendering results of the current video frame and the subsequent multiple continuous video frames are used to show the display effect that the bullet screen is gradually swallowed up by the swallowing area.

15. The method according to claim 14, characterized in that The display effects of the bullet screen being gradually swallowed by the swallowing area include: A display effect used to represent the pixel points of the bullet screen gradually approaching the engulfing area; and When a pixel used to represent the bullet screen is located in the engulfing area, the pixel is made transparent to form a display effect in which the bullet screen is gradually engulfed and disappears by the engulfing area.

16. The method according to claim 14, characterized in that The pre-configured fragment shader is obtained by the following operations: Establishing a spatial coordinate system corresponding to the video playback area, wherein the spatial coordinate system is used to represent the position of the engulfing area in the video playback area and each pixel point of the video playback area; According to the characteristics of phagocytic movement, the radial movement function and the angular movement function are determined; Among them, the radial movement function and the angular movement function are used to indicate the pixel point corresponding to each pixel point in the reference video frame in the first barrage rendering result, so as to convert the first barrage rendering result into the second barrage rendering result, and the reference video frame is the video frame corresponding to the activation time of the display special effect.

17. The method according to claim 16, characterized in that The radial movement function also includes a first engulfing disturbance function; the first engulfing disturbance function is obtained by the following operation: Determining a first initial perturbation function according to the characteristics of the phagocytic movement; Acquire a first noise map matching the size of the video playback area; Sampling the first noise map based on the spatial coordinate system to obtain a first sampling result; According to the first sampling result, the first initial disturbance function is adjusted to obtain the first engulfing disturbance function.

18. The method according to claim 16, characterized in that Also includes: Acquire a second noise map matching the size of the video playback area; Sampling the second noise map based on the spatial coordinate system to obtain a second sampling result; Determining a second engulfment disturbance function according to the second sampling result; Based on the second engulfing disturbance function, a position of each pixel point in the first rendering result in the spatial coordinate system is adjusted.

19. The method according to claim 16, characterized in that The establishing of the space coordinate system corresponding to the video playback area includes: Obtaining the vertical length and horizontal length of the video playback area; Determining the aspect ratio of the video playback area according to the longitudinal length and the lateral length; According to the aspect ratio, the longitudinal length and the transverse length are normalized to obtain a normalized coordinate system, wherein the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis of the normalized coordinate system are the same; Scaling the normalized coordinate system according to a preset scaling factor; A height coordinate axis is established on the scaled normalized coordinate system to obtain the spatial coordinate system, wherein the unit length of the height coordinate axis is the same as the unit length of the longitudinal coordinate axis and the unit length of the transverse coordinate axis.

20. A bullet screen display device, characterized in that: The device comprises: A first display module, used for displaying a playback area for playing a target video, wherein the playback area is provided with an engulfing area; A second display module is used to obtain a target bullet screen corresponding to the target video, and to move and display the target bullet screen in the playback area; The third display module is used to move the target barrage to the engulfing area according to a predetermined rule to present a display effect in which the target barrage is attracted by the engulfing area and approaches, enters and / or disappears after entering the engulfing area.

21. A bullet screen display device, characterized in that: For a client, the device comprises: An acquisition module is used to obtain the first bullet screen rendering result corresponding to the current video frame in the video playback area; A determination module, used to determine the coordinates of the engulfment area and the current video playback time according to the current video frame; A rendering module, used for inputting the first bullet screen rendering result, the coordinates of the engulfing area and the current video playback time into a pre-configured fragment shader to obtain a second bullet screen rendering result; A display module, used for displaying the second bullet screen rendering result in the video playback area; Among them, the second bullet screen rendering results of the current video frame and the subsequent multiple continuous video frames are used to show the display effect that the bullet screen is gradually swallowed up by the swallowing area.

22. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 19.

23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 19 is implemented.

24. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claims 1 to 19 are implemented.