Bullet screen display method and device and electronic equipment
By combining barrage with high content similarity to aggregate barrage and displaying the same target barrage according to user input, the problem of single barrage display and too many similar barrages is solved, and the display effect and interactivity of barrage is improved.
Patent Information
- Application Number
- CN202411995900.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-18
AI Technical Summary
The display form of the existing barrage function is single, resulting in poor display effect, and if there are too many similar barrages, it is easy to block the video content.
By combining barrages with high content similarity into aggregated barrages, and displaying target barrages with the same content as aggregated barrage content in the video playback interface, the number is positively correlated with the attribute parameters of the target input command.
It effectively avoids the occlusion problem caused by too many similar barrages, enriches the barrage content of the video playback interface, and improves the display effect and interactivity of the barrage.
Smart Images

Figure CN119854535A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a bullet screen display method, device and electronic equipment. Background Art
[0002] With the development of streaming media, users have higher and higher requirements for the viewing atmosphere. Adding the barrage function during the playback of audio and video has become an important way to improve the audio and video viewing experience.
[0003] The current barrage function supports users to express their opinions or comments on videos by sending barrages. However, the barrages are displayed in a single way on the video after being sent, and the barrage display effect is poor. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a bullet screen display method, device and electronic device, which to a certain extent solves the problem that the current bullet screen display form is single and the display effect is poor. The specific technical solution is as follows:
[0005] In a first aspect of the implementation of the present invention, a bullet screen display method is first provided, the method is applied to a client device, and the method includes:
[0006] Display a video playback interface of a target video containing aggregated barrages, where the aggregated barrages are barrages obtained by merging at least two barrages in the barrage data corresponding to the target video, and the content similarity between the at least two barrages is greater than or equal to a similarity threshold;
[0007] Receiving a target input instruction for the aggregated bullet screen;
[0008] Target bullet screens with the same content as the aggregated bullet screen are displayed, and the number of the target bullet screens is positively correlated with the attribute parameters of the target input instruction.
[0009] In a second aspect of the implementation of the present invention, a bullet screen display device is also provided, the device is applied to a client device, and the device includes:
[0010] A display module, used to display a video playback interface of a target video containing an aggregated barrage, wherein the aggregated barrage is a barrage obtained by merging at least two barrages in the barrage data corresponding to the target video, and the content similarity between the at least two barrages is greater than or equal to a similarity threshold;
[0011] A receiving module, used for receiving a target input instruction for the aggregated bullet screen;
[0012] The display module is also used to display target bullet screens with the same content as the aggregated bullet screens, and the number of the target bullet screens is positively correlated with the attribute parameters of the target input instructions.
[0013] In a third aspect of the present invention, there is also provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0014] Memory, used to store computer programs;
[0015] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0016] In the fourth aspect of the implementation of the present invention, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes any barrage display method described in the first aspect above.
[0017] In a fifth aspect of the implementation of the present invention, there is also provided a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, any method described in the first aspect is implemented.
[0018] The barrage display method, device and electronic device provided in the embodiment of the present application are displayed on the video playback interface by merging barrages with high content similarity into aggregated barrages, so as to display the barrages with the same content as the aggregated barrages after receiving the target input instruction for the aggregated barrages. By merging barrages with similar content into aggregated barrages for combined display, the problem of large obstruction of the video content by barrages due to too many similar barrages can be effectively avoided. In addition, the combined display of barrages with similar content can also effectively avoid the problem of repeated display of a large number of similar barrages, which makes the barrage content of the video playback interface relatively single. By effectively releasing the barrage display space, the barrage content displayed on the same screen can be enriched, and the display effect of high-quality barrages of different contents can be improved. In addition, in the technical solution, the number of target barrages is positively correlated with the attribute parameters of the target input instruction. Therefore, the user can input the target input instruction to add a target barrage with the same content as the aggregated barrage in the video playback interface, thereby effectively improving the interactivity of the aggregated barrage, enriching the display form of the aggregated barrage, and improving the barrage effect. Compared with the solution of using a violent shielding strategy to directly shield all barrages with similar content to avoid too many similar barrages affecting the user experience. The technical solution of the present application provides a compromise display solution, which can reduce the excessive display of similar barrages at the same time and meet the high-quality barrage display effect. At the same time, it can also support users to increase the display number of preferred barrages through interactive operations, meet the needs of users to express their preferred barrages, and especially meet the fans' needs for chasing stars from the audience group. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0020] Figure 1 A flowchart of a bullet screen display method provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of a bullet screen display method provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of another bullet screen display method provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a bullet screen special effect of a video playback interface provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of another bullet screen special effect of a video playback interface provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram of a bullet screen special effect of another video playback interface provided in an embodiment of the present application;
[0026] Figure 7 A system schematic diagram of an electronic device provided in an embodiment of the present application;
[0027] Figure 8 A block diagram of a bullet screen rendering device provided in an embodiment of the present application;
[0028] Fig. 9 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. For ease of understanding, the following will give priority to explaining the concepts involved in the embodiments of the present application.
[0030] Video frame: It is the basic unit of video. Video can be understood as a series of continuous static images (i.e. video frames). These static images are played at a certain rate, thus creating a visual effect of continuous motion and forming a video. Therefore, during the video playback process, the video frame has a certain refresh frequency, which is determined by the aforementioned playback rate.
[0031] Barrage: Each video frame has corresponding barrage data. The barrage can be rendered in the video frame according to the barrage display data of the barrage. Among them, the barrage also has a certain refresh frequency, and the refresh frequency of the barrage can be at least the same as the refresh frequency of the video frame. When the refresh frequency of the barrage is the same as the refresh frequency of the video frame, it can be understood that a single video frame has a corresponding barrage data, and one barrage data can include the barrage display data of at least one barrage. At least one barrage can be rendered in the video frame according to the barrage data. When the refresh frequency of the barrage is greater than the refresh frequency of the video frame, it can be understood that the video frame corresponds to multiple barrage data. Each barrage data may include the barrage display data of at least one barrage. Therefore, the barrage refresh time can be reached multiple times within the display period of a single video frame. Every time the barrage refresh time is reached, at least one barrage can be rendered in the same video frame according to one barrage data.
[0032] View containers are the basic units used to layout pages and hold other components. They provide a way to organize and display content on a page and to control the overall structure and layout of the page through nesting and layout. Similar to the HTML in HyperText Markup Language (HTML). Tags are used to create the basic framework and structure of the page. Commonly used view containers include: View: The most basic view container component, equivalent to HTML Tag. scroll-view: used to create a swiperable view area, suitable for long lists or content that needs to be swiped. swiper: used to create a sliding view, often used for image carousels or sliding to switch content.
[0033] Please refer to Figure 1 , which shows a flow chart of a bullet screen display method provided by an embodiment of the present application. The bullet screen display method can be applied to electronic devices. Optionally, the electronic device may include a personal computer, a tablet computer, a mobile phone, a wearable device, etc. Figure 1 As shown, the bullet screen display method includes:
[0034] Step 101: Display the video playback interface of the target video containing the aggregated barrage.
[0035] In an embodiment of the present application, a video playback interface is used to play a target video containing a barrage. The electronic device can display video frames with barrages in sequence in the video playback interface according to the video frame playback order of the target video to play the target video containing the barrage. Among them, the barrage of a single video frame may include at least one aggregated barrage. The aggregated barrage is a barrage after at least two barrages in the barrage data corresponding to the target video are merged. The content similarity between the at least two barrages is greater than or equal to the similarity threshold. Of course, a single video frame may also include non-aggregate barrages. The content similarity between the non-aggregate barrage and other barrages is less than the similarity threshold.
[0036] Based on this, in the process of displaying a video frame with aggregated bullet comments, each time the bullet comment refresh time is reached, it is necessary to first perform an aggregated bullet comment generation process to render the aggregated bullet comment on the video frame. The aggregated bullet comment generation process specifically includes:
[0037] Get a bullet chat data corresponding to the video frame, the bullet chat data includes bullet chat display data of at least one bullet chat. Among them, the bullet chat display data may include bullet chat content, bullet chat style and bullet chat display position. The bullet chat content refers to the text content, picture content, etc. of the bullet chat. The bullet chat style includes at least one of the following: font size, font color, font type, font border, border type, transparency, bullet chat texture, etc. The bullet chat display position refers to the display position of the bullet chat in the video frame.
[0038] Afterwards, for each barrage in the barrage data, the content of the single barrage is predicted to be similar to the content of other barrages in the barrage data to obtain the content similarity between the single barrage and the other barrages; determine whether there is a content similarity greater than or equal to the similarity threshold; if so, determine the barrages with content similarity greater than the similarity threshold as the same type of barrages; merge multiple barrages of the same type to obtain the aggregated barrage corresponding to the single barrage, and then obtain at least one aggregated barrage. In addition, it can be determined that the barrages in the barrage data whose content similarity with other barrages is less than the similarity threshold are non-aggregated barrages. Render the barrage on the video frame according to the barrage display data of the aggregated barrage and the barrage display data of the non-aggregated barrage in the barrage data.
[0039] It should be noted that, as mentioned above, a single video frame may correspond to at least two bullet-screen data. Accordingly, the electronic device may render the bullet-screen on the video frame once at each bullet-screen refresh moment according to one bullet-screen data corresponding to the video frame, so as to render the bullet-screen on the video frame at least twice during the display of a single video frame according to at least two bullet-screen data corresponding to the video frame, so as to display the video frame with the bullet-screen.
[0040] In some embodiments, the process of merging multiple similar barrages to obtain an aggregated barrage may include: merging the contents of multiple similar barrages to obtain merged content. Determining the barrage display data of a similar barrage among multiple similar barrages as candidate barrage data, and replacing the content in the candidate data with the merged content, and determining the candidate barrage data after the content is replaced as the barrage display data of the aggregated barrage. Alternatively, the electronic device may also directly determine the barrage display data of a similar barrage among multiple similar barrages as the barrage display data of the aggregated barrage.
[0041] Step 102: Receive target input instructions for aggregated bullet comments.
[0042] In an embodiment of the present application, the target input instruction is used to trigger the display of the target barrage corresponding to the aggregate barrage. The barrage content of the target barrage is the same as the barrage content of the aggregate barrage. Optionally, the user can trigger the target input instruction by performing a target input on the displayed aggregate barrage, so that the electronic device can receive the target input instruction for the aggregate barrage to trigger the display of the target barrage. For example, the target input can be an input in the form of clicking, sliding, long pressing or voice on the aggregate barrage.
[0043] Step 103: Display target bullet screens with the same content as the aggregated bullet screens, and the number of target bullet screens is positively correlated with the attribute parameters of the target input instructions.
[0044] In an embodiment of the present application, the electronic device may obtain the attribute parameters of the target input instruction for the aggregated barrage each time after receiving the target input instruction of the aggregated barrage, and display a first number of target barrages according to the attribute parameters. The first number is positively correlated with the value of the attribute parameter. The barrage content of the target barrage is the same as the barrage content of the aggregated barrage. Of course, the barrage style of the target barrage may also be the same as the barrage style of the aggregated barrage. Alternatively, the barrage style of the target barrage may also be different from the barrage style of the aggregated barrage.
[0045] Optionally, the attribute parameter of the target input instruction may refer to the input duration of the target input corresponding to the target input instruction. Alternatively, the attribute parameter of the target input instruction may refer to the number of consecutive inputs of the target input instruction. For example, if the target input instruction is a sliding input instruction, the attribute parameter may be the sliding duration. If the target input instruction is a click input instruction, the attribute parameter may be the number of consecutive inputs. Continuous input refers to an input whose input interval duration is less than the effective duration of a combo, and can also be understood as an input whose receiving interval duration of the target input instruction is less than the effective duration of a combo.
[0046] Further optionally, the process of the electronic device displaying the target barrage with the same content as the aggregated barrage may include: the electronic device additionally displays a first number of target barrages in the video playback interface. The first number is proportional to the attribute parameter of the target input instruction. Among them, the additional display can be understood as: the number of barrages in the video frame after the additional target barrage displayed on the video playback interface is greater than the first number compared to the number of barrages in the target video frame. The target video frame is the video frame displayed on the video playback interface when the target input instruction is received.
[0047] Alternatively, the process of an electronic device displaying a target bullet screen with the same content as the aggregated bullet screen may include: the electronic device directly displays a first number of target bullet screens in the video playback interface. The first number is proportional to the attribute parameter of the target input instruction. That is, after each target input instruction is received by the electronic device, the number of target bullet screens additionally displayed in the video playback interface is a second number, which is a multiple of the first number and the number of consecutive inputs.
[0048] In an optional implementation, the attribute parameter may refer to the input duration of the target input corresponding to the target input instruction. After receiving the target input instruction of the aggregated bullet screen, the electronic device may obtain the input duration of the target input instruction received this time. Determine a first quantity proportional to the input duration based on the input duration. Display the first number of target bullet screens additionally on the video playback interface.
[0049] For example, assume that a sliding input instruction is received in a video playback interface displaying 5 bullet comments (including one aggregated bullet comment). After obtaining that the input duration of the sliding input instruction is 2 seconds, the electronic device determines that the first quantity is 2. The electronic device displays 2 additional target bullet comments in the video playback interface. At this time, the number of bullet comments displayed on the video frame displayed in the video playback interface is 5+2.
[0050] If the electronic device receives the sliding input instruction again and obtains that the input duration of the sliding input instruction is 3 seconds, the electronic device determines that the first number is 3. The electronic device displays 3 additional target bullet comments in the video playback interface. At this time, the number of bullet comments displayed on the video frame displayed in the video playback interface is 7+3.
[0051] In another optional implementation, the attribute parameter of the target input instruction may refer to the number of consecutive inputs of the target input instruction. After receiving the target input instruction of the aggregated barrage, the electronic device can obtain the number of consecutive inputs of the target input instruction for the aggregated barrage (the same aggregated barrage). Determine a first quantity proportional to the number of consecutive inputs based on the number of consecutive inputs. Display a first number of target barrages on the video playback interface. For example, if the number of consecutive inputs is equal to the first number, the second number is 1. That is, after each target input instruction is received by the electronic device, an additional target barrage is displayed on the video playback interface.
[0052] For example, assume that a click input instruction is received in a video playback interface displaying 5 bullet comments (including one aggregated bullet comment). After obtaining that the number of consecutive inputs of the click input instruction is 3, the electronic device determines that the first number is 3. The electronic device displays 3 target bullet comments in the video playback interface. At this time, the number of bullet comments displayed on the video frame displayed in the video playback interface is 5+3.
[0053] If the electronic device receives the click input instruction again, it can obtain that the number of consecutive inputs of the click input instruction is 4. The electronic device determines that the first number is 4, and displays 4 target bullet screens in the video playback interface. At this time, the number of bullet screens displayed on the video frame displayed on the video playback interface is 5+4.
[0054] In an embodiment of the present application, by merging bullets with high content similarity into aggregated bullets and displaying them on the video playback interface, after receiving the target input instruction for the aggregated bullet, the bullet with the same content as the aggregated bullet is displayed. By merging bullets with similar content into aggregated bullets for combined display, the problem of large obstruction of the video content by the bullets due to too many similar bullets can be effectively avoided. In addition, the combined display of bullets with similar content can also effectively avoid the problem of a large number of repeated displays of similar bullets, which makes the bullet content of the video playback interface relatively single. By effectively releasing the bullet display space, the bullet content displayed on the same screen can be enriched, and the display effect of high-quality bullets with different contents can be improved. In addition, in this technical solution, the number of target bullets is positively correlated with the attribute parameters of the target input instruction. Therefore, the user can add a target bullet with the same content as the aggregated bullet in the video playback interface by inputting the target input instruction, thereby effectively improving the interactivity of the aggregated bullet, enriching the display form of the aggregated bullet, and improving the bullet effect. Compared with the solution of using a violent shielding strategy to directly shield all bullets with similar content to avoid too many similar bullets affecting the user experience. The technical solution of the present application provides a compromise display solution, which can reduce the excessive display of similar barrages at the same time and meet the high-quality barrage display effect. At the same time, it can also support users to increase the display number of preferred barrages through interactive operations, meet the needs of users to express their preferred barrages, and especially meet the fans' needs for chasing stars from the audience group.
[0055] In some embodiments of the present application, the process of step 103 of displaying a target barrage with the same content as the aggregated barrage may include step S10.
[0056] In step S10, when the value of the attribute parameter does not exceed the first threshold, the aggregated bullet comments are displayed in the video playback interface.
[0057] After receiving the target input instruction each time, the electronic device can obtain the attribute parameter and the first threshold of the target input instruction. After that, the attribute parameter is compared with the first threshold, and when the value of the attribute parameter does not exceed the first threshold, the aggregated bullet screen is directly used as the target bullet screen, and the aggregated bullet screen is displayed in the video playback interface. The number of aggregated bullet screens is positively correlated with the attribute parameter of the target input instruction.
[0058] Optionally, when the value of the attribute parameter does not exceed the first threshold, the process of displaying the aggregated bullet screen in the video playback interface by the electronic device may include: when the value of the attribute parameter does not exceed the first threshold, the electronic device may additionally display the first number of aggregated bullet screens in the video playback interface. Alternatively, the electronic device directly displays the first number of aggregated bullet screens in the video playback interface.
[0059] Further optionally, the process in which the electronic device can display the aggregated barrage in the video playback interface may include steps S11 to S12.
[0060] In step S11, the starting display position of the aggregated bullet comments to be newly displayed in the display area is set according to the distribution order from the center to the periphery of the display area of the video playback interface.
[0061] Optionally, after receiving the target input instruction of the aggregated bullet screen each time, if the value of the attribute parameter does not exceed the first threshold, the electronic device can determine the starting display position of the aggregated bullet screen to be newly displayed in the display area according to the preset distribution order from the center to the periphery of the display area of the video playback interface. Furthermore, the starting display position of the aggregated bullet screen to be newly displayed in the display area is set to facilitate the subsequent additional display of the aggregated bullet screen in the video playback interface.
[0062] Among them, according to the distribution order from the center to the surrounding of the display area of the video playback interface, it can be understood that when there is no barrage located at the center of the display area of the video frame, the starting display position of the aggregated barrage to be newly displayed is determined to be the center of the display area. When there is a barrage located at the center of the display area of the video frame, the position near the center of the video frame where there is no barrage is determined as the starting display position of the aggregated barrage to be newly displayed. The starting display position refers to the initial sliding position of the barrage on the video playback interface.
[0063] Optionally, the barrage display data of the barrage includes the barrage display position, and the barrage display position refers to the display position of the barrage in the video frame. The electronic device can obtain the barrage data corresponding to the video frame in the video playback interface, and traverse the barrage data to determine the barrage display position of each barrage corresponding to the video frame. The electronic device sequentially obtains the position data of the display area of the video playback interface from the center to the surroundings, and judges whether there is a barrage at the position indicated by the obtained position data according to the barrage display position of each barrage, so as to determine the starting display position of the newly added aggregated barrage to be displayed as the position indicated by the position data when there is no barrage at the position indicated by the obtained position data. It should be noted that the display position of the barrage on the video frame is the display position of the barrage on the display area of the video playback interface.
[0064] As an example, the position data may refer to the pixel position of the display area, that is, the row and column position of the pixel. The electronic device may sequentially obtain the position data of the display area of the video playback interface from the center to the periphery, and compare the position data with the bullet screen display position of each bullet screen corresponding to the video frame, so as to determine the position where the bullet screen does not exist on the video frame as the starting display position of the aggregated bullet screen to be newly displayed.
[0065] In another example, the position data may refer to the position of the bullet screen in the display area, that is, the row and column position of the bullet screen. The electronic device may sequentially obtain the position data of the display area in the order from the center bullet screen row to the two side bullet screen rows in the display area, and in the order from the center to the two sides in the bullet screen row. The position data is compared with the bullet screen display position of each bullet screen corresponding to the video frame to determine the position where the bullet screen does not exist on the video frame as the starting display position of the aggregated bullet screen to be newly displayed.
[0066] In step S12, in the display area, the aggregated bullet screen is displayed by sliding from the starting display position.
[0067] Optionally, the electronic device can add target barrage display data. The main difference between the target barrage display data and the barrage display data of the aggregated barrage corresponding to the target input is the barrage display position. The barrage display position of the target barrage display data is the set starting display position. The electronic device can slide and display the aggregated barrage starting from the starting display position in the display area of the video playback interface to additionally display the aggregated barrage on the video playback interface.
[0068] The sliding direction, sliding speed and other attributes of the additionally displayed aggregated bullet screen may be the same as the relevant attributes of the original bullet screen. Alternatively, in some embodiments, the sliding direction, sliding speed and other attributes of the additionally displayed aggregated bullet screen may also be reset and written into the target bullet screen display data, so that the aggregated bullet screen is displayed in the display area starting from the starting display position according to the set sliding direction and sliding speed.
[0069] In some embodiments of the present application, the barrage display method further includes: when the value of the attribute parameter does not exceed the first threshold, displaying a target count animation at the end position of the aggregated barrage.
[0070] The target counting animation includes at least one of the following: a countdown animation of the effective duration of the combo, and a display animation of the number of consecutive inputs. The effective duration of the combo is used to determine whether two adjacently received target input instructions are continuous target input instructions.
[0071] Optionally, when the value of the attribute parameter does not exceed the first threshold, the electronic device can display the target counting animation by a first multiple compared to the aggregated barrage. For example, the target counting animation includes a countdown animation of the effective duration of the combo, and a display animation of the number of consecutive inputs. After each time the electronic device receives a target input instruction of the aggregated barrage, when it is determined that the value of the attribute parameter does not exceed the first threshold, it can display the display animation of the number of consecutive inputs at the end of the aggregated barrage corresponding to the target input instruction, so as to prompt the user of the number of consecutive target inputs for the same aggregated barrage, that is, the number of consecutive target input instructions for the same aggregated barrage received by the electronic device. At the same time, the electronic device can also display a countdown animation of the effective duration of the combo starting from the receipt of the target input instruction at the end of the aggregated barrage corresponding to the target input instruction, so as to prompt the user when the combo is interrupted.
[0072] Further optionally, the process of the electronic device displaying the target counting animation at the end position of the aggregated barrage may include the following steps S13 to S14.
[0073] In step S13, the display position of the last character of the aggregated bullet screen corresponding to the target input instruction on the video playback interface is obtained.
[0074] Optionally, the electronic device can read the display position of the last characters of the aggregated barrage in the video frame from the barrage display position of the aggregated barrage in the video frame when the target input instruction is received, and obtain the display position of the last characters of the aggregated barrage in the video playback interface.
[0075] In step S012, a new view container is added at the display position.
[0076] Optionally, the electronic device can paste a view container at the display position to play the target counting animation. In some embodiments, the end position of the aggregated bullet message may have other animations in the rendering layer due to other business designs. The electronic device can set the original animation to be hidden in the rendering layer while adding a view container at the display position to highlight the target counting animation.
[0077] In step S013, the target counting animation is displayed through the view container.
[0078] Optionally, the electronic device may obtain a preset target timing animation resource to call the target timing animation resource in the view container to display the target counting animation. Further optionally, the view container may be enlarged to display the target counting animation in an enlarged manner. For example, the view container may be enlarged, and the enlarged view container may be a first multiple of the size of the aggregated bullet screen. By displaying the target counting animation in the enlarged view container, the displayed target counting animation may be enlarged by the first multiple compared to the aggregated bullet screen to highlight the target counting animation and enhance the display conspicuity of the target counting animation.
[0079] It should be noted that the embodiments of the present application do not limit the specific animation forms of the countdown animation of the effective duration of the combo and the display animation of the number of consecutive inputs. It is only necessary to effectively represent the countdown of the effective duration of the combo and the increase in the number of consecutive inputs.
[0080] Since the method of adding a new view container to display animation can be directly implemented in the business layer, compared with adding target counting animation through the rendering layer, it can effectively reduce the cost of modification and increase the probability of later reuse. In particular, the reuse probability of counting animation can be increased by customizing the counting animation IP at different stages.
[0081] For example, assuming that the distribution order of the display area of the video playback interface from the center to the periphery can refer to the distribution order from the center to the sides on the third bullet screen row, the fourth bullet screen row, and the fifth bullet screen row. Also, assuming that the attribute parameter is the number of consecutive inputs.
[0082] After receiving a target input instruction for an aggregated bullet comment, the electronic device can, if it is determined that the number of consecutive inputs does not exceed the first threshold, display a countdown animation of the effective duration of the combo at a first magnification, and a display animation of the number of consecutive inputs increasing from 1 to 2. At the same time, in the display area of the bullet comment video page, a newly added aggregated bullet comment is displayed by sliding from the center of the third bullet comment row.
[0083] Furthermore, after receiving the target input instruction for the aggregated bullet screen again within the effective duration of the combo, if it is determined that the number of consecutive inputs does not exceed the first threshold, the countdown animation of the effective duration of the combo is magnified again at the first multiple at the position of the last pixel of the aggregated bullet screen, and the display animation of the number of consecutive inputs increasing from 2 to 3. At the same time, in the display area of the video playback interface, a newly added aggregated bullet screen is displayed by sliding from the center of the fourth bullet screen row.
[0084] Afterwards, after receiving the target input instruction for the aggregated bullet screen again within the effective duration of the combo, if it is determined that the number of consecutive inputs does not exceed the first threshold, the countdown animation of the effective duration of the combo is magnified again at the first multiple at the position of the last pixel of the aggregated bullet screen, and the display animation of the number of consecutive inputs increasing from 3 to 4. At the same time, in the display area of the video playback interface, a newly added aggregated bullet screen is displayed by sliding from the center of the fifth bullet screen row.
[0085] Afterwards, after receiving the target input instruction for the aggregated bullet screen again within the effective duration of the combo, if it is determined that the number of continuous inputs does not exceed the first threshold, the countdown animation of the effective duration of the combo is magnified again at the first multiple at the position of the last pixel of the aggregated bullet screen, and the display animation of the number of continuous inputs increasing from 4 to 5. At the same time, in the display area of the video playback interface, a newly added aggregated bullet screen is displayed by sliding from the end position of the aggregated bullet screen in the third bullet screen row. And so on, until the continuous input for the same aggregated bullet screen is interrupted, or the number of continuous inputs exceeds the first threshold.
[0086] In some embodiments of the present application, the process of step 103 of displaying a target barrage with the same content as the aggregated barrage may also include step S20.
[0087] In step S20, when the value of the attribute parameter exceeds the first threshold but does not exceed the second threshold, the target bullet screen is displayed at a fixed position on the video playback interface.
[0088] After receiving the target input instruction each time, the electronic device can obtain the attribute parameter, the first threshold value and the second threshold value of the target input instruction. After that, the attribute parameter is compared with the first threshold value and the second threshold value, and when the value of the attribute parameter exceeds the first threshold value but does not exceed the second threshold value, the target bullet screen is displayed at a fixed position on the video playback interface, so as to statically display the target bullet screen on the video frame displayed on the video playback interface.
[0089] Optionally, when the value of the attribute parameter exceeds the first threshold value but does not exceed the second threshold value, the process of displaying the target bullet screen at a fixed position of the video playback interface by the electronic device may include: when the value of the attribute parameter exceeds the first threshold value but does not exceed the second threshold value, the electronic device may additionally display a first number of target bullet screens in the video playback interface. Alternatively, the electronic device directly displays the first number of target bullet screens in the video playback interface.
[0090] In some embodiments, the target barrage may be a special effect barrage with the same barrage content as the aggregated barrage, but with a different barrage style. The barrage style includes at least one of the following: font size, font color, font type, font border, border type, transparency, etc. As an example, the target barrage may be a barrage with the same barrage content as the aggregated barrage, but with a font size larger than the target font size, and a font color different from the target font color. The target font size refers to the font size of the aggregated barrage. The target font color refers to the font color of the aggregated barrage. As another example, the target barrage may be a barrage with the same barrage content as the aggregated barrage, but with a font size larger than the target font size, and a font type different from the target font type. The target font type refers to the font type of the aggregated barrage.
[0091] Further optionally, the process in which the electronic device displays the target bullet screen at a fixed position on the video playback interface may include steps S21 to S22.
[0092] In step S21, the bullet screen display data of the special effect bullet screen is generated. The bullet screen display data includes: bullet screen content and bullet screen style. The bullet screen content is the same as the content of the aggregated bullet screen, and the bullet screen style is different from the style of the aggregated bullet screen.
[0093] Optionally, the electronic device can generate barrage display data of special effect barrage according to the style rules of special effect barrage. The style rules indicate the generation rules of the barrage style of special effect barrage compared to the barrage style of aggregate barrage. Among them, the special effect barrage is also called the screen domination barrage, and its content is the same as the content of the aggregate barrage, but the barrage style of the special effect barrage is different from the barrage style of the aggregate barrage. The barrage style of the special effect barrage attracts more user attention than the aggregate barrage. For example, the barrage content of the special effect barrage is the same as the barrage content of the aggregate barrage, but the font size of the special effect barrage is much larger than the font size of the aggregate barrage, and the brightness of the font color of the special effect barrage is much greater than the brightness of the font color of the aggregate barrage.
[0094] In an optional case, the style rule indicates that the font size of the special effect bullet screen is larger than the font size of the aggregate bullet screen, and the font color of the special effect bullet screen is different from the font color of the aggregate bullet screen. Based on this, the process of the electronic device generating bullet screen display data of the special effect bullet screen may include:
[0095] Get the target content, target font size, and target font color of the aggregated barrage. Generate barrage display data for the special effect barrage according to the target content, target font size, and target font color of the aggregated barrage. The barrage content in the barrage display data is the target content, the font size is larger than the target font size, and the font color is different from the target font color. For example, the font size of the special effect barrage can be increased by two font sizes compared to the target font size. The font color of the special effect barrage can be any font color within the target color range that is different from the target font color.
[0096] In an optional case, the style rule indicates that the font size of the special effect bullet screen is larger than the font size of the aggregate bullet screen, and the font type of the special effect bullet screen is different from the font type of the aggregate bullet screen. Based on this, the process of the electronic device generating bullet screen display data of the special effect bullet screen may include:
[0097] Get the target content, target font size, and target font type of the aggregated barrage. Generate barrage display data for the special effect barrage according to the target content, target font size, and target font type of the aggregated barrage. The barrage content in the barrage display data is the target content, the font size is larger than the target font size, and the font type is different from the target font type. For example, the font size of the special effect barrage can be increased by two font sizes compared to the target font size. The font type of the special effect barrage can be any font type within the target type range that is different from the target font type.
[0098] In step S22, the special effect bullet screen is rendered at a fixed position of the video playback interface according to the bullet screen display data of the special effect bullet screen.
[0099] In an optional implementation, each special effect bullet screen has the same fixed position in the video playback interface. The electronic device can pre-store the fixed position of the special effect bullet screen, so that after generating the bullet screen display data of the special effect bullet screen, the bullet screen display data is updated, so that the bullet screen display position in the updated bullet screen display data is a fixed position. The electronic device can render the special effect bullet screen at a fixed position in the video playback interface according to the bullet screen display data after the special effect bullet screen is updated.
[0100] In another optional implementation, each special effect bullet screen has a different fixed position in the video playback interface. The electronic device can statically display the newly added special effect bullet screen at a fixed position in the display area of the video playback interface according to the bullet screen setting rules. The bullet screen setting rules are used to limit the fixed position for displaying the special effect bullet screen. Specifically, optionally, the fixed position defined by the bullet screen setting rules satisfies: the position of the undisplayed bullet screen found from the center of the display area of the video playback interface to the surrounding areas; and the special effect bullet screen displayed at the fixed position does not overlap with other bullet screens; and the displayed special effect bullet screen and other bullet screens are evenly distributed in the display area of the video playback interface.
[0101] In some embodiments, the electronic device can add bullet screen display data of special effect bullet screen. The main difference between the bullet screen display data and the bullet screen display data of the aggregated bullet screen corresponding to the target input is the bullet screen display position and bullet screen style. The bullet screen display position in the bullet screen display data of the special effect bullet screen is a fixed position. The electronic device can display the special effect bullet screen at a fixed position in the display area of the video playback interface according to the display data of the special effect bullet screen, so as to statically display the added special effect bullet screen in the video playback interface.
[0102] Optionally, the rendering engine may be called to render the special effects bullet screen at a fixed position in the display area of the video playback interface according to the display data of the special effects bullet screen. Further optionally, the rendering engine may be called to render the special effects bullet screen at a fixed position in the display area of the video playback interface through an image application programming interface (Application Programming Interface, API) according to the display data of the special effects bullet screen. The image API may be Metal or OpenGL, etc.
[0103] In some embodiments of the present application, the barrage display method also includes: when the value of the attribute parameter exceeds the first threshold and does not exceed the second threshold, displaying a target count animation at the end position of the aggregated barrage.
[0104] The target counting animation includes at least one of the following: a countdown animation of the effective duration of the combo, and a display animation of the number of consecutive inputs. The effective duration of the combo is used to determine whether two adjacently received target input instructions are continuous target input instructions.
[0105] Optionally, when the value of the attribute parameter exceeds the first threshold value and does not exceed the second threshold value, the electronic device can magnify the display target count animation by a second multiple compared to the aggregated bullet screen, and the second multiple is greater than the first multiple. For example, the target count animation includes a countdown animation of the effective duration of the combo, and a display animation of the number of consecutive inputs. After each time the electronic device receives the target input instruction of the aggregated bullet screen, when it is determined that the value of the attribute parameter exceeds the first threshold value and does not exceed the second threshold value, it can display the display animation of the number of consecutive inputs at the end position of the aggregated bullet screen corresponding to the target input instruction, so as to prompt the user of the number of consecutive target inputs for the same aggregated bullet screen, that is, the number of consecutive target input instructions for the same aggregated bullet screen received by the electronic device. At the same time, the electronic device can also display a countdown animation of the effective duration of the combo starting from the receipt of the target input instruction at the end position of the aggregated bullet screen corresponding to the target input instruction, so as to prompt the user when the combo is interrupted.
[0106] It should be noted that, in some embodiments, when the target counting animation is displayed through the view container, the view container can be enlarged by a second multiple, and the target counting animation can be displayed in the enlarged view container to achieve the enlarged display of the target counting animation, further improving the display eye-catchingness of the target counting animation. The implementation method of the electronic device displaying the target counting animation at the end of the aggregated bullet screen through the view container can refer to the aforementioned steps S13 to S14, and the embodiments of the present application will not be described in detail.
[0107] For example, assume that the first threshold is 5 and the second threshold is 10. After the electronic device receives the target input instruction for the aggregated bullet screen again, if the number of consecutive inputs is 6, it is determined that the number of consecutive inputs does not exceed the first threshold and the second threshold, and the electronic device displays the countdown animation of the effective duration of the combo at the second multiple at the position of the last character of the aggregated bullet screen, as well as the display animation of the number of consecutive inputs increasing from 5 to 6. At the same time, in the display area of the bullet screen video page, a newly added "enlarged version" of the special effects bullet screen is statically displayed from the center of the third bullet screen row.
[0108] Furthermore, after receiving the target input instruction for the aggregated bullet screen again within the effective duration of the combo, it is determined that the number of continuous inputs is 7. The electronic device determines that the number of continuous inputs does not exceed the first threshold and does not exceed the second threshold, and at the position of the last pixel of the aggregated bullet screen, the countdown animation of the effective duration of the combo is magnified again by the second multiple, and the display animation of the number of continuous inputs increasing from 6 to 7. At the same time, in the display area of the video playback interface, a newly added "enlarged version" of the special effects bullet screen is statically displayed near the center position of the third bullet screen row, and the two special effects bullet screens do not overlap. And so on, until the continuous input for the same aggregated bullet screen is interrupted, or the number of continuous inputs exceeds the second threshold. It should be noted that when the second threshold is large, after multiple consecutive target inputs, the display area of the video playback interface may be filled with special effects bullet screens after the electronic device receives multiple target input instructions continuously.
[0109] In some embodiments of the present application, the process of step 103 of displaying the target barrage with the same content as the aggregated barrage may also include step S30.
[0110] In step S30, when the value of the attribute parameter exceeds the second threshold, multiple target bullet screens are displayed in the display area of the video playback interface according to the target ratio. The target ratio is the display proportion of the multiple target bullet screens in the display area. Optionally, the target ratio may be positively correlated with the attribute parameter of the target input instruction.
[0111] After receiving the target input instruction each time, the electronic device can obtain the attribute parameter and the second threshold value of the target input instruction, and then compare the attribute parameter with the second threshold value, and when the value of the attribute parameter exceeds the second threshold value, display multiple target bullet screens in the display area of the video playback interface according to the target ratio.
[0112] In some embodiments, the target bullet screen may be a special effect bullet screen with the same bullet screen content as the aggregate bullet screen, but with a different bullet screen style. In addition, in some embodiments, the target bullet screen may also be different from the bullet screen style of the special effect bullet screen involved in the aforementioned step S20, which may attract more user attention than the special effect bullet screen.
[0113] As an example, the target barrage may be a barrage with the same content as the barrage of the aggregated barrage, but with a font size larger than the target font size, and with a font color different from the target font color. The target font size refers to the font size of the aggregated barrage. The target font color refers to the font color of the aggregated barrage. As another example, the target barrage may be a barrage with the same content as the barrage of the aggregated barrage, but with a font size larger than the target font size, and with a font type different from the target font type. The target font type refers to the font type of the aggregated barrage.
[0114] Further optionally, the electronic device may include steps S31 to S33 in the display area of the video playback interface, wherein the process of displaying multiple target bullet screens according to the target ratio may include steps S31 to S33.
[0115] In step S31, the number of special effect bullet screens is determined according to the target ratio, the area size of the display area, and the display size of a single special effect bullet screen in the display area.
[0116] Optionally, the electronic device can calculate the display size of a single special effect barrage in the display area based on the barrage display data of the special effect barrage. Specifically, if the special effect barrage is compared with the aggregated barrage corresponding to the target input instruction, the difference in the barrage style that will change the actual size is the font size. Then the electronic device can determine the display size of the special effect barrage after enlarging the display size of the aggregated barrage according to the enlargement ratio of the font size of the special effect barrage compared to the font size of the aggregated barrage. Alternatively, the electronic device can also directly calculate the display size of a single special effect barrage in the display area based on the barrage display data of the special effect barrage. Among them, the display size of the special effect barrage can refer to the number of pixels rendered on the video frame by the special effect barrage.
[0117] In some embodiments, the electronic device can obtain the pre-stored target ratio, the area size of the current display area of the video playback interface, and the display size of a single special effect bullet in the display area. The area size of the display area can also refer to the number of pixels in the display area of the video playback interface.
[0118] Afterwards, the electronic device calculates the product of the target ratio and the area size of the actual area to obtain the area size in the display area where the special effect bullet screen can be displayed. The electronic device can perform a rounding operation on the area size and the display size of a single special effect bullet screen to obtain the number of special effect bullet screens. Alternatively, after calculating the area size in the display area where the special effect bullet screen can be displayed, the electronic device can also perform a rounding operation on the area size and the display size of a single special effect bullet screen to obtain the number of special effect bullet screens.
[0119] In step S32, barrage display data of special effect barrages of the number of special effect barrages are generated.
[0120] The barrage display data of each special effect barrage includes: barrage content, barrage style and barrage display position. The barrage display position in the barrage display data of each special effect barrage is different, and the barrage content is the same as the content of the aggregated barrage, but the barrage style is different from the style of the aggregated barrage.
[0121] In some optional embodiments, the electronic device may randomly generate the bullet screen display position of each special effect bullet screen in the display area of the video playback interface to generate the bullet screen display data of each special effect bullet screen. In other optional embodiments, the electronic device may determine the bullet screen display position of each special effect bullet screen in the display area of the video playback interface according to a uniform distribution rule to generate the bullet screen display data of each special effect bullet screen. In some further embodiments, the bullet screen style of each special effect bullet screen may be at least different. For example, the bullet screen style of each special effect bullet screen may be the same.
[0122] In step S33, according to the bullet screen display data of each special effect bullet screen, the special effect bullet screen is rendered at the bullet screen display position corresponding to each special effect bullet screen in the video playback interface.
[0123] Among them, according to the bullet screen display data of each special effect bullet screen, the special effect bullet screen is rendered at the bullet screen display position corresponding to each special effect bullet screen in the video playback interface to statically display multiple special effect bullet screens. In some embodiments, the electronic device can add bullet screen display data of the number of special effect bullet screens. The main difference between the bullet screen display data of each special effect bullet screen and the bullet screen display data of the aggregated bullet screen corresponding to the target input lies in the bullet screen display position and the bullet screen style. Optionally, according to the display data of each special effect bullet screen, the rendering engine can be called to render the special effect bullet screen at the bullet screen display position corresponding to each special effect bullet screen in the video playback interface. Further optionally, according to the display data of the special effect bullet screen, the rendering engine can be called through the image API to render the special effect bullet screen at the bullet screen display position corresponding to each special effect bullet screen in the video playback interface.
[0124] In some embodiments, the target ratio may be directly 100%. In the case where the value of the attribute parameter exceeds the second threshold, the electronic device may directly display the target bullet screen in the full screen of the display area of the video playback interface.
[0125] In some embodiments of the present application, the barrage display method further includes: when the value of the attribute parameter exceeds a second threshold, displaying combo prompt information.
[0126] The combo prompt information is used to indicate that the continuous input limit of the target input instruction has been reached. For example, the combo prompt information can be displayed at the top layer at the center of the display area of the video playback interface. Alternatively, the combo prompt information can also be displayed at the position of the last character of the aggregated bullet screen.
[0127] For example, assume that the second threshold is 13. After the electronic device receives the target input instruction for the aggregated bullet screen, if it is determined that the number of consecutive inputs is 13 and exceeds the second threshold, the special effects bullet screen will be displayed in the display area of the video playback interface for the target special effect duration, and a combo prompt message will be displayed. Furthermore, after receiving the target input for the aggregated bullet screen again within the effective combo duration, if it is determined that the number of consecutive inputs is 14 and exceeds the second threshold, the special effects bullet screen will continue to be displayed in the display area of the video playback interface for the target special effect duration, and a combo prompt message will be displayed, and so on, until the duration of the special effects bullet screen displayed on the full screen reaches the target special effect duration.
[0128] In some embodiments of the present application, the barrage display method further includes: in response to a target input instruction, hovering and displaying the aggregated barrage.
[0129] Among them, after each time the electronic device receives a target input instruction for the aggregated barrage, it can respond to the target input instruction and hover to display the aggregated barrage. The hovering display of the aggregated barrage can be understood as the display position of the aggregated barrage remains unchanged in multiple consecutive video frames. For example, the multiple frames continuously displayed on the video playback interface include the first barrage, the second barrage and the aggregated barrage. The position of the first barrage in multiple consecutive video frames is offset from right to left by x1, the position of the second barrage in multiple consecutive video frames is offset from right to left by x2, and the position of the aggregated barrage in multiple consecutive video frames is offset from right to left by 0.
[0130] In an optional implementation, as mentioned above, the barrage also has a certain refresh frequency, and the refresh frequency of the barrage can be at least the same as the refresh frequency of the video frame. In this way, the barrage has its own refresh cycle. After receiving the target input instruction of the aggregated barrage, the electronic device can control the barrage display position of the barrage display data of the subsequently refreshed aggregated barrage to remain unchanged, so that the display position of the aggregated barrage in the subsequently refreshed video frame remains unchanged, thereby presenting the effect of the aggregated barrage hovering display in the video playback interface. Based on this, the process of hovering display of the aggregated barrage can include steps S40 to S42.
[0131] In step S40, when the bullet screen refresh time is reached, the target position is obtained. The target position is the display position of the aggregated bullet screen in the video playback interface when the target input instruction is received.
[0132] For example, take the target input as a click input. Assume that when the target video frame is displayed on the video playback interface, the user clicks on an aggregated bullet screen displayed on the target video frame. Then, the electronic device can obtain the display position of the aggregated bullet screen in the target video frame in response to the click input of the aggregated bullet screen to obtain the target position.
[0133] In an optional implementation, the process of acquiring the target location may include steps S401 to S404.
[0134] In step S401, the target release time is obtained. The target release time is the release time of the aggregated bullet comment when the target input instruction is received.
[0135] The release time of the barrage refers to the time when the barrage is released. The time may refer to the time when the video is played when the barrage is released. Alternatively, the time may also refer to the natural time when the barrage is released. The target release time is the release time of the aggregated barrage when the target input is received.
[0136] In step S402, the publishing time of the aggregated bullet screen is set to the sum of the target publishing time and the refresh period of a single bullet screen.
[0137] In the embodiment of the present application, the movement time of the bullet screen refers to the total movement time of the bullet screen, that is, the total time from the release of the bullet screen to the display of the video frame. The movement time corresponding to a bullet screen on a single video frame can be: the difference between the video playback time of the video frame and the release time of the bullet screen.
[0138] Based on this, the release time of the aggregated bullet comments can be adjusted to the target release time, so that the release time of the aggregated bullet comments is shifted backward by one bullet comment refresh cycle as the bullet comment refresh cycle progresses, so that the movement time of the aggregated bullet comments and the target movement time can always be kept equal. The target movement time is the movement time of the aggregated bullet comments in the video frame when the target input command is received.
[0139] In step S403, the difference between the current video playback time and the release time of the aggregated barrage is used as the movement time of the aggregated barrage.
[0140] Among them, the current video playback time can be understood as the display time of the video frame when the barrage is refreshed. The difference between the current video playback time and the release time of the aggregated barrage is the movement time of the aggregated barrage. As mentioned above, the release time of the aggregated barrage is shifted backward by one barrage refresh cycle along with the barrage refresh cycle. Therefore, the difference between the previous video playback time and the release time of the aggregated barrage is always equal to the difference between the target release time and the playback time of the target video frame. In other words, the movement time of the aggregated barrage is equal to the target movement time of the aggregated barrage.
[0141] In step S404, the product of the movement time of the aggregated bullet screen and the speed of the bullet screen is determined as the target position.
[0142] In this way, since the display position of the aggregated bullet screen on a single video frame is the product of the movement time of the aggregated bullet screen on a single video frame and the bullet screen speed, maintaining the movement time of the aggregated bullet screen as the target movement time can maintain the display position of the aggregated bullet screen unchanged, so as to achieve the hovering display effect of the aggregated bullet screen.
[0143] Optionally, the electronic device can obtain a preset barrage speed, calculate the product of the movement time and the barrage speed, and obtain the target position of the aggregated barrage, that is, the display position of the aggregated barrage to be refreshed on the video frame.
[0144] It should be noted that the aggregated barrage needs to enter the hover display state when the first target input instruction is received. Therefore, in theory, in order to ensure the hover display effect of the aggregated barrage, it is necessary to obtain the display position of the aggregated barrage on the video frame when the first target input instruction is received. However, since the aggregated barrage is in a hover display state from the time the first target input instruction is received to the release of the hover state. Therefore, the display position of the aggregated barrage on the video frame when each target input instruction is received during this period is the same as the display position corresponding to the first target input instruction. Therefore, when the barrage refresh moment is reached, the display position of the aggregated barrage in the video frame when the most recent target input instruction is received can be directly obtained as the target position.
[0145] It should also be noted that after receiving the target input instruction, every time the bullet screen refresh time is reached, only the display position of the aggregated bullet screen corresponding to the target input instruction can be changed, while the display positions of other bullet screens are not changed, so that the video frame shows that only the aggregated bullet screen corresponding to the target input instruction stops sliding, while other bullet screens continue to slide. Even the sliding track of other bullet screens can still pass through the displayed aggregated bullet screen, forming a hovering display effect of the aggregated bullet screen.
[0146] In step S41, the display position of the aggregated bullet screen is set as the target position.
[0147] Optionally, the electronic device may update the bullet screen display position in the bullet screen display data of the aggregated bullet screen corresponding to the target input instruction to the target position to update the bullet screen display data of the aggregated bullet screen. The determination process of the bullet screen display data of the aggregated bullet screen is described in detail above.
[0148] In step S42, the aggregated bullet comments are rendered at the display position of the aggregated bullet comments in the video playback interface.
[0149] Optionally, the electronic device can call the rendering engine to render the aggregated bullet screen at the display position of the aggregated bullet screen in the video playback interface according to the updated bullet screen display data of the aggregated bullet screen. Further optionally, the electronic device can call the rendering engine through the image API according to the updated bullet screen display data of the aggregated bullet screen to render the aggregated bullet screen at the display position of the aggregated bullet screen in the video playback interface.
[0150] It should be noted that in some embodiments, a single video frame generally has non-aggregate barrages while there are aggregated barrages. Based on this, the process of rendering the aggregated barrage at the display position of the aggregated barrage in the video playback interface generally includes: rendering the barrage on the video frame using the barrage data corresponding to the video frame. The barrage data at least includes: the updated barrage display data of the aggregated barrage corresponding to the current input command, and the barrage display data of the non-aggregate barrage.
[0151] For example, assuming that the barrage refresh frequency is twice the refresh frequency of the video frame (ie, a single video frame corresponds to two barrage data), and when a target input instruction for the aggregated barrage is received, the video frame displayed on the video playback interface is the first video frame.
[0152] After receiving the target input instruction for the aggregated barrage, when the first barrage frame refresh moment is reached, the electronic device can obtain the target position and set the display position of the aggregated barrage as the target position to render the aggregated barrage at the display position of the aggregated barrage in the first video frame.
[0153] Afterwards, when the second bullet screen frame refresh time is reached, the video frame refresh time is also reached at the same time. The electronic device can obtain the target position again, and set the display position of the aggregated bullet screen as the target position, so as to render the second video frame on the video playback interface, and render the aggregated bullet screen at the display position of the aggregated bullet screen in the second video frame. And so on, until the sliding display of the aggregated bullet screen is restored. Among them, the second video frame is the video frame after the first video frame in the video.
[0154] It should be noted that after receiving the target input command and before releasing the hovering state, the bullet screen frame refresh time may be reached multiple times. Therefore, steps S40 to S42 may be executed each time the bullet screen frame refresh time is reached to form a hovering display effect of the aggregated bullet screen corresponding to the target input command.
[0155] In some embodiments of the present application, the barrage display method also includes: when no another target input instruction is received within the effective duration of the combo starting from the moment of receiving the target input instruction, restoring the sliding display of the aggregated barrage.
[0156] Optionally, the electronic device may start timing each time after receiving a target input instruction. Before the timing reaches the effective duration of the combo, if no other target input instruction is received, the sliding display of the aggregated bullet screen is restored. Before the timing reaches the effective duration of the combo, if another target input instruction is received, the aggregated bullet screen may be continuously displayed in a hovering manner.
[0157] Further optionally, the process of the electronic device restoring the sliding display of the aggregated barrage may include: the electronic device may restore the method of calculating the display position of the aggregated barrage when the barrage refresh moment is reached, so as to set the display position of the aggregated barrage after the refresh display, which is offset by a target variable compared to the display position of the aggregated barrage before the barrage refresh, and the target variable is the offset position variable on the video frame after two adjacent refresh displays when the aggregated barrage is normally slid and displayed.
[0158] In some embodiments, when the barrage refresh time is reached, the publishing time of the aggregated barrage can be restored, and then the display position of the aggregated barrage can be determined by calculating the difference between the current video playback time and the publishing time after restoration, and by calculating the product of the difference and the barrage speed, so as to restore the sliding display of the aggregated barrage.
[0159] In the embodiment of the present application, by merging bullets with high content similarity into aggregated bullets and displaying them on the video playback interface, after receiving the target input instruction for the aggregated bullet, the bullet with the same content as the aggregated bullet is displayed. By merging bullets with similar content into aggregated bullets for combined display, the problem of large obstruction of the video content by the bullets due to too many similar bullets can be effectively avoided. In addition, the combined display of bullets with similar content can also effectively avoid the problem of repeated display of a large number of similar bullets, which makes the bullet content of the video playback interface relatively single. By effectively releasing the bullet display space, the bullet content displayed on the same screen can be enriched, and the display effect of high-quality bullets with different contents can be improved. In addition, in this technical solution, the number of target bullets is positively correlated with the attribute parameters of the target input instruction. Therefore, the user can add a target bullet with the same content as the aggregated bullet in the video playback interface by inputting the target input instruction, thereby effectively improving the interactivity of the aggregated bullet, enriching the display form of the aggregated bullet, and improving the bullet effect. Compared with the solution of using a violent shielding strategy to directly shield all bullets with similar content to avoid excessive impact of similar bullets on the user experience. The technical solution of the present application provides a compromise display solution, which can reduce the excessive display of similar barrages at the same time and meet the high-quality barrage display effect. At the same time, it can also support users to increase the display number of preferred barrages through interactive operations, meet the needs of users to express their preferred barrages, and especially meet the fans' needs for chasing stars from the audience group.
[0160] In order to facilitate further understanding of the technical solution of the present application, the following example is used to further illustrate the embodiment of the present application. Assume that the target input is click output and the attribute parameter is the number of consecutive inputs. Figure 2 and Figure 3 As shown, the bullet screen display method includes:
[0161] The video playback interface of the target video containing the aggregated barrage is displayed. The user clicks on the first aggregated barrage on the video playback interface for the first time. The first aggregated barrage is any aggregated barrage of the target video. After the electronic device receives the first target input instruction for the first aggregated barrage, it can be considered to have entered the first stage, and the first aggregated barrage is displayed in a hovering manner, while other barrages are displayed in a sliding manner. In addition, the electronic device determines whether the target input instruction for the first aggregated barrage is received again within the effective duration of the combo.
[0162] If the target input instruction of the first aggregated barrage is not received within the effective duration of the combo, it indicates that the combo is not continued, and the sliding display of the aggregated barrage is restored.
[0163] When the target input instruction of the first aggregated bullet screen is received again within the effective duration of the combo, the number of consecutive inputs is determined to be increased by 1. The electronic device determines whether the number of consecutive inputs exceeds a first threshold.
[0164] When the number of consecutive inputs does not exceed the first threshold, it can be considered that the second stage has been entered, and the first aggregated barrage continues to be displayed in a hovering manner while other barrages are displayed in a sliding manner. In addition, the first barrage animation processing is executed, and it is returned to determine whether the target input instruction of the first aggregated barrage is received again within the effective duration of the combo. Specifically, the electronic device executes the first barrage animation processing including: displaying the newly added aggregated barrage in the display area of the video playback interface, and at the end of the aggregated barrage, displaying a countdown animation of the effective duration of the combo at a first multiple compared to the first aggregated barrage, and a display animation of the number of consecutive inputs.
[0165] When the number of consecutive inputs exceeds the first threshold but does not exceed the second threshold, it can be considered that the third stage has been entered, and the first aggregated barrage continues to be displayed in a hovering manner while other barrages are displayed in a sliding manner. In addition, the second barrage animation processing is executed, and it is returned to determine whether the target input instruction of the first aggregated barrage is received again within the effective duration of the combo. Specifically, the electronic device executes the second barrage animation processing, including: the electronic device displays the newly added screen-dominating barrage at a fixed position in the display area of the video playback interface, and at the end of the aggregated barrage, a countdown animation of the effective duration of the combo is displayed at a second multiple compared to the first aggregated barrage, and an animation showing the number of consecutive inputs.
[0166] When the number of consecutive inputs exceeds the second threshold, it can be considered that the fourth stage has been entered, and the third bullet screen animation processing is executed. Specifically, the electronic device executes the third bullet screen animation processing including: restoring the sliding display of the first aggregated bullet screen, displaying combo prompt information, and displaying the screen-dominant bullet screen in the display area of the video playback interface for the target special effect duration.
[0167] In an embodiment of the present application, bullet screens with high content similarity are combined into aggregated bullet screens and displayed on the video playback interface, so that after receiving a target input instruction for the aggregated bullet screen, a bullet screen with the same content as the aggregated bullet screen is displayed. In this technical solution, the number of target bullet screens is positively correlated with the attribute parameters of the target input instruction. The user can input a target input instruction to add a target bullet screen with the same content as the aggregated bullet screen in the video playback interface, thereby improving the interactivity of the aggregated bullet screen, enriching the display form of the aggregated bullet screen, and improving the bullet screen effect.
[0168] Please refer to Figure 4 , which shows a schematic diagram of the video playback interface after the electronic device performs a first bullet screen animation process. Figure 4 As shown, a new aggregated bullet screen "How beautiful" 401 is displayed in the display area of the video playback interface, and a countdown animation "00:00:2" 402 of the effective duration of the combo is enlarged and displayed at the end of the aggregated bullet screen, as well as a display animation of the number of consecutive inputs "18 combos" 403. In addition, the electronic device can also display the number of bullet screens 275 aggregated by the aggregated bullet screen corresponding to the target input instruction.
[0169] Please refer to Figure 5 , which shows a schematic diagram of the video playback interface after the electronic device performs a second bullet screen animation process. Figure 5 As shown, a new screen-dominant bullet screen "How beautiful" 501 is added to a fixed position in the display area of the video playback interface, and a countdown animation "00:00:3" 502 of the effective duration of the combo is enlarged and displayed at the end of the aggregated bullet screen, as well as a display animation of the number of consecutive inputs "20 combos" 503. In addition, the electronic device can also display the number of bullet screens 350 aggregated by the aggregated bullet screen corresponding to the target input.
[0170] Please refer to Figure 6 , which shows a schematic diagram of the video playback interface after the electronic device executes the third bullet screen animation processing. Figure 6 As shown, a combo prompt message "reaching the combo limit" 601 is displayed, and a special effect barrage "how beautiful" 602 is displayed on the full screen for a target special effect duration in the display area of the video playback interface.
[0171] In some embodiments of the present application, Figure 7 As shown, the electronic device that executes the bullet screen display method provided in the embodiment of the present application may include a business layer, a rendering layer and a display screen.
[0172] Among them, the business layer supports the addition of visual containers, the display of aggregated barrages, the management of animation IP resources, and user interaction control. Specifically, the business layer can be used to generate aggregated barrages, add new visual containers, manage and call target counting animations, receive user target inputs, and execute related logic. The rendering layer supports the floating display capability of a single barrage, the ability to set transparency for each part of the barrage, and the ability to handle barrage response events when multiple barrages overlap. Specifically, the rendering layer is used to render barrages and video frames, and is used to control the hovering display of barrages and the sliding display of barrages. The display screen is used to support the display of a video playback interface and to support user interaction. The electronic device can execute the barrage display method provided in the embodiment of the present application through the business layer, the rendering layer, and the display screen.
[0173] In summary, the bullet screen display method provided by the embodiment of the present application combines bullet screens with high content similarity into aggregated bullet screens and displays them on the video playback interface, so that after receiving the target input instruction for the aggregated bullet screen, the bullet screen with the same content as the aggregated bullet screen is displayed. By combining bullet screens with similar content into aggregated bullet screens for combined display, the problem of large obstruction of the video content by the bullet screens due to too many similar bullet screens can be effectively avoided. In addition, the combined display of bullet screens with similar content can also effectively avoid the problem of repeated display of a large number of similar bullet screens, which makes the bullet screen content of the video playback interface relatively single. By effectively releasing the bullet screen display space, the bullet screen content displayed on the same screen can be enriched, and the display effect of high-quality bullet screens with different contents can be improved. In addition, in the technical solution, the number of target bullet screens is positively correlated with the attribute parameters of the target input instruction. Therefore, the user can add a target bullet screen with the same content as the aggregated bullet screen in the video playback interface by inputting the target input instruction, thereby effectively improving the interactivity of the aggregated bullet screen, enriching the display form of the aggregated bullet screen, and improving the bullet screen effect. Compared with the solution of using a violent shielding strategy to directly shield all bullet screens with similar content to avoid excessive impact of similar bullet screens on the user experience. The technical solution of the present application provides a compromise display solution, which can reduce the excessive display of similar barrages at the same time and meet the high-quality barrage display effect. At the same time, it can also support users to increase the display number of preferred barrages through interactive operations, meet the needs of users to express their preferred barrages, and especially meet the fans' needs for chasing stars from the audience group.
[0174] Please refer to Figure 8 , which shows a block diagram of a bullet screen display device provided in an embodiment of the present application. The bullet screen display device is applied to a client device. Figure 8 As shown, the bullet screen display device 800 includes: a display module 801 and a receiving module 802.
[0175] Display module 801, used to display a video playback interface of a target video containing aggregated barrages, where the aggregated barrages are barrages obtained by merging at least two barrages in the barrage data corresponding to the target video, and the content similarity between the at least two barrages is greater than or equal to a similarity threshold;
[0176] A receiving module 802 is used to receive a target input instruction for the aggregated bullet comments;
[0177] The display module 801 is also used to display target bullet screens with the same content as the aggregated bullet screens, and the number of target bullet screens is positively correlated with the attribute parameters of the target input instructions.
[0178] Optionally, the display module 801 is also used to display the aggregated bullet comments in the video playback interface when the value of the attribute parameter does not exceed the first threshold.
[0179] Optionally, the display module 801 is further used to display the target bullet screen at a fixed position on the video playback interface when the value of the attribute parameter exceeds the first threshold but does not exceed the second threshold.
[0180] Optionally, the display module 801 is also used to display multiple target barrages in the display area of the video playback interface according to a target ratio when the value of the attribute parameter exceeds a second threshold, where the target ratio is the display proportion of the multiple target barrages in the display area.
[0181] Optionally, the display module 801 is further used for:
[0182] According to the distribution order from the center to the periphery of the display area of the video playback interface, set the starting display position of the aggregated bullet comments to be newly displayed in the display area;
[0183] In the display area, slide and display the aggregated bullet screen starting from the starting display position.
[0184] Optionally, the display module 801 is further used for:
[0185] Generate barrage display data of special effect barrage, the barrage display data includes: barrage content and barrage style, the barrage content is the same as the content of the aggregated barrage, the barrage style is different from the style of the aggregated barrage, and the barrage style includes at least one of the following: font size, font color, font type, font border, border type, and transparency;
[0186] According to the bullet screen display data of the special effect bullet screen, the special effect bullet screen is rendered at a fixed position on the video playback interface.
[0187] Optionally, the display module 801 is further used for:
[0188] Get the target content, target font size and target font color of the aggregated bullet message;
[0189] According to the target content, target font size and target font color of the aggregated barrage, barrage display data of the special effect barrage is generated, in which the barrage content is the target content, the font size is larger than the target font size, and the font color is different from the target font color.
[0190] Optionally, the display module 801 is further used for:
[0191] Determine the number of special effect bullet screens according to the target ratio, the size of the display area, and the display size of a single special effect bullet screen in the display area;
[0192] Generates barrage display data of a number of special effect barrages, the barrage display data including: barrage content, barrage style and barrage display position. The barrage display position in the barrage display data of each special effect barrage is different, and the barrage content is the same as the content of the aggregated barrage, but the barrage style is different from the style of the aggregated barrage;
[0193] According to the bullet screen display data of each special effect bullet screen, the special effect bullet screen is rendered at the bullet screen display position corresponding to each special effect bullet screen in the video playback interface.
[0194] Optionally, the display module 801 is also used to: when the value of the attribute parameter does not exceed the first threshold, display a target counting animation at the end of the aggregated barrage, and the target counting animation includes at least one of the following: a countdown animation of the effective duration of the combo, and a display animation of the number of consecutive inputs. The effective duration of the combo is used to determine whether two adjacently received target input instructions are continuous target input instructions.
[0195] Optionally, the display module 801 is further used to: when the value of the attribute parameter exceeds the first threshold but does not exceed the second threshold, display a target count animation at the end of the aggregated bullet screen.
[0196] Optionally, the display module 801 is further used to: when the value of the attribute parameter exceeds the second threshold, display a combo prompt message, where the combo prompt message is used to indicate that the continuous input upper limit of the target input instruction has been reached.
[0197] Optionally, the display module 801 is further used for:
[0198] Get the display position of the last character of the aggregated bullet comment on the video playback interface;
[0199] Display the view container at the display position;
[0200] Display the target count animation through the view container.
[0201] Optionally, the display module 801 is also used to hover and display the aggregated bullet screen in response to a target input instruction.
[0202] Optionally, the display module 801 is also used to restore the sliding display of the aggregated bullet screen when no another target input instruction is received within the effective duration of the combo starting from the moment of receiving the target input instruction.
[0203] Optionally, the display module 801 is further used for:
[0204] When the bullet screen refresh time is reached, the target position is obtained, where the target position is the display position of the aggregated bullet screen in the video playback interface when the target input command is received;
[0205] Set the display position of the aggregated bullet message to the target position;
[0206] Render the aggregated bullet comments at the display position of the aggregated bullet comments in the video playback interface.
[0207] Optionally, the display module 801 is further used for:
[0208] Get the target release time, which is the release time of the aggregated bullet comment when the target input command is received;
[0209] Set the release time of the aggregated bullet comment to the sum of the target release time and the display time of the bullet comment frame in a single bullet comment refresh cycle;
[0210] The difference between the current video playback time and the release time of the aggregated barrage is used as the movement time of the aggregated barrage;
[0211] The product of the movement time of the aggregated barrage and the barrage speed is determined as the target position.
[0212] In summary, the barrage display device provided by the embodiment of the present application combines barrages with high content similarity into aggregated barrages and displays them on the video playback interface, so that after receiving the target input instruction for the aggregated barrage, the barrage with the same content as the aggregated barrage is displayed. By combining barrages with similar content into aggregated barrages for combined display, the problem of barrages blocking the video content due to too many similar barrages can be effectively avoided. In addition, the combined display of barrages with similar content can also effectively avoid the problem of repeated display of a large number of similar barrages, which makes the barrage content of the video playback interface relatively single. By effectively releasing the barrage display space, the barrage content displayed on the same screen can be enriched, and the display effect of high-quality barrages of different contents can be improved. In addition, in the technical solution, the number of target barrages is positively correlated with the attribute parameters of the target input instruction. Therefore, the user can add a target barrage with the same content as the aggregated barrage in the video playback interface by inputting the target input instruction, thereby effectively improving the interactivity of the aggregated barrage, enriching the display form of the aggregated barrage, and improving the barrage effect. Compared with the solution of using a violent shielding strategy to directly shield all barrages with similar content to avoid too many similar barrages affecting the user experience. The technical solution of the present application provides a compromise display solution, which can reduce the excessive display of similar barrages at the same time and meet the high-quality barrage display effect. At the same time, it can also support users to increase the display number of preferred barrages through interactive operations, meet the needs of users to express their preferred barrages, and especially meet the fans' needs for chasing stars from the audience group.
[0213] The present application also provides an electronic device, which may be the above-mentioned terminal or server. Fig. 9 As shown, it includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.
[0214] Memory 903, used for storing computer programs;
[0215] The processor 901 is used to implement any barrage display method provided in the embodiments of the present application when executing the program stored in the memory 903.
[0216] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0217] The communication interface 904 is used for communication between the above electronic device and other devices.
[0218] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0219] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0220] In another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and when the computer program is executed by a processor of a terminal, the steps executed by the terminal in any of the bullet screen display methods described in the above embodiments are executed. Or when the computer program is executed by a processor of a server, the steps executed by the server in any of the bullet screen display methods described in the above embodiments are executed.
[0221] In another embodiment provided by the present invention, a computer program product containing instructions is also provided. When the computer is run on a computer, the computer executes the steps executed by the terminal in the barrage display method described in any of the above embodiments, or executes the steps executed by the server in the barrage display method described in any of the above embodiments.
[0222] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0223] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "and / or" means and and or. For example, "A and / or B" means: A, B and A and B. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0224] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0225] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A bullet screen display method, characterized in that: The method is applied to a client device, and the method comprises: Display a video playback interface of a target video containing aggregated barrages, where the aggregated barrages are barrages obtained by merging at least two barrages in the barrage data corresponding to the target video, and the content similarity between the at least two barrages is greater than or equal to a similarity threshold; Receiving a target input instruction for the aggregated bullet screen; Target bullet screens with the same content as the aggregated bullet screen are displayed, and the number of the target bullet screens is positively correlated with the attribute parameters of the target input instruction.
2. The method according to claim 1, characterized in that The displaying of the target bullet screen having the same content as the aggregated bullet screen includes: When the value of the attribute parameter does not exceed the first threshold, the aggregated bullet screen is displayed in the video playback interface.
3. The method according to claim 2, characterized in that The displaying of the target bullet screen having the same content as the aggregated bullet screen also includes: When the value of the attribute parameter exceeds the first threshold but does not exceed the second threshold, the target bullet screen is displayed at a fixed position on the video playback interface.
4. The method according to claim 3, characterized in that The displaying of the target bullet screen having the same content as the aggregated bullet screen also includes: When the value of the attribute parameter exceeds the second threshold, a plurality of the target bullet screens are displayed in the display area of the video playback interface according to a target ratio, where the target ratio is the display proportion of the plurality of the target bullet screens in the display area.
5. The method according to claim 2, characterized in that: The displaying the aggregated bullet screen in the video playback interface includes: According to the distribution order from the center to the periphery of the display area of the video playback interface, the starting display position of the aggregated bullet comments to be newly displayed is set in the display area; In the display area, the aggregated bullet screen is displayed by sliding from the starting display position.
6. The method according to claim 3, characterized in that The displaying the target bullet screen at a fixed position on the video playback interface includes: Generate barrage display data of special effect barrage, the barrage display data including: barrage content and barrage style, the barrage content is the same as the content of the aggregated barrage, the barrage style is different from the style of the aggregated barrage, and the barrage style includes at least one of the following: font size, font color, font type, font border, border type, and transparency; According to the bullet screen display data of the special effect bullet screen, the special effect bullet screen is rendered at a fixed position on the video playback interface.
7. The method according to claim 6, characterized in that The barrage display data for generating special effect barrage includes: Obtain the target content, target font size and target font color of the aggregated bullet comment; According to the target content, target font size and target font color of the aggregated barrage, barrage display data of the special effect barrage is generated, in which the barrage content is the target content, the font size is larger than the target font size, and the font color is different from the target font color.
8. The method according to claim 4, characterized in that The step of displaying a plurality of target bullet screens in a display area of the video playback interface according to a target ratio includes: Determining the number of special effect bullet screens according to the target ratio, the area size of the display area, and the display size of a single special effect bullet screen in the display area; Generate barrage display data of the number of special effect barrages, the barrage display data including: barrage content, barrage style and barrage display position, the barrage display position in the barrage display data of each special effect barrage is different, and the barrage content is the same as the content of the aggregated barrage, and the barrage style is different from the style of the aggregated barrage; According to the bullet screen display data of each of the special effect bullet screens, the special effect bullet screen is rendered at the bullet screen display position corresponding to each of the special effect bullet screens in the video playback interface.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: When the value of the attribute parameter does not exceed the first threshold, a target counting animation is displayed at the end of the aggregated barrage, and the target counting animation includes at least one of the following: a countdown animation of the effective duration of a combo, and a display animation of the number of consecutive inputs. The effective duration of a combo is used to determine whether two adjacently received target input instructions are continuous target input instructions.
10. The method according to claim 9, characterized in that The method further comprises: When the value of the attribute parameter exceeds the first threshold but does not exceed the second threshold, a target counting animation is displayed at the end of the aggregated bullet screen.
11. The method according to claim 10, characterized in that The method further comprises: When the value of the attribute parameter exceeds the second threshold, continuous click prompt information is displayed, where the continuous click prompt information is used to indicate that the continuous input upper limit of the target input instruction is reached.
12. The method according to claim 10, characterized in that The displaying of the target counting animation at the end of the aggregated bullet screen includes: Obtaining the display position of the last character of the aggregated bullet comment on the video playback interface; Displaying the view container at the display position; The target counting animation is displayed through the view container.
13. The method according to claim 1, characterized in that The method further comprises: In response to the target input instruction, the aggregated bullet screen is displayed in a hovering manner.
14. The method according to claim 13, characterized in that The method further comprises: When no another target input instruction is received within the effective duration of the combo starting from the moment of receiving the target input instruction, the sliding display of the aggregated barrage is restored.
15. The method according to claim 13, characterized in that The hovering and displaying of the aggregated bullet screen includes: When the bullet screen refresh time is reached, a target position is obtained, where the target position is the display position of the aggregated bullet screen in the video playback interface when the target input instruction is received; Setting the display position of the aggregated bullet screen to the target position; The aggregated bullet comment is rendered at the display position of the aggregated bullet comment in the video playback interface.
16. The method according to claim 15, characterized in that The obtaining of the target position comprises: Obtaining a target release time, where the target release time is the release time of the aggregated bullet comment when the target input instruction is received; Setting the publishing time of the aggregated bullet comment to the sum of the target publishing time and the display time of the bullet comment frame in a single bullet comment refresh cycle; The difference between the current video playback time and the release time of the aggregated barrage is used as the movement time of the aggregated barrage; The product of the movement time of the aggregated barrage and the barrage speed is determined as the target position.
17. A bullet screen display device, characterized in that: The device is applied to a client device, and the device comprises: A display module, used to display a video playback interface of a target video containing an aggregated barrage, wherein the aggregated barrage is a barrage obtained by merging at least two barrages in the barrage data corresponding to the target video, and the content similarity between the at least two barrages is greater than or equal to a similarity threshold; A receiving module, used for receiving a target input instruction for the aggregated bullet screen; The display module is also used to display target bullet screens with the same content as the aggregated bullet screens, and the number of the target bullet screens is positively correlated with the attribute parameters of the target input instructions.
18. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, configured to implement any one of the methods of claims 1 to 16 when executing a program stored in a memory.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
20. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 16 is implemented.