Barrage processing method and device

By determining the preset bullet screen track based on the playback method of the video playback interface and rendering the bullet screen based on the track, the problem that the system's default display method cannot meet user needs is solved, and the smoothness of bullet screen display and user interaction rate are improved.

CN116567329BActive Publication Date: 2025-12-12SHANGHAI BILIBILI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210114576.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-30
Publication Date
2025-12-12
Estimated Expiration
2042-01-30

AI Technical Summary

Technical Problem

In existing technologies, the system's default bullet screen display method cannot meet the personalized needs of different users, resulting in a poor user experience.

Method used

Based on the playback mode of the video playback interface, a preset bullet screen track is determined, and bullet screens are displayed based on this track. At least two playback modes are supported, including landscape, portrait, full screen, and half screen. The bullet screens to be displayed are rendered through the preset bullet screen track and bullet screen display effects.

Benefits of technology

It improved the smoothness of bullet screen display and user interaction rate, met the personalized needs of different users, and enhanced the video viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116567329B_ABST
    Figure CN116567329B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method and device for processing bullet screen, wherein the method for processing bullet screen comprises: obtaining bullet screen to be displayed of a target video; determining a preset bullet screen track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset bullet screen track is generated based on at least two playing modes; and rendering the bullet screen to be displayed to the video playing interface based on the preset bullet screen track and a bullet screen display effect.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of computer, in particular, to a method for processing bullet screen. One or more embodiments of the present application also relate to a device for processing bullet screen, a computing device, and a computer readable storage medium. BACKGROUND

[0002] With the vigorous development of multimedia technology, bullet screen has been paid more and more attention by users. From website video to movie theater, to large-scale activities, bullet screen has begun to become one of the important standards for measuring whether the platform is alive.

[0003] Bullet screen refers to the comment text floating in the video player. The comment text is formed by the user's comments during the video watching process. Therefore, the bullet screen transmission phenomenon can also be said to be a typical group transmission case.

[0004] At present, in the video playing process, the server can obtain the bullet screen information published by each user on the video, and then add the bullet screen information to different time periods of the video. The video playing terminal displays the bullet screen for the user according to the default bullet screen display mode during the video playing process. However, due to different user requirements for the bullet screen playing effect, the system default bullet screen display mode cannot meet the different user requirements. Therefore, an effective method is needed to solve this problem. SUMMARY

[0005] Therefore, embodiments of the present application provide a method for processing bullet screen. One or more embodiments of the present application also relate to a device for processing bullet screen, a computing device, and a computer readable storage medium, to solve the technical defects that the bullet screen is displayed according to the system default bullet screen display mode, which cannot meet the different user requirements.

[0006] According to a first aspect of embodiments of the present application, a method for processing bullet screen is provided, comprising:

[0007] obtaining bullet screen to be displayed of a target video;

[0008] determining a preset bullet screen track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset bullet screen track is generated based on at least two playing modes;

[0009] rendering the bullet screen to be displayed to the video playing interface based on the preset bullet screen track and bullet screen display effect.

[0010] According to a second aspect of embodiments of the present application, a device for processing bullet screen is provided, comprising:

[0011] An obtaining module is configured to obtain to-be-displayed bullet screens of a target video;

[0012] A determining module is configured to determine a preset bullet screen track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset bullet screen track is generated based on at least two playing modes;

[0013] A rendering module is configured to render the to-be-displayed bullet screens to the video playing interface based on the preset bullet screen track and a bullet screen display effect.

[0014] According to a third aspect of an embodiment of the present application, a computing device is provided, comprising:

[0015] a memory and a processor;

[0016] The memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions, wherein the processor executes the computer executable instructions to implement the steps of the bullet screen processing method.

[0017] According to a fourth aspect of an embodiment of the present application, a computer readable storage medium is provided, which stores computer executable instructions, and the instructions are executed by a processor to implement the steps of the bullet screen processing method.

[0018] An embodiment of the present application implements a bullet screen processing method and device, wherein the bullet screen processing method comprises obtaining to-be-displayed bullet screens of a target video, determining a preset bullet screen track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset bullet screen track is generated based on at least two playing modes, and rendering the to-be-displayed bullet screens to the video playing interface based on the preset bullet screen track and a bullet screen display effect.

[0019] According to an embodiment of the present application, a preset bullet screen track suitable for a playing mode of a video is determined, and to-be-displayed bullet screens are displayed in the preset bullet screen track according to a bullet screen display effect. In a specific activity scenario, this bullet screen display mode and display effect are beneficial to increasing an activity atmosphere, improving a user interaction rate, and meeting bullet screen display requirements or bullet screen viewing requirements of different users, thereby being beneficial to improving a video viewing experience of a user. BRIEF DESCRIPTION OF DRAWINGS

[0020] Figure 1 is a flowchart of a bullet screen processing method provided by an embodiment of the present application;

[0021] Figure 2a is a schematic diagram of a bullet screen track design result provided by an embodiment of the present application;

[0022] Figure 2bis a schematic diagram of a second kind of design result of a barrage track provided by an embodiment of the present application;

[0023] Figure 2c is a schematic diagram of a third kind of design result of a barrage track provided by an embodiment of the present application;

[0024] Figure 2d is a schematic diagram of a fourth kind of design result of a barrage track provided by an embodiment of the present application;

[0025] Figure 3 is a processing flow diagram of a barrage processing method provided by an embodiment of the present application applied to a video field;

[0026] Figure 4 is a structural schematic diagram of a barrage processing apparatus provided by an embodiment of the present application;

[0027] Figure 5 is a structural block diagram of a computing device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0028] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be practiced without the specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to obscure the present application. Some embodiments of the present application can be practiced in a variety of ways, and the description below is not intended to limit the present application.

[0029] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of one or more embodiments of the present application. As used in one or more embodiments of the present application and the accompanying claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0030] It will be understood that, although the terms first, second, etc. can be used herein to describe various information, these terms are not intended to denote a temporal or chronological order. Rather, these terms are used solely to distinguish one from another only. For example, without departing from the scope of one or more embodiments of the present application, first can be termed second, and similarly, second can be termed first. The term "if' as used herein can be interpreted as meaning "when" or "in response to determining" depending on the context.

[0031] First, the noun terms related to one or more embodiments of the present application are explained.

[0032] Barrage: Comments that pop up while watching a video on the Internet.

[0033] In the present application, a barrage processing method is provided. One or more embodiments of the present application also relate to a barrage processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments.

[0034] Referring to Figure 1 , Figure 1 A flowchart of a barrage processing method according to an embodiment of the present application is shown, including the following steps:

[0035] Step 102, obtaining a to-be-displayed barrage of a target video.

[0036] The barrage processing method provided in the embodiments of the present application is applied to a video playing terminal.

[0037] The target video is a video currently played by the video playing terminal; the to-be-displayed barrage is a barrage submitted by a user during the playing process of the target video, or the to-be-displayed barrage can also be a preset barrage corresponding to the video content of the target video, wherein the preset barrage can be a barrage added in advance by a service party for the video content of the target video, such as a barrage advertisement.

