Bullet screen display method and apparatus, device, and storage medium
Patent Information
- Application Number
- HK42022064502
- Authority / Receiving Office
- HK · HK
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2041-04-06
AI Technical Summary
The existing bullet screen display method is too simple and cannot meet the needs of users to communicate with each other through bullet screens, resulting in low human-computer interaction efficiency.
This paper provides a method for displaying bullet comments, allowing users to set the bullet comment trajectory on the trajectory determination interface and display the bullet comments according to the set trajectory, thereby enriching the bullet comment display methods and improving the efficiency of human-computer interaction.
By allowing users to customize the trajectory of the bullet comments, the richness and interactivity of the bullet comment display are enhanced, meeting the communication needs between users and improving the efficiency of human-computer interaction.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for displaying bullet comments. Background Technology
[0002] To enhance interactivity during video viewing, many video playback applications offer a vivid and intuitive information display method, known as "bullet comments" because they appear as bullets flying across the screen. Using this feature, users can view bullet comments posted by other users and also send their own bullet comments while watching the video; these sent bullet comments are also visible to other users.
[0003] In related technologies, bullet comments are typically displayed by flying in from the right edge of the video playback interface and out from the left edge. However, this display method is relatively simple and cannot meet the needs of users to communicate with each other through bullet comments, resulting in low human-computer interaction efficiency. Summary of the Invention
[0004] This application provides a method, apparatus, device, and storage medium for displaying bullet comments, which can improve the efficiency of human-computer interaction. The technical solution is as follows: On the one hand, a method for displaying bullet comments is provided, the method comprising: The trajectory determination interface is used to provide settings for the trajectory of the bullet comments; Based on the operations on the trajectory determination interface, the target bullet trajectory is displayed; In response to a command to send a barrage of barrages to a target barrage, the target barrage is displayed on the playback interface of the target video. The target barrage moves according to the trajectory of the target barrage. The target barrage is a barrage sent by a user who has logged into the target account while watching the target video.
[0005] In one possible implementation, before triggering the bullet screen trajectory determination instruction in response to a click operation on the bullet screen trajectory determination control on the playback interface, the method further includes: In response to a command to set up bullet comments for the target video, a bullet comment setting interface is displayed, which provides settings for the bullet comment display method. In response to the bullet screen display mode being set to the target display mode, the bullet screen trajectory determination control is displayed, wherein the target display mode refers to displaying the bullet screen according to the bullet screen trajectory.
[0006] In one possible implementation, the control for displaying the bullet screen trajectory determination includes: The bullet screen sending control displayed on the playback interface is switched to the bullet screen trajectory determination control, which is used to post bullet screen comments on the playback interface.
[0007] In one possible implementation, the operation based on the trajectory determination interface displays the target bullet trajectory in any of the following ways: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to the operation trajectory is displayed along the operation trajectory of the sliding operation; In response to at least two clicks on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to each of the two clicks is displayed based on the position of the clicks.
[0008] On one hand, a bullet screen display device is provided, the device comprising: The interface display module is used to display the trajectory determination interface, which is used to provide settings for the trajectory of the bullet comments; The trajectory display module is used to display the trajectory of the target bullet screen based on the operations on the trajectory determination interface; The bullet screen display module is used to respond to the bullet screen sending command for the target bullet screen and display the target bullet screen on the playback interface of the target video. The target bullet screen moves according to the target bullet screen trajectory. The target bullet screen is a bullet screen sent by a user who has logged into the target account while watching the target video.
[0009] In one possible implementation, the trajectory determination interface includes a bullet screen trajectory drawing area, and the trajectory display module is configured to perform any of the following: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the operation trajectory corresponding to the sliding operation is obtained; based on the operation trajectory, the target bullet screen trajectory is determined and displayed; In response to multiple click operations on the bullet screen trajectory drawing area, at least two click positions of the click operations on the bullet screen trajectory drawing interface are determined; based on the at least two click positions, the target bullet screen trajectory is determined and the target bullet screen trajectory is displayed.
[0010] In one possible implementation, the trajectory display module is configured to perform any of the following: In response to the sliding operation being a continuous sliding operation, the operation trajectory corresponding to the continuous sliding operation is determined as the target bullet screen trajectory; In response to the sliding operation being an interval sliding operation, the multiple operation trajectories corresponding to the interval sliding operation are connected to obtain the target bullet screen trajectory; In response to the sliding operation being an interval sliding operation, the multiple operation trajectories corresponding to the interval sliding operation are determined as the target bullet screen trajectory.
[0011] In one possible implementation, the device further includes: The trajectory length determination module is used to perform any of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than or equal to a first length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the target barrage trajectory is executed. In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than the first length threshold, a target operation trajectory is extracted from the operation trajectory, wherein the length of the target operation trajectory is less than or equal to the first length threshold; and the target operation trajectory is determined as the target bullet screen trajectory.
[0012] In one possible implementation, the device further includes: The trajectory length determination module is used to perform any of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than the second length threshold, a first prompt message is displayed. The first prompt message is used to prompt that the sliding operation be re-executed or that the operation trajectory is invalid. In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than or equal to the second length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the target barrage trajectory is executed.
[0013] In one possible implementation, the trajectory determination interface further includes a trajectory identifier display area, and the device further includes: A trajectory storage module is used to store the target bullet screen trajectory and obtain the bullet screen trajectory identifier of the target bullet screen trajectory in response to a trajectory storage instruction for the target bullet screen trajectory; The trajectory marker display module is used to display the trajectory marker of the target bullet screen trajectory on the trajectory marker display area.
[0014] In one possible implementation, the device further includes any of the following modules: The trajectory replacement module is used to replace the first bullet trajectory corresponding to any bullet trajectory identifier with the target bullet trajectory in response to the bullet trajectory identifier of the target bullet trajectory being the same as any bullet trajectory identifier. The any bullet trajectory identifier is a bullet trajectory identifier displayed in the trajectory identifier display area. The identifier adjustment module is used to perform any of the following: In response to the target bullet screen trajectory having the same bullet screen trajectory identifier as any other bullet screen trajectory identifier, the bullet screen trajectory identifier of the target bullet screen trajectory is adjusted; In response to the target barrage trajectory having the same barrage trajectory identifier as any other barrage trajectory identifier, the barrage trajectory identifier is adjusted.
[0015] In one possible implementation, the device further includes: The trajectory deduplication module is used to perform any of the following: In response to the fact that the target bullet screen trajectory is different from the stored bullet screen trajectory, the step of storing the target bullet screen trajectory is executed; In response to the target bullet screen trajectory being the same as any stored bullet screen trajectory, a second prompt message is displayed, which indicates that the target bullet screen trajectory is the same as any stored bullet screen trajectory.
[0016] In one possible implementation, the device further includes: The playback module is used to perform any of the following: The target video continues to play in the area where the bullet screen trajectory is drawn. The paused screen of the target video is displayed in the area where the bullet screen trajectory is drawn. The paused screen is the screen where the target video is playing when the trajectory determination interface is displayed.
[0017] In one possible implementation, the trajectory display module is configured to perform any of the following: On the area where the bullet screen trajectory is drawn, the coordinate points corresponding to the at least two click positions are connected by a curve or straight line of the target shape to obtain the target bullet screen trajectory; Interpolation is performed between the coordinate points corresponding to the at least two click positions to obtain multiple interpolated coordinate points; the coordinate points corresponding to the at least two click positions and the multiple interpolated coordinate points are connected to obtain the target bullet screen trajectory.
[0018] In one possible implementation, the target bullet trajectory is a non-linear shape.
[0019] In one possible implementation, the trajectory determination interface includes a trajectory identifier display area, and the trajectory display module is configured to determine the second bullet screen trajectory as the target bullet screen trajectory in response to a selection operation in the trajectory identifier display area, wherein the second bullet screen trajectory is the bullet screen trajectory corresponding to the selected bullet screen trajectory identifier.
[0020] In one possible implementation, the device further includes: A bullet screen trajectory display module is used to display the second bullet screen trajectory on the trajectory determination interface.
[0021] In one possible implementation, the trajectory identifier display area displays multiple bullet screen trajectory identifiers and corresponding bullet screen trajectories; or, the trajectory identifier display area displays multiple bullet screen trajectory identifiers; or, the trajectory identifier display area displays multiple bullet screen trajectory identifiers and thumbnails of corresponding bullet screen trajectories.
[0022] In one possible implementation, the bullet screen display module is used to display on the playback interface that the first bullet screen element in the target bullet screen moves along the target bullet screen trajectory, and to display the other bullet screen elements in the target bullet screen in a horizontal arrangement behind the first bullet screen element.
[0023] In one possible implementation, the bullet screen display module is used to display multiple bullet screen elements in the target bullet screen on the playback interface, and to move along the target bullet screen trajectory according to the arrangement order of the multiple bullet screen elements.
[0024] In one possible implementation, the device further includes: The instruction triggering module is used to display a barrage trajectory determination control on the playback interface; in response to a click operation on the barrage trajectory determination control, it performs the operation of displaying the trajectory determination interface.
[0025] In one possible implementation, the interface display module is further configured to display a bullet screen setting interface in response to a bullet screen setting instruction for the target video, the bullet screen setting interface being configured to provide settings for the bullet screen display method; The device further includes: The control display module is used to display the bullet screen trajectory determination control in response to the bullet screen display mode being set to the target display mode, wherein the target display mode refers to displaying the bullet screen according to the bullet screen trajectory.
[0026] In one possible implementation, the control display module is used to switch the bullet screen sending control displayed on the playback interface to the bullet screen trajectory determination control, wherein the bullet screen sending control is used to post bullet screen comments on the playback interface.
[0027] In one possible implementation, the trajectory display module is used to perform any of the following: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to the operation trajectory is displayed along the operation trajectory of the sliding operation; In response to at least two clicks on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to each of the two clicks is displayed based on the position of the clicks.
[0028] On one hand, a computer device is provided, the computer device including one or more processors and one or more memories, the one or more memories storing at least one computer program, the computer program being loaded and executed by the one or more processors to implement the bullet screen display method.
[0029] On one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the bullet screen display method.
[0030] On one hand, a computer program product or computer program is provided, which includes program code stored in a computer-readable storage medium. The processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the above-described bullet screen display method.
[0031] Through the technical solution provided in this application, during the playback of the target video, the user can determine the trajectory of the target bullet comment on the displayed trajectory determination interface. That is, the user can decide the display trajectory of the target bullet comment themselves. After determining the bullet comment trajectory on the trajectory determination interface, the target bullet comment can be displayed according to the target bullet comment trajectory, thereby enriching the display methods of the target bullet comment. Users can express richer information by selecting different bullet comment trajectories, thus meeting the needs of users to communicate with other users through bullet comments and improving the efficiency of human-computer interaction. Attached Figure Description
[0032] To illustrate the technical solutions in the embodiments of this application more clearly, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a schematic diagram of the implementation environment of a bullet screen display method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 3 This is a flowchart of a bullet screen display method provided in an embodiment of this application; Figure 4 This is a flowchart of a bullet screen display method provided in an embodiment of this application; Figure 5This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 6 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 7 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 8 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 9 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 10 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 11 This is a flowchart of a bullet screen display method provided in an embodiment of this application; Figure 12 This is a flowchart of a bullet screen display method provided in an embodiment of this application; Figure 13 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 14 This is a schematic diagram of a playback interface provided in an embodiment of this application; Figure 15 This is a flowchart of a bullet screen display method provided in an embodiment of this application; Figure 16 This is a schematic diagram of the structure of a bullet screen display device provided in an embodiment of this application; Figure 17 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application; Figure 18 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0035] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
[0036] In this application, the term "at least one" means one or more, and "multiple" means two or more, for example, multiple face images means two or more face images.
[0037] Optionally, the computer device provided in this application embodiment can be implemented as a terminal or a server. The implementation environment consisting of a terminal and a server will be described below.
[0038] Figure 1 This is a schematic diagram illustrating the implementation environment of a bullet screen display method provided in an embodiment of this application. See also... Figure 1 The implementation environment may include terminal 110 and server 140.
[0039] Optionally, terminal 110 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart TV, etc., but is not limited to these. Terminal 110 has applications that support bullet screen display installed and running.
[0040] Optionally, server 140 may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Terminal 110 and server 140 may be directly or indirectly connected via wired or wireless communication, and this application does not limit this connection.
[0041] Optionally, terminal 110 refers to one of a plurality of terminals. This application embodiment only uses terminal 110 as an example for illustration.
[0042] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. In this case, other terminals may also be included in the above implementation environment. This application does not limit the number of terminals or the type of devices.
[0043] To provide a clearer explanation of the technical solution provided in this application, the playback interface involved in this application is first described, see [link to relevant documentation]. Figure 2 , Figure 2This is a schematic diagram of a playback interface 21 provided in an embodiment of this application. The playback interface 21 is used to play a target video. The playback interface 21 displays bullet comments 22, which move across the interface as the target video plays. The playback interface 21 also displays a video control area 23, which displays playback progress control controls 231. Users can control the playback of the target video by clicking different playback progress control controls 231. For example, clicking the pause control pauses playback, and clicking the play control resumes playback. The video control area 23 also displays a time display area 232, allowing users to see the current playback progress of the target video. In some embodiments, the current playback progress is displayed using playback time. The video control area 23 also displays bullet comment display control controls 233, which users can click to start or stop displaying bullet comments. In some embodiments, if the user disables the bullet screen display function via the bullet screen display control 233, then no bullet screen will be displayed on the playback interface during the playback of the target video. A bullet screen editing control 234 is also displayed on the video control area 23. This control 234 is used to send user-inputted bullet screen content to the playback interface 21. When the user clicks the bullet screen editing control 234, the terminal can display a bullet screen content input area 235 and a bullet screen sending control 236 on the video control area 23. The user can input bullet screen content in the bullet screen content input area 235, and by clicking the bullet screen sending control 236, the terminal can control the display of the bullet screen carrying that content on the playback interface 21. In some embodiments, an emoticon selection control 237 and a bullet screen setting control 238 are also displayed in the bullet screen content input area 235. The user can add emoticons in the bullet screen content input area 235 by clicking the emoticon selection control 237, and set the display method of the bullet screen by clicking the bullet screen setting control 238. The video control area 23 also displays a video playback progress bar 239, which the user can drag to adjust the playback progress of the target video. It should be noted that, in this embodiment, a click operation can refer to either a click performed by the user with a mouse or a click performed by the user with a finger on the touchscreen; this embodiment does not limit the specific action.
[0044] In addition, the bullet screen display method provided in this application can be applied to multiple bullet screen display scenarios, such as when a user watches a video on a desktop computer or a smartphone or tablet. This application does not limit the application in this regard. The video watched by the user can be either an online video or an offline video; this application does not limit the application in this regard either.
[0045] Optionally, the terminal obtains the target video and its bullet comments using any of the following methods: Method 1: The terminal obtains the target video and at least one corresponding bullet comment from the server. In response to playback of the target video, the terminal establishes a long connection with the server. In response to other users posting new bullet comments during video viewing, the server sends the new bullet comments to the terminal. After receiving the new bullet comments, the terminal displays them on the target video's playback interface based on their posting time in the target video.
[0046] Method 2: If the target video is a video stored on the terminal, in response to a playback operation on the target video, the terminal sends a request to the server to retrieve the bullet comments (or comments). This request may include the video identifier of the target video. Upon receiving the request, the server queries the bullet comment database based on the video identifier of the target video, retrieves at least one bullet comment corresponding to that identifier, and sends this bullet comment to the terminal. After receiving the bullet comment, the terminal displays it on the playback screen of the target video.
[0047] In this application embodiment, the bullet screen display method provided in this application embodiment can be implemented by a terminal as the execution subject, or it can be implemented through the interaction between the terminal and the server. That is, the server sends the target video and the bullet screen of the target video to the terminal, the terminal plays the target video, and displays the bullet screen of the target video during the playback of the target video. This application embodiment does not limit the execution subject of the bullet screen display method.
[0048] Figure 3 This is a flowchart of a bullet screen display method provided in an embodiment of this application. See also... Figure 3 Taking the terminal as the executing entity as an example, the method includes: 301. The terminal displays the trajectory determination interface, which is used to provide settings for the bullet screen trajectory.
[0049] As described above, the target video can be either an online video or an offline video, and this application embodiment does not limit this.
[0050] 302. The terminal displays the target bullet screen trajectory based on the operation on the trajectory determination interface.
[0051] Optionally, users can either draw the target bullet screen trajectory themselves through the trajectory determination interface, or select the target bullet screen trajectory through the trajectory determination interface. This application embodiment does not limit this.
[0052] 303. In response to the command to send a bullet comment to the target bullet comment, the terminal displays the target bullet comment on the playback interface of the target video. The target bullet comment moves according to the target bullet comment trajectory. The target bullet comment is a bullet comment sent by a user who has logged into the target account while watching the target video.
[0053] Optionally, the target bullet trajectory is the movement pattern of the target bullet when it is displayed. For example, if the bullet trajectory of the target bullet is a "Z" shape, then the target bullet will also move in a "Z" shape on the playback interface when it is displayed.
[0054] The technical solution provided in this application allows the terminal to display a trajectory determination interface during the playback of a target video. Users can draw the trajectory of a target bullet comment on this interface, and the terminal can display the user-drawn trajectory. In other words, users can determine the display trajectory of the target bullet comment themselves. After determining the bullet comment trajectory on the trajectory determination interface, the target bullet comment can be displayed using this trajectory, thus enriching the display methods of the target bullet comment. Users can express richer information by selecting different bullet comment trajectories, thereby meeting the needs of users to communicate with each other through bullet comments and improving the efficiency of human-computer interaction.
[0055] The above steps 301-303 are a brief introduction to the bullet screen display method provided by this application. The bullet screen display method provided by the embodiments of this application will be described in more detail below with some examples. Figure 4 This is a flowchart of a bullet screen display method provided in an embodiment of this application. See also... Figure 4 The methods include: 401. The terminal plays the target video.
[0056] In one possible implementation, if the target video is an online video, the terminal displays a video selection interface showing multiple video identifiers. In response to selecting any video identifier in the video selection interface, the terminal retrieves the video indicated by that identifier, which is the target video. The terminal then switches the video selection interface to the target video playback interface and plays the target video on that interface.
[0057] For example, see Figure 5The terminal displays a video selection interface 51, which shows video icons for multiple videos, each displaying a video identifier and a cover image. In response to a click on any video icon 52, the terminal sends a video retrieval request to the server, carrying the video identifier indicated by the clicked video icon 52. The server retrieves the video identifier from the request, queries the video database based on that identifier, retrieves the target video corresponding to that identifier, and sends the target video to the terminal. Upon receiving the target video, the terminal switches the video selection interface 51 to the target video playback interface 53, where it plays the target video.
[0058] In one possible implementation, if the target video is an offline video, then in response to a playback operation on the target video, a playback command for the target video is triggered. In response to this playback command, the terminal loads the target video and plays it through the target video's playback interface.
[0059] For example, see Figure 6 The terminal displays a playback interface 61, which includes a video selection control 62 for selecting offline videos. In response to a click on the video selection control 62, the terminal displays a video selection pop-up window 63 on the playback interface 61, displaying multiple video identifiers 64. In response to selecting any video identifier 64, the terminal loads the target video corresponding to the selected video identifier 64 and plays the target video on the playback interface 61.
[0060] 402. In response to the command to set up bullet comments for the target video, the terminal displays the bullet comment settings interface, which is used to provide settings for the bullet comment display method.
[0061] Among them, the bullet screen display method refers to the way bullet screens are displayed on the terminal during the playback of the target video. For example, the bullet screen display method includes the display color of the bullet screen and the display trajectory of the bullet screen.
[0062] In one possible implementation, a bullet screen setting control is displayed on the playback interface of the target video. In response to clicking the bullet screen setting control, the terminal triggers a bullet screen setting instruction for the target video. In response to this instruction, the terminal displays a bullet screen setting pop-up window, which provides various options for bullet screen display modes. In some embodiments, the bullet screen setting pop-up window provides a bullet screen color setting area, a bullet screen display position setting area, and a bullet screen trajectory setting area. Users can set the color of the bullet screen through the color setting area, such as setting the text in the bullet screen to red or yellow. Users can set the display position of the bullet screen through the display position setting area, such as setting it to be displayed at the top or bottom of the playback interface. Users can set the display trajectory of the bullet screen through the bullet screen trajectory setting area; for example, users can draw the bullet screen trajectory themselves, and the terminal can display the bullet screen according to the user-drawn trajectory when displaying it subsequently.
[0063] For example, see Figure 7 The playback interface 71 of the target video displays a bullet comment setting control 72. In response to a click on the bullet comment setting control 72, the terminal triggers a bullet comment setting instruction for the target video, and displays a bullet comment setting pop-up window 73 on the playback interface. The bullet comment setting pop-up window 73 includes a color setting area 731, a bullet comment display position setting area 732, and a bullet comment trajectory setting area 733. In some embodiments, the color setting area 731 displays multiple color selection controls 7311, each color selection control 7311 corresponding to a color. In response to a click on the color selection control 7311 corresponding to color A, the terminal determines the color of the bullet comment as color A; that is, the color of bullet comments subsequently sent by the user on the playback interface 71 will be set to color A. The bullet comment display position setting area 732 displays multiple display position selection controls 7321, each display position selection control 7321 corresponding to a bullet comment display position. In response to a click on the display position selection control 7321 corresponding to position A, the terminal determines the display position of the bullet comments as position A. That is, bullet comments subsequently sent by the user on the playback interface 71 will be displayed at position A. The bullet comment trajectory setting area 733 displays a trajectory display control 7331. The user can click this trajectory display control 7331 to instruct the terminal to control the bullet comments to be displayed according to the bullet comment trajectory. In other words, the terminal will display bullet comments subsequently sent by the user on the playback interface 71 according to the bullet comment trajectory set by the user.
[0064] Optionally, before displaying the bullet screen settings interface, the terminal can also perform the following steps: In one possible implementation, the terminal determines whether the target application is logged into a target account. If the target application is logged into a target account, the terminal executes the step of displaying the bullet comment settings interface. Here, the target account is the user's account, the target application is the application used to play the target video, and the playback interface is a functional interface of the target application. If the target application is not logged into a target account, the terminal does not display the bullet comment settings interface and continues playing the target video.
[0065] In this implementation, the terminal can determine the account login status of the target application before executing the steps to display the bullet screen settings interface, thereby ensuring traceability when sending bullet screens later.
[0066] 403. In response to the bullet screen display mode being set to the target display mode, the terminal displays a bullet screen trajectory determination control. The target display mode refers to displaying the bullet screen according to the bullet screen trajectory.
[0067] In one possible implementation, in response to a target operation in the bullet comment settings interface, the terminal sets the bullet comment display mode to the target display mode. In response to the bullet comment display mode being set to the target display mode, the terminal switches the bullet comment sending control displayed on the playback interface to a bullet comment trajectory determination control. The bullet comment sending control is used to post bullet comments on the playback interface, and the bullet comment trajectory determination control is used to determine the target bullet comment trajectory.
[0068] After a user clicks the bullet comment sending control, the terminal displays the target bullet comment on the playback interface according to the default display method, which means moving the target bullet comment along a default trajectory. If the default display method controls the bullet comment to move horizontally from the right edge to the left edge of the playback interface, then after the user clicks the bullet comment sending control, the terminal controls the target bullet comment to move horizontally from the right edge to the left edge of the playback interface. In some embodiments, the bullet comment sending control is... Figure 2 The bullet screen sending control 236.
[0069] For example, see Figure 7 Performing a target operation on the bullet comment trajectory setting area in the bullet comment settings pop-up window means that the user clicks the trajectory display control 7331 to control the terminal to set the bullet comment display mode to the target display mode. After setting the bullet comment display mode to the target display mode, see [link to relevant documentation]. Figure 2 The terminal switches the bullet screen sending control 236 displayed on the playback interface 21 to... Figure 8 The bullet screen trajectory determination control 81. That is, when the user clicks... Figure 7 After the trajectory display control 7331 is shown, the terminal will also... Figure 2 The bullet screen sending control 236 displayed in the playback interface 21 is switched to Figure 8The text in the bullet screen trajectory determination control 81 is as follows: If the text "Publish" is displayed on the bullet screen sending control 236 and the text "Draw" is displayed on the bullet screen trajectory determination control "81", then from the user's perspective, after the terminal switches the bullet screen sending control 236 to the bullet screen trajectory determination control 81, the text on the control will change from "Publish" to "Draw".
[0070] 404. The terminal obtains the content of the target bullet comments, which are bullet comments sent by users who have logged into the target account while watching the target video.
[0071] In one possible implementation, the terminal obtains the target bullet screen content through the bullet screen content input area of the playback interface. The target bullet screen includes multiple bullet screen elements, which together constitute the bullet screen content. Each bullet screen element can be a character or an emoji; one character or one emoji constitutes one bullet screen element.
[0072] For example, see Figure 2 After the user clicks the bullet screen editing control 234 displayed on the video control area 23, the terminal displays the bullet screen content input area 235 on the video control area 23. The user can enter bullet screen characters or emoticons in the bullet screen content input area 235. The content entered by the user in the bullet screen content input area 235 is the bullet screen content displayed in the target bullet screen. The terminal obtains the bullet screen content of the target bullet screen from the bullet screen content input area 235.
[0073] 405. The terminal displays a control for determining the trajectory of the bullet comments on the playback interface. In response to the click operation of the control for determining the trajectory of the bullet comments, the terminal displays a trajectory determination interface, which is used to provide settings for the trajectory of the bullet comments.
[0074] In one possible implementation, see Figure 8 In response to a click on the bullet screen trajectory determination control 81 in the playback interface, the terminal triggers a bullet screen trajectory determination command. That is, when the user clicks on the control 81, the terminal triggers a bullet screen trajectory determination command. Figure 8 After entering the bullet screen content in the bullet screen content input area 82 shown, clicking the bullet screen trajectory determination control 81 will trigger the bullet screen trajectory determination command on the terminal.
[0075] In one possible implementation, the trajectory determination interface is a pop-up window on the playback interface of the target video, and the terminal displays the trajectory determination interface on the playback interface. Users can set the trajectory of the target bullet comments through the trajectory determination interface.
[0076] For example, see Figure 8 After the user clicks the bullet screen trajectory confirmation control 81, the terminal triggers the bullet screen trajectory confirmation command. See also Figure 9In response to the command to determine the trajectory of the bullet comments, the terminal displays the trajectory determination interface 92 on the playback interface 91, through which the user can set the trajectory of the target bullet comments.
[0077] It should be noted that after clicking the control for determining the trajectory of the bullet comments on the terminal, the terminal displays the trajectory determination interface for the user to set the trajectory of the bullet comments.
[0078] 406. The terminal displays the target bullet screen trajectory based on the operation on the trajectory determination interface.
[0079] Optionally, the target bullet trajectory is a non-linear shape, such as an "S" shape, a "Z" shape, or other user-defined shapes. This application embodiment does not limit this.
[0080] In one possible implementation, the trajectory determination interface includes a bullet screen trajectory drawing area. In response to a sliding operation on the bullet screen trajectory drawing area, the terminal acquires the operation trajectory corresponding to the sliding operation. Based on the operation trajectory, the terminal determines the target bullet screen trajectory and displays the target bullet screen trajectory.
[0081] In this implementation, users can directly draw the bullet screen trajectory through the bullet screen trajectory drawing area, which is highly efficient in human-computer interaction and can also make the target bullet screen trajectory more personalized, so that the obtained target bullet screen trajectory is more in line with the user's preferences and the user experience is better.
[0082] Optionally, before displaying the target bullet screen trajectory, the terminal can determine and display the target bullet screen trajectory using the methods described in the following three examples.
[0083] Example 1: In response to a continuous swipe operation, the terminal determines the operation trajectory corresponding to the continuous swipe operation as the target bullet screen trajectory. Here, a continuous swipe operation means that the swipe operation is uninterrupted. That is, if the user performs a continuous swipe operation on the bullet screen trajectory drawing area, the terminal can directly determine the operation trajectory corresponding to the continuous swipe operation as the target bullet screen trajectory and display the target bullet screen trajectory on the bullet screen trajectory drawing area. The terminal can then control the target bullet screen to move along this target bullet screen trajectory.
[0084] For example, see Figure 9 The trajectory determination interface 92 includes a bullet screen trajectory drawing area 93. Users can perform continuous sliding operations on the bullet screen trajectory drawing area 93. The terminal obtains the operation trajectory corresponding to the continuous sliding operation, determines the operation trajectory as the target bullet screen trajectory, and displays the operation trajectory.
[0085] Example 2: In response to an interval swipe operation, the terminal connects the multiple operation trajectories corresponding to the interval swipe operation, determines the resulting trajectory as the target bullet screen trajectory, and displays the target bullet screen trajectory on the bullet screen trajectory drawing area. The interval swipe operation includes multiple consecutive swipe operations. The process of the user performing an interval swipe operation on the bullet screen trajectory drawing area is also the process of the user performing multiple consecutive swipe operations on the bullet screen trajectory drawing area. Through this implementation method, the user can divide the drawing of the target bullet screen trajectory into multiple parts, allowing for more precise drawing of the target bullet screen trajectory.
[0086] For example, when a user performs an interval swipe operation on the area where the bullet screen trajectory is drawn, the terminal determines the position points traversed by each consecutive swipe operation. It then connects these position points with line segments, obtaining a line segment corresponding to each consecutive swipe operation. These line segments can be straight lines or curves. The terminal connects multiple line segments and displays the resulting trajectory as the target bullet screen trajectory.
[0087] Example 3: In response to an interval swipe operation, the terminal determines the multiple operation trajectories corresponding to the interval swipe operation as the target bullet screen trajectory and displays the target bullet screen trajectory on the bullet screen trajectory drawing area. That is, when the swipe operation is an interval swipe operation, the terminal can also directly determine the multiple operation trajectories corresponding to the interval swipe operation as the target bullet screen trajectory. Since the multiple operation trajectories are discrete operation trajectories, when the terminal subsequently controls the movement of the target bullet screen with the target bullet screen trajectory, the target bullet screen trajectory can move according to the multiple operation trajectories respectively, thus presenting an effect of the target bullet screen "jumping" on the screen.
[0088] It should be noted that the operations on the trajectory determination interface in the above embodiments can be based on user operations on the terminal screen, such as sliding or clicking on the screen. Alternatively, the operations can be based on external input devices of the terminal, such as mice, touchpads, gamepads, and remote controls. Taking a mouse as an example, the user can perform a target operation on the mouse, such as a sliding or clicking operation. The sliding or clicking operation and its corresponding displayed target bullet screen trajectory are similar to the related operations involved in the above embodiments and will not be repeated here. For example, the target operation is to control the mouse movement, which triggers the mouse to send its position to the terminal. The terminal displays the target bullet screen trajectory based on the change in the mouse position. The change in the mouse position maps to the change in the cursor position on the terminal screen, and controlling the movement of the mouse enables the cursor on the terminal to move accordingly, thereby displaying the movement trajectory indicated by the movement, and realizing the drawing of the bullet screen trajectory.
[0089] Optionally, based on Example 2 above, before the terminal determines the operation trajectory corresponding to the continuous swiping operation as the target bullet screen trajectory, it can also perform any of the following steps: Step A: The terminal determines the length of the operation trajectory corresponding to the continuous swipe operation. If the length of the operation trajectory corresponding to the continuous swipe operation is less than or equal to a first length threshold, the terminal determines the operation trajectory corresponding to the continuous swipe operation as the target bullet screen trajectory. If the length of the operation trajectory corresponding to the continuous swipe operation is greater than the first length threshold, the terminal extracts the target operation trajectory from the operation trajectory corresponding to the continuous swipe operation, and the length of the target operation trajectory is less than or equal to the first length threshold. The terminal determines this target operation trajectory as the target bullet screen trajectory. In some embodiments, extracting the target operation trajectory from the operation trajectory means that the terminal extracts a target operation trajectory of a target length starting from the starting point of the operation trajectory, where the target length is less than or equal to the first length threshold.
[0090] The first length threshold is set by technicians according to the actual situation, and this application embodiment does not limit it.
[0091] In this implementation, the terminal can determine the length of the user's drag operation trajectory. When the length of the operation trajectory is too long, that is, when the length of the operation trajectory is greater than a first length threshold, the terminal extracts the target operation trajectory from the operation trajectory to avoid subsequent bullet screen display errors caused by the operation trajectory being too long.
[0092] Step B: The terminal determines the length of the operation trajectory corresponding to the continuous swipe operation. If the length of the operation trajectory corresponding to the continuous swipe operation is less than or equal to a second length threshold, the terminal displays a first prompt message, which indicates either that the swipe operation should be re-executed or that the operation trajectory is invalid. If the length of the operation trajectory corresponding to the continuous swipe operation is greater than or equal to the second length threshold, the terminal determines the operation trajectory corresponding to the continuous swipe operation as the target bullet screen trajectory.
[0093] The second length threshold is set by technicians according to the actual situation, and this application embodiment does not limit it.
[0094] In this implementation, when the operation trajectory is too short, the terminal can issue a first prompt message. Based on the first prompt message, the user can re-execute the swipe operation to generate the operation trajectory, thereby avoiding the problem of subsequent bullet screen display errors caused by the too short operation trajectory and improving the efficiency of human-computer interaction.
[0095] Step C: The terminal continues to play the target video in the area where the bullet screen trajectory is drawn.
[0096] Through step C, the terminal continues playing the target video within the designated area for drawing the bullet comment trajectory. Users can continue watching the video while performing swipe or click actions within this area, eliminating the need for interface switching and improving human-computer interaction efficiency. Furthermore, by continuing to play the target video within the designated area, users can adjust their swipe actions based on the video frame, ensuring a closer match between the generated bullet comment trajectory and the video frame, thus enhancing human-computer interaction efficiency.
[0097] Step D: The terminal displays the paused screen of the target video in the area where the bullet screen trajectory is drawn.
[0098] The paused screen of the target video is the screen where the target video is playing when the trajectory determination interface is displayed.
[0099] Through step D, the terminal displays the paused screen in the trajectory drawing area, making it easier for users to draw the bullet screen trajectory based on the paused screen, thus improving the efficiency of human-computer interaction.
[0100] Step E: The terminal displays the operation trajectory on the bullet screen trajectory drawing area.
[0101] For example, see Figure 10 The terminal displays the operation trajectory 102 on the bullet screen trajectory drawing area 101.
[0102] Through step E, users can preview the operation trajectory displayed on the bullet screen trajectory drawing area. If the operation trajectory displayed on the bullet screen trajectory drawing area does not meet the actual needs, users can directly re-execute the drag operation through the bullet screen trajectory drawing area, that is, regenerate the operation trajectory. By previewing the trajectory, users can know the display effect of the target bullet screen in advance, thereby improving the efficiency of human-computer interaction.
[0103] Optionally, after the terminal displays the target bullet trajectory, it can also perform the following steps: Step F, the trajectory determination interface, also includes a trajectory identifier display area. In response to the trajectory storage command for the target bullet screen trajectory, the terminal stores the target bullet screen trajectory and obtains the bullet screen trajectory identifier of the target bullet screen trajectory. The terminal displays the bullet screen trajectory identifier of the target bullet screen trajectory in the trajectory identifier display area.
[0104] For example, see Figure 9The trajectory determination interface 92 includes a trajectory identifier display area 94, which includes a trajectory storage control 941. In response to a click on the trajectory storage control 941, the terminal triggers a trajectory storage command for the target bullet screen trajectory. In response to the trajectory storage command, the terminal stores the target bullet screen trajectory and displays a bullet screen trajectory identifier acquisition interface 95 on the trajectory determination interface 92. The user can input the bullet screen trajectory identifier of the target bullet screen trajectory on the bullet screen trajectory identifier acquisition interface 95. In some embodiments, the bullet screen trajectory identifier of the target bullet screen trajectory is the name of the target bullet screen trajectory. An identifier confirmation control 951 is displayed on the bullet screen trajectory identifier acquisition interface 95. In response to a click on the identifier confirmation control 951, the terminal retrieves the bullet screen trajectory identifier 952 of the target bullet screen trajectory from the bullet screen trajectory identifier acquisition interface 95. The terminal displays the bullet screen trajectory identifier 952 of the target bullet screen trajectory in the trajectory identifier display area 94.
[0105] Optionally, before displaying the bullet screen trajectory identifier of the target bullet screen trajectory in the trajectory identifier display area, the terminal may also perform any of the following steps: In one possible implementation, in response to the target bullet screen trajectory being the same as any bullet screen trajectory identifier, the terminal replaces the first bullet screen trajectory corresponding to the bullet screen trajectory identifier with the target bullet screen trajectory, wherein the bullet screen trajectory identifier is the bullet screen trajectory identifier displayed in the trajectory identifier display area.
[0106] For example, if the user sets the identifier for the target bullet screen trajectory to "AABB", and a bullet screen trajectory identifier "AABB" is displayed in the trajectory identifier display area, then the terminal will replace the first bullet screen trajectory corresponding to the bullet screen trajectory identifier "AABB" displayed in the trajectory identifier display area with the target bullet screen trajectory.
[0107] In one possible implementation, in response to the target bullet screen trajectory identifier being the same as any other bullet screen trajectory identifier, the terminal adjusts the target bullet screen trajectory identifier.
[0108] The terminal adjusts the bullet trajectory identifier of the target bullet trajectory, including: the terminal automatically adds characters after the bullet trajectory identifier of the target bullet trajectory, or the terminal redisplays the bullet trajectory identifier acquisition interface, and the user can adjust the bullet trajectory identifier of the target bullet trajectory through the bullet trajectory identifier acquisition interface.
[0109] For example, if the user sets the identifier for the target bullet comment trajectory to "AABB", and a bullet comment trajectory identifier "AABB" is displayed in the trajectory identifier display area, then the terminal will adjust the bullet comment trajectory identifier of the target bullet comment trajectory to "AABB1". Alternatively, see [link to other documentation]. Figure 9The terminal redisplays the bullet screen trajectory identifier acquisition interface 95 on the trajectory determination interface 92. The bullet screen trajectory identifier acquisition interface 95 displays the bullet screen trajectory identifier of the target bullet screen trajectory. The user can adjust the bullet screen trajectory identifier of the target bullet screen trajectory in the bullet screen trajectory identifier acquisition interface 95.
[0110] In one possible implementation, in response to the target bullet screen trajectory identifier being the same as any other bullet screen trajectory identifier, the terminal adjusts the bullet screen trajectory identifier.
[0111] The terminal adjusting the bullet screen trajectory identifier means that the terminal automatically adds characters after the identifier of the bullet screen trajectory identifier.
[0112] For example, if the user sets the identifier for the target bullet screen trajectory to "AABB", and a bullet screen trajectory identifier "AABB" is displayed in the trajectory identifier display area, then the terminal will adjust the bullet screen trajectory identifier to "AABB1".
[0113] Optionally, before storing the target bullet trajectory, the terminal can also perform any of the following steps: In one possible implementation, in response to the fact that the target bullet screen trajectory is different from both the target bullet screen trajectory and the stored bullet screen trajectory, the terminal stores the target bullet screen trajectory.
[0114] In one possible implementation, in response to the target bullet screen trajectory being the same as any stored bullet screen trajectory, the terminal displays a second prompt message, which indicates that the target bullet screen trajectory is the same as the stored bullet screen trajectory.
[0115] In this implementation, the terminal can perform deduplication on the target bullet screen trajectory before storing it, ensuring that there are no duplicate bullet screen trajectories in the stored bullet screen trajectory, thereby reducing the storage space occupied.
[0116] It should be noted that the above descriptions of steps A, B, C, D, E, and F are provided separately as examples. In other possible implementations, the terminal can execute steps A, B, C, D, E, and F according to different situations. The following will combine... Figure 11 Please provide an explanation.
[0117] See Figure 11The user performs a swipe operation on the designated area for drawing the bullet screen trajectory. This swipe operation is the process of drawing the bullet screen trajectory, which is the trajectory corresponding to the swipe operation. The terminal determines whether the length of the bullet screen trajectory is less than or equal to a first length threshold. If the length of the bullet screen trajectory is greater than the first length threshold, the terminal truncates the trajectory, obtaining a partial bullet screen trajectory. If the length of this partial trajectory is less than or equal to the first length threshold, the terminal designates this partial trajectory as the target bullet screen trajectory. If the length of the bullet screen trajectory is less than or equal to the first length threshold, the terminal designates this partial trajectory as the target bullet screen trajectory. In response to a trajectory storage command for the target bullet screen trajectory, the terminal stores the target trajectory and displays a bullet screen trajectory identifier acquisition interface. The bullet screen trajectory identifier of the target bullet screen trajectory is obtained through this interface; the bullet screen trajectory identifier of the target bullet screen trajectory is also the name of the target bullet screen trajectory. The process of obtaining the bullet screen trajectory identifier of the target bullet screen trajectory is also called the naming process of the target bullet screen trajectory. If the target bullet screen trajectory is different from any bullet screen trajectory identifier displayed in the bullet screen trajectory display area, the terminal directly adds the target bullet screen trajectory's bullet screen trajectory identifier to the bullet screen trajectory display area. In some embodiments, the trajectory identifier display area is also referred to as the bullet screen trajectory list. If the target bullet screen trajectory's bullet screen trajectory identifier is the same as any bullet screen trajectory identifier displayed in the bullet screen trajectory display area, the terminal replaces the first bullet screen trajectory corresponding to the bullet screen trajectory identifier with the target bullet screen trajectory. After the replacement, the bullet screen trajectory corresponding to the bullet screen trajectory identifier also becomes the target bullet screen trajectory. Alternatively, the terminal adjusts the bullet screen trajectory identifier of the target bullet screen trajectory so that the adjusted target bullet screen trajectory's bullet screen trajectory identifier is different from the original bullet screen trajectory identifier.
[0118] In one possible implementation, in response to a sliding operation on the bullet screen trajectory drawing area, the target bullet screen trajectory corresponding to the sliding operation trajectory is displayed.
[0119] In this implementation, the terminal can display the operation trajectory corresponding to the swipe operation in real time when the user performs the swipe operation. The user can then view the operation trajectory at any time and make timely adjustments to the operation trajectory, thereby improving the efficiency of human-computer interaction.
[0120] For example, in response to detecting a swipe operation on the trajectory determination interface, multiple sampling points corresponding to the swipe operation are acquired. As the swipe operation continues, the terminal displays the operation trajectory formed by connecting the multiple sampling points on the trajectory determination interface; this operation trajectory is also the target bullet screen trajectory. The target sampling frequency is set by technicians according to the situation, and this application embodiment does not limit it.
[0121] For example, a capacitive sensor is located below the screen of the terminal. This sensor detects contact between a conductive object and the screen. The terminal samples the contact operation using the capacitive sensor at a target sampling frequency. In response to the detection of a swipe operation on the trajectory determination interface by the capacitive sensor, multiple sampling points corresponding to the swipe operation are acquired. The terminal displays the operation trajectory, formed by connecting the multiple collected sampling points, in real time on the trajectory determination interface. When the swipe operation ends, this trajectory, which is the target trajectory drawn by the user through the swipe operation, is displayed. The end of the swipe operation means that the capacitive sensor no longer detects contact between a conductive object and the screen, i.e., the user removes their finger from the screen.
[0122] Optionally, the terminal can smooth the operation trajectory to obtain a smoothed operation trajectory, which is also the target bullet screen trajectory. The smoothing method includes any one of the following: linear corner smoothing, positive axis parabolic weighted average, oblique axis parabolic weighted average, five-point smoothing, and tension spline function interpolation. This application embodiment does not limit the specific method used.
[0123] By smoothing the operation trajectory, the stability of the target bullet screen can be ensured, avoiding jitter in the display of the target bullet screen due to the unevenness of the operation trajectory, and improving the display effect of the target bullet screen.
[0124] In one possible implementation, in response to at least two click operations on the bullet screen trajectory drawing area, the target bullet screen trajectory corresponding to the click operation is displayed based on the operation position of each two click operations.
[0125] In this implementation, users can draw the bullet screen trajectory by clicking, without having to drag for a long time. Clicking also provides users with more time to draw the bullet screen trajectory, making it easier for them to draw more accurate bullet screen trajectories, thereby improving the drawing effect of the bullet screen trajectory.
[0126] For example, in response to a first click on the bullet screen trajectory determination interface, the terminal determines the first operation position corresponding to the first click on the interface. In response to a second click on the same interface, the terminal determines the second operation position corresponding to the second click. The terminal connects the coordinates of the first and second operation positions, displaying the bullet screen trajectories corresponding to the first and second clicks. Subsequently, in response to a third click on the same interface, the terminal determines the third operation position corresponding to the third click. The terminal connects the coordinates of the second and third operation positions, displaying the bullet screen trajectories corresponding to the second and third clicks. This process continues until the target bullet screen trajectory is obtained.
[0127] For example, a capacitive sensor is located below the screen of the terminal, allowing the terminal to detect contact between a conductive object and the screen. The terminal samples the contact operation using the capacitive sensor at a target sampling frequency. In response to a click operation detected by the capacitive sensor on the trajectory determination interface, the terminal acquires the sampling point corresponding to each click operation. The terminal then displays in real-time the operation trajectory formed by connecting the sampling points corresponding to every two click operations on the trajectory determination interface; this operation trajectory is also the target bullet screen trajectory.
[0128] In some embodiments, the terminal can smooth the target bullet screen trajectory, or smooth the operation trajectory formed by connecting the sampling points corresponding to each two click operations. This application embodiment does not limit this.
[0129] By smoothing the process, the stability of the target bullet comments can be ensured, avoiding jitter in the display of the target bullet comments due to the unevenness of the operation trajectory, thus improving the display effect of the target bullet comments.
[0130] In one possible implementation, the trajectory determination interface includes a bullet screen trajectory drawing area. In response to multiple click operations on the bullet screen trajectory drawing area, the terminal determines at least two click positions on the bullet screen trajectory drawing interface. Based on the at least two click positions, the terminal determines the target bullet screen trajectory and displays the target bullet screen trajectory.
[0131] In this implementation, users can draw the bullet screen trajectory by clicking on the trajectory drawing area. That is, users do not need to perform a sliding operation on the trajectory drawing area; they can draw the bullet screen trajectory simply by clicking, which makes the human-computer interaction more efficient.
[0132] The following two examples illustrate the method for determining and displaying the target bullet screen trajectory in the above implementation: Example 1: In response to multiple click operations on the bullet screen trajectory drawing area, the terminal determines at least two click positions corresponding to the click operations on the bullet screen trajectory drawing area, and connects the coordinate points corresponding to the two click positions using a curve or straight line of the target shape to obtain the target bullet screen trajectory. The terminal displays the target bullet screen trajectory on the trajectory drawing area. The curve of the target shape can be an "S" shaped curve or a "Z" shaped curve; this embodiment of the application does not limit this. That is, the terminal can connect the coordinate points corresponding to the two click positions using a curve or straight line of the target shape to display the connected target bullet screen trajectory, thus generating the target bullet screen trajectory with high efficiency.
[0133] Example 2: The terminal interpolates between the coordinates corresponding to at least two click positions to obtain multiple interpolated coordinate points. The terminal connects the coordinates corresponding to the at least two click positions with the multiple interpolated coordinate points to obtain the target bullet screen trajectory. The terminal displays the target bullet screen trajectory on the trajectory drawing area. That is, the terminal can determine multiple interpolated coordinate points between the coordinates corresponding to at least two click positions through interpolation, connect the coordinates corresponding to the at least two click positions with the multiple interpolated coordinate points, and display the connected target bullet screen trajectory. The multiple interpolated coordinate points are equivalent to adding a transition between the coordinates corresponding to the at least two click positions, making the generated target bullet screen trajectory smoother.
[0134] In one possible implementation, the method for determining the trajectory of the target bullet hell further includes: The trajectory determination interface includes a trajectory identifier display area. In response to a selection operation in the trajectory identifier display area, the terminal determines the second bullet screen trajectory as the target bullet screen trajectory. The second bullet screen trajectory is the bullet screen trajectory corresponding to the selected bullet screen trajectory identifier.
[0135] The bullet screen trajectory displayed in the trajectory marker display area is either a preset bullet screen trajectory or the user's operation trajectory in the previous embodiment; this application embodiment does not limit this. For example, for preset bullet screen trajectories, technicians can pre-draw some bullet screen trajectories, such as drawing a bullet screen trajectory with the same shape as "Yangtze River" as preset bullet screen trajectory A, or drawing a bullet screen trajectory with the same shape as "Yellow River" as preset bullet screen trajectory B. Correspondingly, technicians can set the bullet screen trajectory marker of preset bullet screen trajectory A to "Yangtze River" and set the bullet screen trajectory marker of preset bullet screen trajectory B to "Yellow River".
[0136] In this implementation, users do not need to generate the target bullet screen trajectory by dragging; they can directly determine the target bullet screen trajectory from the trajectory marker display area, resulting in high efficiency of human-computer interaction.
[0137] For example, see Figure 9The trajectory determination interface 92 includes a trajectory marker display area 94, which displays multiple bullet screen trajectory markers. These multiple bullet screen trajectory markers are the bullet screen trajectory markers stored on the terminal. In response to a selection operation of any bullet screen trajectory marker 953 among the multiple bullet screen trajectory markers, that is, clicking the bullet screen selection control 954 next to the bullet screen trajectory marker 953, the terminal obtains the second bullet screen trajectory corresponding to the bullet screen trajectory marker 953 and determines the second bullet screen trajectory as the target bullet screen trajectory.
[0138] Optionally, the trajectory marker display area displays multiple bullet screen trajectory markers and their corresponding bullet screen trajectories. Alternatively, the trajectory marker display area displays multiple bullet screen trajectory markers. Or, the trajectory marker display area displays multiple bullet screen trajectory markers and their corresponding bullet screen trajectory thumbnails. If the trajectory marker display area displays multiple bullet screen trajectory markers and their corresponding bullet screen trajectories, the user can use the corresponding bullet screen trajectory as a reference to make a selection, resulting in higher human-computer interaction efficiency. If the trajectory marker display area displays multiple bullet screen trajectory markers, the user can directly select a bullet screen trajectory based on the bullet screen trajectory markers. If the trajectory marker display area displays multiple bullet screen trajectory markers and their corresponding bullet screen trajectory thumbnails, the user can use the corresponding bullet screen trajectory thumbnails as a reference to make a selection.
[0139] Optionally, in response to a selection operation in the trajectory identifier display area, the terminal displays a second bullet screen trajectory on the trajectory determination interface.
[0140] With this implementation method, when users select a bullet screen trajectory through the trajectory marker display area, they can preview the selected bullet screen trajectory on the trajectory determination interface, thereby ensuring that the selected bullet screen trajectory is the actual bullet screen trajectory needed, and improving the efficiency of human-computer interaction.
[0141] For example, see Figure 9 In response to a click on the bullet screen selection control 954 next to the bullet screen trajectory identifier 953, the terminal displays the second bullet screen trajectory corresponding to the bullet screen trajectory identifier 953 in the bullet screen trajectory drawing area 93.
[0142] The following will combine Figure 12 The combination of the two possible implementation methods described above will be explained.
[0143] During video playback, in response to a click on the "Determine Bullet Comment Trajectory" control on the playback interface, the terminal displays a trajectory determination interface. This interface includes a trajectory identifier display area, where the user can select an existing bullet comment trajectory as the target trajectory. The terminal then displays the target bullet comment based on this trajectory. Alternatively, the trajectory determination interface includes a bullet comment trajectory drawing area, where the user can draw the target bullet comment trajectory. After drawing the target trajectory, the terminal deduplicates the trajectory to ensure that no duplicate trajectory exists in the stored database. The user names the target bullet comment trajectory, and its trajectory identifier (name) is displayed in the trajectory identifier display area. The terminal then displays the target bullet comment based on this trajectory.
[0144] It should be noted that the above steps 404-406 are illustrated by the example of the terminal first obtaining the bullet content of the target bullet and then generating the target bullet trajectory. In other possible implementations, the terminal can also generate the target bullet trajectory first and then obtain the bullet content of the target bullet. The embodiments of this application do not limit the order of generating the target bullet trajectory or obtaining the bullet content of the target bullet.
[0145] 407. In response to the command to send a barrage of barrages to the target barrage, the terminal displays the target barrage on the playback interface of the target video, and the target barrage moves according to the trajectory of the target barrage.
[0146] In one possible implementation, in response to a click on the bullet comment posting control, the terminal triggers a bullet comment sending command. In response to the bullet comment sending command, the terminal, on the playback interface, controls the first bullet comment element in the target bullet comment to move along the target bullet comment trajectory, and controls the other bullet comment elements in the target bullet comment to be arranged horizontally behind the first bullet comment element in sequence.
[0147] For example, see Figure 9 In response to a click on the comment posting control 942, the terminal triggers a comment sending command to the target comment. See also Figure 13 If the content of the target bullet screen is "ABCDEF", on the playback interface 131, the terminal uses the first bullet screen element "A" in the target bullet screen as the position control point, controls the first bullet screen element "A" to move along the target bullet screen trajectory 132, and controls the other bullet screen elements "BCDEF" to be arranged horizontally behind the first bullet screen element "A" in sequence. That is, during the display of the target bullet screen, the first bullet screen element "A" is always located on the target bullet screen trajectory 132.
[0148] In one possible implementation, on the playback interface, the terminal controls multiple bullet screen elements in the target bullet screen, and moves them along the target bullet screen trajectory according to the arrangement order of the multiple bullet screen elements.
[0149] For example, see Figure 9 In response to a click on the comment posting control 942, the terminal triggers a comment sending command to the target comment. See also Figure 14 If the content of the target bullet screen is "ABCDEF", on the playback interface 141, the terminal controls the six bullet screen elements "A", "B", "C", "D", "E" and "F" in the target bullet screen to move along the target bullet screen trajectory 142 in sequence, so as to show the effect of the target bullet screen "flowing" along the target bullet screen trajectory.
[0150] Of course, in step 407, when the terminal displays the target bullet screen, it will not display the trajectory of the target bullet screen. That is, from the user's point of view, the target bullet screen will move along the direction of the target bullet screen trajectory on the playback interface, but the user cannot see the trajectory of the target bullet screen. This can avoid the display of the target bullet screen trajectory from obscuring the target video.
[0151] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0152] The following will combine the above possible implementation methods and... Figure 15 The following explains steps 401-407 above.
[0153] When the terminal plays the target video, in response to the command to set up bullet comments for the target video, the terminal determines whether the target application is logged into the target account. If the target application is not logged into the target account, the terminal does not display the bullet comment settings interface, and the user cannot send bullet comments; the terminal continues playing the target video. If the target application is logged into the target account, the terminal displays the bullet comment settings interface, through which the user can enable the bullet comment trajectory function. The user can draw the target bullet comment trajectory through the trajectory determination interface, or select an existing bullet comment trajectory as the target bullet comment trajectory. The terminal controls the target bullet comment to move on the playback interface according to the target bullet comment trajectory.
[0154] The technical solution provided in this application allows the terminal to display a trajectory determination interface during the playback of a target video. Users can draw the trajectory of a target bullet comment on this interface, and the terminal can display the user-drawn trajectory. In other words, users can determine the display trajectory of the target bullet comment themselves. After determining the bullet comment trajectory on the trajectory determination interface, the target bullet comment can be displayed using this trajectory, thus enriching the display methods of the target bullet comment. Users can express richer information by selecting different bullet comment trajectories, thereby meeting the needs of users to communicate with each other through bullet comments and improving the efficiency of human-computer interaction.
[0155] Figure 16 This is a schematic diagram of the structure of a bullet screen display device provided in an embodiment of this application. See also: Figure 16 The device includes: an interface display module 1601, a trajectory display module 1602, and a bullet screen display module 1603.
[0156] The interface display module 1601 is used to display the trajectory determination interface, which is used to provide settings for the trajectory of the bullet comments.
[0157] The trajectory display module 1602 is used to display the trajectory of the target bullet screen based on the operations on the trajectory determination interface.
[0158] The bullet screen display module 1603 is used to respond to the bullet screen sending command for the target bullet screen and display the target bullet screen on the playback interface of the target video. The target bullet screen moves according to the target bullet screen trajectory. The target bullet screen is the bullet screen sent by the user who logged into the target account when watching the target video.
[0159] In one possible implementation, the trajectory determination interface includes a bullet screen trajectory drawing area, and a trajectory display module 1602 is configured to perform any of the following: In response to a swipe operation on the area where the bullet screen trajectory is drawn, the corresponding operation trajectory is obtained. Based on the operation trajectory, the target bullet screen trajectory is determined and displayed.
[0160] In response to multiple clicks on the bullet screen trajectory drawing area, determine at least two click locations on the bullet screen trajectory drawing interface. Based on the at least two click locations, determine the target bullet screen trajectory and display the target bullet screen trajectory.
[0161] In one possible implementation, the trajectory display module 1602 is configured to perform any of the following: In response to the swipe operation being a continuous swipe operation, the operation trajectory corresponding to the continuous swipe operation is determined as the target bullet screen trajectory.
[0162] In response to the swipe operation being an interval swipe operation, the multiple operation trajectories corresponding to the interval swipe operation are connected to obtain the target bullet screen trajectory.
[0163] In response to the swipe operation being an interval swipe operation, the multi-segment operation trajectory corresponding to the interval swipe operation is determined as the target bullet screen trajectory.
[0164] In one possible implementation, the device further includes: The trajectory length determination module is used to perform any of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than or equal to a first length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the target bullet screen trajectory is executed.
[0165] In response to a continuous swipe operation whose length exceeds a first length threshold, a target operation trajectory is extracted from the operation trajectory, wherein the length of the target operation trajectory is less than or equal to the first length threshold. The target operation trajectory is then determined as the target bullet screen trajectory.
[0166] In one possible implementation, the device further includes: The trajectory length determination module is used to perform any of the following: In response to the length of the operation trajectory corresponding to the continuous sliding operation being less than the second length threshold, a first prompt message is displayed. The first prompt message is used to prompt the user to re-execute the sliding operation or that the operation trajectory is invalid.
[0167] In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than or equal to the second length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the target bullet screen trajectory is executed.
[0168] In one possible implementation, the trajectory determination interface further includes a trajectory identifier display area, and the device further includes: The trajectory storage module is used to respond to the trajectory storage command for the target bullet screen trajectory, store the target bullet screen trajectory, and obtain the bullet screen trajectory identifier of the target bullet screen trajectory.
[0169] The trajectory marker display module is used to display the trajectory markers of the target bullet comments on the trajectory marker display area.
[0170] In one possible implementation, the device further includes any of the following modules: The trajectory replacement module is used to replace the first danmaku trajectory corresponding to any danmaku trajectory identifier with the target danmaku trajectory in response to the danmaku trajectory identifier being the same as any danmaku trajectory identifier. Any danmaku trajectory identifier is a danmaku trajectory identifier displayed in the trajectory identifier display area.
[0171] The identifier adjustment module is used to perform any of the following: If the target bullet trajectory identifier is the same as any other bullet trajectory identifier, the bullet trajectory identifier of the target bullet trajectory is adjusted.
[0172] If the target bullet trajectory identifier is the same as any other bullet trajectory identifier, adjust any bullet trajectory identifier.
[0173] In one possible implementation, the device further includes: The trajectory deduplication module is used to perform any of the following: In response to the fact that the target bullet trajectory is different from the stored bullet trajectory, the step of storing the target bullet trajectory is executed.
[0174] In response to the target bullet screen trajectory being the same as any stored bullet screen trajectory, a second prompt message is displayed, which is used to indicate that the target bullet screen trajectory is the same as any stored bullet screen trajectory.
[0175] In one possible implementation, the device further includes: The playback module is used to perform any of the following: Continue playing the target video in the area where the bullet screen trajectory is drawn.
[0176] Display the paused screen of the target video in the bullet screen trajectory drawing area. The paused screen is the screen where the target video is playing when the trajectory determination interface is displayed.
[0177] In one possible implementation, the trajectory display module 1602 is configured to perform any of the following: On the area where the bullet screen trajectory is drawn, the coordinate points corresponding to the at least two click positions are connected by a curve or straight line of the target shape to obtain the target bullet screen trajectory; Interpolation is performed between the coordinate points corresponding to the at least two click positions to obtain multiple interpolated coordinate points; the coordinate points corresponding to the at least two click positions and the multiple interpolated coordinate points are connected to obtain the target bullet screen trajectory.
[0178] In one possible implementation, the target bullet trajectory is a non-linear shape.
[0179] In one possible implementation, the trajectory determination interface includes a trajectory identifier display area and a trajectory display module 1602, which is used to determine the second bullet screen trajectory as the target bullet screen trajectory in response to a selection operation in the trajectory identifier display area. The second bullet screen trajectory is the bullet screen trajectory corresponding to the selected bullet screen trajectory identifier.
[0180] In one possible implementation, the device further includes: The bullet screen trajectory display module 1602 is used to display the second bullet screen trajectory on the trajectory determination interface.
[0181] In one possible implementation, the trajectory marker display area displays multiple bullet screen trajectory markers and their corresponding bullet screen trajectories. Alternatively, the trajectory marker display area displays multiple bullet screen trajectory markers. Or, the trajectory marker display area displays multiple bullet screen trajectory markers and their corresponding bullet screen trajectory thumbnails.
[0182] In one possible implementation, the bullet screen display module 1603 is used to display on the playback interface that the first bullet screen element in the target bullet screen moves along the target bullet screen trajectory, and to display the other bullet screen elements in the target bullet screen in a horizontal arrangement behind the first bullet screen element.
[0183] In one possible implementation, the bullet screen display module 1603 is used to display multiple bullet screen elements in the target bullet screen on the playback interface, and to move along the target bullet screen trajectory according to the arrangement order of the multiple bullet screen elements.
[0184] In one possible implementation, the device further includes: The instruction trigger module is used to display a control for determining the trajectory of the bullet comments on the playback interface. In response to a click on the control, it executes the operation of displaying the trajectory determination interface.
[0185] In one possible implementation, the interface display module 1601 is further configured to display a bullet screen setting interface in response to a bullet screen setting instruction for a target video, the bullet screen setting interface being used to provide settings for the bullet screen display method.
[0186] The device also includes: The control display module is used to display a control for determining the trajectory of the bullet comments in response to the bullet comment display mode being set to the target display mode. The target display mode refers to displaying the bullet comments according to the bullet comment trajectory.
[0187] In one possible implementation, a control display module is used to switch the bullet screen sending control displayed on the playback interface to a bullet screen trajectory determination control, wherein the bullet screen sending control is used to post bullet screen comments on the playback interface.
[0188] In one possible implementation, the trajectory display module 1602 is configured to perform any of the following: In response to a swipe operation on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to the swipe operation trajectory is displayed.
[0189] In response to at least two clicks on the bullet screen trajectory drawing area, the target bullet screen trajectory corresponding to each click is displayed based on the position of the two clicks.
[0190] It should be noted that the bullet screen display device provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the bullet screen display device and the bullet screen display method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0191] The technical solution provided in this application allows the terminal to display a trajectory determination interface during the playback of a target video. Users can draw the trajectory of a target bullet comment on this interface, and the terminal can display the user-drawn trajectory. In other words, users can determine the display trajectory of the target bullet comment themselves. After determining the bullet comment trajectory on the trajectory determination interface, the target bullet comment can be displayed using this trajectory, thus enriching the display methods of the target bullet comment. Users can express richer information by selecting different bullet comment trajectories, thereby meeting the needs of users to communicate with each other through bullet comments and improving the efficiency of human-computer interaction.
[0192] This application provides a computer device for performing the above-described method. This computer device can be implemented as a terminal or a server. The structure of the terminal will be described below: Figure 17 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 1700 can be... Figure 1 The terminal shown. Terminal 1700 includes one or more processors 1701 and one or more memories 1702.
[0193] Processor 1701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1701 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0194] The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1702 are used to store at least one computer program, which is executed by the processor 1701 to implement the bullet screen display method provided in the method embodiments of this application.
[0195] In some embodiments, the terminal 1700 may also optionally include a peripheral device interface 1703 and at least one peripheral device. The processor 1701, memory 1702, and peripheral device interface 1703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1704, a display screen 1705, a camera assembly 1706, an audio circuit 1707, a positioning assembly 1708, and a power supply 1709.
[0196] Peripheral interface 1703 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1701 and memory 1702. In some embodiments, processor 1701, memory 1702 and peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1701, memory 1702 and peripheral interface 1703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0197] The radio frequency (RF) circuit 1704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.
[0198] Display screen 1705 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. When display screen 1705 is a touch display screen, it also has the ability to acquire touch signals on or above its surface. These touch signals can be input as control signals to processor 1701 for processing. In this case, display screen 1705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard.
[0199] The camera assembly 1706 is used to capture images or videos. Optionally, the camera assembly 1706 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal.
[0200] The audio circuit 1707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 1701 for processing, or input to the radio frequency circuit 1704 to realize voice communication.
[0201] The positioning component 1708 is used to locate the current geographic location of the terminal 1700 in order to enable navigation or LBS (Location Based Service).
[0202] Power supply 1709 is used to supply power to the various components in terminal 1700. Power supply 1709 can be AC power, DC power, a disposable battery, or a rechargeable battery.
[0203] In some embodiments, the terminal 1700 further includes one or more sensors 1710. The one or more sensors 1710 include, but are not limited to: an accelerometer 1711, a gyroscope 1712, a pressure sensor 1713, a fingerprint sensor 1714, an optical sensor 1715, and a proximity sensor 1716.
[0204] Accelerometer 1711 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established with terminal 1700.
[0205] The gyroscope sensor 1712 can detect the orientation and rotation angle of the terminal 1700. The gyroscope sensor 1712 can work in conjunction with the accelerometer sensor 1711 to collect the user's 3D movements on the terminal 1700.
[0206] The pressure sensor 1713 can be installed on the side bezel of the terminal 1700 and / or on the lower layer of the display screen 1705. When the pressure sensor 1713 is installed on the side bezel of the terminal 1700, it can detect the user's grip signal on the terminal 1700, and the processor 1701 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1713. When the pressure sensor 1713 is installed on the lower layer of the display screen 1705, the processor 1701 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1705.
[0207] The fingerprint sensor 1714 is used to collect the user's fingerprint. The processor 1701 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1714, or the fingerprint sensor 1714 identifies the user's identity based on the collected fingerprint.
[0208] An optical sensor 1715 is used to collect ambient light intensity. In one embodiment, a processor 1701 can control the display brightness of a display screen 1705 based on the ambient light intensity collected by the optical sensor 1715.
[0209] The proximity sensor 1716 is used to detect the distance between the user and the front of the terminal 1700.
[0210] Those skilled in the art will understand that Figure 17 The structure shown does not constitute a limitation on terminal 1700 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0211] The aforementioned computer equipment can also be implemented as a server. The structure of a server is described below: Figure 18 This is a schematic diagram of the structure of a server provided in an embodiment of this application. The server 1800 can be... Figure 1 The server 1800 shown is subject to significant variations in configuration and performance. It may include one or more Central Processing Units (CPUs) 1801 and one or more memories 1802, wherein the one or more memories 1802 store at least one computer program, which is loaded and executed by the one or more processors 1801 to implement the methods provided in the various method embodiments described above. Of course, the server 1800 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input / output purposes. The server 1800 may also include other components for implementing device functions, which will not be elaborated upon here.
[0212] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to perform the bullet screen display method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0213] In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code stored in a computer-readable storage medium. The processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the above-described bullet screen display method.
[0214] In some embodiments, the computer program involved in the present application may be deployed and executed on a computer device, or on multiple computer devices located in one location, or on multiple computer devices distributed in multiple locations and interconnected through a communication network.
[0215] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0216] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for displaying bullet comments, characterized in that, The method includes: In response to the triggering operation of the bullet screen trajectory determination control displayed on the playback interface of the target video, a trajectory determination interface for setting the bullet screen trajectory is displayed. The trajectory determination interface includes a bullet screen trajectory drawing area and a trajectory identifier display area. The trajectory identifier display area includes a trajectory storage control and a bullet screen posting control. In response to a drawing operation on the bullet screen trajectory drawing area, a bullet screen trajectory is determined and displayed on the bullet screen trajectory drawing area; After the bullet screen trajectory is drawn, in response to the trajectory storage command triggered by the trajectory storage control, if the bullet screen trajectory is different from all previously stored bullet screen trajectories, then the bullet screen trajectory is stored; if the bullet screen trajectory is the same as any previously stored bullet screen trajectory, then the corresponding prompt message is displayed; and, After the bullet screen trajectory is drawn, in response to the trajectory storage instruction, a bullet screen trajectory identifier acquisition interface is displayed on the trajectory determination interface; after receiving a confirmation operation on the bullet screen trajectory identifier corresponding to the bullet screen trajectory entered on the bullet screen trajectory identifier acquisition interface, in response to the bullet screen trajectory identifier corresponding to the bullet screen trajectory being different from any bullet screen trajectory identifier displayed in the trajectory identifier display area, the bullet screen trajectory identifier corresponding to the bullet screen trajectory is directly added to the trajectory identifier display area; in response to the bullet screen trajectory identifier corresponding to the bullet screen trajectory being the same as any bullet screen trajectory identifier displayed in the trajectory identifier display area, after performing any of the following, the bullet screen trajectory identifier of the bullet screen trajectory is displayed in the trajectory identifier display area: replacing the first bullet screen trajectory corresponding to any bullet screen trajectory identifier with the bullet screen trajectory, adjusting the bullet screen trajectory identifier corresponding to the bullet screen trajectory, adjusting any bullet screen trajectory identifier; adjusting the bullet screen trajectory identifier includes adding characters after the bullet screen trajectory identifier, and adjusting the bullet screen trajectory identifier corresponding to the bullet screen trajectory also includes receiving the re-entered bullet screen trajectory identifier on the re-displayed bullet screen trajectory identifier acquisition interface; The method further includes: In response to a selection operation on the trajectory marker display area displaying multiple bullet screen trajectory markers, the second bullet screen trajectory corresponding to the selected bullet screen trajectory marker is displayed on the trajectory determination interface, and the second bullet screen trajectory is determined as the target bullet screen trajectory. In response to the command to send a bullet comment to the target bullet comment triggered by the bullet comment posting control, the target bullet comment is displayed on the playback interface, moving along the trajectory of the target bullet comment. The target bullet comment is a bullet comment sent by a user who has logged into the target account while watching the target video.
2. The method according to claim 1, characterized in that, The determination of the bullet screen trajectory in response to a drawing operation on the bullet screen trajectory drawing area includes any of the following: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the operation trajectory corresponding to the sliding operation is obtained; based on the operation trajectory, the bullet screen trajectory is determined. In response to multiple click operations on the bullet screen trajectory drawing area, determine at least two click positions of the click operations on the trajectory determination interface; The trajectory of the bullet screen is determined based on the at least two click locations.
3. The method according to claim 2, characterized in that, In response to a sliding operation on the area where the bullet screen trajectory is drawn, the operation trajectory corresponding to the sliding operation is obtained; based on the operation trajectory, the bullet screen trajectory is determined to include any of the following: In response to the fact that the sliding operation is a continuous sliding operation, the operation trajectory corresponding to the continuous sliding operation is determined as the bullet screen trajectory; In response to the swiping operation being an interval swiping operation, the multiple operation trajectories corresponding to the interval swiping operation are connected to obtain the bullet screen trajectory; In response to the sliding operation being an interval sliding operation, the multiple operation trajectories corresponding to the interval sliding operation are determined as the bullet screen trajectory.
4. The method according to claim 3, characterized in that, Before determining the operation trajectory corresponding to the continuous sliding operation as the bullet screen trajectory, the method further includes any one of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than or equal to a first length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the barrage trajectory is executed. In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than the first length threshold, a target operation trajectory is extracted from the operation trajectory, the length of the target operation trajectory being less than or equal to the first length threshold; the target operation trajectory is determined as the barrage trajectory.
5. The method according to claim 3, characterized in that, Before determining the operation trajectory corresponding to the continuous sliding operation as the bullet screen trajectory, the method further includes any one of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than the second length threshold, a first prompt message is displayed. The first prompt message is used to prompt that the sliding operation be re-executed or that the operation trajectory is invalid. In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than or equal to the second length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the barrage trajectory is executed.
6. The method according to claim 2, characterized in that, Before displaying the bullet screen trajectory on the bullet screen trajectory drawing area, the method further includes any one of the following: On the area where the bullet screen trajectory is drawn, the coordinate points corresponding to the at least two click positions are connected by a curve or straight line of the target shape to obtain the bullet screen trajectory; Interpolation is performed between the coordinate points corresponding to the at least two click positions to obtain multiple interpolated coordinate points; The trajectory of the bullet screen is obtained by connecting the coordinates of the at least two clicked positions and the plurality of interpolated coordinates.
7. The method according to claim 6, characterized in that, The trajectory of the bullet screen is non-linear.
8. The method according to claim 1, characterized in that, The trajectory identifier display area displays multiple bullet screen trajectory identifiers and their corresponding bullet screen trajectories; or, the trajectory identifier display area displays multiple bullet screen trajectory identifiers and their corresponding bullet screen trajectories in thumbnail format.
9. The method according to claim 1, characterized in that, The step of displaying the target bullet screen moving according to its trajectory on the playback interface includes: On the playback interface, the first bullet screen element in the target bullet screen moves along the target bullet screen trajectory, and the other bullet screen elements in the target bullet screen are arranged horizontally and displayed behind the first bullet screen element.
10. The method according to claim 1, characterized in that, The step of displaying the target bullet screen moving according to its trajectory on the playback interface includes: On the playback interface, multiple bullet screen elements from the target bullet screen are displayed, and each element moves along the trajectory of the target bullet screen according to its arrangement.
11. The method according to claim 1, characterized in that, Before displaying the trajectory determination interface for setting the bullet screen trajectory, the method further includes: In response to a click operation on the control for determining the trajectory of the bullet comments, a command for determining the trajectory of the bullet comments is triggered; In response to the command to determine the trajectory of the bullet comments, the operation of displaying the trajectory determination interface for setting the trajectory of the bullet comments is performed.
12. The method according to claim 11, characterized in that, Before triggering the bullet screen trajectory determination instruction in response to a click operation on the bullet screen trajectory determination control, the method further includes: In response to a command to set up bullet comments for the target video, a bullet comment setting interface is displayed, which provides settings for the bullet comment display method. In response to the bullet screen display mode being set to the target display mode, the bullet screen trajectory determination control is displayed, wherein the target display mode refers to displaying the bullet screen according to the bullet screen trajectory.
13. The method according to claim 12, characterized in that, The control for displaying the trajectory determination of the bullet screen includes: The bullet screen sending control displayed on the playback interface is switched to the bullet screen trajectory determination control, which is used to post bullet screen comments on the playback interface.
14. The method according to claim 2, characterized in that, Displaying the bullet screen trajectory on the bullet screen trajectory drawing area includes any of the following: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to the operation trajectory is displayed along the operation trajectory of the sliding operation; In response to at least two clicks on the area where the bullet screen trajectory is drawn, the target bullet screen trajectory corresponding to each of the two clicks is displayed based on the position of the clicks.
15. The method according to claim 2, characterized in that, The method further includes any of the following: The target video continues to play in the area where the bullet screen trajectory is drawn. The paused screen of the target video is displayed in the area where the bullet screen trajectory is drawn. The paused screen is the screen where the target video is playing when the trajectory determination interface is displayed.
16. A bullet screen display device, characterized in that, The device includes: The interface display module is used to respond to the trigger operation of the bullet screen trajectory determination control displayed on the playback interface of the target video, and to display the trajectory determination interface for setting the bullet screen trajectory. The trajectory determination interface includes a bullet screen trajectory drawing area and a trajectory identifier display area. The trajectory identifier display area includes a trajectory storage control and a bullet screen posting control. A trajectory display module is used to determine the bullet screen trajectory in response to a drawing operation on the bullet screen trajectory drawing area, and to display the bullet screen trajectory on the bullet screen trajectory drawing area; The trajectory storage module is used to, after drawing the bullet screen trajectory, respond to the trajectory storage instruction triggered by the trajectory storage control to store the bullet screen trajectory and obtain the bullet screen trajectory identifier of the bullet screen trajectory; The trajectory deduplication module is used to perform any of the following: if the bullet screen trajectory is different from all the stored bullet screen trajectories, then store the bullet screen trajectory; if the bullet screen trajectory is the same as any of the stored bullet screen trajectories, then display the corresponding prompt information. The trajectory storage module is also used to, after drawing the bullet screen trajectory, respond to the trajectory storage instruction and display the bullet screen trajectory identifier acquisition interface on the trajectory determination interface; The trajectory identifier display module is used to receive a confirmation operation on the bullet trajectory identifier corresponding to the bullet trajectory entered on the bullet trajectory identifier acquisition interface, and in response to the fact that the bullet trajectory identifier corresponding to the bullet trajectory is different from any bullet trajectory identifier displayed in the trajectory identifier display area, directly add the bullet trajectory identifier corresponding to the bullet trajectory to the trajectory identifier display area. The device further includes any of the following modules: The trajectory replacement module is used to replace the first bullet trajectory corresponding to any bullet trajectory display area with the bullet trajectory in response to the bullet trajectory identifier corresponding to the bullet trajectory being the same as any bullet trajectory identifier displayed in the trajectory identifier display area; The identifier adjustment module is configured to perform any of the following: in response to the barrage trajectory identifier corresponding to the barrage trajectory being the same as any barrage trajectory identifier displayed in the trajectory identifier display area, adjust the barrage trajectory identifier corresponding to the barrage trajectory; in response to the barrage trajectory identifier corresponding to the barrage trajectory being the same as any barrage trajectory identifier displayed in the trajectory identifier display area, adjust any barrage trajectory identifier. Adjusting the bullet screen trajectory identifier includes adding characters after the bullet screen trajectory identifier. Adjusting the bullet screen trajectory identifier corresponding to the bullet screen trajectory also includes receiving the re-entered bullet screen trajectory identifier on the redisplayed bullet screen trajectory identifier acquisition interface. The device further includes: A bullet screen trajectory display module is used to respond to a selection operation on the trajectory identifier display area displaying multiple bullet screen trajectory identifiers, and to display the second bullet screen trajectory corresponding to the selected bullet screen trajectory identifier on the trajectory determination interface; The trajectory display module is also used to determine the second bullet screen trajectory as the target bullet screen trajectory; The bullet screen display module is used to respond to the bullet screen sending command triggered by the bullet screen posting control and display the target bullet screen moving according to the target bullet screen trajectory on the playback interface. The target bullet screen is the bullet screen sent by the user who logged into the target account when watching the target video.
17. The apparatus according to claim 16, characterized in that, The trajectory display module is used to perform any of the following: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the operation trajectory corresponding to the sliding operation is obtained; based on the operation trajectory, the bullet screen trajectory is determined. In response to multiple click operations on the bullet screen trajectory drawing area, determine at least two click positions of the click operations on the trajectory determination interface; The trajectory of the bullet screen is determined based on the at least two click locations.
18. The apparatus according to claim 17, characterized in that, The trajectory display module is used to perform any of the following: In response to the fact that the sliding operation is a continuous sliding operation, the operation trajectory corresponding to the continuous sliding operation is determined as the bullet screen trajectory; In response to the swiping operation being an interval swiping operation, the multiple operation trajectories corresponding to the interval swiping operation are connected to obtain the bullet screen trajectory; In response to the sliding operation being an interval sliding operation, the multiple operation trajectories corresponding to the interval sliding operation are determined as the bullet screen trajectory.
19. The apparatus according to claim 18, characterized in that, The device further includes a trajectory length determination module, configured to perform any of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than or equal to a first length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the barrage trajectory is executed. In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than the first length threshold, a target operation trajectory is extracted from the operation trajectory, the length of the target operation trajectory being less than or equal to the first length threshold; the target operation trajectory is determined as the barrage trajectory.
20. The apparatus according to claim 18, characterized in that, The device further includes a trajectory length determination module, configured to perform any of the following: In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is less than the second length threshold, a first prompt message is displayed. The first prompt message is used to prompt that the sliding operation be re-executed or that the operation trajectory is invalid. In response to the fact that the length of the operation trajectory corresponding to the continuous sliding operation is greater than or equal to the second length threshold, the step of determining the operation trajectory corresponding to the continuous sliding operation as the barrage trajectory is executed.
21. The apparatus according to claim 17, characterized in that, The trajectory display module is used to perform any of the following: On the area where the bullet screen trajectory is drawn, the coordinate points corresponding to the at least two click positions are connected by a curve or straight line of the target shape to obtain the bullet screen trajectory; Interpolation is performed between the coordinate points corresponding to the at least two click positions to obtain multiple interpolated coordinate points; The trajectory of the bullet screen is obtained by connecting the coordinates of the at least two clicked positions and the plurality of interpolated coordinates.
22. The apparatus according to claim 21, characterized in that, The trajectory of the bullet screen is non-linear.
23. The apparatus according to claim 16, characterized in that, The trajectory identifier display area displays multiple bullet screen trajectory identifiers and their corresponding bullet screen trajectories; or, the trajectory identifier display area displays multiple bullet screen trajectory identifiers and their corresponding bullet screen trajectories in thumbnail format.
24. The apparatus according to claim 16, characterized in that, The bullet screen display module is used for: On the playback interface, the first bullet screen element in the target bullet screen moves along the target bullet screen trajectory, and the other bullet screen elements in the target bullet screen are arranged horizontally and displayed behind the first bullet screen element.
25. The apparatus according to claim 16, characterized in that, The bullet screen display module is used for: On the playback interface, multiple bullet screen elements from the target bullet screen are displayed, and each element moves along the trajectory of the target bullet screen according to its arrangement.
26. The apparatus according to claim 16, characterized in that, The device further includes an instruction triggering module, used for: In response to a click operation on the control for determining the trajectory of the bullet comments, a command for determining the trajectory of the bullet comments is triggered; In response to the command to determine the trajectory of the bullet comments, the operation of displaying the trajectory determination interface for setting the trajectory of the bullet comments is performed.
27. The apparatus according to claim 26, characterized in that, The interface display module is also used to respond to the barrage setting command for the target video and display the barrage setting interface, which is used to provide settings for the barrage display method; The control display module is used to display the bullet screen trajectory determination control in response to the bullet screen display mode being set to the target display mode, wherein the target display mode refers to displaying the bullet screen according to the bullet screen trajectory.
28. The apparatus according to claim 27, characterized in that, The control display module is used to switch the bullet screen sending control displayed on the playback interface to the bullet screen trajectory determination control, and the bullet screen sending control is used to post bullet screens on the playback interface.
29. The apparatus according to claim 17, characterized in that, The trajectory display module is used to perform any of the following: In response to a sliding operation on the area where the bullet screen trajectory is drawn, the bullet screen trajectory corresponding to the sliding operation trajectory is displayed. In response to at least two clicks on the area where the bullet screen trajectory is drawn, the bullet screen trajectory corresponding to each of the two clicks is displayed based on the position of the clicks.
30. The apparatus according to claim 17, characterized in that, The device further includes a playback module for performing any of the following: The target video continues to play in the area where the bullet screen trajectory is drawn. The paused screen of the target video is displayed in the area where the bullet screen trajectory is drawn. The paused screen is the screen where the target video is playing when the trajectory determination interface is displayed.
31. A computer device, characterized in that, The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the bullet screen display method as described in any one of claims 1 to 15.
32. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the bullet screen display method as described in any one of claims 1 to 15.
33. A computer program product comprising program code stored in a computer-readable storage medium, wherein a processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the bullet screen display method as described in any one of claims 1 to 15.
