Bilibili message-based interaction method and device, computer device and storage medium
By enhancing the display of bullet comments in the video playback area with special effects, the problem of bullet comments obscuring video content is solved, improving video playback effects and user experience.
Patent Information
- Application Number
- CN202311872406.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2043-12-29
AI Technical Summary
User-sent bullet comments can easily obscure video content when displayed on the video screen, affecting the video playback experience.
Display bullet comments related to the video screen in the video playback area, and enhance the display of specific bullet comments with special effects when the bullet comments interact with the video screen, ensuring that the display position of the bullet comments is within the effective range of the interaction.
Enhanced visual effects improved video playback and user interaction, and diversified the presentation of video content.
Smart Images

Figure CN117714773B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a method and device for interaction based on barrage messages, computer equipment, storage medium and computer program product. BACKGROUND
[0002] With the rapid development of Internet technology, various online video media platforms have been widely applied, and more and more users watch videos through online video media platforms. While watching videos, users can communicate on video content by sending barrage messages. The barrage messages can be comment subtitles of users when watching videos. The barrage messages sent by users can be displayed on the video screen during video playing.
[0003] However, when the barrage messages sent by users for editing and displaying on the video screen, the barrage messages can easily block the video screen, thereby affecting the video playing effect. SUMMARY
[0004] Therefore, it is necessary to provide a method and device for interaction based on barrage messages, computer equipment, computer readable storage medium and computer program product, which can enhance the video playing effect.
[0005] In a first aspect, the present application provides a method for interaction based on barrage messages. The method comprises:
[0006] displaying a playing area, and playing a video in the playing area;
[0007] corresponding to the playing of the video, displaying barrage messages associated with the video screen played in the video in the playing area;
[0008] when playing a barrage interactive video screen in the video, performing special effect enhancement display on at least one interactive barrage message in the barrage interactive video screen.
[0009] The display position of the at least one interactive barrage message in the playing area is within the interactive effective range of the barrage interactive element included in the barrage interactive video screen.
[0010] In a second aspect, the present application also provides a device for interaction based on barrage messages. The device comprises:
[0011] a playing area display module configured to display a playing area and play a video in the playing area;
[0012] a barrage display module configured to display barrage messages associated with the video screen played in the video in the playing area corresponding to the playing of the video.
[0013] The special effect enhancement module is configured to, when the bullet screen interaction video picture in the video is played, perform special effect enhancement display on at least one interactive bullet message in the bullet messages associated with the bullet screen interaction video picture.
[0014] The display position of the at least one interactive bullet message in the playing area is within the interactive effective range of the bullet screen interaction element included in the bullet screen interaction video picture.
[0015] In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above bullet message-based interaction method when executing the computer program.
[0016] In a fourth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the above bullet message-based interaction method.
[0017] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and the computer program is executed by a processor to implement the steps of the above bullet message-based interaction method.
[0018] The above bullet message-based interaction method, device, computer device, storage medium and computer program product are configured to, for a video played in a playing area, display bullet messages associated with a video picture played in the video in the playing area, when a bullet screen interaction video picture in the video is played, perform special effect enhancement display on at least one interactive bullet message in the bullet messages associated with the bullet screen interaction video picture, and the interactive bullet message is a bullet message whose display position is within the interactive effective range of a bullet screen interaction element included in the bullet screen interaction video picture. When the bullet screen interaction video picture in the video is played, the at least one interactive bullet message in the bullet messages associated with the bullet screen interaction video picture is displayed with special effects, the interactive bullet message is displayed with special effects according to the bullet screen interaction element included in the bullet screen interaction video picture, the display effects of the bullet messages can be adjusted in combination with the played video picture, the display effects of the bullet messages are utilized to diversify and intuitively display the video content of the played video, the video playing effect is enhanced, and the video viewing experience and interaction experience of the user are improved. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the following will briefly introduce the drawings needed to be used in the embodiments or related art description. Obviously, the drawings in the following description only some of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0020] Figure 1 For an embodiment of the application environment diagram of the interaction method based on the barrage message;
[0021] Figure 2 For an embodiment of the flowchart of the interaction method based on the barrage message;
[0022] Figure 3 For an embodiment of the interface diagram of the barrage displayed in the playing area;
[0023] Figure 4 For an embodiment of the interface diagram of the barrage message for special effect enhancement display;
[0024] Figure 5 For an embodiment of the flowchart of the barrage special effect configuration;
[0025] Figure 6 For an embodiment of the interface diagram of the determination of the detection line segment;
[0026] Figure 7 For an embodiment of the diagram of the determination of the detection line segment coordinates;
[0027] Figure 8 For an embodiment of the interface diagram of the management of the console panel;
[0028] Figure 9 For an embodiment of the interface diagram of the sequence frame animation secondary panel;
[0029] Figure 10 For an embodiment of the interface diagram of the text color change secondary panel;
[0030] Figure 11 For another embodiment of the interface diagram of the barrage displayed in the playing area;
[0031] Figure 12 For an embodiment of the interface change diagram of the overall disappearance special effect performed on the barrage;
[0032] Figure 13 For an embodiment of the interface change diagram of the color change special effect performed on the barrage;
[0033] Figure 14Fig. 2 is a schematic diagram of an interface change for executing a single word disappearance special effect for a barrage in an embodiment;
[0034] Figure 15 Fig. 3 is a schematic diagram of an interface of an interactive button in an embodiment;
[0035] Figure 16 Fig. 4 is a schematic diagram of an interface of a multi-segment in an embodiment;
[0036] Figure 17 Fig. 5 is a schematic diagram of an interface of a composite segment in an embodiment;
[0037] Figure 18 Fig. 6 is a schematic diagram of an interface change of a barrage special effect under a composite segment in an embodiment;
[0038] Figure 19 Fig. 7 is a schematic diagram of a flow of an interactive method based on a barrage message in another embodiment;
[0039] Figure 20 Fig. 8 is a schematic diagram of a validity time configuration in an embodiment;
[0040] Figure 21 Fig. 9 is a schematic diagram of a coordinate system transformation in an embodiment;
[0041] Figure 22 Fig. 10 is a schematic diagram of a barrage detection result in an embodiment;
[0042] Figure 23 Fig. 11 is a structural block diagram of an interactive device based on a barrage message in an embodiment;
[0043] Figure 24 Fig. 12 is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION
[0044] In order to make the purposes, technical solutions and advantages of the present application clearer, further detailed description will be made to the present application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0045] The interactive method based on a barrage message provided by the embodiments of the present application can be applied in an application environment as shown in Fig. 1. In the application environment, a terminal 102 communicates with a server 104 through a network. A data storage system can store data required to be processed by the server 104. The data storage system can be separately arranged, can be integrated on the server 104, or can be placed on a cloud or other server. A user can watch a video through the terminal 102. Specifically, the user can watch a network video obtained from the server 104 through a video client on the terminal 102. In addition, the terminal 102 can also directly play a locally stored video. Figure 1 The interactive method based on a barrage message provided by the embodiments of the present application can be applied in an application environment as shown in Fig. 1. In the application environment, a terminal 102 communicates with a server 104 through a network. A data storage system can store data required to be processed by the server 104. The data storage system can be separately arranged, can be integrated on the server 104, or can be placed on a cloud or other server. A user can watch a video through the terminal 102. Specifically, the user can watch a network video obtained from the server 104 through a video client on the terminal 102. In addition, the terminal 102 can also directly play a locally stored video.
[0046] The terminal 102 can play a video in a display play area, and for the video played in the play area, the terminal 102 displays the barrage messages associated with the video pictures played in the video in the play area, which can be edited and sent by different users when watching the video. When the barrage interactive video picture in the video is played, the terminal 102 can perform special effect enhancement display on at least one interactive barrage message in the barrage messages associated with the barrage interactive video picture, which is the barrage message whose display position is within the interactive effective range of the barrage interactive element included in the barrage interactive video picture. Specifically, when the terminal 102 detects that the barrage interactive video picture in the video is played, the terminal 102 can screen the barrage messages associated with the barrage interactive video picture according to the interactive effective range of the barrage interactive element included in the barrage interactive video picture, so as to determine at least one interactive barrage message whose display position is within the interactive effective range, and perform special effect enhancement display on the determined at least one interactive barrage message, such as adding color change, light emission or adding animation effects to the text of the interactive barrage message.
[0047] The terminal 102 can be, but is not limited to, various desktop computers, notebook computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle-mounted device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers, and can also be a cloud server.
[0048] In an exemplary embodiment, as shown in Figure 2 , an interaction method based on barrage messages is provided, which is executed by a computer device, specifically by a terminal or a server, or by both the terminal and the server. In the embodiments of the present application, the method is applied to the terminal in Figure 1 , and includes the following steps 202 to 206. Wherein:
[0049] Step 202, a play area is displayed, and a video is played in the play area.
[0050] The barrage message, i.e. the barrage, refers to a comment subtitle or graphic popped up when a video is watched. The barrage can give the audience an illusion of "real-time interaction". Although the sending time of different barrages is different, the barrage only appears at a specific time point in the video, so the barrage sent at the same playing progress of the video basically has the same theme, and the audience has the feeling of commenting at the same time as other audiences when participating in the comment. The playing area is an area in the interface of the terminal for playing the video. When the video is played in the playing area, the video content of the played video can be displayed in the playing area. The playing area can also be provided with controls for playing the video, such as a control for locking the screen, a control for controlling pause / play, a playing progress bar, a barrage editing control, a playing speed control, a resolution control, a screenshot control, a dynamic picture making control and a barrage setting control, etc. When the video is played, the controls of the playing area can be automatically hidden until the triggering event is detected to be displayed so as to provide corresponding playing interaction functions. Specifically, the terminal can display the playing area and play the video in the playing area. The video played in the playing area can be selected by the user.
[0051] In step 204, corresponding to the playing of the video, the barrage message associated with the video picture played in the video is displayed in the playing area.
[0052] The video picture is the picture content of each video frame in the video displayed in the playing area when the video is played. The barrage message is edited and published by the user for the video picture in the video. During the playing of the video, the user can trigger the barrage editing operation for the video picture played in the video to edit and publish the barrage message for the played video picture. After the barrage message is successfully published, the barrage message published by the user can be displayed on the played video picture. The barrage message associated with the video picture refers to the barrage message displayed on the video picture. The barrage message can be displayed for a certain time during the playing of the video, such as being moved and displayed in the playing area, or being directly displayed and stayed in the playing area. During the display of the barrage message in the playing area, one or more video pictures can be played in the playing area, so the same barrage message can be displayed in one or more video pictures, i.e. the same barrage message can be associated with the same or different video pictures. The same video picture can also be associated with one or more different barrage messages, i.e. one or more different barrage messages can be displayed in the same video picture.
[0053] Optionally, during the playing of the video, the terminal can display the barrage message in the playing area. The displayed barrage message is associated with the video picture played in the playing area. In one specific application, such as Figure 3As shown, a video can be played in the playing area 301 of the terminal, and the playing area 301 can display a video frame in the played video, and the playing area 301 currently displays a video frame corresponding to a timestamp of 3 minutes and 32 seconds in the video. A plurality of barrage messages 302 are also displayed in the playing area 301, and the barrage messages 302 are published by respective users for the played video frame, and each barrage message 302 can be displayed by being overlaid on the played video frame. Each barrage message 302 can be displayed in a specified form, for example, by displaying the color of the barrage, the display mode and disappearance mode of the barrage, and the like.
[0054] In step 206, when the barrage interactive video frame in the video is played, at least one interactive barrage message in the barrage messages associated with the barrage interactive video frame is displayed with special effects; wherein the display position of the at least one interactive barrage message in the playing area is within the interactive effective range of the barrage interactive element included in the barrage interactive video frame.
[0055] The barrage interactive video frame is a video frame to be processed for barrage interaction, and the barrage interactive video frame can be pre-selected from the video frames of the video, or can be directly determined by video content detection according to the video frames of the video. The barrage interactive video frame can include a barrage interactive element, and the barrage interactive element is a video content in the barrage interactive video frame that needs to interact with the barrage message. The barrage interactive element can be flexibly set according to actual needs. For example, the barrage interactive element can include laser, meteor, river, bridge, mountain, and the like. The interactive barrage message is a barrage message associated with the barrage interactive video frame and needs to be processed for special effect display. The interactive barrage message can be added with special effects, such as color change, light emission, or tailing, and the like. The interactive barrage message is selected from the barrage messages according to the barrage interactive element, and the display position of the barrage interactive element in the playing area is within the interactive effective range of the barrage interactive element.
[0056] The interaction effective range can be determined according to a set of coordinate points specified by the bullet screen interaction element in the playing area. The set of coordinate points can include a plurality of coordinate points in the playing area. Different areas, line segments, and the like can be divided in the playing area based on each coordinate point in the set of coordinate points. The specific position, size, shape, and the like of the interaction effective range can be set according to the bullet screen interaction element. For example, when the bullet screen interaction element is a meteor, the interaction effective range can be a range covered by a line segment of a certain length corresponding to the meteor. When the bullet screen interaction element is a river, the interaction effective range can be a range covered by a strip-shaped curve segment corresponding to the river. For a bullet screen message in the interaction effective range, the bullet screen message can be determined as an interactive bullet screen message that needs to be displayed with special effects. The determination of the interactive bullet screen message can be achieved according to the relationship between the display position of the bullet screen message in the playing area and the interaction effective range. For example, in the embodiments of the present application, when the display position of the bullet screen message intersects with the interaction effective range, that is, when any component element of the bullet screen message is in the interaction effective range, the bullet screen message can be determined as an interactive bullet screen message. In addition, the bullet screen message can also be determined as an interactive bullet screen message when the display position of the bullet screen message completely falls within the interaction effective range. The determination condition of the interactive bullet screen message, that is, the relationship between the display position of the bullet screen message and the interaction effective range, can be set according to actual needs. The specific special effect display of the interactive bullet screen message can be flexibly set according to actual needs based on the bullet screen interaction element.
[0057] For example, the terminal can detect the video screen played in the playing area. When it is detected that the bullet screen interaction video screen in the video is played, it is indicated that the interactive processing needs to be performed on the bullet screen message associated with the currently played bullet screen interaction video screen. Specifically, the terminal can display the interactive bullet screen message in each associated bullet screen message with special effects, such as highlighting the text of the interactive bullet screen message by changing the color, adding a trailing effect to the bullet screen text of the interactive bullet screen message, or adding an animation effect to the interactive bullet screen message, and the like. In a specific implementation, when it is detected that the bullet screen interaction video screen in the video is played, the terminal can determine the bullet screen interaction element included in the bullet screen interaction video screen and determine the interaction effective range of the bullet screen interaction element. The terminal can also query the bullet screen message associated with the bullet screen interaction video screen and determine the display position of each bullet screen message in the playing area.
[0058] The terminal compares the display position of each barrage message in the playing area with the interaction effective range of the barrage interaction element, and if it is determined that the display position is in the interaction effective range, the terminal can determine the corresponding barrage message as an interactive barrage message that needs to be processed by special effect enhancement display. In the embodiment of the present application, when there is an intersection between the display position of the barrage message and the interaction effective range, the corresponding barrage message is determined as an interactive barrage message. Specifically, when there is an intersection between the display position of the barrage message and each coordinate point in the interaction effective range, it is considered that the display position of the barrage message is in the interaction effective range, that is, the barrage message can be determined as an interactive barrage message. The terminal determines the special effect enhancement display mode for special effect enhancement display, and adds special effects to the interactive barrage message according to the special effect enhancement display mode, so as to adaptively adjust the display special effects of the interactive barrage message in combination with the barrage interaction element in the barrage interaction video picture. Through the display special effects of the interactive barrage message, the barrage interaction element included in the barrage interaction video picture can be diversified, thereby enhancing the video playing effect.
[0059] In one specific application, as shown in FIG. 3, Figure 4 The terminal plays a video in the playing area 301 of the terminal, and the playing area 301 can display the video picture in the played video. Specifically, the playing area 301 currently displays the video picture corresponding to the timestamp of 3 minutes and 32 seconds in the video, and a plurality of barrage messages 302 published by each user for the played video picture are also displayed in the playing area 301. Further, if the video picture corresponding to 3 minutes and 32 seconds belongs to a barrage interaction video picture, the terminal performs special effect enhancement display on the interactive barrage messages in the barrage messages 302. Specifically, the barrage interaction element 303 included in the barrage interaction video picture can be a street lamp in the video picture, and the interaction effective range is the picture area range where the street lamp is located. If the determination method for the interactive barrage message is that the corresponding barrage message is determined as an interactive barrage message when there is an intersection between the display position of the barrage message and the interaction effective range, it can be determined that the interactive barrage messages whose display positions are in the interaction effective range of the barrage interaction element 303 include four barrage messages: “I'm here.” “The murderer is XXX, thank you”, and “Good, good, good”. The terminal can perform special effect enhancement display on the interactive barrage messages. For example, for “I'm here.”, the terminal can adjust the font color of the barrage text as a whole; for “The murderer is XXX, thank you”, the terminal can directly trigger the whole disappearance special effect, so that the barrage message is not displayed as a whole; for the terminal can add a light-emitting special effect to the expression covering the street lamp; and for “Good, good, good”, the terminal can trigger a disappearance special effect for the second “good” word covering the street lamp, so as to only display the second “good” word.
[0060] In the above-mentioned interaction method based on the barrage message, for a video played in a playing area, barrage messages associated with video pictures played in the video are displayed in the playing area, and at least one interactive barrage message in the barrage messages associated with a barrage interactive video picture in the video is displayed with special effects enhanced, the interactive barrage message being a barrage message whose display position is within an interactive effective range of a barrage interactive element included in the barrage interactive video picture. When the barrage interactive video picture in the video is played, at least one interactive barrage message in the barrage messages associated with the barrage interactive video picture is displayed with special effects enhanced, the interactive barrage message being displayed with special effects enhanced according to the barrage interactive element included in the barrage interactive video picture, and the display special effects of the barrage message can be adjusted in combination with the video picture played, so that the display special effects of the barrage message are utilized to diversify and intuitively display the video content of the video played, the video playing effect is enhanced, and the video viewing experience and the interaction experience of the user are improved.
[0061] In one exemplary embodiment, when the barrage interactive video picture in the video is played, at least one interactive barrage message in the barrage messages associated with the barrage interactive video picture is displayed with special effects enhanced, including: when the playing progress of the video reaches the barrage interactive video picture in the video, displaying the barrage messages associated with the barrage interactive video picture; the barrage messages associated with the barrage interactive video picture including at least one interactive barrage message; displaying at least one interactive barrage message with special effects added to at least part of barrage constituent elements of the interactive barrage message; and the special effects of the barrage matching the barrage interactive element included in the barrage interactive video picture.
[0062] The playing progress indicates the completion degree of the video playing, and can specifically include a time point of the video playing, for example, the playing progress can include 3 minutes and 1 second, indicating that the video is played to the video picture corresponding to 3 minutes and 1 second. The barrage constituent element refers to an element constituting the barrage message, and can specifically include a barrage text. The barrage text is the content carried by the barrage message, and can specifically include but is not limited to various types of text content such as words, symbols, emoticons, graphics, pictures, videos, and animations. In addition to the barrage text, in some embodiments, the barrage constituent element of the barrage message can further include attribute information of an account publishing the barrage message, and the like. The barrage special effect refers to a special display effect of the barrage, and can specifically include but is not limited to at least one of various special effects such as color change, light emission, tailing, animation, divergence, rotation, gradient, shaking, and water ripple. The type of the barrage special effect can be flexibly configured according to actual needs, and the type of the barrage special effect can include one or multiple types, which can be configured according to the barrage interactive element so as to match the barrage special effect with the barrage interactive element.
[0063] Optionally, during playing the video, the terminal can monitor the playing progress of the video, such as monitoring the time point of playing the video to determine the playing progress of the video. When it is determined that the playing progress of the video reaches the bullet screen interaction video frame in the video, i.e., the terminal plays the bullet screen interaction video frame in the video, the terminal can display the bullet screen messages associated with the bullet screen interaction video frame, and each bullet screen message can be displayed in a default display manner. Specifically, the terminal can query the bullet screen messages related to the bullet screen interaction video frame, and display each bullet screen message in the playing area. For example, the terminal can query the bullet screen messages published by each user for the bullet screen interaction video frame from the bullet screen message library according to the identification information of the bullet screen interaction video frame. Among the bullet screen messages associated with the bullet screen interaction video frame, there is at least one interactive bullet screen message. For the bullet screen composition elements of the interactive bullet screen message, the terminal can display after adding the bullet screen special effect matched with the bullet screen interaction element to at least part of the bullet screen composition elements. Specifically, the terminal can detect the bullet screen messages associated with the bullet screen interaction video frame to determine whether there is an interactive bullet screen message, such as determining the interactive bullet screen message from each bullet screen message according to the positional relationship between the display position of each bullet screen message and the position of the interactive effective range of the bullet screen interaction element. For the at least one interactive bullet screen message determined, the terminal can determine the bullet screen composition elements of the interactive bullet screen message and determine the bullet screen special effect matched with the bullet screen interaction element, and display after adding the bullet screen special effect to at least part of the bullet screen composition elements of the interactive bullet screen message, i.e., the interactive effective elements. For example, the terminal can display after adding the bullet screen special effect to at least part of the bullet screen text of the interactive bullet screen message. In specific applications, the terminal can display after adding the bullet screen special effect to the whole bullet screen composition elements in the interactive bullet screen message, or display after adding the bullet screen special effect to part of the bullet screen composition elements in the interactive bullet screen message.
[0064] In this embodiment, when the playing progress of the video reaches the bullet screen interaction video frame, the bullet screen messages associated with the bullet screen interaction video frame are displayed, and for the included interactive bullet screen message, at least part of the bullet screen composition elements of the interactive bullet screen message are displayed after adding the bullet screen special effect matched with the bullet screen interaction element, so that according to the bullet screen interaction element included in the bullet screen interaction video frame, at least part of the bullet screen composition elements of the interactive bullet screen message can be displayed with matched special effect enhancement, so as to adjust the display special effect of the bullet screen message in combination with the bullet screen interaction element, and the display special effect of the bullet screen composition elements in the bullet screen message can be used to diversify and intuitively display the video content of the played video, thereby enhancing the video playing effect.
[0065] In an example embodiment, the adding the special effect of the bullet screen for display for at least part of the bullet screen constituent elements of the at least one interactive bullet screen message comprises: adding the special effect of the bullet screen for display for the interactive effective elements in the bullet screen constituent elements of the at least one interactive bullet screen message; the display position of the interactive effective elements in the playing area is within the interactive effective range of the bullet screen interactive elements included in the bullet screen interactive video picture.
[0066] Specifically, for the determined interactive bullet screen message, the terminal can perform special effect enhanced display for the bullet screen constituent elements of the interactive bullet screen message as a whole, and specifically, the terminal adds the special effect of the bullet screen matched with the bullet screen interactive elements for display for the bullet screen text of the interactive bullet screen message as a whole, so as to diversify and intuitively display the video content of the played video through the display special effect of the bullet screen constituent elements as a whole, so as to enhance the video playing effect.
[0067] In an example embodiment, the adding the special effect of the bullet screen for display for at least part of the bullet screen constituent elements of the at least one interactive bullet screen message comprises: adding the special effect of the bullet screen for display for the interactive effective elements in the bullet screen constituent elements of the at least one interactive bullet screen message; the display position of the interactive effective elements in the playing area is within the interactive effective range of the bullet screen interactive elements included in the bullet screen interactive video picture.
[0068] Among them, the interactive effective element is an element in the bullet screen constituent elements, whose display position in the playing area is within the interactive effective range of the bullet screen interactive elements included in the bullet screen interactive video picture. For example, the interactive effective element can specifically include interactive effective text, which is the text content in the bullet screen text, whose display position in the playing area is within the interactive effective range of the bullet screen interactive elements included in the bullet screen interactive video picture.
[0069] Specifically, for the determined interactive bullet screen message, the terminal can perform special effect enhanced display for part of the bullet screen constituent elements of the interactive bullet screen message, and specifically, the terminal adds the special effect of the bullet screen matched with the bullet screen interactive elements for display for the interactive effective elements in the bullet screen constituent elements of the interactive bullet screen message. In specific implementation, for the bullet screen constituent elements of the interactive bullet screen message, the terminal can compare the display positions of each element of the bullet screen constituent elements with the interactive effective range of the bullet screen interactive elements respectively, so as to determine the elements whose display positions are within the interactive effective range as the interactive effective elements, and add the special effect of the bullet screen for display for the interactive effective elements, while for other contents in the bullet screen combination elements, the terminal can perform display according to the default bullet screen display mode. For example, in specific implementation, the terminal can perform part of special effect enhanced display processing for the bullet screen text in the bullet screen constituent elements of the interactive bullet screen element, and specifically, can add the special effect of the bullet screen for display for the interactive effective text in the bullet screen text of the interactive bullet screen element.
[0070] In this embodiment, the terminal adds the bullet screen special effect matched with the bullet screen interaction element to the interactive effective element in the bullet screen composition element of the interactive bullet screen message for display, thereby diversifying and intuitively displaying the video content of the played video through the display special effect of at least part of the composition elements in the bullet screen composition element, so as to enhance the video playing effect.
[0071] In one exemplary embodiment, the bullet screen interaction element includes at least one linear interaction element in the bullet screen interaction video picture; when the bullet screen interaction video picture in the video is played, the special effect enhanced display is performed on at least one interactive bullet screen message in the bullet screen message associated with the bullet screen interaction video picture, including: when the bullet screen interaction video picture in the video is played, the bullet screen message associated with the bullet screen interaction video picture is displayed; the bullet screen message associated with the bullet screen interaction video picture includes at least one interactive bullet screen message; for each interactive bullet screen message in the at least one interactive bullet screen message, the bullet screen special effect is added to the interactive bullet screen message for display; wherein the type of the bullet screen special effect matches the linear interaction element triggered by the interactive bullet screen message; the linear interaction element triggered by the interactive bullet screen message is the linear interaction element corresponding to the interactive effective range where the display position of the interactive bullet screen message is located.
[0072] The linear interaction element refers to the shape of the interaction element in a linear form, which can specifically include but is not limited to the linear video picture content such as laser and meteor. The linear interaction element can include one or more, and each linear interaction element can be provided with a corresponding matched bullet screen special effect, that is, different linear interaction elements can correspond to different types of bullet screen special effects.
[0073] Optionally, the barrage interactive element can include at least one linear interactive element in the barrage interactive video picture, the linear interactive element being a video content element in a linear form in the barrage interactive video picture. The terminal can monitor the played video picture in the process of playing the video, and when detecting that the played video picture is the barrage interactive video picture, the terminal can display the barrage messages associated with the barrage interactive video picture, and each barrage message can be displayed in a default display manner. At least one interactive barrage message is included in the barrage messages associated with the barrage interactive video picture, and for each interactive barrage message, the terminal can display the addition of a barrage special effect matching the triggered linear interactive element. The triggered linear interactive element refers to the linear interactive element corresponding to the interactive effective range where the display position of the interactive barrage message is located. In specific implementation, the terminal can detect the barrage messages associated with the barrage interactive video picture to determine whether there is an interactive barrage message, such as determining the interactive barrage message from the barrage messages according to the positional relationship between the display position of each barrage message and the interactive effective range of each linear interactive element, and the linear interactive element triggered by the interactive barrage message. For the determined at least one interactive barrage message, the terminal can determine the barrage special effect matching the triggered barrage interactive element, and the terminal displays after adding the barrage special effect of this type to the interactive barrage message.
[0074] In this embodiment, when the video is played to the barrage interactive video picture, the barrage messages associated with the barrage interactive video picture are displayed, and for the included interactive barrage message, the interactive barrage message is added to display the barrage special effect matching the triggered linear interactive element, so that the interactive barrage message can be displayed with the matching special effect according to the linear interactive element included in the barrage interactive video picture, the display special effect of the barrage message can be adjusted in combination with the linear interactive element, the display special effect of the barrage message can be used to diversify and intuitively display the video content of the played video, thereby enhancing the video playing effect.
[0075] In one exemplary embodiment, the interactive barrage message is moved in the playing area; the linear interactive element includes at least a first linear interactive element and a second linear interactive element; and adding the barrage special effect to the interactive barrage message for display includes: when the interactive barrage message is moved to a first display position in the playing area, adding a first barrage special effect to the interactive barrage message for display; the first display position is within the interactive effective range of the first linear interactive element; the first barrage special effect matches the first linear interactive element; when the interactive barrage message is moved from the first display position to a second display position in the playing area, adding a second barrage special effect to the interactive barrage message for display; the second display position is within the interactive effective range of the second linear interactive element; and the second barrage special effect matches the second linear interactive element.
[0076] In the process of moving in the playing area, when the interactive BRS message moves to a first display position in the playing area, which is within the interactive effective range of the first linear interactive element, the terminal can add the first BRS effect matched with the first linear interactive element to the interactive BRS message for display. Further, when the interactive BRS message moves from the first display position to a second display position in the playing area, which is within the interactive effective range of the second linear interactive element, the terminal can add the second BRS effect matched with the second linear interactive element to the interactive BRS message for display. In a specific application, the terminal can compare the display position of the interactive BRS message in the playing area with the interactive effective range of each linear interactive element respectively, to determine the linear interactive element triggered by the interactive BRS message, and add the BRS effect matched with the triggered linear interactive element to the interactive BRS message for display.
[0077] In the process of moving in the playing area, when the interactive BRS message moves to a first display position in the playing area, which is within the interactive effective range of the first linear interactive element, the terminal can add the first BRS effect matched with the first linear interactive element to the interactive BRS message for display. Further, when the interactive BRS message moves from the first display position to a second display position in the playing area, which is within the interactive effective range of the second linear interactive element, the terminal can add the second BRS effect matched with the second linear interactive element to the interactive BRS message for display. In a specific application, the terminal can compare the display position of the interactive BRS message in the playing area with the interactive effective range of each linear interactive element respectively, to determine the linear interactive element triggered by the interactive BRS message, and add the BRS effect matched with the triggered linear interactive element to the interactive BRS message for display.
[0078] In the process of moving in the playing area, when the interactive BRS message moves to a first display position in the playing area, which is within the interactive effective range of the first linear interactive element, the terminal can add the first BRS effect matched with the first linear interactive element to the interactive BRS message for display. Further, when the interactive BRS message moves from the first display position to a second display position in the playing area, which is within the interactive effective range of the second linear interactive element, the terminal can add the second BRS effect matched with the second linear interactive element to the interactive BRS message for display. In a specific application, the terminal can compare the display position of the interactive BRS message in the playing area with the interactive effective range of each linear interactive element respectively, to determine the linear interactive element triggered by the interactive BRS message, and add the BRS effect matched with the triggered linear interactive element to the interactive BRS message for display.
[0079] In one exemplary embodiment, the effect-enhanced display of at least one interactive BRS message in the BRS messages associated with the BRS interactive video picture comprises: adding a BRS effect to at least one interactive BRS message in the BRS messages associated with the BRS interactive video picture for display; wherein the BRS effect comprises at least one of the following: BRS component element disappearance effect, BRS component element color change effect, light-emitting effect, blurring effect, adding filter effect, shaking effect, static effect, animation effect or trailing effect.
[0080] The display manner of adding the special effects of the bullet screen to the interactive bullet screen message is used to adjust the display special effects of the bullet screen message in combination with the played video screen. The disappearing special effect of the bullet screen composition element refers to a special effect of not displaying the bullet screen composition element of the interactive bullet screen message, thereby realizing the disappearing effect of the bullet screen composition element to avoid the bullet screen composition element from shielding the bullet screen interactive element. The color changing special effect of the bullet screen composition element refers to a special effect of changing the color of the bullet screen composition element of the interactive bullet screen message. For example, the font color of the bullet screen text in the bullet screen composition element can be changed, and the specific changed font color can be flexibly set according to actual needs. The light emitting special effect refers to a special effect of visually emitting light when the interactive bullet screen message is displayed. The blurring special effect refers to a special effect of blurring the message content of the interactive bullet screen message. The adding filter special effect refers to a special effect of adding various filters to the interactive bullet screen message. The shaking special effect refers to a special effect of shaking the interactive bullet screen message when the interactive bullet screen message is displayed. The static special effect refers to a special effect of keeping the interactive bullet screen message static when the interactive bullet screen message is displayed. The animation special effect refers to a special effect of adding an animation screen to the interactive bullet screen message when the interactive bullet screen message is displayed. The trailing special effect refers to a special effect of adding a trailing effect to the interactive bullet screen message. In the application, the type of the bullet screen special effect can be flexibly configured according to actual needs.
[0081] In this embodiment, the interactive bullet screen message supports configuration of multiple different bullet screen special effects, which can be matched with various video contents to intuitively display the video contents of the played video by using the display special effects of the bullet screen message, thereby facilitating enhancement of the video playing effect.
[0082] In one exemplary embodiment, when a bullet screen interactive video screen in a video is played, at least one interactive bullet screen message in the bullet screen message associated with the bullet screen interactive video screen is displayed with special effect enhancement, including: when the bullet screen interactive video screen in the video is played, an interactive element is displayed in a playing area; and in response to a bullet screen special effect enhancement operation triggered based on the interactive element, at least one interactive bullet screen message in the bullet screen message associated with the bullet screen interactive video screen is displayed with special effect enhancement.
[0083] The interactive element supports triggering by a user to trigger the bullet screen special effect enhancement operation, thereby activating the terminal to display the bullet screen message with special effect enhancement. The interactive element can serve as an entry for the user to actively trigger the bullet screen message with special effect enhancement, and can also serve as prompt information for prompting the user to actively trigger the bullet screen message with special effect enhancement. The specific form of the interactive element can be flexibly set according to actual needs, such as a button control, a hyperlink, a card, a slider, and the like.
[0084] Specifically, the terminal can monitor the played video pictures in the process of playing the video, and when detecting a bullet screen interaction video picture in the video, the terminal can display the bullet messages associated with the bullet screen interaction video picture, and each bullet message can be displayed in a default display manner. Further, the terminal can also display an interaction element in the playing area to prompt the user that the user can actively trigger the special effect enhancement display processing for the bullet messages. The user can trigger the bullet special effect enhancement operation based on the interaction element. Specifically, the user can directly interact with the interaction element to trigger the bullet special effect enhancement operation; in addition, the user can also trigger the bullet special effect enhancement operation under the prompt of the interaction element. For example, the interaction element can include a prompt text “long press to trigger bullet special effect enhancement display”, and the user can trigger the bullet special effect enhancement operation by long pressing the playing area under the prompt of the interaction element. At least one interactive bullet message is included in the bullet messages associated with the bullet screen interaction video picture, and the terminal displays the added bullet special effect for each interactive bullet message in response to the bullet special effect enhancement operation triggered by the user.
[0085] In this embodiment, when the video plays to the bullet screen interaction video picture, the terminal supports the user to trigger the bullet special effect enhancement operation by displaying the interaction element, and the terminal displays the added bullet special effect for at least one interactive bullet message in the bullet messages associated with the bullet screen interaction video picture in response to the bullet special effect enhancement operation. The user can adjust the display special effect of the bullet messages according to the active demand combined with the played video picture, so as to utilize the display special effect of the bullet messages to diversify and intuitively display the video content of the played video, thereby enhancing the video playing effect.
[0086] In one exemplary embodiment, the interaction method based on the bullet message further includes: removing the interaction element from the playing area in response to the bullet special effect enhancement operation triggered based on the interaction element.
[0087] Optionally, after the user triggers the bullet special effect enhancement operation based on the interaction element, the terminal can default to maintain the special effect enhancement display processing for the interactive bullet messages, and then the interaction element can be removed from the playing area to avoid the occlusion of the played video by the interaction element, thereby ensuring the video playing effect.
[0088] In one exemplary embodiment, the interaction method based on the bullet message further includes: removing the interaction element from the playing area when the played video switches from the bullet screen interaction video picture to a non-bullet screen interaction video picture.
[0089] The barrage interactive video picture is a video picture to be subjected to barrage interactive processing, and the non-barrage interactive video picture is a video picture in the video that does not need to be subjected to barrage interactive processing. Optionally, during video playing, if it is detected that the video picture played in the playing area is switched from the barrage interactive video picture to the non-barrage interactive video picture, it indicates that barrage interactive processing is no longer needed, and the terminal can remove the interactive element from the playing area to avoid occlusion of the interactive element to the played video, and ensure video playing effect.
[0090] In an exemplary embodiment, the barrage message-based interaction method further includes: in response to a barrage special effect configuration trigger operation for the video, displaying a barrage special effect configuration operation area for the video; in response to a barrage special effect configuration operation in the barrage special effect configuration operation area, displaying a barrage special effect configuration result for the video by the barrage special effect configuration operation; wherein the barrage special effect configuration result includes barrage interactive video pictures in the video, barrage interactive elements, and special effect enhanced display modes associated with the barrage interactive elements.
[0091] The barrage special effect configuration trigger operation is a trigger operation of the user to trigger barrage special effect configuration for the video, and can be specifically generated by the user selecting the video and interacting with a barrage special effect configuration portal. The barrage special effect configuration operation area is an operation area that supports the user to perform barrage special effect configuration for the video, that is, the user can perform barrage special effect configuration processing for the video according to actual needs in the barrage special effect configuration operation area. The barrage special effect configuration operation is an operation of the user to perform barrage special effect configuration for the video in the barrage special effect configuration operation area, and can specifically include, but is not limited to, barrage interactive video picture configuration, barrage interactive element configuration, interactive effective range configuration, and special effect enhanced display mode configuration for the video. The barrage special effect configuration result is obtained according to the barrage special effect configuration operation of the user, and specifically includes barrage interactive video pictures configured by the user, barrage interactive elements, and special effect enhanced display modes associated with the barrage interactive elements.
[0092] Exemplarily, the user can pre-process the danmaku special effect configuration for the video, and the user can interact with the video to generate a danmaku special effect configuration triggering operation. The terminal displays a danmaku special effect configuration operation area for the video in response to the danmaku special effect configuration triggering operation. Each sub-area for configuring the danmaku special effect for the video can be displayed in the danmaku special effect configuration operation area, and different sub-areas can be applied to configure different parameters. The user can configure the danmaku special effect for the video in the danmaku special effect configuration operation area, specifically by configuring the danmaku special effect for the video through the danmaku special effect configuration operation. The terminal records the danmaku special effect configuration result of the user's danmaku special effect configuration for the video, and displays the danmaku special effect configuration result, so that the user can verify and confirm the configuration result in time. The danmaku special effect configuration result includes a danmaku interactive video picture in the video, a danmaku interactive element, and a special effect enhanced display mode associated with the danmaku interactive element. Thus, the terminal can detect the danmaku interactive video picture when playing the video, determine an interactive danmaku message according to the danmaku interactive element, and perform special effect enhanced display on the interactive danmaku message according to the special effect enhanced display mode associated with the danmaku interactive element.
[0093] In this embodiment, the terminal can configure the danmaku special effect for the video by triggering the danmaku special effect configuration operation. The terminal displays the danmaku special effect configuration result for the video through the danmaku special effect configuration operation in response to the danmaku special effect configuration operation. Thus, when playing the video, the special effect enhanced display can be performed on the interactive danmaku message according to the danmaku interactive element included in the danmaku interactive video picture, and the display effect of the danmaku message can be adjusted in combination with the played video picture. Thus, the video content of the played video can be diversified and intuitively displayed by using the display effect of the danmaku message, and the video playing effect is enhanced.
[0094] In one exemplary embodiment, as shown in Figure 5 The processing of the danmaku special effect configuration, i.e., in response to the danmaku special effect configuration operation in the danmaku special effect configuration operation area, displays the danmaku special effect configuration result for the video through the danmaku special effect configuration operation, including:
[0095] Step 502, in response to the trigger time configuration operation in the danmaku special effect configuration operation area, display the trigger time parameter configured by the trigger time configuration operation; the trigger time parameter includes the timestamp of the danmaku interactive video picture in the video.
[0096] The trigger time configuration operation is a configuration operation for the danmaku interactive video picture in the video that needs to be processed by the danmaku special effect enhancement, and the trigger time parameter is obtained based on the trigger time configuration operation, specifically including the timestamp in the video, which corresponds to the danmaku interactive video picture in the video. Thus, the danmaku interactive video picture that needs to be processed by the danmaku special effect enhancement can be determined from the video according to the timestamp.
[0097] Optionally, the sub-region for configuring the bullet screen interactive video screen can be included in the bullet screen effect configuration operation region, and the user can interactively generate a trigger time configuration operation in the sub-region to configure a time point at which the bullet screen effect enhancement processing is triggered in the video. The terminal responds to the trigger time configuration operation of the user to display the trigger time parameter configured by the trigger time configuration operation of the user. The trigger time parameter can include a timestamp in the video, and the timestamp in the trigger time parameter is used to mark the bullet screen interactive video screen in the video, so that the bullet screen interactive video screen can be accurately determined from the video according to the trigger time parameter.
[0098] Step 504, in response to the validation range configuration operation in the bullet screen effect configuration operation region, the validation range parameter configured by the validation range configuration operation is displayed; the validation range parameter is used to describe the interactive validation range of the bullet screen interactive element in the bullet screen interactive video screen.
[0099] The validation range configuration operation is a configuration operation for the interactive validation range of the bullet screen interactive element included in the bullet screen interactive video screen, and the validation range parameter is obtained based on the validation range configuration operation. The validation range parameter is used to describe the interactive validation range of the bullet screen interactive element in the bullet screen interactive video screen. The validation range parameter can specifically include coordinate information of the interactive validation range in the bullet screen interactive video screen, and the interactive validation range of the bullet screen interactive element can be determined from the bullet screen interactive video screen according to the validation range parameter.
[0100] Specifically, the sub-region for configuring the interactive validation range of the bullet screen interactive element can be included in the bullet screen effect configuration operation region, and the user can interactively generate the validation range configuration operation in the sub-region to configure the interactive validation range of the bullet screen interactive element in the bullet screen interactive video screen. The terminal responds to the validation range configuration operation of the user to display the validation range parameter configured by the validation range configuration operation of the user. The validation range parameter can specifically include coordinate information of the interactive validation range in the bullet screen interactive video screen.
[0101] Step 506, in response to the bullet screen effect configuration operation in the bullet screen effect configuration operation region, the bullet screen effect information configured by the bullet screen effect configuration operation is displayed; the effect enhancement display mode includes the bullet screen effect corresponding to the bullet screen effect information.
[0102] The barrage effect configuration operation is a configuration operation for an effect enhancement display related barrage effect, and the barrage effect information is obtained based on the barrage effect configuration operation. According to the barrage effect information, the corresponding barrage effect can be determined, and the barrage effect enhancement processing can be performed according to the barrage effect. In a specific implementation, the barrage effect information can record description information describing the barrage effect. When the barrage effect includes multimedia resources, the barrage effect information can also carry multimedia resources required for the implementation of the barrage effect.
[0103] Specifically, the barrage effect configuration operation region can include a sub-region for configuring the type of barrage effect. The user can interact in the sub-region to generate a barrage effect configuration operation to configure the type of barrage effect. The terminal responds to the barrage effect configuration operation of the user to display the barrage effect information configured by the barrage effect configuration operation of the user, so as to perform effect enhancement display processing on the interactive barrage message according to the barrage effect corresponding to the barrage effect information when playing the video.
[0104] In this embodiment, the user can configure the barrage interactive video picture, the barrage interactive element, and the effect enhancement display mode associated with the barrage interactive element by triggering the time configuration operation, the effective range configuration operation, and the barrage effect configuration operation. Therefore, the barrage effect enhancement processing strategy can be configured according to actual needs, which is beneficial to enhance the video playing effect in various scenarios.
[0105] In one exemplary embodiment, the interactive method based on the barrage message further includes: in the playing process of the video, in response to a barrage effect enhancement operation triggered for a current video picture of the video playing, performing effect enhancement display on at least one target barrage message in the barrage messages associated with the current video picture. The at least one target barrage message is a barrage message on which the barrage effect enhancement operation acts in the current video picture.
[0106] The current video picture is a video picture displayed at a current time during video playing. The barrage special effect enhancement operation is an interactive operation of triggering special effect enhancement display processing by a user for the current video picture of the video playing. The barrage special effect enhancement operation supports the user to directly trigger the barrage special effect enhancement processing for the video picture in the video playing. The specific interactive mode of the barrage special effect enhancement operation can be flexibly set according to actual needs, for example, the user can perform a sliding operation on the current video picture, or the user can perform a long press operation on the current video picture. The target barrage message is a barrage message that needs to be subjected to special effect enhancement display through the barrage special effect enhancement operation triggered by the user. The specific target barrage message can be a barrage message on which the barrage special effect enhancement operation triggered by the user has an effect in the current video picture, for example, the barrage message on which the user slides, or the barrage message directly selected by the user.
[0107] For example, during the playing of the video, the user can trigger the barrage special effect enhancement operation in the playing area. Specifically, the user can trigger the barrage special effect enhancement operation for the current video picture of the video playing, for example, the user can trigger a sliding operation for the current video picture. The terminal responds to the barrage special effect enhancement operation of the user, and performs special effect enhancement display on at least one target barrage message in the barrage messages associated with the current video picture. In a specific implementation, after detecting the barrage special effect enhancement operation triggered by the user, the terminal can determine an action area of the barrage special effect enhancement operation in the current video picture, and determine the target barrage message from the barrage messages associated with the current video picture according to the action area. The target barrage message is a barrage message on which the barrage special effect enhancement operation triggered by the user has an effect in the current video picture. For the determined target barrage message, the terminal can further determine a barrage special effect matched with the barrage special effect enhancement operation, and add the barrage special effect to the target barrage message for display. Different barrage special effects can be set for different barrage special effect enhancement operations, so that the user can activate different barrage special effects for barrage special effect enhancement processing by triggering different barrage special effect enhancement operations.
[0108] In this embodiment, during the playing of the video, the terminal responds to the barrage special effect enhancement operation triggered by the user for the current video picture, and performs special effect enhancement display on the target barrage message on which the barrage special effect enhancement operation triggered by the user has an effect in the current video picture. Therefore, the barrage special effect processing can be triggered flexibly according to the barrage special effect enhancement operation triggered by the user. The video content of the played video can be diversified and intuitively displayed according to the display effect of the barrage message according to the user's needs, so as to enhance the video playing effect.
[0109] In an example embodiment, the method further comprises: in response to the permission account with the permission of configuring the special effects of the barrage message triggering an operation of configuring the special effects of the barrage message for the video, displaying an operation area of configuring the special effects of the barrage message for the video; and in response to an operation of configuring the special effects of the barrage message in the operation area of configuring the special effects of the barrage message, displaying a result of configuring the special effects of the barrage message for the video by the operation of configuring the special effects of the barrage message, wherein the result of configuring the special effects of the barrage message comprises an operation of enhancing the special effects of the barrage message for the video and a display mode of the enhanced special effects associated with the operation of enhancing the special effects of the barrage message.
[0110] The permission account is an account with the permission of configuring the special effects of the barrage message for the video. The operation of triggering the special effects of the barrage message is an operation of triggering the special effects of the barrage message for the video by the user. The operation area of configuring the special effects of the barrage message is an operation area for the user to configure the special effects of the barrage message for the video, i.e., the user can configure the special effects of the barrage message for the video according to actual needs in the operation area of configuring the special effects of the barrage message. The operation of configuring the special effects of the barrage message is an operation of configuring the special effects of the barrage message for the video by the user in the operation area of configuring the special effects of the barrage message. The result of configuring the special effects of the barrage message is obtained according to the operation of configuring the special effects of the barrage message by the user, and specifically comprises an operation of enhancing the special effects of the barrage message for the video and a display mode of the enhanced special effects associated with the operation of enhancing the special effects of the barrage message. The display mode of the enhanced special effects specifically comprises a type of the special effects of the barrage message associated with the operation of enhancing the special effects of the barrage message.
[0111] Optionally, the user can trigger the operation of configuring the special effects of the barrage message for the video by the permission account held by the user. In response to the operation of triggering the special effects of the barrage message for the video by the user, the terminal displays the operation area of configuring the special effects of the barrage message for the video. Each sub-area of configuring the special effects of the barrage message for the video can be displayed in the operation area of configuring the special effects of the barrage message. Different sub-areas can be applied to different parameters. The user can configure the special effects of the barrage message for the video in the operation area of configuring the special effects of the barrage message. Specifically, the user can configure the special effects of the barrage message for the video by the operation of configuring the special effects of the barrage message. The terminal records the result of configuring the special effects of the barrage message for the video by the user, and displays the result of configuring the special effects of the barrage message for the video, so that the user can verify and confirm the result of configuring the special effects of the barrage message for the video in time. The result of configuring the special effects of the barrage message for the video comprises an operation of enhancing the special effects of the barrage message for the video and a display mode of the enhanced special effects associated with the operation of enhancing the special effects of the barrage message. Thus, the terminal can trigger the operation of enhancing the special effects of the barrage message to activate the display of the enhanced special effects for the video, and specifically activate the display of the enhanced special effects for the target barrage message in the video according to the display mode of the enhanced special effects associated with the operation of enhancing the special effects of the barrage message.
[0112] In the embodiment, the user can perform the bullet screen special effect configuration on the video by holding the right account with the bullet screen special effect configuration right, so as to trigger the bullet screen special effect processing flexibly according to the bullet screen special effect enhancement operation triggered by the user, and to perform the diversified and intuitive display on the video content of the played video according to the display special effect of the bullet screen message according to the user's needs, so as to enhance the video playing effect.
[0113] In an exemplary embodiment, the bullet screen message based interaction method further includes: in response to a sharing operation triggered on the bullet screen special effect configuration result, displaying a target sharing object selected by the sharing operation; in response to a configuration sharing operation on the target sharing object, sending the bullet screen special effect configuration result to a terminal corresponding to the target sharing object; and when the bullet screen special effect configuration result is triggered and activated on the terminal, supporting the special effect enhancement display on the displayed bullet screen message triggered by the bullet screen special effect enhancement operation when playing the video on the terminal.
[0114] The sharing operation is used to share the bullet screen special effect configuration result to other objects. The target sharing object is an object selected by the user through the sharing operation and needed for sharing the bullet screen special effect configuration result, which can be a social object having a social relationship with the right account. The configuration sharing operation is an operation of sharing the obtained bullet screen special effect configuration result.
[0115] Exemplarily, for the obtained configuration result of the special effect of the barrage, the user can also share the configuration result of the special effect of the barrage to other objects through the permission account, so that the other objects can directly apply the obtained configuration result of the special effect of the barrage. Specifically, the user can trigger a sharing operation for the configuration result of the special effect of the barrage, and the terminal displays a target sharing object selected through the sharing operation in response to the sharing operation. In a specific implementation, the terminal can display a sharing object selection area in response to the sharing operation, and the user can select the target sharing object in the sharing object selection area. The terminal can trigger a configuration sharing operation for the target sharing object, and the terminal sends the configuration result of the special effect of the barrage to the terminal corresponding to the target sharing object in response to the configuration sharing operation. In a specific application, the terminal corresponding to the target sharing object can be queried according to the object identifier of the target sharing object, and the configuration result of the special effect of the barrage is sent to the terminal corresponding to the target sharing object. The configuration result of the special effect of the barrage can be triggered and activated on the terminal corresponding to the target sharing object, such as the target sharing object can click and apply the received configuration result of the special effect of the barrage on the terminal corresponding to the target sharing object, thereby activating the configuration result of the special effect of the barrage. After the configuration result of the special effect of the barrage is triggered and activated, when the video is played on the terminal corresponding to the target sharing object, the special effect enhancement operation is supported to trigger the special effect enhancement display for the displayed barrage message, that is, the target sharing object can also trigger the special effect enhancement operation for the current video picture when the video is played on the terminal corresponding to the target sharing object, so that the terminal performs special effect enhancement display for at least one target barrage message in the barrage message associated with the current video picture, and the target barrage message is the barrage message affected by the special effect enhancement operation triggered in the current video picture.
[0116] In this embodiment, the configuration result of the special effect of the barrage is shared to the terminal corresponding to the selected target sharing object through the sharing operation, so that the terminal corresponding to the target sharing object supports the special effect enhancement display for the displayed barrage message through the special effect enhancement operation when the configuration result of the special effect of the barrage is triggered and activated, thereby the configured barrage enhancement display processing can be quickly shared.
[0117] In one exemplary embodiment, the interaction method based on the barrage message further includes: when it is detected that the play progress of the video is in a trigger time interval, determining a barrage interactive video picture corresponding to the play progress as a barrage interactive video picture; determining at least one interactive barrage message from the barrage messages associated with the barrage interactive video picture according to the barrage interactive elements included in the barrage interactive video picture; and determining a special effect of the barrage for performing special effect enhancement display on the at least one interactive barrage message.
[0118] The trigger time interval is a pre-set time interval, and each video frame in the trigger time interval in the video can be regarded as a barrage interactive video picture that needs to be subjected to the special effect enhancement processing of the barrage.
[0119] Specifically, the terminal can monitor the playing progress of the video during playing the video, such as monitoring the time point of the video playing, to determine the playing progress of the video. When detecting that the playing progress of the video is in the trigger time interval, i.e., the time point of the video playing is in the trigger time interval, the terminal determines the video picture corresponding to the current playing progress as the bullet screen interactive video picture that needs to be subjected to the bullet screen special effect enhancement processing. The terminal determines the bullet screen interactive element included in the bullet screen interactive video picture, and determines the interactive bullet screen message from the bullet screen message associated with the bullet screen interactive video picture according to the bullet screen interactive element. In a specific implementation, the terminal can parse the bullet screen special effect configuration file for the video to determine the bullet screen interactive element included in the bullet screen interactive video picture, and determine the interactive bullet screen message from the bullet screen message associated with the bullet screen interactive video picture according to the bullet screen interactive element. For the determined interactive bullet screen message, the terminal further determines the bullet screen special effect for the special effect enhanced display, which can specifically be determined according to the bullet screen special effect configuration file for the video.
[0120] In this embodiment, the terminal detects that the playing progress of the video is in the trigger time interval, determines the video picture corresponding to the playing progress as the bullet screen interactive video picture, and determines the interactive bullet screen message and the bullet screen special effect for the interactive bullet screen message according to the bullet screen interactive element in the bullet screen interactive video picture, so as to perform the special effect enhanced display on the interactive bullet screen message according to the determined bullet screen special effect. The special effect enhanced display on the interactive bullet screen message according to the bullet screen interactive element included in the bullet screen interactive video picture can adjust the display special effect of the bullet screen message in combination with the played video picture, thereby diversifying and intuitively displaying the video content of the played video by using the display special effect of the bullet screen message, and enhancing the video playing effect.
[0121] In one exemplary embodiment, determining at least one interactive bullet screen message from the bullet screen message associated with the bullet screen interactive video picture according to the bullet screen interactive element included in the bullet screen interactive video picture comprises: determining an interactive effective range of the bullet screen interactive element included in the bullet screen interactive video picture; respectively determining display positions of the bullet screen messages associated with the bullet screen interactive video picture in the playing area; and determining the bullet screen message with the display position in the interactive effective range as the interactive bullet screen message.
[0122] The interactive effective range is a region divided in the playing area according to the bullet screen interactive element, and can be set according to parameters such as the specific distribution position, size, and shape of the bullet screen interactive element in the bullet screen interactive video picture.
[0123] Optionally, the terminal can determine the barrage interactive element from the barrage interactive video picture and determine the interactive effective range of the barrage interactive element. Specifically, the interactive effective range can be determined according to the distribution position, size and shape of the barrage interactive element. Further, for the barrage messages associated with the barrage interactive video picture, the terminal can determine the respective display positions of each barrage message in the playing area. The terminal can traverse each barrage message, match the display position of the barrage message with the interactive effective range of the barrage interactive element, and determine whether the display position of the barrage message is within the interactive effective range of the barrage interactive element. The terminal can determine the barrage message whose display position is within the interactive effective range as an interactive barrage message, thereby screening the interactive barrage message that needs to be subjected to special effect enhancement display processing from each barrage message.
[0124] In this embodiment, the terminal screens the interactive barrage message from each barrage message according to the respective display position of each barrage message and the interactive effective range of the barrage interactive element, which can ensure the accuracy of the interactive barrage message and ensure the effect of video enhancement playing.
[0125] In one exemplary embodiment, the barrage interactive element includes a linear interactive element in the barrage interactive video picture; the interactive effective range includes a detection ray segment corresponding to the linear interactive element; and determining the barrage message whose display position is within the interactive effective range as an interactive barrage message includes: performing ray detection on each display position based on the detection ray segment to obtain a ray detection result; and determining the barrage message whose display position collides with the detection ray segment as an interactive barrage message.
[0126] The linear interactive element refers to the shape of the interactive element being linear, which can specifically include but is not limited to linear video picture content such as laser and meteor. For the linear interactive element, the interactive effective range thereof includes a detection ray segment corresponding to the linear interactive element, so that the interactive barrage message is screened through the detection ray segment. Exemplarily, for the linear interactive element, the terminal can perform ray detection on the respective display position of each barrage message based on the detection ray segment corresponding to the linear interactive element, which can specifically include performing ray collision detection between the detection ray segment and the respective display position of each barrage message to obtain a ray detection result. The ray detection result can represent the positional relationship between the display position of the barrage message and the detection ray segment, such as whether the display position of the barrage message collides with the detection ray segment. The terminal can determine the barrage message whose display position collides with the detection ray segment as an interactive barrage message.
[0127] In this embodiment, for the linear interaction element, the terminal performs ray detection on the detection ray segment of the linear interaction element for the display position of each bullet screen message, and screens out the interactive bullet screen message based on the obtained ray detection result, which can ensure the accuracy of the interactive bullet screen message and ensure the effect of video enhanced playing.
[0128] In an exemplary embodiment, the bullet screen message interaction method further includes: obtaining a bullet screen special effect configuration file for the video; parsing the bullet screen special effect configuration file to obtain a trigger time parameter of a trigger time interval, an effective range parameter of an interactive effective range, and bullet screen special effect information of a bullet screen special effect.
[0129] The bullet screen special effect configuration file includes bullet screen special effect configuration data for the video, and the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range, and the bullet screen special effect information of the bullet screen special effect can be determined according to the bullet screen special effect configuration file. The trigger time parameter can include a timestamp in the video, which corresponds to a bullet screen interactive video picture in the video, so that the bullet screen interactive video picture that needs to be processed by the bullet screen special effect enhancement can be determined from the video according to the timestamp. The effective range parameter is used to describe the interactive effective range of the bullet screen interactive element in the bullet screen interactive video picture, and the effective range parameter can specifically include coordinate information of the interactive effective range in the bullet screen interactive video picture. According to the effective range parameter, the interactive effective range of the bullet screen interactive element in the bullet screen interactive video picture can be determined. According to the bullet screen special effect information, the corresponding bullet screen special effect can be determined, so that the bullet screen special effect can be processed according to the bullet screen special effect.
[0130] Specifically, the terminal can obtain a bullet screen special effect configuration file for the video, and specifically request the bullet screen special effect configuration file from the server. The terminal parses the obtained bullet screen special effect configuration file to obtain the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range, and the bullet screen special effect information of the bullet screen special effect for the video.
[0131] In this embodiment, the terminal parses the obtained bullet screen special effect configuration file to obtain the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range, and the bullet screen special effect information of the bullet screen special effect, so as to be able to perform bullet screen special effect enhancement processing for the video playing process, and be able to adjust the display effect of the bullet screen message in combination with the played video picture, so as to utilize the display effect of the bullet screen message to diversify and intuitively display the video content of the played video, thereby enhancing the video playing effect.
[0132] In an example embodiment, the obtaining of the configuration file of the special effect of the video includes: detecting the video interactive picture and the video interactive element included in the video interactive picture from each video picture of the video; determining the trigger time parameter of the trigger time interval according to the time stamp of the video interactive picture in the video; determining the effective range parameter of the interactive effective range according to the position distribution information of the video interactive element in the video interactive picture; determining the special effect information of the special effect of the video based on the video, the video interactive picture and the video interactive element; and obtaining the configuration file of the special effect of the video according to the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range and the special effect information of the special effect of the video.
[0133] Optionally, for the video to be played, the terminal can detect each video picture of the video to detect the video interactive picture and the video interactive element included in the video interactive picture from each video picture of the video. Specifically, a determination condition can be set in advance, and each video picture is determined according to the determination condition to determine the video interactive picture, and the video interactive element included in the video interactive picture is further detected. In a specific application, the determination condition can be that the video picture includes picture content with prominent visual effects, that is, when the terminal determines that a video picture includes picture content with prominent visual effects, the terminal can determine the video picture as the video interactive picture, and the picture content with prominent visual effects in the video interactive picture is determined as the video interactive element.
[0134] For the detected bullet screen interactive video picture, the terminal can determine the position of the bullet screen interactive video picture in the video, specifically, determine the timestamp of the bullet screen interactive video picture in the video, so as to determine the trigger time parameter of the trigger time interval according to the respective timestamps of the bullet screen interactive video pictures, so as to determine the time point of triggering the bullet special effect enhancement processing when playing the video. The terminal can determine the position distribution information of the bullet interactive element in the bullet screen interactive video picture, and determine the effective range parameter of the interactive effective range according to the position distribution information, so as to determine the interactive effective range according to the effective range parameter. The terminal further determines the bullet special effect information of the bullet special effect according to the video, the bullet screen interactive video picture and the bullet interactive element. The bullet special effect information can include information describing the bullet special effect. The bullet special effect information is determined according to the video, the bullet screen interactive video picture and the bullet interactive element, so that the bullet special effect described by the bullet special effect information can be adapted to the video, the bullet screen interactive video picture and the bullet interactive element. The terminal generates a bullet special effect configuration file for the video according to the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range and the bullet special effect information of the bullet special effect, so that the bullet special effect configuration data for the bullet special effect enhancement processing of the video can be obtained by analyzing the bullet special effect configuration file.
[0135] In this embodiment, the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range and the bullet special effect information of the bullet special effect are directly determined based on each video picture of the video, and the bullet special effect configuration file for the video is generated, so that manual participation in configuration can be avoided, and the processing efficiency of the bullet special effect configuration can be improved.
[0136] The application also provides an application scenario applying the above-mentioned bullet message-based interaction method. Specifically, the bullet message-based interaction method is applied in the following application scenario:
[0137] In the current video playing, the bullet screen is mostly full-screen display special effect, such as in some special films and television dramas, the full-screen color changing, full-screen lightning effect and the like are configured by operation in a specified time period; and for special bullet screen attached special effect, such as the bullet screen sent by some senior members, special color or special animation effect is displayed. Therefore, the current bullet screen play of video playing is single, and the interest is limited. Based on this, the bullet message-based interaction method provided in this embodiment is based on ray detection, detects the bullet screen touched in the line segment on the screen, then combines the video content and the bullet screen to produce interaction, and applies different special effect effects to these bullet screens, so as to improve the display effect and play of the bullet screen.
[0138] The embodiment provides an interaction method based on a barrage message, triggers a barrage special effect through ray detection, provides diversified play for operation, applies imagination to video interaction, and improves video visual experience and interaction experience of a user. The specific process is that a video to which a special effect is added is selected, a time interval section or a time point of the video is determined, line segment point information, that is, start point and end point coordinates, is confirmed, parameters of the video are configured on a management platform, the line segment point information is filled in, and a triggered special effect is selected, the user automatically downloads the configuration information when playing the video, the ray detection is triggered after the video plays to the configuration time section, the detected barrage is attached with the special effect, and the barrage attached with the special effect is still effective after the video playing progress leaves the configuration time section. In addition, in other application scenarios, the barrage attached with the special effect can be invalidated immediately or can be invalidated after maintaining a preset time length after the video playing progress leaves the configuration time section and the ray detection is no longer triggered. The ray detection refers to a collision detection mode of a physical engine in a game engine, start point coordinates and end point coordinates are given, and all objects touching a line connecting the two coordinates can be detected.
[0139] Specifically, the processing of determining the time interval section or the time point of the video and confirming the line segment point information can be set. Specifically, the start point and the end point of the line segment can be determined at a video playing progress time point, that is, a certain 1 frame of picture of the video, according to video content such as meteor, laser and the like. As shown in the following figure, Figure 6 the start point and the end point of the line segment can be determined according to the meteor in the current video picture. Further, the coordinate point of the point information in the playing area can be determined through a visual tool such as Photoshop and the like. As shown in the following figure, Figure 7 the coordinate of the start point in the playing area is (1.08, 1), and the coordinate of the end point in the playing area is (0.15, 0.18).
[0140] The processing of setting parameters on the management platform and configuring the special effect can configure the related special effect through the background management platform. The special effect is pre-buried in the terminal and can be selected by operation and product. As shown in the following figure, Figure 8 the video information, the trigger time, the ray information and the special effect configuration are included in the management platform panel. The trigger time specifically includes a start time and an end time. The ray information includes start point coordinates and end point coordinates. When different special effects are selected, a special effect parameter secondary panel can be opened to provide parameter configuration of the special effect. As shown in the following figure, Figure 9 after the sequence frame animation is clicked, a secondary panel is popped up at the lower right of the management platform panel, and the resource path of the required resource of the sequence frame animation, that is, frame animation, can be set in the secondary panel. As shown in the following figure, Figure 10As shown, clicking "text color change" appears a secondary panel for text color editing, in which the color of the bullet screen font can be set.
[0141] For the bullet screen special effect, it can be configured according to the video content. For example, if the video is playing a meteor shower content, the meteor will pass through the bullet screen, which can make the bullet screen disappear immediately, or change the color, add shader effects, and other effect effects. Among them, shader effects generally refer to a collection of special effects in game engines. For example: internal light, external light, mosaic effect, filter effect, Gaussian blur effect, etc. For example Figure 11 As shown, the original screen displays multiple bullet screens in the video playback screen, and each bullet screen can be displayed in the default mode. Figure 12 As shown, when the special effect enhancement display executes the bullet screen disappearance effect, the 3 bullet screens crossed by the ray segment disappear and are no longer displayed. Figure 13 As shown, when the special effect enhancement display executes the bullet screen color change effect, the font of the 3 bullet screens crossed by the ray segment will be changed to different colors for display. Here, it is represented by bold and diagonal lines. In practice, the special effect is not just that, but also supports multiple special effects superimposed. For example, the detected bullet screen will play a shader effect animation, while the text color changes.
[0142] Further, when the user loads the video, the related configuration will be automatically pulled from the background. After the video plays to the corresponding time point, ray detection is triggered, and all bullet screens touched between the start point and the end point will be attached with the configured special effect. That is, the coordinate point set formed by each coordinate point included in the ray segment determined by the start point and the end point can be used as the interactive effective range of the bullet screen interactive element. For the bullet screen crossed by the ray segment, if the display position of the bullet screen intersects with the coordinate point set of the ray segment, it can be considered that the bullet screen crossed by the ray segment is the interactive bullet screen message that needs to be enhanced for special effect display. Among them, the bullet screen supports whole special effect and single text special effect. For the whole special effect, the entire bullet screen will be attached with the special effect, such as: disappearance effect, the entire bullet screen disappears; text color change effect, all text of the entire bullet screen changes color; shader effect, the entire bullet screen has the effect. For single text special effect, after triggering ray detection, the line segment may only touch a single text or multiple texts, and the text can be individually attached with a special effect. For example: disappearance effect, the text disappears alone, and the other texts of the bullet screen remain; text color change effect, the text changes color alone; shader effect, the text is individually attached with a shader effect. For example Figure 14As shown, when the special effect enhancement triggers the single-character disappearance special effect display, only the single character through which the ray line segment passes disappears and is no longer displayed. Specifically, in the first line of the bullet screen message through which the ray passes, the character "one" is directly passed through by the ray line segment and is no longer displayed, while the remaining "this is" and "a bullet screen" are retained for display; in the second line of the bullet screen message through which the ray passes, the character "this" is directly passed through by the ray line segment and is no longer displayed, while the remaining "is a bullet screen" are retained for display; in the third line of the bullet screen message through which the ray passes, the character "screen" is directly passed through by the ray line segment and is no longer displayed, while the remaining "this is a bullet" are retained for display. The bullet screen message through which the ray passes is the interactive bullet screen message, and the characters "one", "this", and "screen" directly passed through by the ray line segment are the interactive effective elements in the corresponding interactive bullet screen message.
[0143] Further, after leaving the time interval, the ray detection is no longer performed. That is, after the video plays beyond the time interval, the ray detection is not triggered, but the bullet screen originally with the special effect still has the effect.
[0144] For the special effect triggering mode, it can be divided into automatic triggering at a time point and user-initiated triggering. For the automatic triggering at a time point, when the video progress plays to the starting time point, the ray detection is automatically triggered, so as to attach the special effect to the detected bullet screen. For the user-initiated triggering, when the video plays to the corresponding time point, the ray detection is not automatically triggered, but some interactive elements for guiding the user to click or double-click appear on the video interface, such as a button, which is clicked by the user to trigger the ray detection, and then the detected bullet screen is attached with the special effect. For example, Figure 15 As shown, the interactive button is displayed in the lower right corner of the video screen, and the user can click the interactive button to trigger the ray detection, and then the detected bullet screen is attached with the special effect.
[0145] Further, a plurality of ray detection line segments can also be configured, for example, Figure 16 As shown, four detection line segments are configured in the frame, and when the video plays to the time interval, the ray detection is simultaneously performed. In addition, different line segments can be configured with different special effects, for example, Figure 17 As shown, the line segment 1 and the line segment 2 can be configured with different bullet screen character colors, the line segment 1 is configured with a white bullet screen character color, and the line segment 2 is configured with a purple bullet screen character color. Then, during the bullet screen movement, when the ray detection is triggered, the character in the bullet screen detected by the line segment 2 is modified to purple, and the character in the bullet screen detected by the line segment 1 is modified to white. For example, Figure 18 As shown, the bullet screen character color between the line segment 1 and the line segment 2 is changed.
[0146] Further, the overall flow of the interactive method based on the bullet screen message provided by the embodiment is as followsFigure 19 As shown, the terminal can download a special effect json (JavaScript Object Notation, JS object notation) file from a server corresponding to the video client, and complete data parsing to generate a corresponding special effect configuration. Some configured special effects will have resources that need to be loaded. If there are, resource preloading is performed first, which can be loading locally or loading a server. After loading is completed, the playback progress is determined. Otherwise, the playback progress determination process is directly performed. That is, after the corresponding special effect configuration is generated, the terminal determines whether the special effect needs to pre-load resources. If it needs to, the terminal downloads the resource and caches it before determining the playback progress. If it does not need to pre-load resources, the terminal can directly determine the playback progress. The terminal determines whether the current video is playing in the corresponding special effect interval. When the current video playback progress plays in the time interval in the special effect configuration, the trigger mode of the current configuration is determined. If it is an "automatic trigger at time point" mode or the user has triggered an interaction, the ray detection is directly started. If it is a "user-initiated trigger" mode, the terminal will display an interactive element on the interface, which can be a button or other UI (User Interface) element. The terminal determines whether the user has triggered an interaction in the current frame. If the user initiates a trigger, such as clicking a button, the terminal starts ray detection. If the user does not trigger, the terminal directly waits for the next frame to determine. If the current video playback progress exceeds the time interval in the special effect configuration, the interactive element disappears, and subsequent active triggers have no effect. The terminal starts ray detection to detect whether the line segment touches the screen pop-up, and if so, the next step is executed to execute the special effect logic in the configuration for the pop-up. If not, the terminal directly waits for the next frame to determine. The terminal attaches the special effect effect in the special effect configuration to the detected pop-up, and executes the logic in the special effect. The terminal waits for the next frame to detect, which will again determine whether the playback progress of the video is in the time interval of the special effect configuration. During video playback, the terminal repeatedly performs the playback progress determination to the waiting for the next frame to determine process until the video playback ends.
[0147] Among them, for the processing of downloading and parsing special effects, before playing the video, the special effect json file will be downloaded from the background, the json data will be parsed, and the special effect Config configuration data recognizable in the game engine will be generated.
[0148] The special effect Config configuration data and the content in the json data correspond one by one. The json file can be as follows:
[0149] {"start_time":100
[0150] "end time":120
[0151] "raycast": {
[0152] "start_point":
[0153] "x": 0.5
[0154] "y": 1.0
[0155] "end point":
[0156] "x'": 0.5
[0157] "y'": 1.0
[0158] "option": 1
[0159] "extra params": []
[0160] wherein, "start_time": the starting time point of the effect, in seconds, the starting time point is 100 seconds in the above json file; "end_time": the ending time point of the effect, in seconds; "raycast": the closure contains the parameters required by the ray; "start_point": the starting point coordinate percentage of the line segment (relative to the playing area), x represents the horizontal coordinate percentage of the screen width, y represents the vertical coordinate percentage of the screen height, for example: x = 0.5, y = 1 indicates that the coordinate is located at the top center position of the screen; "end_point": the ending point coordinate percentage of the line segment (relative to the playing area); "option": the effect of the bullet screen execution, for example: 0 is the bullet screen disappearance effect; 1 is the execution of a certain shader effect of the bullet screen, 2 is the execution of a certain sequence frame picture of the bullet screen, 3 is the bullet screen jitter effect, 4 is the bullet screen color change, etc. This parameter supports extended development, and a new digital parameter will be added for each new effect developed in the future; "extra_params": additional parameters, provided to some effects to carry additional parameters.
[0161] Further, if the starting time ≠ the ending time, it means that the ray detection is continuous for a period of time; if the starting time = the ending time, it means that the ray detection is effective once at the current time point. For example, Figure 20As shown in the special effect Config configuration data, the effective time can be specified, including the starting time point and the ending time point. Each special effect id corresponds to a unique special effect, and when the bullet screen is detected by the ray, the bullet screen will execute the logic in the special effect. Some json data carries the "extra_params" field content, and different special effects have different parsing rules for this field. For example: sequence frame animation special effect needs to read the resource path from this field, and when parsing, it will automatically trigger preloading and initiate a request to download resources from the background; the color change of the text special effect needs to read the starting color and end color data from this field and save it in the configuration. Since the ray coordinates configured by the operation configuration are based on the playback area coordinate system, it is also necessary to convert the area coordinates into world coordinates in the game engine, because the game engine uses its own coordinate system when calculating the position of the bullet screen on the interface and the position of the line segment starting point and ending point coordinates. As shown in the figure, Figure 21 As shown in the figure, it is necessary to map the playback area coordinate system to the game engine coordinate system. Specifically, the value range of the horizontal and vertical coordinates in the playback area coordinate system is 0-1; while the value range of the horizontal and vertical coordinates in the game engine coordinate system is the size of the terminal screen resolution; for example, for a 1920*1080 screen, the point (0.5, 0.5) in the playback area coordinate system is mapped to the coordinates (960, 540) in the game engine coordinate system.
[0162] For ray detection, the use of special effects, after executing the ray detection logic, all detected bullet screens will apply special effects, while undetected bullet screens remain unchanged. Ray detection is actually detecting objects touched between two points (i.e. objects touched by a line segment), and the data of the two points comes from the starting point coordinates and the ending point coordinates in the json file. As shown in the figure, Figure 22 As shown in the figure, the three bullet screens in the solid line box are detected by the ray, while the one bullet screen in the dashed line box is not detected by the ray.
[0163] The detection method can include overall bullet screen detection and single character detection, wherein the overall bullet screen detection means that when the ray is detected, the entire bullet screen is the detection target, and as long as the line segment touches any position of the bullet screen, it indicates that the bullet screen is successfully detected; single character detection means that when the ray is detected, the single character of the bullet screen is the detection target, and after the line segment touches the character, only the character is detected successfully, and the other characters of the bullet screen are not detected.
[0164] For detection frequency, if the configuration is a time interval configuration, then in this time period, every frame will detect whether there is a bullet screen in the line segment (bullet screens that have been detected and applied special effects will not apply special effects again); if the configuration is a time point configuration, then the bullet screen will be detected only once in this frame.
[0165] For the mixed use of various special effects, the configured special effect is applied to the barrage after being successfully detected by the ray. The parameters required for the barrage to occur the special effect are configured in the extra_params field of the Json. For example, currently supported, subsequent can continue to support expansion, support more mixed special effects: text color change, the logic is to modify the text color in the barrage; sequence frame animation, the logic is to add a component to play the animation to the barrage, load the ready animation resource into the component, and play; barrage disappears, the logic is to directly destroy the barrage. For example, the json file configuration can include "option":4"extra_params":["#800080"]", which indicates that the barrage touched by the line segment modifies the text color to purple; for example, the json file configuration can include "option":4"extra_params":["#ffffff"]", which indicates that the barrage touched by the line segment modifies the text color to white.
[0166] As for the trigger mode, it is divided into "automatic trigger to point" and "user active trigger". Among them, "automatic trigger to point" refers to directly executing the logic of ray detection when the video playing progress comes to the time interval of the configuration trigger. "User active trigger" refers to that when the video playing progress comes to the time interval of the configuration trigger, an interactive element such as a button will appear on the video interface, and then wait for the user to actively click. If the user does not click the button, the button will disappear after the configuration leaves the triggering time interval; if the user clicks, the logic of ray detection is directly executed, and the button disappears. The button does not appear in the current time interval, and ray detection logic is directly executed by default every frame.
[0167] The interaction method based on the barrage message provided in the embodiment makes the barrage play more diversified, finds the barrage on the screen by using ray detection, and uses different special effect effects, thereby enriching the effect of the barrage and improving the experience of the user. In addition, the hot update capability can be introduced, and the terminal is dynamically issued with the newly added special effect effect, so as to realize dynamic update of the special effect type.
[0168] It should be understood that although each step in the flowchart involved in the embodiments described above is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in the embodiments described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.
[0169] Based on the same inventive concept, the embodiments of the present application also provide a danmaku message-based interaction device for implementing the above-mentioned danmaku message-based interaction method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more danmaku message-based interaction device embodiments provided below can refer to the limitations of the danmaku message-based interaction method described above, which will not be repeated here.
[0170] In one exemplary embodiment, as shown in Figure 23 A danmaku message-based interaction device 2300 is provided, comprising a playing area display module 2302, a danmaku display module 2304, and a special effect enhancement module 2306, wherein:
[0171] The playing area display module 2302 is configured to display a playing area in which a video is played.
[0172] The danmaku display module 2304 is configured to display, in the playing area, danmaku messages associated with video frames played in the video in response to the playing of the video.
[0173] The special effect enhancement module 2306 is configured to perform special effect enhancement display for at least one interactive danmaku message in the danmaku messages associated with a danmaku interactive video frame in the video when the danmaku interactive video frame is played.
[0174] The display position of the at least one interactive danmaku message in the playing area is within the interactive effective range of the danmaku interactive element included in the danmaku interactive video frame.
[0175] In an embodiment, the special effect enhancement module 2306 is further configured to, when the playing progress of the video reaches the bullet screen interaction video frame in the video, display the bullet screen messages associated with the bullet screen interaction video frame; the bullet screen messages associated with the bullet screen interaction video frame include at least one interactive bullet screen message; and the at least one interactive bullet screen message is displayed by adding a bullet screen special effect to at least part of the bullet screen component elements of the at least one interactive bullet screen message; and the bullet screen special effect matches the bullet screen interaction element included in the bullet screen interaction video frame.
[0176] In an embodiment, the special effect enhancement module 2306 is further configured to, for at least one of: display the bullet screen component elements of the at least one interactive bullet screen message by adding a bullet screen special effect to the bullet screen component elements of the at least one interactive bullet screen message as a whole; display the interactive effective elements of the bullet screen component elements of the at least one interactive bullet screen message by adding a bullet screen special effect to the interactive effective elements; and the display position of the interactive effective elements in the playing area is within the interactive effective range of the bullet screen interaction element included in the bullet screen interaction video frame.
[0177] In an embodiment, the bullet screen interaction element includes at least one linear interaction element in the bullet screen interaction video frame; and the special effect enhancement module 2306 is further configured to, when the playing progress reaches the bullet screen interaction video frame in the video, display the bullet screen messages associated with the bullet screen interaction video frame; the bullet screen messages associated with the bullet screen interaction video frame include at least one interactive bullet screen message; and each interactive bullet screen message in the at least one interactive bullet screen message is displayed by adding a bullet screen special effect to the interactive bullet screen message; wherein the type of the bullet screen special effect matches the linear interaction element triggered by the interactive bullet screen message; and the linear interaction element triggered by the interactive bullet screen message is the linear interaction element corresponding to the interactive effective range in which the display position of the interactive bullet screen message is located.
[0178] In an embodiment, the interactive bullet screen message moves in the playing area; the linear interaction element includes at least a first linear interaction element and a second linear interaction element; and the special effect enhancement module 2306 is further configured to, when the interactive bullet screen message moves to a first display position in the playing area, display the interactive bullet screen message by adding a first bullet screen special effect to the interactive bullet screen message; the first display position is within the interactive effective range of the first linear interaction element; the first bullet screen special effect matches the first linear interaction element; when the interactive bullet screen message moves from the first display position to a second display position in the playing area, display the interactive bullet screen message by adding a second bullet screen special effect to the interactive bullet screen message; the second display position is within the interactive effective range of the second linear interaction element; and the second bullet screen special effect matches the second linear interaction element.
[0179] In an embodiment, the special effect enhancement module 2306 is further configured to add a special effect of the barrage for display for at least one interactive barrage message in the barrage messages associated with the barrage interactive video frame; wherein the special effect of the barrage comprises at least one of the following: a barrage component element disappearance effect, a barrage component element color change effect, a light emitting effect, a blurring effect, an added filter effect, a shaking effect, a static effect, an animation effect, or a trailing effect.
[0180] In an embodiment, the special effect enhancement module 2306 is further configured to display an interactive element in the playing area when playing the barrage interactive video frame in the video; and in response to a barrage special effect enhancement operation triggered based on the interactive element, perform special effect enhancement display for at least one interactive barrage message in the barrage messages associated with the barrage interactive video frame.
[0181] In an embodiment, the special effect enhancement module 2306 is further configured to: in response to a barrage special effect enhancement operation triggered based on the interactive element, remove the interactive element from the playing area; and when the played video switches from the barrage interactive video frame to a non-barrage interactive video frame, remove the interactive element from the playing area.
[0182] In an embodiment, the special effect enhancement module 2306 is further configured to: in response to a barrage special effect configuration trigger operation for the video, display a barrage special effect configuration operation area for the video; and in response to a barrage special effect configuration operation in the barrage special effect configuration operation area, display a barrage special effect configuration result for the video by the barrage special effect configuration operation; wherein the barrage special effect configuration result comprises a barrage interactive video frame in the video, a barrage interactive element, and a special effect enhancement display mode associated with the barrage interactive element.
[0183] In an embodiment, the special effect enhancement module 2306 is further configured to: in response to a trigger time configuration operation in the barrage special effect configuration operation area, display a trigger time parameter configured by the trigger time configuration operation; the trigger time parameter comprises a timestamp of the barrage interactive video frame in the video; in response to an effective range configuration operation in the barrage special effect configuration operation area, display an effective range parameter configured by the effective range configuration operation; the effective range parameter is used to describe an interactive effective range of the barrage interactive element in the barrage interactive video frame; and in response to a barrage special effect configuration operation in the barrage special effect configuration operation area, display barrage special effect information configured by the barrage special effect configuration operation; the special effect enhancement display mode comprises a barrage special effect corresponding to the barrage special effect information.
[0184] In an embodiment, the target barrage message enhancement module is further configured to, in response to a barrage effect enhancement operation triggered for a current video picture during playing of the video, perform effect enhancement display on at least one target barrage message in barrage messages associated with the current video picture; the at least one target barrage message is a barrage message on which the barrage effect enhancement operation is triggered and takes effect in the current video picture.
[0185] In an embodiment, the barrage effect configuration module is further configured to, in response to a barrage effect configuration operation triggered by an account with a barrage effect configuration permission for the video, display a barrage effect configuration operation area for the video; in response to a barrage effect configuration operation in the barrage effect configuration operation area, display a barrage effect configuration result for the video by the barrage effect configuration operation; the barrage effect configuration result includes a barrage effect enhancement operation for the video and an effect enhancement display manner associated with the barrage effect enhancement operation.
[0186] In an embodiment, the sharing module is further configured to, in response to a sharing operation triggered for the barrage effect configuration result, display a target sharing object selected by the sharing operation; in response to a configuration sharing operation for the target sharing object, send the barrage effect configuration result to a terminal corresponding to the target sharing object; when the barrage effect configuration result is triggered and activated on the terminal, support effect enhancement display on displayed barrage messages by the barrage effect enhancement operation during playing of the video on the terminal.
[0187] In an embodiment, the parameter determination module is further configured to, when detecting that a playing progress of the video is in a triggering time interval, determine a video picture corresponding to the playing progress as a barrage interactive video picture; determine at least one interactive barrage message from barrage messages associated with the barrage interactive video picture according to a barrage interactive element included in the barrage interactive video picture; and determine a barrage effect used for effect enhancement display on the at least one interactive barrage message.
[0188] In an embodiment, the parameter determination module is further configured to determine an interactive effective range of the barrage interactive element included in the barrage interactive video picture; respectively determine display positions of barrage messages associated with the barrage interactive video picture in a playing area; and determine barrage messages with display positions in the interactive effective range as the interactive barrage messages.
[0189] In an embodiment, the barrage interactive element includes a linear interactive element in the barrage interactive video picture; the interactive effective range includes a detection ray segment corresponding to the linear interactive element; and the parameter determination module is further configured to perform ray detection on each display position based on the detection ray segment to obtain a ray detection result; and determine, as the interactive barrage messages, barrage messages for which the ray detection result indicates that the display position collides with the detection ray segment.
[0190] In an embodiment, the configuration file processing module is further configured to obtain a barrage effect configuration file for the video; parse the barrage effect configuration file to obtain a trigger time parameter of a trigger time interval, an effective range parameter of an interaction effective range, and barrage effect information of a barrage effect.
[0191] In an embodiment, the configuration file processing module is further configured to detect, from each video frame of the video, a barrage interaction video frame and a barrage interaction element included in the barrage interaction video frame; determine the trigger time parameter of the trigger time interval according to a timestamp of the barrage interaction video frame in the video; determine the effective range parameter of the interaction effective range according to position distribution information of the barrage interaction element in the barrage interaction video frame; determine the barrage effect information of the barrage effect based on the video, the barrage interaction video frame, and the barrage interaction element; and obtain the barrage effect configuration file for the video according to the trigger time parameter of the trigger time interval, the effective range parameter of the interaction effective range, and the barrage effect information of the barrage effect.
[0192] The above-mentioned various modules in the interaction device based on the barrage message can be all or partially implemented by software, hardware, and a combination thereof. The above-mentioned various modules can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in the computer device in a software form, so as to be called and executed by a processor to perform the operations corresponding to the above-mentioned various modules.
[0193] In an embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram of the computer device can be as shown in FIG. 1. Figure 24The computer device shown in the figure includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capability. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be realized through WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by the processor to realize a kind of based on the interaction method of barrage message. The display unit of the computer device is used to form visually visible picture, can be display screen, projection device or virtual reality imaging device, display screen can be liquid crystal display screen or electronic ink display screen, the input device of the computer device can be the touch layer covered on display screen, it can also be the key, trackball or touchpad arranged on the shell of computer device, it can also be external keyboard, touchpad or mouse etc.
[0194] Those skilled in the art can understand that, Figure 24 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0195] In one embodiment, a computer device is also provided, including a memory and a processor, the memory stores a computer program, and the processor executes the computer program to realize the steps in each method embodiment described above.
[0196] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to realize the steps in each method embodiment described above.
[0197] In one embodiment, a computer program product is provided, which includes a computer program, and the computer program is executed by a processor to realize the steps in each method embodiment described above.
[0198] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.
[0199] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments of each method. Any reference to memory, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0200] The technical features of the above embodiments can be combined in any way. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0201] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.
Claims
1. A method for interaction based on a barrage message, characterized in that, The method comprises: displaying a playing area in which a video is played; corresponding to the playing of the video, displaying in the playing area a barrage message associated with a video picture played in the video; when the playing progress of the video reaches a barrage interactive video picture in the video, displaying a barrage message associated with the barrage interactive video picture; the barrage message associated with the barrage interactive video picture comprises at least one interactive barrage message that moves in the playing area; wherein the barrage interactive video picture comprises a barrage interactive element, the barrage interactive element comprises a linear interactive element, the linear interactive element comprises at least a first linear interactive element and a second linear interactive element, the interactive effective range of the first linear interactive element comprises a detection ray segment corresponding to the first linear interactive element, and the interactive effective range of the second linear interactive element comprises a detection ray segment corresponding to the second linear interactive element; for each interactive barrage message in the at least one interactive barrage message, when the interactive barrage message moves to a first display position in the playing area, adding a first barrage special effect to an interactive effective element in the barrage constituent element of the interactive barrage message for display; the first display position collides with the detection ray segment corresponding to the first linear interactive element, the interactive effective element comprises an interactive effective text, the interactive effective text belongs to text content in the barrage text of the interactive barrage message, and the display position of the interactive effective text in the playing area collides with the detection ray segment corresponding to the first linear interactive element; the first barrage special effect matches the first linear interactive element; when the interactive barrage message moves from the first display position to a second display position in the playing area, adding a second barrage special effect to the interactive effective element for display; the second display position collides with the detection ray segment corresponding to the second linear interactive element, and the display position of the interactive effective text in the playing area collides with the detection ray segment corresponding to the second linear interactive element, and the second barrage special effect matches the second linear interactive element; for other content in the barrage constituent element except the interactive effective element, display is performed according to a default barrage display mode.
2. The method of claim 1, wherein, The method further comprises: adding a barrage special effect to the barrage constituent element of the at least one interactive barrage message as a whole for display.
3. The method of claim 1, wherein, The first barrage special effect or the second barrage special effect comprises at least one of: a barrage constituent element disappearance special effect, a barrage constituent element color change special effect, a light emission special effect, a blur special effect, an added filter special effect, a shaking special effect, a static special effect, an animation special effect, or a trailing special effect.
4. The method of claim 1, wherein, The method further comprises: when playing to the barrage interactive video picture in the video, displaying an interactive element in the playing area; In response to the barrage special effect enhancement operation triggered based on the interactive element, at least one interactive barrage message in barrage messages associated with the barrage interactive video picture is displayed with special effect enhancement.
5. The method of claim 4, wherein, The method further includes at least one of: In response to the barrage special effect enhancement operation triggered based on the interactive element, the interactive element is removed from the playing area; When the playing video switches from the barrage interactive video picture to a non-barrage interactive video picture, the interactive element is removed from the playing area.
6. The method of claim 1, wherein, The method further includes: In response to the barrage special effect configuration operation in the barrage special effect configuration operation area, a barrage special effect configuration result for the video through the barrage special effect configuration operation is displayed. The barrage special effect configuration result includes the barrage interactive video picture, the barrage interactive element in the video, and a special effect enhancement display mode associated with the barrage interactive element. The method further includes:
7. The method of claim 6, wherein, In response to the trigger time configuration operation in the barrage special effect configuration operation area, a trigger time parameter configured by the trigger time configuration operation is displayed; the trigger time parameter includes a timestamp of the barrage interactive video picture in the video; In response to the effective range configuration operation in the barrage special effect configuration operation area, an effective range parameter configured by the effective range configuration operation is displayed; the effective range parameter is used to describe an interactive effective range of the barrage interactive element in the barrage interactive video picture; In response to the barrage special effect configuration operation in the barrage special effect configuration operation area, barrage special effect information configured by the barrage special effect configuration operation is displayed; the special effect enhancement display mode includes a barrage special effect corresponding to the barrage special effect information. The method further includes:
8. The method of claim 1, wherein, In response to a barrage special effect enhancement operation triggered for a current video picture of the video playing, at least one target barrage message in barrage messages associated with the current video picture is displayed with special effect enhancement during the playing process of the video; The at least one target barrage message is a barrage message on which the barrage special effect enhancement operation has an effect in the current video picture. The method further includes:
9. The method of claim 8, wherein, In response to a barrage special effect configuration operation triggered by an account with a barrage special effect configuration permission for the video, a barrage special effect configuration operation area for the video is displayed; In response to the barrage special effect configuration operation in the barrage special effect configuration operation area, a barrage special effect configuration result for the video through the barrage special effect configuration operation is displayed. The method further includes:
10. The method according to any one of claims 1 to 9, characterized in that, When it is detected that the playing progress of the video is in a trigger time interval, a video picture corresponding to the playing progress is determined as the barrage interactive video picture; determine the at least one interactive message from the barrage messages associated with the barrage interactive video picture according to the barrage interactive element included in the barrage interactive video picture; determine a barrage special effect for special effect enhancement display of the at least one interactive message.
11. The method of claim 10, wherein, The barrage interactive element included in the barrage interactive video picture, the barrage interactive video picture associated with the barrage message, and the at least one interactive message are determined according to the barrage interactive element included in the barrage interactive video picture. determine the interactive effective range of the barrage interactive element included in the barrage interactive video picture; respectively determine the display position of the barrage message associated with the barrage interactive video picture in the playing area; determine the barrage message with the display position in the interactive effective range as the interactive barrage message.
12. The method of claim 11, wherein, The barrage message with the display position in the interactive effective range is determined as the interactive barrage message, including: perform ray detection on each display position based on the detection ray segment to obtain a ray detection result; determine the barrage message with the display position colliding with the detection ray segment corresponding to the linear interactive element as the interactive barrage message.
13. The method of claim 10, wherein, The method further includes: obtain a barrage special effect configuration file for the video; parse the barrage special effect configuration file to obtain the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range, and the barrage special effect information of the barrage special effect.
14. The method of claim 13, wherein, The barrage special effect configuration file for the video is obtained, including: detect the barrage interactive video picture and the barrage interactive element included in the barrage interactive video picture from each video picture of the video; determine the trigger time parameter of the trigger time interval according to the timestamp of the barrage interactive video picture in the video; determine the effective range parameter of the interactive effective range according to the position distribution information of the barrage interactive element in the barrage interactive video picture; determine the barrage special effect information of the barrage special effect based on the video, the barrage interactive video picture, and the barrage interactive element; obtain a barrage special effect configuration file for the video according to the trigger time parameter of the trigger time interval, the effective range parameter of the interactive effective range, and the barrage special effect information of the barrage special effect.
15. An interaction device based on a barrage message, characterized in that, The device includes: a playing area display module configured to display a playing area in which a video is played; a barrage display module configured to display, in the playing area, barrage messages associated with video pictures played in the video corresponding to the playing of the video. The special effect enhancement module is configured to, when a playing progress of the video reaches a barrage interactive video picture in the video, display barrage messages associated with the barrage interactive video picture, wherein the barrage messages associated with the barrage interactive video picture include at least one interactive barrage message that moves in the playing area; the barrage interactive video picture includes a barrage interactive element, and the barrage interactive element includes a linear interactive element, the linear interactive element includes at least a first linear interactive element and a second linear interactive element, an interactive effective range of the first linear interactive element includes a detection ray segment corresponding to the first linear interactive element, and an interactive effective range of the second linear interactive element includes a detection ray segment corresponding to the second linear interactive element; for each interactive barrage message in the at least one interactive barrage message, when the interactive barrage message moves to a first display position in the playing area, a first barrage special effect is added to an interactive effective element in barrage constituent elements of the interactive barrage message for display; the first display position collides with the detection ray segment corresponding to the first linear interactive element, the interactive effective element includes an interactive effective text, the interactive effective text belongs to text content in a barrage text of the interactive barrage message, and a display position of the interactive effective text in the playing area collides with the detection ray segment corresponding to the first linear interactive element; the first barrage special effect matches the first linear interactive element; when the interactive barrage message moves from the first display position to a second display position in the playing area, a second barrage special effect is added to the interactive effective element for display; the second display position collides with the detection ray segment corresponding to the second linear interactive element, and a display position of the interactive effective text in the playing area collides with the detection ray segment corresponding to the second linear interactive element; the second barrage special effect matches the second linear interactive element; and other content in the barrage constituent elements except the interactive effective element is displayed according to a default barrage display mode.
16. The apparatus of claim 15, wherein The special effect enhancement module is further configured to add a barrage special effect to the barrage constituent elements of the at least one interactive barrage message as a whole for display.
17. The apparatus of claim 15, wherein, The first barrage special effect or the second barrage special effect includes at least one of a barrage constituent element disappearance special effect, a barrage constituent element color change special effect, a light emission special effect, a blur special effect, an added filter special effect, a shaking special effect, a static special effect, an animation special effect, or a trailing special effect.
18. The apparatus of claim 15, wherein The special effect enhancement module is further configured to, when the barrage interactive video picture in the video is played, display an interactive element in the playing area; and in response to a barrage special effect enhancement operation triggered based on the interactive element, perform special effect enhancement display on at least one interactive barrage message in barrage messages associated with the barrage interactive video picture.
19. The apparatus of claim 18, wherein, The device further comprises: An element removal module configured to perform at least one of the following: removing the interactive element from the playing area in response to the barrage effect enhancement operation triggered based on the interactive element; and removing the interactive element from the playing area when the played video switches from the barrage interactive video picture to a non-barrage interactive video picture.
20. The apparatus of claim 15, wherein, The device further comprises: A barrage effect configuration module configured to: in response to a barrage effect configuration triggering operation for the video, display a barrage effect configuration operation area for the video; and in response to a barrage effect configuration operation in the barrage effect configuration operation area, display a barrage effect configuration result for the video by the barrage effect configuration operation, wherein the barrage effect configuration result comprises the barrage interactive video picture in the video, the barrage interactive element, and an effect enhancement display mode associated with the barrage interactive element.
21. The device of claim 20, wherein The barrage effect configuration module is further configured to: in response to a trigger time configuration operation in the barrage effect configuration operation area, display a trigger time parameter configured by the trigger time configuration operation; and the trigger time parameter comprises a timestamp of the barrage interactive video picture in the video. in response to an effective range configuration operation in the barrage effect configuration operation area, display an effective range parameter configured by the effective range configuration operation; and the effective range parameter is used to describe an interactive effective range of the barrage interactive element in the barrage interactive video picture. in response to a barrage effect configuration operation in the barrage effect configuration operation area, display barrage effect information configured by the barrage effect configuration operation. The effect enhancement display mode comprises a barrage effect corresponding to the barrage effect information.
22. The apparatus of claim 15, wherein, The device further comprises: A target barrage message enhancement module configured to, during playing of the video, in response to a barrage effect enhancement operation triggered for a current video picture played of the video, perform effect enhancement display for at least one target barrage message in barrage messages associated with the current video picture; and the at least one target barrage message is a barrage message on which the barrage effect enhancement operation has an effect in the current video picture.
23. The apparatus of claim 22, wherein, The device further comprises: A barrage effect configuration module configured to, in response to a barrage effect configuration triggering operation for the video by an account with a barrage effect configuration permission, display a barrage effect configuration operation area for the video; and in response to a barrage effect configuration operation in the barrage effect configuration operation area, display a barrage effect configuration result for the video by the barrage effect configuration operation.
24. The apparatus of any one of claims 15 to 23, wherein, The device further comprises: The parameter determination module is configured to determine, when it is detected that the playing progress of the video is in the triggering time interval, a video picture corresponding to the playing progress as the bullet screen interactive video picture; determine, according to the bullet screen interactive element included in the bullet screen interactive video picture, the at least one interactive bullet screen message from the bullet screen messages associated with the bullet screen interactive video picture; and determine a bullet screen special effect used for special effect enhanced display of the at least one interactive bullet screen message.
25. The apparatus of claim 24, wherein, The parameter determination module is further configured to determine an interactive effective range of the bullet screen interactive element included in the bullet screen interactive video picture, and respectively determine display positions of the bullet screen messages associated with the bullet screen interactive video picture in the playing area; The parameter determination module is further configured to determine, as the interactive bullet screen message, the bullet screen message whose display position is in the interactive effective range.
26. The apparatus of claim 25, wherein, The parameter determination module is further configured to perform ray detection on each display position based on the detection ray segment, to obtain a ray detection result; and determine, as the interactive bullet screen message, the bullet screen message whose display position collides with the detection ray segment corresponding to the linear interactive element.
27. The apparatus of claim 24, wherein, The apparatus further includes: A configuration file processing module configured to obtain a bullet screen special effect configuration file for the video, and parse the bullet screen special effect configuration file to obtain a triggering time parameter of the triggering time interval, an effective range parameter of the interactive effective range, and bullet screen special effect information of the bullet screen special effect.
28. The apparatus of claim 27, wherein, The configuration file processing module is further configured to detect, from each video picture of the video, the bullet screen interactive video picture and the bullet screen interactive element included in the bullet screen interactive video picture; determine the triggering time parameter of the triggering time interval according to a time stamp of the bullet screen interactive video picture in the video; determine the effective range parameter of the interactive effective range according to position distribution information of the bullet screen interactive element in the bullet screen interactive video picture; and determine the bullet screen special effect information of the bullet screen special effect based on the video, the bullet screen interactive video picture, and the bullet screen interactive element; obtain the bullet screen special effect configuration file for the video according to the triggering time parameter of the triggering time interval, the effective range parameter of the interactive effective range, and the bullet screen special effect information of the bullet screen special effect. 29.A computer device, comprising a memory and a processor, wherein the memory stores a computer program. The processor implements the steps of the method of any one of claims 1 to 14 when executing the computer program.
30. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 14.
31. A computer program product comprising a computer program, characterised in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 14.
Citation Information
Patent Citations
Bullet screen processing method and device, electronic device and storage medium
CN110740338A
Bullet screen display method and device, bullet screen generation method and device, electronic equipment and storage medium
CN115297355A