[0038] During the process in which the user plays the target video through the video playing terminal, if the to-be-displayed barrage exists in the target video, the video playing terminal can render and display the to-be-displayed barrage through a certain barrage display manner, so as to realize a target barrage display effect, for example, the to-be-displayed barrage can be changed into a style similar to a meteor shower during the barrage display process, so as to realize a meteor shower barrage special effect.

[0039] Step 104, determining a preset barrage track of a video playing interface according to a playing manner of the target video in the video playing interface, wherein the preset barrage track is generated based on at least two playing manners.

[0040] Specifically, the playing manner of the target video in the video playing interface includes but is not limited to landscape playing, portrait playing, full-screen playing, half-screen playing, etc. The preset barrage track of the video playing interface is a barrage track set in advance for the video playing interface for barrage display.

[0041] Since the video playback interface for displaying the barrage track may be different when playing the video in different playing modes, for example, the position of the barrage track in the video playback interface, the number of the barrage track, and the length of the barrage track. Therefore, after obtaining the to-be-displayed barrage of the target video, the playing mode used by the video playback terminal to play the target video through the video playback interface can be determined, and the preset barrage track corresponding to the playing mode in the video playback interface is further determined based on the playing mode, wherein the preset barrage track can be at least two.

[0042] In specific implementation, the setting process of the preset barrage track can be implemented by the following manner:

[0043] According to the preset playing mode of the to-be-played video in the video playback interface, determine the barrage track design area of the video playback interface;

[0044] Based on the preset barrage track interval, the barrage track design area is divided, and the preset barrage track of the video playback interface is determined based on the division result.

[0045] Specifically, since the video playback interface can play the to-be-played video in different playing modes, such as horizontal screen playing or vertical screen playing, and in order to achieve the purpose of displaying the barrage through the preset barrage track to form the target barrage display effect, the embodiments of the present application can set different preset barrage tracks for the video playback interface based on different playing modes, that is, the video playback interface will correspond to different preset barrage tracks when playing the video in different playing modes.

[0046] Among them, the preset playing mode is any one or at least two of a plurality of different playing modes; the barrage track design area is the area for determining the barrage track of the video playback interface.

[0047] In actual application, different barrage track design areas can be determined for the video playback interface playing the video in different playing modes, and based on the preset barrage track interval, the barrage track design area is divided into cells, and the barrage track of the video playback interface is determined based on the division result.

[0048] Further, according to the preset playing mode of the to-be-played video in the video playback interface, the barrage track design area of the video playback interface is determined, comprising:

[0049] Determine the interface placement result corresponding to the to-be-played video played by the video playback interface in the preset playing mode;

[0050] Determine the barrage track design area of the video playback interface based on the interface placement result, wherein the barrage track design area contains the interface placement result.

[0051] Specifically, since the video playing interface used by the video playing terminal for video playing is usually a rectangular region, when determining the barrage track design region of the video playing interface, the size and interface placement direction of the video playing interface when playing the to-be-played video according to the preset playing mode can be determined, the interface placement result can be determined based on the interface placement direction and the size, and the barrage track design region of the video playing interface can be determined based on the interface placement result, where the barrage track design region contains the interface placement result.

[0052] Further, the barrage track design region can be a rectangular frame.

[0053] Correspondingly, the barrage track design region is divided based on the preset barrage track interval, and the preset barrage track of the video playing interface is determined based on the division result, which can be specifically implemented in the following manner:

[0054] The barrage track design region is divided based on the preset barrage track interval, to generate a plurality of rectangular units.

[0055] A line segment generated by intersecting a target edge in a target rectangular unit with the interface placement result is determined as a barrage track of the video playing interface, where the target rectangular unit is one of the plurality of rectangular units, and the interface placement result contains the line segment.

[0056] Specifically, the barrage track design region can be designed as a rectangular frame.

[0057] A schematic diagram of a barrage track design result provided by an embodiment of the present application is shown in FIG. 1. Figure 2a As shown in FIG. 1, Figure 2a The interface placement result in FIG. 1 is the interface placement result of the video playing interface when playing in a horizontal screen mode, which can be determined according to the size and interface placement direction of the video playing interface when playing in the horizontal screen mode, and the interface placement result can be determined by scaling the size of the video playing interface in a same proportion.

[0058] In addition, since the interface placement result is a rectangular region, the barrage track design region can also be designed as a rectangular frame. When the barrage track design region is a rectangular frame, to achieve a target barrage display effect, such as a meteor shower barrage special effect, the preset barrage track in the video playing interface can be designed to have a certain inclination angle. Therefore, when determining the barrage track design region, it can be set as an inclined rectangular frame, and the specific inclination angle, i.e., the included angle between the upper edge of the barrage track design region and the upper edge of the interface placement result, can be determined according to actual requirements, which is not limited herein.

[0059] The embodiment of the present application takes the landscape playing mode as an example to illustrate the setting process of the preset bullet screen track of the video playing interface in the landscape playing mode. The design result of the bullet screen track design region in the landscape playing mode is shown in FIG. 13A. Figure 2a Figure 2a The bullet screen track design region in the landscape playing mode contains the interface placement result. Each side of the bullet screen track design region passes through a vertex of the interface placement result. The angle between the upper edge of the bullet screen track design region and the upper edge of the interface placement result is 45°. However, in actual application, the shape and size of the bullet screen track design region can be determined according to actual requirements when the size of the bullet screen track design region meets the condition of being greater than the size of the interface placement result. The angle between the upper edge of the bullet screen track design region and the upper edge of the interface placement result can also be determined according to actual requirements, which is not limited herein.

[0060] After the bullet screen track design region is determined, the bullet screen track design region can be divided into multiple rectangular units based on the preset bullet screen track interval. Each rectangular unit has two opposite sides parallel to the length or width of the bullet screen track design region. The length of each rectangular unit is equal to the length or width of the bullet screen track design region. The width of each rectangular unit is equal. The specific division result is shown in FIG. 13B. Figure 2a Figure 2a In FIG. 13B, the bullet screen track design region is divided into rectangular unit 1, rectangular unit 2, and rectangular unit 3.

[0061] In addition, the target rectangular unit is any one of the multiple rectangular units. Taking the target rectangular unit as the rectangular unit 3 for example, the target side in the rectangular unit 3 can be the lower edge, that is, the line segment AB. Therefore, the line segment CD generated by the intersection of the line segment AB in the rectangular unit 3 and the interface placement result can be determined as a preset bullet screen track of the video playing interface. The inclination angle of the preset bullet screen track is 45°.

[0062] In actual application, in the landscape playing mode, since the ratio of the video is usually 16:9, that is, the horizontal length is greater than the vertical length, the rectangular units are usually intersected with the horizontal side to determine the preset bullet screen track. In the vertical playing mode, the ratio of the video is usually 9:16, that is, the horizontal length is less than the vertical length, and the rectangular units are usually intersected with the vertical side to determine the preset bullet screen track. Therefore, in the case that the number of the preset bullet screen tracks of the video playing interface is certain, the bullet screen track interval can be determined according to the inclination angle of the preset bullet screen track and the length of the horizontal side or the vertical side of the video playing interface. It can be seen that the bullet screen track interval in the video playing interface in the landscape playing mode can be the same as or different from the bullet screen track interval in the video playing interface in the vertical playing mode, which is not limited herein.

[0063] In the embodiment of the present application, the number of the preset bullet screen tracks of the video playing interface can be determined according to actual requirements, which is not limited herein. ​​

[0064] The embodiments of the present application set corresponding preset bullet screen tracks for the video playing interface according to different video playing modes, which can solve the screen rotation problem, that is, when the playing mode is changed during the video playing process, the bullet screen display can continue based on the preset bullet screen track corresponding to the changed playing mode, which is beneficial to improve the smoothness of the bullet screen display process and thus improve the video watching experience.

[0065] Alternatively, the preset bullet screen track setting process can also be implemented in the following manner:

[0066] Determine at least two interface placement results of the video playing interface playing the to-be-played video according to at least two preset playing modes;

[0067] Combine the at least two interface placement results, and determine a bullet screen track design area of the video playing interface according to the combination result, wherein the bullet screen track design area contains the combination result.

[0068] Divide the bullet screen track design area based on a preset bullet screen track interval, and determine the preset bullet screen track of the video playing interface based on the division result.

[0069] Specifically, the video playing interface can play the to-be-played video in different playing modes, such as horizontal screen playing or vertical screen playing, etc. In order to realize the bullet screen display through the preset bullet screen track to form the target bullet screen display effect, and improve the smoothness of the bullet screen display connection when the video playing mode is changed during the video playing process, the preset bullet screen track of the video playing interface playing the to-be-played video in different playing modes can be set based on the combination result.

[0070] In actual application, the video playing interfaces playing the to-be-played video in different playing modes can be combined to determine the bullet screen track design area corresponding to the combination result, and the preset bullet screen track of each video playing interface can be determined based on the preset bullet screen track interval and the division result.

[0071] In addition, since the video playing interface of the video playing terminal for playing the video is usually a rectangular area, when the bullet screen track design area of the video playing interface is determined, the size and interface placement direction of the video playing interface when playing the to-be-played video in different playing modes can be determined, the interface placement result can be determined based on the interface placement direction and size, and the different interface placement results can be combined to determine the corresponding bullet screen track design area based on the combination result, wherein the bullet screen track design area contains the interface placement result.

[0072] Further, the barrage track design region can be a rectangular frame.

[0073] Correspondingly, the barrage track design region is divided based on the preset barrage track interval, and the preset barrage track of the video playing interface is determined based on the division result, which can be achieved by the following manner:

[0074] The barrage track design region is divided based on the preset barrage track interval, and a plurality of rectangular units are generated;

[0075] A line segment generated by intersecting the target edge in the target rectangular unit and the target interface placement result is determined as the preset barrage track of the video playing interface played in the target preset video playing manner, wherein the target interface placement result is one of the at least two interface placement results.

[0076] Specifically, the barrage track design region can be designed as a rectangular frame.

[0077] The two playing manners, i.e., landscape playing and portrait playing, are combined, and different preset barrage tracks are set for the video playing interfaces playing videos in different playing manners based on the combination result. Based on this, a schematic diagram of a second barrage track design result provided by the embodiment of the present application is shown in Figure 2b Figure 2b The interface placement result in the combination result includes a first interface placement result of the video playing interface when playing in landscape and a second interface placement result of the video playing interface when playing in portrait, wherein the interface placement result of the video playing interface when playing in landscape can be determined according to the size and interface placement direction of the video playing interface when playing in landscape, and the interface placement result of the video playing interface when playing in portrait can be determined according to the size and interface placement direction of the video playing interface when playing in portrait.

[0078] In addition, since the interface placement result is a rectangular region, the barrage track design region can also be designed as a rectangular frame. In the case that the barrage track design region is a rectangular frame, in order to achieve a target barrage display effect, such as a meteor shower barrage special effect, the preset barrage track in the video playing interface can be designed to have a certain inclination angle. Therefore, when determining the barrage track design region, it can be set as an inclined rectangular frame. The specific inclination angle, i.e., the included angle between the upper edge of the barrage track design region and the upper edge of any interface placement result in the combination result, can be determined according to actual requirements, which is not limited herein.

[0079] The design result of the specific barrage track design region is shown in Figure 2b Figure 2b ​​The barrage track design region in the first aspect comprises a first interface placement result and a second interface placement result. Each side of the barrage track design region passes through one or two vertices of the interface placement result. An angle between an upper edge of the barrage track design region and an upper edge of any interface placement result is 45°. In actual application, the shape and size of the barrage track design region can be determined according to actual requirements when the size of the barrage track design region is greater than the size of the interface placement result. The angle between the upper edge of the barrage track design region and the upper edge of the interface placement result can also be determined according to actual requirements, which is not limited herein.

[0080] After the barrage track design region is determined, the barrage track design region can be divided based on a preset barrage track interval to generate a plurality of rectangular units. Each rectangular unit has two opposite sides parallel to the length or width of the barrage track design region. The length of each rectangular unit is equal to the length or width of the barrage track design region. The width of each rectangular unit is equal. The specific division result is shown in FIG. 4. Figure 2b Figure 2b In the second aspect, the barrage track design region is divided into rectangular unit 1, rectangular unit 2, rectangular unit 3 and rectangular unit 4. For the convenience of description, only rectangular unit 4 is labeled.

[0081] In addition, the target rectangular unit is any one of the plurality of rectangular units. Taking rectangular unit 4 as an example, the target side in the rectangular unit 4 can be the lower edge, that is, line segment AB. Therefore, line segment CD generated by the intersection of line segment AB in rectangular unit 4 and the first interface placement result can be determined as a preset barrage track of the video playing interface when playing a video in horizontal screen. Line segment EF generated by the intersection of line segment AB and the second interface placement result can be determined as a preset barrage track of the video playing interface when playing a video in vertical screen.

[0082] In actual application, when the preset barrage track is set based on the combination result of the two playing modes of horizontal screen playing and vertical screen playing, the barrage track interval in the video playing interface when playing a video in horizontal screen and the barrage track interval in the video playing interface when playing a video in vertical screen can be set as equal values. In this case, when playing a to-be-played video based on the two playing modes of horizontal screen playing and vertical screen playing, the combination result of the two interface placement results corresponding to the two playing modes is determined. After the barrage track design region is determined, the preset barrage tracks of the video playing interface when playing a video in horizontal screen and vertical screen are simultaneously determined based on the barrage track design region and the barrage track interval, which is beneficial to improving the setting efficiency of the preset barrage track.

[0083] Further, the interface placement result is a rectangular frame.

[0084] Correspondingly, the barrage track design region of the video playing interface determined according to the combination result can also be achieved by the following manner. ​

[0085] establish a two-dimensional coordinate system, wherein any vertex in the combination result is taken as a coordinate origin, and edges where lengths and widths of the target interface placement result are located are taken as a horizontal axis and a vertical axis respectively;

[0086] The vertex coordinates of the barrage track design region in the two-dimensional coordinate system are determined according to the length and width of the target interface placement result, and the barrage track design region is constructed based on the vertex coordinates.

[0087] Specifically, when videos are played in different playing modes, the interface placement results of the video playing interface can all be rectangular frames, and therefore, after the at least two interface placement results are combined, any vertex in the combination result can be taken as a coordinate origin, and edges where lengths and widths of the target interface placement result in the at least two interface placement results are located are taken as a horizontal axis and a vertical axis respectively to establish a two-dimensional coordinate system.

[0088] The coordinate system established by the embodiments of the present application is shown in Figure 2b After the first interface placement result and the second interface placement result are combined, a vertex O in the combination result is taken as a coordinate origin, and a straight line where the length of the first interface placement result is located is taken as an x axis, and a straight line where the width is located is taken as a y axis to establish a two-dimensional coordinate system.

[0089] After the two-dimensional coordinate system is established, if the length of the first interface placement result is l and the width is w, the coordinates of a vertex G of the barrage track design region in the two-dimensional coordinate system can be determined based on the length and the width of the first interface placement result, that is, (l+w / 2, w / 2), and then the barrage track design region corresponding to the combination result can be constructed based on the coordinates of the vertex G, and the barrage track design region is constructed, and each edge in the constructed barrage track design region passes through one or two vertices in any interface placement result.

[0090] In addition, a schematic diagram of a third barrage track design result provided by the embodiments of the present application is shown in Figure 2c Figure 2c The interface placement results in the schematic diagram include a first interface placement result of a video playing interface when playing in a horizontal screen, and a second interface placement result of a video playing interface when playing in a vertical screen.

[0091] Since the interface placement result is a rectangular region, the barrage track design region can also be designed as a rectangular frame, and in the case that the barrage track design region is a rectangular frame, in addition to the preset barrage track in the video playing interface being designed to have a certain oblique angle to achieve a certain barrage display effect, the preset barrage track can also be set to be in a horizontal direction or a vertical direction, and therefore, when the barrage track design region is determined, it can be set to be a horizontal rectangular frame. The design result of the specific barrage track design region is shown in Figure 2c ​As shown in FIG. 6A, Figure 2c The preset barrage track in FIG. 6A is different from that in FIG. 5A in the tilt angle, and the specific setting process is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here. Figure 2b The specific setting process of the preset barrage track in FIG. 6A is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here. Figure 2b The specific setting process of the preset barrage track in FIG. 6A is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here.

[0092] In addition, the fourth design result of the barrage track provided by the embodiment of the present application is shown in FIG. 6B, Figure 2b The interface placement result in FIG. 6B includes the first interface placement result of the video playback interface when playing in the horizontal screen and the third interface placement result of the video playback interface when playing in the half screen. Figure 2d Since the interface placement result is a rectangular area, the barrage track design area can also be designed as a rectangular frame. In the case of a rectangular frame, in order to achieve the target barrage display effect, such as the meteor shower barrage special effect, the preset barrage track in the video playback interface can be designed to have a certain tilt angle. Therefore, when determining the barrage track design area, it can be set as an inclined rectangular frame. The design result of the barrage track design area is shown in FIG. 6C,

[0093] The specific setting process of the preset barrage track in FIG. 6C is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here. Figure 2d The specific setting process of the preset barrage track in FIG. 6C is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here. Figure 2d The specific setting process of the preset barrage track in FIG. 6C is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here. Figure 2d The specific setting process of the preset barrage track in FIG. 6C is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here. Figure 2b The specific setting process of the preset barrage track in FIG. 6C is similar to that of the preset barrage track in FIG. 5A, which will not be repeated here.

[0094] By combining different playing modes and setting different preset barrage tracks for the video playback interface playing videos in different playing modes in the combined result, the rotating screen problem can be solved. That is, in the case of changing the playing mode during video playback, the barrage display can continue based on the preset barrage track corresponding to the changed playing mode. This processing method is conducive to improving the smoothness of the barrage display process, thereby improving the video watching experience.

[0095] Step 106: rendering the to-be-displayed barrage to the video playback interface based on the preset barrage track and the barrage display effect.

[0096] Specifically, in the case of displaying the to-be-displayed barrage according to the preset barrage display effect, after determining the preset barrage track of the video playback interface, the to-be-displayed barrage can be rendered to the video playback interface according to the barrage display effect and the preset barrage track.

[0097] In a specific implementation, rendering the to-be-displayed barrage to the video playback interface based on the preset barrage track and the barrage display effect includes:

[0098] determine a target barrage track of the to-be-displayed barrage based on the preset barrage track;

[0099] render the to-be-displayed barrage to the video playing interface according to the barrage display effect and position information of the target barrage track in the video playing interface.

[0100] Further, the target barrage track of the to-be-displayed barrage is determined based on the preset barrage track, which can be implemented in the following manner:

[0101] determine whether there is an idle barrage track in the preset barrage track;

[0102] If yes, any one idle barrage track is determined as the target barrage track of the to-be-displayed barrage;

[0103] If no, a target track identifier whose adding time in the track queue meets a preset time threshold is determined, an occupancy value of the preset barrage track corresponding to the target track identifier is determined, and a preset barrage track whose occupancy value is less than a preset occupancy threshold is determined as the target barrage track of the to-be-displayed barrage.

[0104] Specifically, the target barrage track, i.e., the barrage track used to display the to-be-displayed barrage, is one or at least two of the preset barrage tracks, which can be determined according to actual needs and is not limited herein.

[0105] After the preset barrage track corresponding to the playing mode in the video playing interface is determined, at least one target barrage track can be further selected from the preset barrage track for displaying the to-be-displayed barrage.

[0106] In addition, the idle barrage track, i.e., the preset barrage track that is not occupied or not used, does not have the to-be-displayed barrage in the idle track.

[0107] Since there can be multiple different preset barrage tracks in the video playing interface, and each preset barrage track can be used for barrage display, after determining the preset barrage tracks of the video playing interface, it can be determined whether there is an idle barrage track in the preset barrage tracks, if there is, one or at least two target barrage tracks for displaying the to-be-displayed barrage can be selected from the idle preset barrage track (idle barrage track); if there is no idle barrage track in the preset barrage track, it indicates that each preset barrage track has been used for barrage display, that is, there is to-be-displayed barrage in each preset barrage track, in this case, the target barrage track for barrage display can be selected from the track queue, specifically, the recently used barrage track can be excluded from the track queue, that is, the use time of each preset barrage track is determined according to the adding time of the track identifier in the track queue, if the time difference between the adding time and the current time is less than or equal to the preset time threshold, it can be determined that the preset barrage track corresponding to the track identifier is a recently used barrage track, therefore, the track identifier in the track queue with an adding time greater than the preset time threshold can be determined as a target track identifier to exclude the recently used barrage track, and the occupation value of the preset barrage track corresponding to each target track identifier is determined, that is, the ratio of the length of the displayed barrage in the preset barrage track to the length of the preset barrage track is determined, and the preset barrage track with a smaller ratio is taken as the target barrage track.

[0108] By taking the idle track or the non-idle track with a smaller occupation value as the target barrage track for barrage display, it is beneficial to avoid always displaying multiple to-be-displayed barrages through one preset barrage track in the case that there are multiple to-be-displayed barrages, that is, the multiple to-be-displayed barrages can be distributed to different barrage tracks for display, which is beneficial to guarantee the clarity of barrage display and improve the interaction rate of users, thereby being beneficial to improve the video watching experience of users.

[0109] Alternatively, determining the target barrage track of the to-be-displayed barrage based on the preset barrage track can also be implemented in the following manner:

[0110] determining whether there is an idle barrage track in the preset barrage track;

[0111] if yes, according to the association relationship between the video playing terminal and the user terminal sending the to-be-displayed barrage, the target barrage track of the to-be-displayed barrage is selected in the idle barrage track.

[0112] Specifically, when screening the target barrage track of the to-be-displayed barrage, the relationship between the user A sending the barrage and the user B watching the barrage can be determined, and the target barrage track can be selected based on the relationship between the two. For example, if the to-be-displayed barrage is sent by the user A, when the to-be-displayed barrage is displayed for the user A, the to-be-displayed barrage can be displayed at the middle position of the video playing interface of the user A; and when the to-be-displayed barrage is displayed for the user B, the to-be-displayed barrage can be displayed at any position of the video playing interface of the user B.

[0113] Therefore, in the process of determining the target barrage track, it is determined whether there is an idle barrage track in the preset barrage track, and if there is, the association relationship between the video playing terminal and the user terminal sending the to-be-displayed barrage is determined, and if the two are consistent, that is, the user A sending the to-be-displayed barrage and the user B watching the to-be-displayed barrage are the same user, in this case, one or at least two barrage tracks close to the center position of the video playing interface can be selected from the idle barrage track as the target barrage track; if the two are not consistent, that is, the user A sending the to-be-displayed barrage and the user B watching the to-be-displayed barrage do not belong to the same user, any one or at least two barrage tracks can be selected from the idle barrage track as the target barrage track.

[0114] In the embodiment of the present application, the to-be-displayed barrage is usually randomly generated on a certain idle barrage track, therefore, in the process of determining the target barrage track, the hit probability of the preset barrage track located in the middle of the video playing interface can be adjusted upwards, so as to increase the probability of generating the to-be-displayed barrage in the preset barrage track in the middle of the video playing interface.

[0115] According to the association relationship between the video playing terminal and the user terminal sending the to-be-displayed barrage, the target barrage track is screened in the embodiment of the present application, so that in the case of determining that the user sending the to-be-displayed barrage and the user watching the to-be-displayed barrage are the same user according to the association relationship, the barrage display is performed through the target barrage track close to the center position of the video playing interface, thereby facilitating to improve the interaction rate of the user and facilitating to improve the video watching experience of the user.

[0116] In addition, after determining the target barrage track of the to-be-displayed barrage based on the preset barrage track, the track identifier of the target barrage track can be determined, and the track identifier can be added to the track queue, wherein the target barrage track is converted into a non-idle barrage track.

[0117] Specifically, the track queue is used to store the track identifier of the target barrage track.

[0118] When it is determined to display the to-be-displayed bullet through the target bullet track, the track identifier of the target bullet track can be added to the track queue to convert the target bullet track into a non-idle bullet track. In this case, after the to-be-displayed bullet is displayed through the target bullet track, if there is a next to-be-displayed bullet after the to-be-displayed bullet, the next to-be-displayed bullet can not be displayed through the target bullet track, so as to avoid that in the case where there are multiple to-be-displayed bullets, the multiple to-be-displayed bullets are always displayed through a preset bullet track, that is, the multiple to-be-displayed bullets can be distributed to different bullet tracks for display. In this way, the bullet display effect can be improved, and the video watching experience of the user can be improved.

[0119] In addition, it can also be determined whether the ratio of the number of track identifiers included in the track queue to the number of preset bullet tracks of the video playing interface is greater than a preset ratio threshold value.

[0120] If yes, according to the adding time of the track identifiers in the track queue, a target track identifier satisfying a preset condition is screened, and the preset bullet track corresponding to the target track identifier is determined as an idle bullet track.

[0121] Specifically, the track queue is used to record recently used bullet tracks, and the length of the track queue can be used to represent the number of track identifiers in the track queue.

[0122] In actual application, the length of the track queue can be set, for example, the maximum length of the track queue is set to 10% of the total length, wherein the total length is the number of preset bullet tracks in the video playing interface, so as to control the number of times of occupying each bullet track, and at the same time, it can be ensured that there is a non-idle bullet track that can be used when bullet display is needed.

[0123] Therefore, during the video playing process, the length of the track queue can be detected in real time or according to a certain time period, for example, the length of the track queue can be detected before the track identifier of the target bullet track is added to the track queue each time, so as to determine whether the ratio of the number of track identifiers included in the track queue to the number of preset bullet tracks of the video playing interface is greater than a preset ratio threshold value; in the case of being greater, the adding time of each track identifier in the track queue can be determined, and then a target track identifier with an earlier adding time is deleted from the track queue, and after the deletion, the preset bullet track corresponding to the target track identifier is determined as an idle bullet track.

[0124] For example, if the preset ratio threshold is set as 10%, the total number of preset bullet screen tracks of the video playing interface is 20, and the maximum length of the track queue is 2, in this case, if it is determined that the maximum length of the track queue exceeds 2 or the ratio of the number of track identifiers contained in the track queue to the total number of preset bullet screen tracks of the video playing interface is greater than 10%, the track identifier added to the bullet screen track earliest can be deleted from the track queue, so that the number of track identifiers in the track queue is always less than or equal to 2, so that there are always at least 18 bullet screen tracks as idle tracks, that is, there are always at least 18 bullet screen tracks available for bullet screen display.

[0125] The embodiment of the present application controls the number of track identifiers in the track queue, which is beneficial to avoid always displaying a plurality of to-be-displayed bullet screens through a preset bullet screen track when there are a plurality of to-be-displayed bullet screens, and is beneficial to ensure that there are always available idle bullet screen tracks for bullet screen display, thereby being beneficial to guarantee the clarity of bullet screen display, improving the interaction rate of users, and being beneficial to improve the video watching experience of users.

[0126] In specific implementation, according to the bullet screen display effect and the position information of the target bullet screen track in the video playing interface, the to-be-displayed bullet screen is rendered to the video playing interface, and specifically, the bullet screen display style of the to-be-displayed bullet screen can be determined according to the bullet screen display effect, wherein the bullet screen display style includes bullet screen parameters set according to the bullet screen display effect; and the to-be-displayed bullet screen is rendered to the video playing interface according to the position information of the target bullet screen track in the video playing interface and the bullet screen display style.

[0127] Specifically, the bullet screen display style includes, but is not limited to, the size, transparency, display speed and other bullet screen parameters of the bullet screen, and these bullet screen parameters can be set according to the bullet screen display effect.

[0128] Since the bullet screen display styles corresponding to different bullet screen display effects may be different, different bullet screen display styles can be set for different bullet screen display effects in advance, and when a target bullet screen display effect needs to be implemented, the bullet screen display style corresponding to the target bullet screen display effect can be determined, and then the to-be-displayed bullet screen is rendered to the video playing interface according to the position information of the target bullet screen track in the video playing interface and the bullet screen display style.

[0129] The bullet screen display effect can include a diagonal layered display effect to achieve a meteor shower bullet screen special effect, in which case, four levels of bullet screen size and transparency can be designed and randomly assigned to each preset bullet screen track, and the bullet screen display speed or the bullet screen display interval can be set to design fast meteor timing appearance, for example, the bullet screen can be displayed once every 5s, that is, the meteor shower bullet screen can be displayed once every 5s to increase the activity atmosphere.

[0130] In addition, since the current barrage is mostly displayed through the barrage layer, and the size of the barrage layer in the embodiment of the application can be consistent with the size of the video frame in the video playing interface, after obtaining the to-be-displayed barrage and determining the target barrage track, the to-be-displayed barrage can be rendered to the barrage layer and displayed according to the position of the target barrage track in the video playing interface and the barrage display style.

[0131] In actual application, the meteor shower barrage layer is above the player (including the internal control layer of the player such as volume, brightness, screen restoration, and prompt in the cache, but excluding the external control layer of the player such as pause, full screen, and barrage switch), and below all other layers.

[0132] In addition, during the video playing process, whether the playing mode of the target video in the video playing interface changes can be detected.

[0133] If yes, the preset barrage track of the video playing interface during the video playing process in the changed playing mode is determined.

[0134] Specifically, since the preset barrage track of the video playing interface can be different when the video is played in different playing modes, if the user changes the playing mode of the video during the video playing process, the video playing terminal needs to change the barrage track for displaying the to-be-displayed barrage at the same time.

[0135] Therefore, during the video playing process, whether the playing mode of the target video changes can be detected, and if it is determined that the playing mode changes, the preset barrage track of the video playing interface during the video playing process in the changed playing mode needs to be determined again. Since the different interface placement results corresponding to the video playing interface can be combined and the preset barrage track of the video playing interface can be determined by dividing the barrage track design area containing each combined result during the process of setting the preset barrage track of the video playing interface. Therefore, in the case where the playing mode of the target video changes, the interface placement result corresponding to the to-be-played video when the video playing interface plays in the changed playing mode can be determined again, and the line segment generated by the intersection of the target edge in the target rectangular unit of the barrage track design area and the interface placement result is determined as the barrage track of the video playing interface after the playing mode changes.

[0136] Further, whether there is an idle barrage track in the preset barrage track can be determined, and in the case where it is determined that there is an idle track, any one idle barrage track can be determined as the target barrage track of the to-be-displayed barrage, and the barrage display is performed.

[0137] In addition, in the case where it is determined that there is no idle track, the occupation values of each preset bullet screen track can also be determined, and the preset bullet screen track with a smaller occupation value is taken as a target bullet screen track for bullet screen display.

[0138] In the case where the preset bullet screen track with a smaller occupation value is taken as the target bullet screen track for bullet screen display, after the bullet screen display is completed, i.e., after the bullet screen animation is executed, the track identifier of the target bullet screen track can be compared with the track identifier of the current bullet screen track. In the case where the comparison is consistent, the occupation value of the current bullet screen track can be reduced, i.e., the occupation value of the target bullet screen track is reduced after the bullet screen animation is executed.

[0139] In the case where the video playback mode is changed in the video playback process, the bullet screen display can be continued based on the preset bullet screen track corresponding to the changed playback mode, which is beneficial to improving the smoothness of the bullet screen display process, thereby improving the video watching experience.

[0140] The bullet screen processing method implemented by one embodiment of the present application includes obtaining bullet screen to be displayed of a target video, determining a preset bullet screen track of a video playback interface according to a playback mode of the target video in the video playback interface, wherein the preset bullet screen track is generated based on at least two playback modes, and rendering the bullet screen to be displayed to the video playback interface based on the preset bullet screen track and a bullet screen display effect.

[0141] In the case where the video playback mode is changed in the video playback process, the bullet screen display can be continued based on the preset bullet screen track corresponding to the changed playback mode, which is beneficial to improving the smoothness of the bullet screen display process, thereby improving the video watching experience.

[0142] Referring to Figure 2b The bullet screen processing method provided by the embodiments of the present application is applied in the field of videos, and the bullet screen processing method is further described. In the embodiments of the present application, Figure 3 A process flow diagram of a bullet screen processing method provided by one embodiment of the present application applied in the field of videos is shown, and the method includes the following steps.

[0143] In step 302, bullet screen to be displayed of a target video is obtained.

[0144] In step 304, a preset bullet screen track of a video playback interface is determined according to a playback mode of the target video.

[0145] In step 306, it is determined whether there is an idle bullet screen track in the preset bullet screen track.

[0146] The preset bullet screen track outside the specific disposable video playing interface range is determined, and the remaining preset bullet screen tracks are determined.

[0147] If yes, step 308 is executed; if no, step 310 is executed.

[0148] In step 308, a target track set of idle bullet screen tracks is returned.

[0149] In step 310, a track queue is obtained, track identifiers of non-idle tracks contained in the track queue are determined, and an initial track set is determined according to adding times of the track identifiers.

[0150] The adding time is a time when the track identifier is added to the track queue.

[0151] In addition, an occupied non-idle bullet screen track can be obtained, and a bullet screen track whose time interval between a use time and a current time is less than a preset time threshold is deleted from the non-idle bullet screen track to generate the initial track set.

[0152] In step 312, a target track set composed of non-idle bullet screen tracks whose occupancy values are less than a preset occupancy threshold in the initial track set is returned.

[0153] After steps 308 and 312 are executed, step 314 can be continuously executed.

[0154] In step 314, any one bullet screen track in the target track set is determined as a target bullet screen track of a to-be-displayed bullet screen.

[0155] The any one bullet screen track can be any idle bullet screen track or any non-idle bullet screen track.

[0156] In step 316, a track identifier of the target bullet screen track is determined, and the track identifier is added to a track queue, where the target bullet screen track is converted into a non-idle bullet screen track.

[0157] In step 318, an occupancy value of the target bullet screen track is recorded.

[0158] In step 320, a to-be-displayed bullet screen is rendered to a video playing interface according to a target bullet screen display effect and position information of the target bullet screen track in the video playing interface.

[0159] According to a playing mode of a video, a target bullet screen track is selected from preset bullet screen tracks, and a to-be-displayed bullet screen is displayed in the target bullet screen track according to a target bullet screen display effect. In a specific activity scenario, this bullet screen display mode and display effect are beneficial to increasing an activity atmosphere, improving a user interaction rate, and thus are beneficial to improving a video watching experience of a user.

[0160] Corresponding to the method embodiments, the application further provides bullet screen processing device embodiments, Figure 3 A structure diagram of a bullet screen processing device is shown. As shown in the figure, Figure 4 The device comprises:

[0161] The acquisition module 402 is configured to acquire bullet screens to be displayed for a target video.

[0162] The determination module 404 is configured to determine a preset bullet screen track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset bullet screen track is generated based on at least two playing modes.

[0163] The rendering module 406 is configured to render the bullet screens to be displayed to the video playing interface based on the preset bullet screen track and a bullet screen display effect.

[0164] Optionally, the bullet screen processing device further comprises:

[0165] The first processing module is configured to determine a bullet screen track design area of the video playing interface according to a preset playing mode of a video to be played in the video playing interface.

[0166] The first division module is configured to divide the bullet screen track design area based on a preset bullet screen track interval, and determine a preset bullet screen track of the video playing interface based on the division result.

[0167] Optionally, the determination module 404 is further configured to:

[0168] Determine an interface placement result of the video playing interface playing the video to be played according to the preset playing mode.

[0169] Determine a bullet screen track design area of the video playing interface based on the interface placement result, wherein the bullet screen track design area contains the interface placement result.

[0170] Optionally, the bullet screen track design area is a rectangular frame.

[0171] Correspondingly, the first division module is further configured to:

[0172] Divide the bullet screen track design area based on a preset bullet screen track interval to generate a plurality of rectangular units.

[0173] Determine a line segment generated by the intersection of a target edge in a target rectangular unit and the interface placement result as a bullet screen track of the video playing interface, wherein the target rectangular unit is one of the plurality of rectangular units, and the interface placement result contains the line segment.

[0174] Optionally, the barrage processing apparatus further comprises:

[0175] a second processing module configured to determine at least two interface placement results corresponding to the video playing interface playing the to-be-played video in at least two preset playing modes;

[0176] a combination module configured to combine the at least two interface placement results, and determine a barrage track design region of the video playing interface according to a combination result, wherein the barrage track design region contains the combination result;

[0177] a second division module configured to divide the barrage track design region based on a preset barrage track interval, and determine a preset barrage track of the video playing interface based on a division result.

[0178] Optionally, the barrage track design region is a rectangular frame.

[0179] Correspondingly, the second division module is further configured to:

[0180] divide the barrage track design region based on the preset barrage track interval to generate a plurality of rectangular units;

[0181] determine a line segment generated by the intersection of a target edge in a target rectangular unit and a target interface placement result as a preset barrage track of the video playing interface playing a video in a target preset video playing mode, wherein the target interface placement result is one of the at least two interface placement results.

[0182] Optionally, the interface placement result is a rectangular frame.

[0183] Correspondingly, the combination module is further configured to:

[0184] establish a two-dimensional coordinate system by taking any vertex in the combination result as an origin and taking edges corresponding to the length and width of a target interface placement result as a horizontal axis and a vertical axis respectively, wherein the target interface placement result is one of the at least two interface placement results;

[0185] determine vertex coordinates of the barrage track design region in the two-dimensional coordinate system according to the length and width of the target interface placement result, and construct the barrage track design region based on the vertex coordinates.

[0186] Optionally, the rendering module 406 is further configured to:

[0187] determine a target barrage track of the to-be-displayed barrage based on the preset barrage track;

[0188] According to the position information of the target BGM track in the video playing interface and the BGM display effect, the BGM to be displayed is rendered to the video playing interface.

[0189] Optionally, the rendering module 406 is further configured to:

[0190] determine whether there is an idle BGM track in the preset BGM track;

[0191] if yes, determine any idle BGM track as the target BGM track of the BGM to be displayed;

[0192] if no, determine a target track identifier in the track queue that meets a preset time threshold, determine an occupancy value of the preset BGM track corresponding to the target track identifier, and determine the preset BGM track with an occupancy value less than a preset occupancy threshold as the target BGM track of the BGM to be displayed.

[0193] Optionally, the BGM processing apparatus further comprises:

[0194] The adding module is further configured to determine a track identifier of the target BGM track, and add the track identifier to the track queue, wherein the target BGM track is converted into a non-idle BGM track.

[0195] Optionally, the BGM processing apparatus further comprises a screening module configured to:

[0196] determine whether a ratio of a number of track identifiers contained in the track queue to a number of preset BGM tracks of the video playing interface is greater than a preset ratio threshold;

[0197] if yes, screen a target track identifier that meets a preset condition according to an adding time of the track identifier in the track queue, and determine a preset BGM track corresponding to the target track identifier as an idle BGM track.

[0198] Optionally, the BGM processing apparatus further comprises a detecting module configured to:

[0199] detect whether a playing mode of the target video in the video playing interface changes;

[0200] if yes, determine a preset BGM track of the video playing interface in a video playing process according to the changed playing mode and contained in the BGM track design area.

[0201] Optionally, the rendering module 406 is further configured to:

[0202] determine a BGM display style of the BGM to be displayed according to the BGM display effect, wherein the BGM display style comprises BGM parameters set according to the BGM display effect.

[0203] According to the position information of the target barrage track in the video playing interface and the barrage display style, the rendering module 406 renders the to-be-displayed barrage to the video playing interface.

[0204] Optionally, the rendering module 406 is further configured to:

[0205] determine whether there is an idle barrage track in the preset barrage track;

[0206] if yes, according to the association relationship between the video playing terminal and the user terminal sending the to-be-displayed barrage, screen the target barrage track of the to-be-displayed barrage in the idle barrage track.

[0207] Optionally, the playing mode includes horizontal screen playing or vertical screen playing.

[0208] Optionally, the barrage display effect includes a diagonal layered display effect.

[0209] The above is a schematic scheme of the barrage processing device of the embodiment. It should be noted that the technical scheme of the barrage processing device and the technical scheme of the barrage processing method described above belong to the same concept, and the details of the technical scheme of the barrage processing device that are not described in detail can be referred to the description of the technical scheme of the barrage processing method.

[0210] Figure 4 A structural block diagram of a computing device 500 is shown according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 through a bus 530, and a database 550 is used to save data.

[0211] The computing device 500 further includes an access device 540, which enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 can include one or more of any type of network interface (e.g., network interface card (NIC)) such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like, wired or wireless.

[0212] In an embodiment of the present application, the above components of the computing device 500 and Figure 5Other components not shown can also be connected to each other in the computing device, such as via a bus. It should be understood that Figure 5 Figure 5 The computing device structural block diagram shown is for purposes of example only and is not limiting of the scope of the present application. Other components that are not shown can be added or substituted in the computing device as desired.

[0213] The computing device 500 can be any type of stationary or mobile computing device including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. The computing device 500 can also be a mobile or stationary server.

[0214] The processor 520 is configured to execute computer-executable instructions. The processor 520 is configured to execute the computer-executable instructions to implement the steps of the method for processing a barrage.

[0215] The foregoing is a schematic solution of the computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the method for processing a barrage belong to the same concept, and the details of the technical solution of the computing device that are not described in detail can be referred to the description of the technical solution of the method for processing a barrage.

[0216] The present embodiment also provides a computer-readable storage medium storing computer-executable instructions, which are executed by a processor to implement the steps of the method for processing a barrage.

[0217] The foregoing is a schematic solution of the computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the method for processing a barrage belong to the same concept, and the details of the technical solution of the storage medium that are not described in detail can be referred to the description of the technical solution of the method for processing a barrage.

[0218] The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, acts or steps recited in the claims can be performed in an order other than that recited in the embodiments, and still achieve desirable results. Also, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order to achieve desirable results. In certain implementations, multitasking and parallel processing can be advantageous.

[0219] The computer readable medium can include any entity or apparatus capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium can include appropriate additions or subtractions according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.

[0220] It should be noted that, for the foregoing method embodiments, in order to facilitate description, they are all described as a combination of a series of actions, but those skilled in the art should know that the embodiments of the present application are not limited to the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily necessary for the embodiments of the present application.

[0221] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0222] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The alternative embodiments do not describe all the details and limit the application to the specific embodiments described. Obviously, according to the content of the embodiments of the present application, many modifications and changes can be made. The present application selects and describes these embodiments in order to better explain the principles and practical applications of the embodiments of the present application, so that those skilled in the art can well understand and use the present application. The present application is limited by the claims and their entire scope and equivalents.

Claims

1. A method for processing a barrage, characterized in that, The method comprises the following steps: acquiring a to-be-displayed barrage of a target video; determining a preset barrage track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset barrage track is generated based on at least two playing modes, and the playing mode of the video playing interface comprises a size and a placement direction of the video playing interface; rendering the to-be-displayed barrage to the video playing interface based on the preset barrage track and a barrage display effect.

2. The method of claim 1, wherein, Further comprising: determining a barrage track design area of the video playing interface according to a preset playing mode of a to-be-played video in the video playing interface; dividing the barrage track design area based on a preset barrage track interval, and determining a preset barrage track of the video playing interface based on a division result. 3.The method of claim 1, wherein, Further comprising: determining at least two interface placement results corresponding to the to-be-played video played by the video playing interface in at least two preset playing modes; combining the at least two interface placement results, and determining a barrage track design area of the video playing interface according to a combination result, wherein the barrage track design area comprises the combination result; dividing the barrage track design area based on a preset barrage track interval, and determining a preset barrage track of the video playing interface based on a division result.

4. The barrage processing method according to claim 3, wherein the barrage track design area is a rectangular frame; and correspondingly, the step of dividing the barrage track design area based on a preset barrage track interval, and determining a preset barrage track of the video playing interface based on a division result, comprises: dividing the barrage track design area based on a preset barrage track interval to generate a plurality of rectangular units; and determining a line segment generated by an intersection of a target edge in a target rectangular unit and a target interface placement result as a preset barrage track of the video playing interface played according to a target preset video playing mode, wherein the target interface placement result is one of the at least two interface placement results.

5. The barrage processing method according to claim 3 or 4, wherein the interface placement result is a rectangular frame; and correspondingly, the step of determining a barrage track design area of the video playing interface according to a combination result, comprises: establishing a two-dimensional coordinate system by taking any vertex in the combination result as a coordinate origin, and taking a long side and a short side of a target interface placement result as a horizontal axis and a vertical axis, respectively, wherein the target interface placement result is one of the at least two interface placement results; and determining vertex coordinates of the barrage track design area in the two-dimensional coordinate system according to a length and a width of the target interface placement result, and constructing the barrage track design area based on the vertex coordinates.

6. The barrage processing method according to claim 1, wherein the step of rendering the to-be-displayed barrage to the video playing interface based on the preset barrage track and a barrage display effect, comprises: determining a target barrage track of the to-be-displayed barrage based on the preset barrage track. ​ ​ ​ ​ ​ ​ ​ According to the bullet screen display effect and the position information of the target bullet screen track in the video playing interface, the to-be-displayed bullet screen is rendered to the video playing interface.

7. The bullet screen processing method of claim 6, wherein the target bullet screen track of the to-be-displayed bullet screen is determined based on the preset bullet screen tracks, and the target bullet screen track is determined based on the following steps. The target bullet screen track of the to-be-displayed bullet screen is determined based on the preset bullet screen tracks, and the target bullet screen track is determined based on the following steps. It is determined whether there is an idle bullet screen track in the preset bullet screen tracks. If yes, any idle bullet screen track is determined as the target bullet screen track of the to-be-displayed bullet screen. If no, a target track identifier whose adding time meets a preset time threshold is determined in a track queue, an occupancy value of the preset bullet screen track corresponding to the target track identifier is determined, and a preset bullet screen track whose occupancy value is less than a preset occupancy threshold is determined as the target bullet screen track of the to-be-displayed bullet screen.

8. The bullet screen processing method of claim 6, wherein after the target bullet screen track of the to-be-displayed bullet screen is determined based on the preset bullet screen tracks, the following steps are further included. The track identifier of the target bullet screen track is determined, and the track identifier is added to a track queue, wherein the target bullet screen track is converted into a non-idle bullet screen track. Further comprising:

9. The method of claim 8, wherein, It is determined whether a ratio of a number of track identifiers included in the track queue to a number of preset bullet screen tracks of the video playing interface is greater than a preset ratio threshold. If yes, a target track identifier meeting a preset condition is screened according to the adding time of the track identifiers in the track queue, and the preset bullet screen track corresponding to the target track identifier is determined as an idle bullet screen track. Further comprising:

10. The method according to claim 2 or 3, characterized in that, It is detected whether the playing mode of the target video in the video playing interface changes. If yes, it is determined that the preset bullet screen track of the video playing interface is included in the bullet screen track design region and is used for video playing in the changed playing mode.

11. The bullet screen processing method of claim 6, wherein the to-be-displayed bullet screen is rendered to the video playing interface according to the bullet screen display effect and the position information of the target bullet screen track in the video playing interface, and the rendering includes the following steps. The bullet screen display style of the to-be-displayed bullet screen is determined according to the bullet screen display effect, wherein the bullet screen display style includes bullet screen parameters set according to the bullet screen display effect. The to-be-displayed bullet screen is rendered to the video playing interface according to the position information of the target bullet screen track in the video playing interface and the bullet screen display style.

12. The bullet screen processing method of claim 6, wherein the target bullet screen track of the to-be-displayed bullet screen is determined based on the preset bullet screen tracks, and the target bullet screen track is determined based on the following steps. It is determined whether there is an idle bullet screen track in the preset bullet screen tracks. If yes, the target bullet screen track of the to-be-displayed bullet screen is screened in the idle bullet screen tracks according to an association relationship between a video playing terminal and a user terminal sending the to-be-displayed bullet screen.

13. The bullet screen processing method of claim 1, wherein the playing mode includes horizontal screen playing or vertical screen playing.

14. The bullet screen processing method of claim 1, wherein ​ ​ ​ ​ The barrage display effect comprises a diagonal layered display effect. 15.A device for processing a barrage, characterized by comprising: The method comprises the steps of: An acquisition module is configured to acquire a barrage to be displayed of a target video; A determination module is configured to determine a preset barrage track of a video playing interface according to a playing mode of the target video in the video playing interface, wherein the preset barrage track is generated based on at least two playing modes; the playing mode of the video playing interface comprises a size and an interface placement direction of the video playing interface; A rendering module is configured to render the barrage to be displayed to the video playing interface based on the preset barrage track and a barrage display effect.

16. A computing device, comprising: The method comprises the steps of: A memory and a processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions, wherein the processor executes the computer executable instructions to implement the steps of the barrage processing method in any one of claims 1-14.

17. A computer-readable storage medium, characterized in that, The computer program product has computer instructions stored therein, and the computer instructions are executed by the processor to implement the steps of the barrage processing method in any one of claims 1-14.

18. A computer program product, characterised in that, The computer program product has computer instructions stored therein, and the computer instructions are executed by the processor to implement the steps of the barrage processing method in any one of claims 1-14.

Citation Information

Patent Citations

  • HTML5-based barrage player and method therefor

    CN106973329A

  • Video bullet screen processing method and device

    CN113225606A