Video playing method, video generation method and related devices
By playing videos recorded by interactive video templates in the short video APP, users can interact by eliminating the operation of virtual elements, solving the problem of monotonous user interaction methods and improving the viewing experience.
Patent Information
- Application Number
- CN202111027273.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-02
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2041-09-02
AI Technical Summary
The way users interact with videos in existing short video apps is too monotonous and lacks fun, resulting in a decrease in user viewing experience.
By responding to the user's interactive participation operation, videos recorded based on the interactive video template are played. The video contains virtual elements that can be eliminated. The user can perform effective cancellation operations in the cancellation area through the touch position to display the corresponding cancellation effect.
It enhances the user's sense of interaction and participation with the video, and improves the fun and experience of watching videos.
Smart Images

Figure CN115734017B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technologies, and in particular, to a video playing method, a video generating method, and related devices. Background Art
[0002] In recent years, various short video applications (APPs) have emerged continuously and are liked by more and more users. Users can produce and publish videos through these short video APPs, and can also watch videos published by other users through these short video APPs.
[0003] For users who watch videos through short video APPs, they can usually only perform operations such as liking, commenting, and sharing on the videos they watch. These operation methods are often too monotonous and lack of interest for users, making it difficult for users to generate a sense of participation during the video watching process, which also reduces the video watching experience of users to a certain extent. Summary of the Invention
[0004] Embodiments of this application provide a video playing method, a video generating method, and related devices, which can enable users to generate a strong sense of participation during the video watching process and improve the video watching experience of users.
[0005] In view of this, a first aspect of this application provides a video playing method, and the method includes:
[0006] In response to an interactive participation operation triggered for a target video, play the target video including interactive elements; the target video is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements, and the interactive elements are virtual elements configured with eliminable events;
[0007] During the process of playing the target video, in response to an effective elimination operation triggered for the interactive elements displayed in the target video, display the elimination effect corresponding to the interactive elements; the effective elimination operation means that the touch position on the playing interface of the target video is within the elimination area corresponding to the interactive elements.
[0008] A second aspect of this application provides a video generating method, and the method includes:
[0009] Obtain a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements;
[0010] For each of the interactive elements in the target video, configure a corresponding eliminable event; the eliminable event is used to play the elimination effect corresponding to the interactive element in response to a valid elimination operation triggered for the interactive element in the target video; the valid elimination operation means that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0011] The third aspect of the present application provides a video playback device, and the device includes:
[0012] A video playback module, configured to play the target video including interactive elements in response to an interactive participation operation triggered for the target video; the target video is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements, and the interactive elements are virtual elements configured with eliminable events;
[0013] A video interaction module, configured to display the elimination effect corresponding to the interactive element in response to a valid elimination operation triggered for the interactive element displayed in the target video during the playback of the target video; the valid elimination operation means that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0014] The fourth aspect of the present application provides a video generation device, and the device includes:
[0015] A video acquisition module, configured to acquire a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements;
[0016] An event configuration module, configured to configure a corresponding eliminable event for each of the interactive elements in the target video; the eliminable event is used to play the elimination effect corresponding to the interactive element in response to a valid elimination operation triggered for the interactive element in the target video; the valid elimination operation means that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0017] The fifth aspect of the present application provides a device, and the device includes a processor and a memory:
[0018] The memory is used to store a computer program;
[0019] The processor is configured to execute the steps of the video playback method described in the first aspect above or the steps of the video generation method described in the second aspect above according to the computer program.
[0020] The sixth aspect of this application provides a computer-readable storage medium for storing a computer program, which is used to execute the steps of the video playback method described in the first aspect above, or the steps of the video generation method described in the second aspect above.
[0021] The seventh aspect of this application provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of the video playback method described in the first aspect above, or the steps of the video generation method described in the second aspect above.
[0022] It can be seen from the above technical solutions that the embodiments of this application have the following advantages:
[0023] The embodiments of this application provide a video playback method, which proposes a new video interaction form for video viewing users. In this video interaction form, video viewing users can interact with the video by eliminating the interaction elements in the video. Specifically, in the video playback method provided by the embodiments of this application, in response to an interaction participation operation triggered for a target video, the target video including interaction elements is played; the target video here is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the style of the interaction elements in the video and the trigger actions corresponding to the interaction elements. The interaction elements are virtual elements configured with eliminable events; during the playback of the target video, in response to an effective elimination operation triggered for the interaction elements displayed in the target video, the elimination effect corresponding to the interaction elements is displayed; the effective elimination operation here refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interaction elements. In this way, when a video viewing user watches a target video recorded based on an interactive video template, the user can trigger an elimination operation for the interaction elements displayed in the target video to interact with the target video; in this way, the user can generate a stronger sense of participation during the video viewing process, increase the fun of the video viewing process, and improve the user's video viewing experience. Description of the Drawings
[0024] Figure 1 It is a schematic diagram of the application scenario of the video playback method and the video generation method provided by the embodiments of this application;
[0025] Figure 2 It is a schematic flowchart of the video playback method provided by the embodiments of this application;
[0026] Figure 3Schematic diagram of a playback interface of a target video provided by an embodiment of the present application;
[0027] Figure 4 Schematic diagram of another playback interface of a target video provided by an embodiment of the present application;
[0028] Figure 5 Schematic diagram of yet another playback interface of a target video provided by an embodiment of the present application;
[0029] Figure 6 Schematic diagram of a recording interface of an exemplary target video provided by an embodiment of the present application;
[0030] Figure 7 Schematic diagram of the implementation of an interactive video template provided by an embodiment of the present application;
[0031] Figure 8 Schematic diagram of a playback interface of an exemplary target video provided by an embodiment of the present application;
[0032] Figure 9 Schematic diagram of an exemplary result announcement interface provided by an embodiment of the present application;
[0033] Figure 10 Schematic flowchart of a video generation method provided by an embodiment of the present application;
[0034] Figure 11 Schematic diagram of the overall implementation architecture of a video playback method and a video generation method provided by an embodiment of the present application;
[0035] Figure 12 Schematic diagram of the composition of an elimination interactive video provided by an embodiment of the present application;
[0036] Figure 13 Schematic flowchart of the playback process of an elimination interactive video provided by an embodiment of the present application;
[0037] Figure 14 Schematic diagram of the structure of a video playback device provided by an embodiment of the present application;
[0038] Figure 15 Schematic diagram of the structure of a video generation device provided by an embodiment of the present application;
[0039] Figure 16 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application;
[0040] Figure 17 Schematic diagram of the structure of a server provided by an embodiment of the present application. Detailed implementation manners
[0041] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of this application.
[0042] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0043] To improve the user's video viewing experience and enhance the sense of participation when the user watches a video, the embodiments of this application provide a video playback method and a video generation method.
[0044] In this video playback method, the terminal device can play a target video including interactive elements in response to an interactive participation operation triggered by the user for the target video; the target video here is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements. The interactive element is a virtual element configured with an eliminable event; during the playback of the target video, the terminal device can also display the elimination effect corresponding to the interactive element in response to an effective elimination operation triggered by the user for the interactive element displayed in the target video; the effective elimination operation here refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0045] In this video generation method, the server can obtain a target video recorded by a user based on an interactive video template, where the interactive video template is used to indicate the display style of interactive elements in the video and the trigger actions corresponding to the interactive elements; furthermore, for each interactive element in the target video, a corresponding eliminable event is configured, where the eliminable event is used to respond to a valid elimination operation triggered for the interactive element in the target video, play the elimination effect corresponding to the interactive element, and the valid elimination operation refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0046] The above video playback method and video generation method jointly propose a new video interaction form for video viewing users. In this video interaction form, when a video viewing user watches a target video recorded based on an interactive video template, the user can trigger an elimination operation on the interactive elements displayed in the target video to achieve interaction with the target video; in this way, the user can generate a stronger sense of participation during the video viewing process, increase the fun of the video viewing process, and improve the user's video viewing experience.
[0047] It should be understood that the video playback method provided in the embodiments of this application can be applied to a terminal device that supports the operation of a video playback APP. The terminal device can specifically be a smart phone, a tablet computer, a computer, a personal digital assistant (Personal Digital Assistant, PDA), a vehicle-mounted terminal, etc. This application does not specifically limit the terminal device applicable to the video playback method. The video generation method provided in the embodiments of this application can be applied to the background server of the video playback APP. The server can specifically be an independent server, a cluster server, or a cloud server. This application does not specifically limit the server applicable to the video generation method.
[0048] To facilitate the understanding of the video playback method and video generation method provided in the embodiments of this application, the application scenarios of the video playback method and video generation method provided in the embodiments of this application are introduced exemplarily below.
[0049] See Figure 1 , Figure 1 which is a schematic diagram of the application scenario of the video playback method and video generation method provided in the embodiments of this application. As Figure 1As shown in the figure, this application scenario includes a terminal device 110, a terminal device 120, and a server 130. Both the terminal device 110 and the terminal device 120 can communicate with the server 130 through a network. Among them, short video APPs are running on both the terminal device 110 and the terminal device 120, and both the terminal device 110 and the terminal device 120 can be used to execute the video playing method provided in the embodiments of the present application. The server 130 is the background server of the short video APP, and it can be used to execute the video generation method provided in the embodiments of the present application.
[0050] In the embodiments of the present application, the short video APP can provide an interactive video template for video production users, and support video production users to record a target video that can interact with video viewing users based on the interactive video template. Specifically, the interactive video template can indicate the display style of the interactive elements that can appear in the video, as well as the trigger actions corresponding to the interactive elements. When the user records a video based on the interactive video template and makes the trigger actions indicated by the interactive video template, the interactive elements indicated by the interactive video template can be correspondingly triggered to be added to the recorded video, and the server 130 can configure corresponding eliminable events for the interactive elements in the recorded video.
[0051] Taking the user of the terminal device 110 as a video production user who records a target video through the short video APP, and the user of the terminal device 120 as a video viewing user who views the target video through the short video APP as an example, the generation process and playing process of the target video will be introduced exemplarily. It should be understood that in actual applications, the users of both the terminal device 110 and the terminal device 120 can be both video production users and video viewing users.
[0052] Specifically, when the user of the terminal device 110 records a target video through the short video APP, the user can select an interactive video template from several candidate interactive video templates provided by the short video APP as the interactive video template based on which the target video is recorded. When the user records the target video based on the interactive video template, the user can trigger the display of the interactive elements indicated by the interactive video template in the recorded target video by making the trigger actions indicated by the interactive video template. For example, assuming that the trigger action indicated by the interactive video template is pouting the lips and the indicated interactive element is bubbles, when the user records the target video based on the interactive video template, the user can trigger the display of bubbles in the recorded target video by making the action of pouting the lips.
[0053] After the user completes the recording of the target video through the above operations, the target video can be published through the short video APP, and the published target video can be viewed by other users of the short video APP. Specifically, after the terminal device 110 detects that the user triggers a publishing operation for the recorded target video, the target video can be transmitted to the server 130 through the network; after the server 130 receives the target video, corresponding eliminable events can be configured for each interactive element included in the target video, and the eliminable event is used to respond to an effective elimination operation triggered for the interactive element in the target video and display the elimination effect corresponding to the interactive element; furthermore, the server 130 can store the target video in the video library and recommend the target video to other users on the short video APP, for example, push the target video to the user of the terminal device 120.
[0054] After the terminal device 120 receives the target video, it can first prompt the user that the target video is an interactive video, and the user can interact with the target video by triggering an interactive participation operation. If the terminal device 120 detects that the user triggers an interactive participation operation for the target video, the target video including the interactive element is played accordingly; during the playback of the target video, if the terminal device 120 detects that the user triggers an effective elimination operation for the interactive element displayed in the target video, the elimination effect corresponding to the interactive element is displayed accordingly, and the effective elimination operation here means that the touch position of the user on the playback interface of the target video is within the elimination area corresponding to the interactive element. Still taking the interactive element in the target video as a bubble as an example, the user can trigger an elimination operation for the bubble by clicking on the bubble displayed in the target video. If the terminal device detects that the click position of the user on the playback interface of the target video is within the elimination area of a certain bubble, it means that the user triggers an effective elimination operation for the bubble, and the elimination effect of the bubble bursting can be displayed accordingly.
[0055] If the terminal device 120 does not detect that the user triggers an interactive participation operation for the target video, the target video without interactive elements may be played; the target video without interactive elements may exemplarily be a target video including non-interactive elements. The display style of the non-interactive elements here is the same as that of the interactive elements in the above text, except that the non-interactive elements do not respond to the eliminable event, that is, they do not respond to the elimination operation triggered by the user for them. In other words, if the user does not trigger an interactive participation operation for the target video, the terminal device 120 may play a target video that does not support user interaction, that is, play a target video without interactive elements. The display style of the target video including interactive elements is the same as that of the target video including non-interactive elements. The difference between the two is that the target video including interactive elements supports the user to trigger an elimination operation for the interactive elements therein, while the target video including non-interactive elements does not support the user to trigger any interactive operation for the non-interactive elements therein.
[0056] Optionally, the terminal device 120 may also display the score corresponding to the effective elimination operation triggered by the user during the process of playing the target video including interactive elements; after playing the target video, determine the total elimination score of the user according to the scores corresponding to each effective elimination operation triggered by the user. The terminal device 120 may also determine the total elimination score of the user according to the number of effective elimination operations triggered by the user for the target video after playing the target video, and display the total elimination score after playing the target video, and give corresponding reward virtual resources according to the total elimination score.
[0057] It should be understood that Figure 1 The application scenarios shown are only examples. In actual applications, the video playing method and video generating method provided by the embodiments of the present application may also be applied to other application scenarios. The application scenarios of the video playing method and video generating method provided by the embodiments of the present application are not limited in any way here.
[0058] The video playing method provided by the present application will be introduced in detail below through method embodiments.
[0059] See Figure 2 , Figure 2 is a schematic flowchart of the video playing method provided by the embodiments of the present application. As Figure 2 shown, the video playing method includes the following steps:
[0060] Step 201: In response to an interactive participation operation triggered for the target video, play the target video including interactive elements; the target video is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements, and the interactive elements are virtual elements configured with eliminable events.
[0061] In practical applications, when a user watches a video through a short video APP running on a terminal device, the terminal device will receive a video sent by the background server of the short video APP. In the embodiment of the present application, the background server of the short video APP can send a target video to the terminal device, and the target video is a video that supports user interaction with it. Specifically, the target video can be a video recorded by a video production user based on an interactive video template, and the interactive video template can indicate the display style of the interactive elements in the recorded video and the trigger actions corresponding to the interactive elements. When the user records the target video based on the interactive video template, if it is detected that the user makes a trigger action corresponding to the interactive element indicated by the interactive video template, the interactive element can be added and displayed in the recorded target video; the above trigger action usually needs to restrict the body part making the action and the movement path or change method of the body part; the above interactive element is a virtual element with configurable and eliminable events. When the user watches the target video, the user can trigger the configurable and eliminable events configured for the interactive elements in the target video to realize interaction with the target video.
[0062] In the embodiment of the present application, after receiving the target video sent by the background server of the short video APP, the terminal device can display the interactive prompt information corresponding to the target video through the interface of the short video APP, and the interactive prompt information is used to prompt the user that the target video is an interactive video. Furthermore, the user can trigger an interactive participation operation for the target video through the short video APP, play the target video, and realize interaction with the target video through the interactive elements in the target video during the process of playing the target video.
[0063] In a possible implementation manner, the terminal device can play the target video in response to an interactive virtual resource payment operation triggered by the user for the target video; that is, the interactive participation operation described above is specifically manifested as an interactive virtual resource payment operation.
[0064] Exemplarily, Figure 3 The figure shows a schematic diagram of a playback interface of a target video provided by an embodiment of the present application. As Figure 3As shown, after the terminal device receives the target video sent by the background server of the short video APP, it can display the cover of the target video on the interface of the short video APP. The cover of the target video can be the first frame of the target video or a representative picture in the target video (such as a picture selected by the video producer user from each frame included in the target video, or a picture selected by the background server of the short video APP through analyzing and processing each frame included in the target video). This application does not make any limitation on the cover of the target video displayed herein. The display interface includes an interactive virtual resource payment control 301. The user can trigger an interactive virtual resource payment operation for the target video through this interactive virtual resource payment control 301. For example, the interactive virtual resources that need to be paid for the target video can be displayed through the interactive virtual resource payment control 301. The user can click on the interactive virtual resource payment control 301 to trigger the interactive virtual resource payment process for the target video. After successfully completing the payment of the interactive virtual resources corresponding to the target video through this interactive virtual resource payment process, it can be considered that the interactive virtual resource payment operation for the target virtual resource has been completed. Subsequently, the terminal device can play the target video.
[0065] It should be noted that the above-mentioned interactive virtual resources can be specifically manifested as virtual coins, etc. The interactive virtual resources can be virtual resources allocated by the background server of the short video APP to the user according to the operations generated by the user through the short video APP (such as publishing videos, liking videos, commenting on videos, sharing videos, participating in video interactions, etc.), or can be obtained by the user through consumption and purchase. This application does not make any limitation on the manifestation form and acquisition method of the interactive virtual resources.
[0066] In another possible implementation, the terminal device can play the target video in response to a touch operation on the interactive participation control displayed on the playback interface of the target video. That is, the above-mentioned interactive participation operation is specifically manifested as a touch operation on the interactive participation control.
[0067] Exemplarily, Figure 4 The following shows a schematic diagram of another playback interface of the target video provided by the embodiment of this application. As Figure 4 shown, after the terminal device receives the target video sent by the background server of the short video APP, it can display the cover of the target video on the interface of the short video APP, and the display interface includes an interactive participation control 401. The user can trigger an interactive participation operation for the target video by clicking on the interactive participation control 401. Correspondingly, when the terminal device detects that the user clicks on the interactive participation control 401, it can correspondingly play the target video.
[0068] In yet another possible implementation, the terminal device may, in response to a touch operation by the user on an interactive participation control displayed on the playback interface of the target video, display a virtual resource payment control on the playback interface; and then, in response to an interactive virtual resource payment operation triggered by the user through the virtual resource payment control, play the target video. That is, the interactive participation operation described above is specifically manifested as the combination of a touch operation on the interactive participation control and an interactive virtual resource payment operation.
[0069] Exemplarily, Figure 5 The figure shows a schematic diagram of yet another playback interface of a target video provided by an embodiment of the present application. As Figure 5 shown in (a) therein, after receiving the target video sent by the background server of the short video APP, the terminal device may display the cover of the target video on the interface of the short video APP, and the display interface includes an interactive participation control 501; after the terminal device detects that the user clicks the interactive participation control 501, it may display Figure 5 the interface shown in (b) therein. The display interface includes an interactive virtual resource payment control 502. After the terminal device detects that the user completes the interactive virtual resource payment operation for the target video through the interactive virtual resource payment control 502, it may correspondingly play the target video.
[0070] It should be noted that the content displayed by the terminal device after receiving the target video is not limited to the cover of the target video. After receiving the target video sent by the short video APP, if the terminal device does not detect an interactive participation operation triggered by the user for the target video, it may first play a target video that does not support the user to trigger an interactive operation, that is, play a target video that does not include interactive elements; after detecting an interactive participation operation triggered by the user for the target video, it may then play a target video that supports the user to trigger an interactive operation, that is, play a target video that includes interactive elements.
[0071] In a possible implementation, the target video that does not include interactive elements may include non-interactive elements. Here, the display style of the non-interactive elements is the same as that of the interactive elements described above, but the non-interactive elements are virtual elements that do not respond to eliminable events. Specifically, after receiving the target video, the terminal device may first set the eliminable events corresponding to each interactive element in the target video to a non-responsive state, that is, convert each interactive element in the target video into a non-interactive element, and play a target video that only includes such non-interactive elements before detecting an interactive participation operation triggered by the user for the target video. After detecting an interactive participation operation triggered by the user for the target video, the terminal device may restore the eliminable events corresponding to each interactive element in the target video to a responsive state, that is, convert each non-interactive element into an interactive element, and then play a target video that includes such interactive elements.
[0072] It should be understood that in practical applications, when the terminal device does not detect that the user triggers an interactive participation operation for the target video, the terminal device can also play the target video that includes neither interactive elements nor non-interactive elements. This application does not make any limitations on the content played by the terminal device when it does not detect that an interactive participation operation is triggered for the target video.
[0073] It should be understood that the implementation manners of the several interactive participation operations introduced above are only examples. In practical applications, the interactive participation operation can also be manifested in other implementation manners. For example, the play operation triggered by the user for the target video can also be directly used as the interactive participation operation triggered for the target video. The play operation triggered for the target video can be a swiping-up operation triggered for the play interface of the previous video played before the target video. This application does not make any limitations on the specific implementation manner of this interactive participation operation.
[0074] Next, the generation method of the target video that supports user interaction in the above text will be introduced. When the terminal device specifically generates the target video, it can first respond to the selection operation triggered by the user for a certain interactive video template among the candidate interactive video templates, and display the shooting prompt information corresponding to the interactive video template. The shooting prompt information is used to prompt the user for the trigger action that needs to be performed and the interactive elements that will be displayed in response to the trigger action; in response to the video shooting operation triggered based on the selected interactive video template, start recording the target video. During the recording of the target video, if it is detected that the target object in the target video performs the trigger operation indicated by the interactive video template, the interactive elements will be correspondingly displayed in the recording interface of the target video; after the recording of the target video is completed, it can respond to the release operation triggered by the user for the target video and release the target video.
[0075] Exemplarily, Figure 6 The following shows a schematic diagram of the recording interface of the target video provided by the embodiment of this application. As Figure 6As shown in (a), the terminal device can display a number of candidate interactive video templates within the interactive video template selection area 601 in the video recording interface provided by the short video APP. These candidate interactive video templates can be configured by the background server of the short video APP according to the action capture ability and special effect display ability of the current version of the short video APP. For example, assuming that the current version of the short video APP can capture the actions of the user's face, hands, and legs, and the supported special effect display effects include bubbles, hearts, footballs, and circles, relevant technicians can combine the action capture ability and special effect display ability supported by the short video APP according to the actual application scenario to generate a number of candidate interactive video templates. For example, combining the action capture ability to capture the user's face actions with the special effect display ability of bubbles to generate a candidate interactive video template for detecting that the user makes a pouting action and correspondingly displays the bubble special effect, as shown in Figure 7 (a); Another example is to combine the action capture ability to capture the user's hand actions with the special effect display ability of a football to generate a candidate interactive video template for detecting that the user makes an upward throwing action and correspondingly displays the football special effect, as shown in Figure 7 (b); Another example is to combine the action capture ability to capture the user's face actions with the special effect display ability of a heart to generate a candidate interactive video template for detecting that the user makes a pouting action and correspondingly displays the heart special effect, as shown in Figure 7 (c); Another example is to combine the action capture ability to capture the user's leg actions with the special effect display ability of a circle to generate a candidate interactive video template for detecting that the user makes a jumping action and correspondingly displays a circle special effect representing the beat, as shown in Figure 7 (d). This application does not make any restrictions on the specific form of the candidate interactive video templates provided by the short video APP.
[0076] The user can view each candidate interactive video template provided by the short video APP by triggering a left - right swipe operation within the interactive video template selection area 601, and the user can perform a selection operation on a certain interactive video template by triggering a click operation on it. After the terminal device detects that the user triggers a selection operation on a certain interactive video template, it can correspondingly display the shooting prompt information corresponding to the interactive video template; the shooting prompt information can be in the form of text prompt information. For example, on the video recording interface, it displays the action prompt information corresponding to the trigger action indicated by the interactive video template (such as prompting the user to make a pouting, throwing upwards, jumping, etc. actions). After the user makes the corresponding trigger action according to the action prompt information, the interactive elements indicated by the interactive video template can be correspondingly displayed on the video recording interface; the shooting prompt information can also be in the form of video prompt information. For example, on the video recording interface, a shooting prompt window is displayed, and after a demonstration object makes the trigger action indicated by the interactive video template within the shooting prompt window, the effect of the interactive elements indicated by the interactive video template is correspondingly displayed. Of course, in practical applications, the shooting prompt information can also be presented in other forms, and this application does not make any limitations on the specific presentation form of the shooting prompt information here.
[0077] After the user selects the interactive video template for this shooting from the candidate interactive video templates through the above operations, the user can trigger the video shooting operation based on the interactive video template; as Figure 6 shown in (b) below, the user can trigger the video shooting operation by clicking the video recording control 602 in the video recording interface, or the user can also trigger the video shooting operation by long - pressing the video recording control 602 in the video recording interface. This application does not make any limitations on the triggering method of the video shooting operation here.
[0078] Optionally, the embodiment of this application can also set corresponding shooting virtual resources for the interactive video template, that is, if the user wants to shoot a video based on a certain interactive video template, the user needs to first pay for the shooting virtual resources corresponding to the interactive video template. After completing the payment operation for the shooting virtual resources, the user can record a video based on the interactive video template.
[0079] During the process of recording a video, the user can make the trigger actions indicated by the interactive video template, such as pouting, throwing upwards, jumping, etc. After the terminal device detects that the user makes the trigger actions indicated by the interactive video template, it will correspondingly add and display the interactive elements indicated by the interactive video template, such as bubbles, hearts, footballs, etc. in the currently recorded target video. As Figure 6As shown in (b) of the figure, taking the triggering action indicated by the interactive video template selected by the user as pursing the lips and the indicated interactive element as bubbles as an example, during the process of the terminal device recording the target video based on the interactive video template, if it detects that the user makes the action of pursing the lips, it will correspondingly display bubbles in the recording interface of the target video. The display effect of the bubbles can be starting from the user's mouth and randomly drifting around in all directions.
[0080] It should be noted that the display effect of the interactive elements indicated by the interactive video template is usually configured when configuring the interactive video template. Taking a short video APP applicable to the iOS system as an example, the display effect of the interactive elements in the interactive video template provided by the short video APP is usually jointly determined by a particle emitter (CAEmitterLayer) and a particle style layer (CAEmitterCell); among them, the particle emitter is used to determine the emission point position, emission mode, depth, initial velocity, scaling ratio, etc. of the interactive elements, and the particle style layer is used to create the interactive elements and determine the display content, gravitational acceleration, production rate, etc. of the interactive elements. After the terminal device detects that the user makes the triggering action indicated by the interactive video template, it can correspondingly display the interactive elements indicated by the interactive video template in the video recording interface based on the particle emitter and the particle style layer configured for the interactive video template.
[0081] After the user completes the recording of the target video, that is, after the terminal device detects that the user triggers the recording end operation for the target video he / she shoots (this recording end operation can be clicking the video recording control in the video recording interface again, or releasing the video recording control in the video recording interface that was long-pressed before, etc.), it can correspondingly generate the target video. Furthermore, in response to the release operation triggered by the user for the target video, the target video is published to the video platform of the short video APP, so that other users using the short video APP can watch the target video; as Figure 6 As shown in (c) of the figure, the user can trigger the release operation for the recorded target video by clicking the release control 603 in the video preview interface.
[0082] Optionally, after the user completes the recording of the target video, he / she can also trigger an elimination operation for the interactive elements displayed in the target video on the preview interface of the target video; the terminal device responds to the effective elimination operation triggered by the user for a certain interactive element displayed in the target video and displays the corresponding elimination effect of the interactive element.
[0083] Still taking the triggering action indicated by the interactive video template used by the user when recording the target video as pursing the lips and the indicated interactive element as bubbles as an example, as Figure 6As shown in (c), on the preview interface of the target video, the user can trigger an elimination operation for the interactive element by clicking on the interactive element displayed in the target video. If it is detected that the click position of the user on the preview interface of the target video is within the elimination area corresponding to a certain interactive element, it indicates that the user has triggered an effective elimination operation for the interactive element. At this time, the elimination effect corresponding to the interactive element can be displayed, such as the effect of a bubble bursting. Optionally, when it is detected that the user has triggered an effective elimination operation for the interactive element, the score corresponding to this effective elimination operation can also be displayed.
[0084] It should be understood that the interactive operation triggered by the user for the target video during the preview (i.e., the elimination operation triggered for the interactive element in the target video) is the same as the interactive operation that other users can trigger for the target video when watching it. The interactive operations that can be triggered for the target video when watching it and the corresponding display effects will be introduced in detail below. These interactive operations and display effects also apply to the preview process of the target video.
[0085] Optionally, after the user completes the recording of the target video, the user can also trigger an editing operation for the target video. In response to the editing operation triggered by the user for the target video, the terminal device will correspondingly generate an edited target video. The editing operation here includes at least one of the following: video clip operation, sticker editing operation, background music editing operation, filter editing operation, and character editing operation; correspondingly, the terminal device can subsequently respond to the publishing operation triggered for the edited target video and publish the edited target video.
[0086] Exemplarily, after the user completes the recording of the target video, an editing operation can be triggered for the recorded target video according to the user's actual needs; for example, the user can trigger a video editing operation for the target video to clip out the video segments that the user wants to retain from the recorded target video; for another example, the user can trigger a sticker editing operation for the target video to add stickers to the video screen of the recorded target video; for another example, the user can trigger a background music editing operation for the target video to add or replace the background music for the target video; for another example, the user can trigger a filter editing operation for the target video to add a video filter to the target video; for another example, the user can trigger a character editing operation for the target video to adjust the facial features, expressions, body shapes, etc. of the characters in the target video; when triggering an editing operation for the target video, the user can trigger any one or more of the above editing operations according to actual needs, and adjust the target video through the triggered editing operation to obtain an edited target video. Of course, in practical applications, the user can also trigger other types of editing operations for the target video, and this application does not make any limitations on the editing operations that can be triggered for the target video. After completing the editing of the target video and obtaining the edited target video, the edited target video can be published in response to the publishing operation triggered by the user for the edited target video.
[0087] Step 202: During the playback of the target video, in response to a valid elimination operation triggered for the interactive element displayed in the target video, display the elimination effect corresponding to the interactive element; the valid elimination operation refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0088] After the terminal device detects that the user triggers an interactive participation operation for the target video, the target video will be played accordingly. During the playback of the target video, if the terminal device detects that the user triggers a valid elimination operation for the interactive element displayed in the target video, the elimination effect corresponding to the interactive element can be displayed accordingly; as introduced above, each interactive element in the target video is configured with its corresponding eliminable event, and the user can trigger the corresponding eliminable event of the interactive element by triggering a valid elimination operation for the interactive element. Once the eliminable event corresponding to the interactive element is triggered, the elimination effect corresponding to the interactive element will be displayed accordingly; the valid elimination operation here refers to that the touch position of the user on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0089] Specifically, during the playback of the target video, if the terminal device detects that the target video is played to the emission time corresponding to a certain interactive element, it emits the interactive element in the playback interface of the target video through a particle emitter based on the emission attribute information corresponding to the interactive element; if it detects that the touch position of the user on the playback interface of the target video is within the elimination area corresponding to an interactive element, it displays the elimination effect corresponding to the interactive element; if it detects that the touch position of the user on the playback interface of the target video is not within the elimination area corresponding to any interactive element, it displays the effect corresponding to an invalid elimination operation.
[0090] It should be noted that when the user records the target video based on the interactive video template through the short video APP, the terminal device will correspondingly record the appearance time of each interactive element in the target video as the emission time corresponding to the interactive element; for example, assuming that an interactive element appears when the target video is recorded to 30s, the emission time corresponding to the interactive element should be 30s; at the same time, the terminal device will also configure the corresponding emission attribute information for each interactive element in the target video based on the display effect pre-configured for the interactive video template (i.e., determined by the particle emitter and the particle style layer). The emission attribute information is used to determine the display method of the corresponding interactive element in the target video. Exemplarily, the emission attribute information may include the emission point position, emission mode, initial velocity, depth, scaling ratio of the interactive element, as well as the display content, gravitational acceleration, production rate, etc. of the interactive element.
[0091] When the terminal device plays the target video, when it detects that the target video is currently played to the emission time corresponding to an interactive element, it can correspondingly transmit the emission attribute information of the interactive element to the particle emitter, so that the particle emitter emits and displays the interactive element in the playback interface of the target video based on the emission attribute information. It should be understood that only one interactive element can be emitted and displayed at a time point in the target video, or multiple interactive elements can be emitted and displayed simultaneously.
[0092] During the playback of the target video, if the terminal device detects that the touch position of the user on the playback interface of the target video is within the elimination area corresponding to an interactive element, it means that the user has triggered an effective elimination operation for the interactive element. At this time, the elimination effect corresponding to the interactive element can be displayed accordingly. Exemplarily, the elimination effect corresponding to the interactive element can be the effect of the interactive element breaking or exploding (such as the effect of bubbles, footballs, hearts, etc. breaking or exploding), or the effect of canceling the display of the interactive element (such as the effect of canceling the display of a circle element). The present application does not make any limitation on the elimination effect corresponding to the interactive element; Figure 8 The figure shows a schematic diagram of the playback interface of an exemplary target video provided by an embodiment of the present application, asFigure 8 As shown in (a), after the user triggers an effective elimination operation for the bubbles in the target video, the terminal device will correspondingly display the effect of the bubbles bursting. It should be understood that at the same time point, the user can trigger an effective elimination operation for only one interactive element, or can trigger an effective elimination operation for multiple interactive elements at the same time.
[0093] During the playback of the target video, if the terminal device detects that the user triggers a touch operation on the playback interface of the target video, but the touch position does not belong to the elimination area corresponding to any interactive element, it means that the user triggers an ineffective elimination operation here. At this time, the effect corresponding to the ineffective elimination operation can be correspondingly displayed; for example, a text prompt message, an animation effect, etc. for prompting that this elimination operation is an ineffective elimination operation can be displayed on the playback interface of the target video, as Figure 8 As shown in (b), after the user triggers an ineffective elimination operation for the target video, the terminal device will correspondingly display the ineffective elimination effect of "missing the bubble". The present application does not make any limitation on the effect corresponding to this ineffective elimination operation.
[0094] Optionally, if the terminal device detects that the user triggers an effective elimination operation for the interactive element displayed in the target video, it can also correspondingly play the elimination sound effect corresponding to the interactive element. Exemplarily, when generating the target video, the terminal device can configure the corresponding elimination sound effect for each interactive element in the target video. When the user triggers an interactive operation for the target video, triggering an effective elimination operation for each interactive element in sequence according to the respective appearance order of each interactive element will cause the elimination sound effects corresponding to each interactive element to be played in sequence. The elimination sound effects corresponding to each interactive element played in sequence will form a specific music. Of course, the same elimination sound effect can also be configured for each interactive element in the target video, so that the same elimination sound effect is played when each interactive element is eliminated. The present application does not make any limitation on the elimination sound effect configured for the interactive element.
[0095] Optionally, if the terminal device detects that the user triggers an effective elimination operation for the interactive element displayed in the target video, it can also switch the expression of the target object in the target video to an elimination special effect expression; the elimination special effect expression can be obtained by processing the face of the target object based on the elimination special effect expression template, or can be recorded by the target object indicating to record the target video when recording the target video.
[0096] Exemplarily, taking the interactive element in the target video as a heart and the corresponding elimination effect of the interactive element as a heart explosion as an example, if the terminal device detects that the user triggers an effective elimination operation on a certain heart displayed in the target video, it can correspondingly display the elimination effect of the heart exploding. At the same time, it can also switch the expression of the target object in the target video to an elimination special effect expression, such as switching the expression of the target object to an unhappy expression (such as pouting, frowning, etc.), or switching the expression of the target object to a crying expression (such as shedding tears, etc.).
[0097] The above-mentioned elimination special effect expression can be obtained by the terminal device processing the face of the target object in the target video based on the elimination special effect expression template supported by the short video APP; for example, the terminal device can correspondingly adjust the eyebrows, eyes, mouth and other parts of the target object in the target video based on the template of the unhappy expression supported by the short video APP, so that the target object presents an unhappy expression. The above-mentioned elimination special effect expression can also be recorded by instructing the target object to record when recording the target video; for example, after the terminal device detects that the user has completed the recording of the target video, it can prompt the user to record the elimination special effect expression, and the elimination special effect expression will be displayed after detecting that the user triggers an effective elimination operation on the interactive element in the target video; correspondingly, if it is detected that the user triggers an effective elimination operation on a certain interactive element during the playback of the target video, the face of the target object in the target video can be switched to the recorded elimination special effect expression through face swapping technology. Of course, in actual applications, the elimination special effect expression can also be generated by other means, and the present application does not make any limitations on the generation method of the elimination special effect expression here.
[0098] In this way, through the above method, it can enable the viewing user of the target video to have an experience of interacting with the production user of the target video during the viewing process of the target video, further enhancing the interactivity and viewing experience of the target video.
[0099] Optionally, in actual applications, the terminal device can also enhance the user's sense of game participation during the viewing of the target video by scoring according to the effective elimination operations triggered by the user, thereby further increasing the fun obtained by the user during the viewing of the video. Specifically, during the playback of the target video, the terminal device can respond to the effective elimination operation triggered on the interactive element displayed in the target video and display the score corresponding to the effective elimination operation; after playing the target video, it displays the total elimination score obtained during the viewing of the target video this time, and the total elimination score is determined according to the scores corresponding to each effective elimination operation generated during the playback of the target video.
[0100] Exemplarily, during the playback of the target video, if the terminal device detects that the user triggers an effective elimination operation on the interactive element in the target video, it can further display the score corresponding to this effective elimination operation on the basis of the elimination effect corresponding to the displayed interactive element; for example, as Figure 8 shown in (a) of Figure 8 , the score "BONUS+50" corresponding to the effective elimination operation is superimposed and displayed on the elimination effect of the bubble bursting. After playing the target video, the terminal device can sum up the scores corresponding to each effective elimination operation generated during the playback of the target video to obtain the total elimination score corresponding to the playback process of this target video, and display the total elimination score on the result announcement interface; Figure 9 The figure shown is a schematic diagram of an exemplary result announcement interface provided by an embodiment of the present application. As Figure 9 shown, the total elimination score can be displayed on this result announcement interface.
[0101] Optionally, in order to further increase the fun of video interaction, the terminal device can also, during the playback of the target video, in response to a continuous effective elimination operation triggered on multiple interactive elements displayed in the target video, display the score corresponding to this continuous effective elimination operation. Here, the continuous effective elimination operation refers to continuously generating a preset number of effective elimination operations; correspondingly, when the terminal device calculates the total elimination score corresponding to the playback process of this video, it can determine the total elimination score according to the scores corresponding to each effective elimination operation generated during the playback of the target video and the scores corresponding to each continuous effective elimination operation.
[0102] Exemplarily, during the process of playing a target video, the terminal device can detect the number of consecutive valid elimination operations triggered by the user. If it detects that the number of consecutive valid elimination operations triggered by the user reaches a preset number (such as 5 times, 10 times, etc.), it determines that the user has successfully triggered a consecutive valid elimination operation. At this time, the score corresponding to this consecutive valid elimination operation can be displayed on the playback interface of the target video. In practical applications, multiple consecutive valid elimination operations corresponding to different preset numbers can be preset in advance, such as setting a consecutive valid elimination operation with a preset number of 5 times, a consecutive valid elimination operation with a preset number of 6 times, a consecutive valid elimination operation with a preset number of 7 times, and a consecutive valid elimination operation with a preset number of 8 times. When the number of consecutive valid elimination operations triggered by the user reaches the preset number corresponding to a certain consecutive valid elimination operation, the score corresponding to this consecutive valid elimination operation is displayed accordingly; it should be understood that the consecutive valid operation with a larger corresponding preset number will overwrite the consecutive valid operation with a smaller corresponding preset number. For example, after the user triggers 5 consecutive valid elimination operations, it indicates that the user has currently triggered a consecutive valid elimination operation with a preset number of 5 times. If the user then triggers another valid elimination operation (i.e., the user has triggered 6 consecutive valid elimination operations), it indicates that the user has triggered a consecutive valid elimination operation with a preset number of 6 times, and this consecutive valid elimination operation with a preset number of 6 times will overwrite the consecutive valid elimination operation with a preset number of 5 times.
[0103] Correspondingly, when the terminal device calculates the total elimination score corresponding to the current target video playback process, it can determine this total elimination score based on the scores corresponding to each valid elimination operation and the scores corresponding to each consecutive valid elimination operation during the target video playback process. For example, assuming that the score corresponding to a single valid elimination operation is a and the score corresponding to a single consecutive valid elimination operation is b, if the user generates m valid elimination operations and n consecutive valid elimination operations during the target video playback process, the total elimination score for this target video playback process should be a*m + b*n. It should be understood that in the case where there are multiple consecutive valid elimination operations set, different scores can be configured for each consecutive valid elimination operation. The larger the preset number corresponding to the consecutive valid elimination operation, the higher the corresponding score.
[0104] Optionally, the terminal device can also obtain a first reward virtual resource based on the total elimination score corresponding to the target video playback process; this first reward virtual resource can be determined based on at least one of the following factors: the score range to which the total elimination score belongs, the interactive virtual resources paid when triggering an interactive participation operation for the target video.
[0105] Exemplarily, assume that the interactive virtual resource paid by the user when triggering an interactive participation operation for the target video is P, and the total elimination score S that the user should obtain if the user triggers effective elimination operations for all interactive resources in the target video; if the total elimination score actually obtained by the user is greater than or equal to 80% * S, the first reward virtual resource that the user can obtain is 1.2 * P; if the total elimination score actually obtained by the user is less than 80% * S but greater than or equal to 50% * S, the first reward virtual resource that the user can obtain is P; if the total elimination score actually obtained by the user is less than 50% * S, the first reward virtual resource that the user can obtain is 0.5 * P.
[0106] It should be understood that the above allocation rule of the first reward virtual resource is only an example. In actual applications, the first reward virtual resource can also be determined only according to the score range to which the total elimination score belongs. For example, different first reward virtual resources are configured for different score ranges. The present application does not make any limitations on the allocation rule of the first reward virtual resource here.
[0107] Optionally, the terminal device can also obtain the interactive ranking corresponding to the target video and display the interactive ranking; the interactive ranking is determined according to the total elimination scores of each video consumption user who triggered an interactive participation operation for the target video during the reference time period; if the ranking of the video consumption user in the interactive ranking belongs to the preset ranking range, obtain the second reward virtual resource corresponding to the preset ranking range.
[0108] Exemplarily, the background server of the short video APP can regard the users who triggered an interactive participation operation for the target video as the video consumption users of the target video, and obtain the total elimination scores of each video consumption user of the target video during the reference time period (that is, the scores obtained by the video consumption users by triggering elimination operations for the interactive elements in the target video during the viewing of the target video). The reference time period here can be set according to actual needs. For example, it can be the time period between the time point when the target video is published and the current time point. Furthermore, the background server can sort the total elimination scores of each video consumption user during the reference time period from largest to smallest to obtain the interactive ranking corresponding to the target video, and send the interactive ranking to the terminal device used by the target video consumption user, and the terminal device will correspondingly display the ranking of the target consumption user in the interactive ranking, such as Figure 9As shown, the interactive ranking can be displayed on the result announcement interface of the target video (such as displaying the avatars of the top n video consumption users in the interactive ranking), and the ranking of the user of the present terminal device in the interactive ranking can be displayed. If the ranking of the user of the present terminal device in the interactive ranking belongs to a preset ranking interval, such as the top 10, the 11th to the 20th, etc., the corresponding second reward virtual resources for the preset ranking interval can be obtained accordingly. It should be understood that the higher the preset ranking interval, the more the second reward virtual resources corresponding to the preset ranking interval.
[0109] It should be understood that the above-introduced distribution method of the reward virtual resources is only an example. In actual applications, the background server of the short video APP can also adopt other methods to distribute the corresponding reward virtual resources for the video consumption users of the target video. The present application does not make any limitation on the distribution method of the reward virtual resources here.
[0110] The above video playing method proposes a new video interaction form for video viewing users. In this video interaction form, when a video viewing user watches a target video recorded based on an interactive video template, the user can trigger an elimination operation on the interactive elements displayed in the target video to achieve interaction with the target video. In this way, the user can have a stronger sense of participation during the video viewing process, increasing the fun of the video viewing process and enhancing the user's video viewing experience.
[0111] Next, the video generation method provided by the present application will be introduced in detail through method embodiments.
[0112] See Figure 10 , Figure 10 , which is a schematic flowchart of the video generation method provided by the embodiments of the present application.
[0113] As Figure 10 shown, the video generation method includes the following steps:
[0114] Step 1001: Obtain a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements.
[0115] The background server of the short video APP (hereinafter referred to as the server) can provide several candidate interactive video templates for the users of the short video APP. Each candidate video interactive template can indicate the display style of the interactive elements in the video and the corresponding trigger actions for the interactive elements. The users of the short video APP can select an interactive video template from the provided candidate interactive video templates as the interactive video template based on which they shoot the target video. After the users of the short video APP complete the shooting of the target video based on the selected interactive video template, they can send the shot target video to the server through the terminal device, so that the server can obtain the target video.
[0116] In specific implementation, the server can configure the above-mentioned candidate interactive video templates according to the motion capture ability and special effect display ability of the short video APP. Exemplarily, assume that the short video APP can capture the motions of the user's face, hands, and legs, and the supported special effect display effects include bubbles, hearts, footballs, and circles. Then the server can combine the motion capture ability and special effect display ability supported by the short video APP according to the actual application scenario to generate several candidate interactive video templates. For example, the server can combine the motion capture ability of capturing the user's face motion with the special effect display ability of bubbles to generate a candidate interactive video template for detecting that the user makes a pouting motion and correspondingly displaying the bubble special effect. Another example, the server can combine the motion capture ability of capturing the user's hand motion with the special effect display ability of footballs to generate a candidate interactive video template for detecting that the user makes an upward throwing motion and correspondingly displaying the football special effect. Another example, the server can combine the motion capture ability of capturing the user's face motion with the special effect display ability of hearts to generate a candidate interactive video template for detecting that the user makes a pouting motion and correspondingly displaying the heart special effect. Another example, the server can combine the motion capture ability of capturing the user's leg motion with the special effect display ability of circles to generate a candidate interactive video template for detecting that the user makes a jumping motion and correspondingly displaying the circle special effect representing the beat. The present application does not make any limitation on the specific form of the candidate interactive video templates configured by the server.
[0117] Optionally, when the user needs to pay the corresponding shooting virtual resources for recording a video based on the interactive video template, the server can also set the shooting virtual resources corresponding to each candidate interactive video template, that is, if the user selects to shoot the target video based on a certain interactive video template, the user needs to pay the shooting virtual resources corresponding to the interactive video template.
[0118] Optionally, when a user needs to pay corresponding interactive virtual resources when triggering an interactive participation operation for a target video, the server can also set an upper limit value and a lower limit value corresponding to the interactive virtual resources. Specifically, a video production user can set corresponding interactive virtual resources for the target video recorded by him / herself. Only when a video consumption user pays the corresponding interactive virtual resources can the video consumption user trigger an interactive operation for the target video. To prevent the video production user from randomly setting the interactive virtual resources corresponding to the target video, the server can also set an upper limit value and a lower limit value for the interactive virtual resources corresponding to the target video.
[0119] Optionally, the server can also set the number of target videos that a user of the short video APP can record and the number of target videos that the user can participate in interactions for.
[0120] Step 1002: For each of the interactive elements in the target video, configure a corresponding eliminable event; the eliminable event is used to play the elimination effect corresponding to the interactive element in response to an effective elimination operation triggered for the interactive element in the target video; the effective elimination operation refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0121] After the server obtains a target video recorded based on an interactive video template, it can configure a corresponding eliminable event for each interactive element in the target video. Configuring a corresponding eliminable event for an interactive element enables the interactive element to support user interaction with it; specifically, when a user triggers an effective elimination operation for an interactive element displayed in the target video, the corresponding eliminable event of the interactive element can be triggered accordingly, and at this time, the elimination effect corresponding to the interactive element will be displayed accordingly; the effective elimination operation here refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element. After the server completes the configuration of the eliminable events for the interactive elements in the target video, it can push the target video with the configured eliminable events to other users of the short video APP.
[0122] Optionally, when a user will obtain corresponding scores when triggering an effective elimination operation for an interactive element in a target video, the server can also set a scoring mechanism corresponding to the effective elimination operation, a scoring mechanism corresponding to continuous effective elimination operations, and a calculation mechanism for the total elimination score, and send the above mechanisms to the terminal device running the short video APP, so that the terminal device can determine the score corresponding to each effective elimination operation, the score corresponding to each continuous effective elimination operation, and calculate the total elimination score corresponding to the playback process of the target video during the playback of the target video.
[0123] Optionally, when it is necessary to provide an interactive ranking corresponding to the target video to video consumption users, the server needs to obtain the total elimination score obtained by the user during the playback of the target video uploaded by the terminal device. Furthermore, according to the total elimination scores of each video consumption user obtained, each video consumption user is sorted in descending order of the total elimination score to obtain the interactive ranking corresponding to the target video, and the ranking of each video consumption user in this interactive ranking is determined; furthermore, the interactive ranking and the ranking of the video consumption user in the interactive ranking are correspondingly fed back to each terminal device.
[0124] Optionally, when the server needs to give corresponding reward virtual resources to the video consumption users of the target video, the server can also set the reward virtual resource allocation rules. For example, when allocating the first reward virtual resource to the user based on the total elimination score, the server can set the corresponding relationship between the score range and the first reward virtual resource. For another example, when allocating the second reward virtual resource to the user based on the ranking of the user in the interactive ranking, the server can set the corresponding relationship between the preset ranking range and the second reward virtual resource.
[0125] Optionally, the server can also send notification messages to video production users and video consumption users. For example, after the interactive virtual resources of the target video shot by the video production user are paid, the server can send a notification message to the terminal device used by the video production user to prompt that the interactive virtual resources of the target video shot by it have been paid and it can obtain the interactive virtual resources. For another example, when the video consumption user obtains the reward virtual resources, the server can send a notification message to the terminal device used by the video consumption user to prompt that it has obtained the reward virtual resources.
[0126] The above video generation method provides background support for the video playback method provided by the embodiments of the present application, that is, it provides background support for the new video interaction form proposed by the embodiments of the present application for video viewing users. In this video interaction form, when the video viewing user watches the target video recorded based on the interactive video template, the user can trigger an elimination operation on the interactive elements displayed in the target video to realize the interaction with the target video; in this way, the user can generate a stronger sense of participation during the video viewing process, increase the fun of the video viewing process, and improve the user's video viewing experience.
[0127] To facilitate further understanding of the video playback method and video generation method provided by the embodiments of the present application, the overall implementation architecture of the video playback method and video generation method, the composition and playback process of the target video (hereinafter also referred to as the interactive video or elimination interactive video) that supports the user to interact with it are respectively introduced exemplarily below.
[0128] The following will first combineFigure 11 , an overall exemplary introduction is given to the overall implementation architecture of the video playback method and video generation method provided in the embodiments of the present application. It should be noted that the technical solution provided in the embodiments of the present application essentially adds an elimination interaction gameplay in the short video APP, and constructs the virtual resource (hereinafter referred to as play coins) ability and ecosystem around this interaction elimination gameplay; the technical solution provided in the embodiments of the present application mainly involves three parts, namely the background service, the video producer module, and the video consumer module.
[0129] As Figure 11 shown, the background service mainly includes an account system, a storage system, an operation system, a notification system, and a mall system. Among them, the account system includes a registration and login system for managing user registration and login, and a payment and consumption system for users. The virtual resource information owned by users is usually recorded in this system. The storage system is used to store the target videos recorded by video production users based on the interactive video templates, as well as the gameplay instruction information corresponding to various interactive video templates (such as the display style of interactive elements and the trigger actions corresponding to the interactive elements). The operation system is mainly used for video review and video recommendation; video review means that operators review whether the videos published by users comply with the specifications of the short video platform, give two states of review passed and review not passed for the reviewed videos, and send corresponding notifications to the publishing users of the videos with the status of review not passed through the notification system; video recommendation means that operators perform recommendation sorting on the videos published by users. For example, the videos published by users are scored according to factors such as video quality, number of likes, number of views, and number of interactive virtual resource payments, and then the videos are recommended and sorted according to the scores, and the recommendations are classified according to the attributes of the videos. For example, the videos shot based on the same or similar interactive video templates are classified into the same channel. The notification system is used to trigger the system for users; for example, after the video recorded by the video production user based on the interactive video template is paid, this system can send a corresponding message notification to the video production user; another example is that when the rewarded play coins received by the video consumer user arrive in the account, this system can also send a corresponding message notification to the video consumer user. The mall system is used to configure the purchase information of virtual resources in the short video APP, such as the price corresponding to 100 play coin packages and the price corresponding to 500 play coin packages, and also supports general capabilities of online malls such as payment and withdrawal.
[0130] Different from the operation and management methods for ordinary short videos, the elimination interaction gameplay provided in the embodiments of the present application is associated with three gameplay management systems, namely the gameplay production management system, the gameplay consumption management system, and the gameplay reward management system.
[0131] Among them, the gameplay production management system is mainly used to manage and configure candidate interactive video templates available for video production users to choose from. This system can configure candidate interactive video templates suitable for the current version of the short video APP according to the motion capture capabilities of the short video APP in the current version (such as the path of capturing the user's mouth movements, the jumping movements made by the user, the throwing movements made by the user, etc.) and the special effect elimination capabilities (such as generating special effects such as bubbles, hearts, and footballs according to the user's movements). When shooting a video, video production users can select the interactive video template they want to rely on from these candidate interactive video templates. This system can also launch other candidate interactive video templates at any time and take off the existing candidate interactive video templates. This system can also limit factors such as the number of videos that a user can record based on an interactive video template in a day and the number of users who can unlock and shoot each candidate interactive video template.
[0132] Among them, the gameplay consumption management system is mainly used to manage and configure the upper and lower limits of the number of play coins required to trigger interactive participation operations for interactive videos (i.e., videos recorded based on interactive video templates). For example, to trigger an interactive participation operation for a certain interactive video, at least 3 play coins and at most 10 play coins are required, etc. This system is also used to manage the maximum number of interactive videos that a user can unlock and participate in a day and the upper limit value of the number of user challenges supported by an interactive video.
[0133] Among them, the gameplay reward management system is mainly used to manage and configure the scores corresponding to each effective elimination operation, the number of effective elimination operations required to complete continuous effective elimination operations, the scores corresponding to continuous effective elimination operations, as well as the reward rules corresponding to the total elimination score, the reward rules corresponding to the elimination ranking, etc. At the same time, this system will also record in real time the current consumption situation of each interactive video, the score situation, interactive ranking, and reward distribution rules of the users who trigger interactive participation operations for this interactive video.
[0134] Such as Figure 11As shown, the video producer module targets short video production users and is the most important module in the entire short video ecosystem. It can support the implementation of functions such as video recording, video editing, and video publishing, and can also implement the interaction gameplay configuration corresponding to the interactive video template. The gameplay configuration here means that if a user chooses to record a video based on an interactive video template, they need to pre-configure the trigger actions, interactive elements, and unlocking mechanisms indicated in the interactive video template. These configuration resources will be automatically synchronized with the gameplay configuration management system of the background service at regular intervals. Video recording refers to using the shooting and recording capabilities of the terminal device. After the video is recorded, it enters the editing page. Video editing is mainly used to support the implementation of functions such as video clipping, sticker editing, music editing, and filter editing. Video publishing is used to send the edited video to the background service side. If the published video is a video recorded based on an interactive video template, the relevant attribute information of the interactive elements generated during the video production process will be encapsulated into the video information structure and then transmitted to the background storage system.
[0135] As Figure 11 shown, the video consumer module mainly supports four capabilities: video playback, video interaction, interaction gameplay experience, and play coin purchase and consumption. Among them, video playback is the basic video playback ability, including the online playback and pause abilities of the video. Video interaction is the basic video interaction ability, mainly including likes, comments, forwards, etc. The interaction gameplay experience means that if the video consumed by the user is a video recorded based on an interactive video template, they need to pay play coins to unlock and play the video, and then carry out subsequent interaction gameplay experiences (that is, trigger elimination operations for the interactive elements displayed in the video). Play coin payment and consumption mainly include the purchase and consumption of play coins.
[0136] Next, in combination with Figure 12 , an exemplary introduction will be made to the composition of the elimination interactive video that supports user interaction. As Figure 12As shown, the elimination interactive video mainly includes three parts: video, interactive video template, and interactive elements. Among them, the video is the specific resource being played, such as the Uniform Resource Locator (URL) of a complete MP4 file. Among them, the interactive video template includes static information related to the interactive video template, such as the score for a single valid elimination operation, the number of valid elimination operations required to complete a continuous valid elimination operation, the score corresponding to the continuous valid elimination operation, the number of play coins required to unlock the elimination interactive video, etc. The interactive elements are the interactive elements (such as bubbles, hearts, footballs, etc.) seen when producing and recording the video, and their implementation principle is a particle. Taking the iOS system as an example, the implementation of the particle effect requires the use of two classes, namely CAEmitterLayer and CAEmitterCell. Among them, CAEmitterLayer is a special layer in Core Animation, inheriting from CALayer, and is a particle emitter used to control the particle effect, such as the position of the emission point, the emission mode, depth, the initial velocity of the particle, the scaling ratio, etc. CAEmitterCell is the style layer of the particle, used to create particles, similar to the cell in UITableView, and it mainly determines the display content of the particle, the acceleration due to gravity, the production rate, etc. The implementation steps of the particle effect are as follows: 1) Create a particle layer using CAEmitterLayer and add it to the layer of the view; 2) Set the properties of the emitter and create particles through CAEmitterCell; 3) Set the relevant properties of the particles; 4) Add the particles to the array of emission sources.
[0137] Next, in combination with Figure 13 , an exemplary introduction to the playback process of the elimination interactive video will be given. As Figure 13As shown below, the playback process of the elimination interactive video is as follows: 1) When the video playback starts, first determine whether the video is an elimination interactive video. If not, directly play the video. The basis for this determination is mainly to check whether the video includes an interactive video template. 2) If it is determined that the video is an elimination interactive video, first pause the playback of the video and enter the play coin payment process. 3) The play coin payment process needs to communicate with the payment system of the background service. If the corresponding play coins are successfully paid, the video starts to be played; otherwise, the video remains paused. 4) During the playback of the elimination interactive video, it is continuously determined whether the display time of a certain interactive element is reached. 5) If the display time of a certain interactive element is reached, the corresponding animation effect of the interactive element is displayed through a particle emitter. Multiple animation effects corresponding to different interactive elements can exist at the same time point. 6) Each interactive element is a particle that can respond to the elimination event. If during the display of the animation effect of the interactive element (i.e., before the interactive element disappears), it is detected that the user triggers the eliminable event corresponding to the interactive element, the corresponding elimination effect of the interactive element is displayed, and the number of effective eliminations is accumulated. At the same time, the score of this effective elimination operation is recorded and the corresponding score effect is displayed. 7) If no effective elimination operation is detected for the user to trigger for this interactive element before the interactive element disappears, the number of consecutive effective elimination operations recorded is cleared. 8) Repeat the above steps 4) to 7) until the video playback ends. At this time, the total elimination score of the user is uploaded to the background service. The background service will accordingly allocate reward play coins for the user and feedback the interactive ranking to the user.
[0138] For the video playback method and video generation method described above, the present application also provides corresponding video playback devices and video generation devices to enable the above video playback method and video generation method to be applied and implemented in practice.
[0139] See Figure 14 , Figure 14 is a schematic structural diagram of a video playback device 1400 corresponding to the video playback method shown above. As Figure 2 shown, the video playback device 1400 includes: Figure 14 shown, the video playback device 1400 includes:
[0140] A video playback module 1401, configured to play the target video including interactive elements in response to an interactive participation operation triggered for the target video; the target video is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements, and the interactive elements are virtual elements configured with eliminable events;
[0141] The video interaction module 1402 is configured to, during the playback of the target video, in response to a valid elimination operation triggered for the interaction element displayed in the target video, display the elimination effect corresponding to the interaction element; the valid elimination operation refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interaction element.
[0142] Optionally, based on the Figure 14 shown video playback device, the device further includes:
[0143] A score display module, configured to, during the playback of the target video, in response to a valid elimination operation triggered for the interaction element displayed in the target video, display the score corresponding to the valid elimination operation; and, after playing the target video, display the total elimination score; the total elimination score is determined according to the scores corresponding to each of the valid elimination operations generated during the playback of the target video.
[0144] Optionally, the score display module is further configured to:
[0145] During the playback of the target video, in response to consecutive valid elimination operations triggered for multiple interaction elements displayed in the target video, display the score corresponding to the consecutive valid elimination operations; the consecutive valid elimination operations refer to that the valid elimination operations are generated consecutively for a preset number of times; then the total elimination score is determined according to the scores corresponding to each of the valid elimination operations generated during the playback of the target video and the scores corresponding to each of the consecutive valid elimination operations.
[0146] Optionally, based on the Figure 14 shown video playback device, the device further includes:
[0147] A reward resource acquisition module, configured to acquire first reward virtual resources according to the total elimination score; the first reward virtual resources are determined according to at least one of the following factors: the score value range to which the total elimination score belongs, the interactive virtual resources paid when triggering the interactive participation operation for the target video.
[0148] Optionally, based on the Figure 14 shown video playback device, the device further includes:
[0149] A ranking display module, configured to display the interactive ranking corresponding to the target video; the interactive ranking is determined according to the total elimination scores of each video consumer user who triggered the interactive participation operation for the target video within a reference time period;
[0150] The reward resource acquisition module is further configured to, if the ranking of the video consuming user in the interaction ranking belongs to a preset ranking range, acquire second reward virtual resources corresponding to the preset ranking range.
[0151] Optionally, based on the Figure 14 shown video playing device, the video playing module 1401 is specifically configured to implement its functions in any of the following ways:
[0152] In response to an interactive virtual resource payment operation triggered for the target video, play the target video;
[0153] In response to a touch operation on an interactive participation control displayed on the playing interface of the target video, play the target video;
[0154] In response to a touch operation on an interactive participation control displayed on the playing interface of the target video, display a virtual resource payment control on the playing interface; in response to an interactive virtual resource payment operation triggered through the virtual resource payment control, play the target video.
[0155] Optionally, based on the Figure 14 shown video playing device, the video playing module 1401 is further configured to:
[0156] When no interactive participation operation is detected for the target video, play the target video without the interactive element.
[0157] Optionally, based on the Figure 14 shown video playing device, the video interaction module 1402 is specifically configured to:
[0158] When the target video plays to the emission time corresponding to the interactive element, based on the emission attribute information corresponding to the interactive element, emit the interactive element in the playing interface of the target video through a particle emitter;
[0159] When it is detected that the touch position on the playing interface of the target video is within the elimination area corresponding to the interactive element, display the elimination effect corresponding to the interactive element; when it is detected that the touch position on the playing interface of the target video is not within the elimination area corresponding to the interactive element, display the effect corresponding to an invalid elimination operation.
[0160] Optionally, based on the Figure 14 shown video playing device, the device further includes:
[0161] A sound effect playing module, configured to play the elimination sound effect corresponding to the interactive element in response to a valid elimination operation triggered for the interactive element displayed in the target video.
[0162] Optionally, based on the video playback device shown in Figure 14 the device further includes:
[0163] An expression switching module, configured to respond to a valid elimination operation triggered for the interactive element displayed in the target video, and switch the expression of the target object in the target video to an elimination special effect expression; the elimination special effect expression is obtained by processing the face of the target object based on an elimination special effect expression template, or is recorded by instructing the target object to record when recording the target video.
[0164] Optionally, based on the video playback device shown in Figure 14 the device further includes:
[0165] A prompt information display module, configured to respond to a selection operation triggered for the interactive video template in each candidate interactive video template, and display the shooting prompt information corresponding to the interactive video template; the shooting prompt information is used to prompt the trigger action to be performed and the interactive element displayed in response to the trigger action;
[0166] A video recording module, configured to respond to a video shooting operation triggered based on the interactive video template, and start recording the target video; during the recording of the target video, if it is detected that the target object in the target video performs the trigger action, the interactive element is displayed in the recording interface of the target video;
[0167] A video publishing module, configured to, after completing the recording of the target video, respond to a publishing operation triggered for the target video, and publish the target video.
[0168] Optionally, the device further includes:
[0169] A video pre-interaction module, configured to, after completing the recording of the target video, in the preview interface of the target video, respond to the valid elimination operation triggered for the interactive element displayed in the target video, and display the elimination effect corresponding to the interactive element.
[0170] Optionally, the device further includes:
[0171] A video editing module, configured to, after completing the recording of the target video, respond to an editing operation triggered for the target video, and generate an edited target video; the editing operation includes at least one of the following: video clip operation, sticker editing operation, background music editing operation, filter editing operation, and character editing operation;
[0172] Then the video publishing module is specifically configured to:
[0173] In response to a publishing operation triggered for the edited target video, the edited target video is published.
[0174] See also Figure 15 , Figure 15 It is the same as above Figure 10 The structure diagram of a video generating device 1500 corresponding to the video generating method shown in FIG. Figure 15 As shown, the video generating device 1500 includes:
[0175] The video acquisition module 1501 is used to acquire a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of the interactive elements in the video and the triggering actions corresponding to the interactive elements;
[0176] Event configuration module 1502 is used to configure a corresponding erasable event for each interactive element in the target video; the erasable event is used to respond to a valid erasure operation triggered on the interactive element in the target video, and play the erasure effect corresponding to the interactive element; the valid erasure operation means that the touch position of the playback interface of the target video is within the erasure area corresponding to the interactive element.
[0177] The above-mentioned video playback device and video generation device jointly propose a new form of video interaction for video viewing users. In this video interaction form, when the video viewing user watches a target video recorded based on an interactive video template, he can trigger an elimination operation on the interactive elements displayed in the target video to achieve interaction with the target video; in this way, the user can have a stronger sense of participation in the process of watching the video, which increases the fun of the video viewing process and improves the user's video viewing experience.
[0178] The embodiment of the present application also provides a video playback device and a video generation device. The video playback device may specifically be a terminal device, and the video generation device may specifically be a server. The terminal device and the server provided in the embodiment of the present application will be introduced from the perspective of hardware entity.
[0179] See also Figure 16 , Figure 16 Schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Figure 16 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant, a point of sales (POS), a car computer, etc., taking the terminal as a computer as an example:
[0180] Figure 16The block diagram of a part of the structure of a computer related to the terminal provided in the embodiments of the present application is shown. Refer to Figure 16 , the computer includes: a Radio Frequency (RF) circuit 1610, a memory 1620, an input unit 1630 (including a touch panel 1631 and other input devices 1632), a display unit 1640 (including a display panel 1641), a sensor 1650, an audio circuit 1660 (which can be connected to a speaker 1661 and a microphone 1662), a wireless fidelity (WiFi) module 1670, a processor 1680, and a power supply 1690 and other components. Those skilled in the art can understand that Figure 16 the computer structure shown in
[0181] does not constitute a limitation on the computer, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0182] The memory 1620 can be used to store software programs and modules. The processor 1680 executes various functional applications and data processing of the computer by running the software programs and modules stored in the memory 1620. The memory 1620 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the computer (such as audio data, a phone book, etc.). In addition, the memory 1620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0183] In the embodiments of the present application, the processor 1680 included in the terminal further has the following functions:
[0184] In response to an interactive participation operation triggered for a target video, play the target video including interactive elements; the target video is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements, and the interactive elements are virtual elements configured with eliminable events;
[0185] During the process of playing the target video, in response to an effective elimination operation triggered for the interactive elements displayed in the target video, display the elimination effect corresponding to the interactive elements; the effective elimination operation means that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive elements.
[0186] Optionally, the processor 1680 is further configured to execute the steps of any implementation manner of the video playback method provided in the embodiments of the present application.
[0187] See Figure 17 , Figure 17 FIG. is a schematic structural diagram of a server 1700 provided in an embodiment of the present application. The server 1700 may vary greatly due to configuration or performance differences, and may include one or more central processing units (CPUs) 1722 (for example, one or more processors) and a memory 1732, and one or more storage media 1730 (for example, one or more mass storage devices) storing application programs 1742 or data 1744. Among them, the memory 1732 and the storage media 1730 may be transient storage or persistent storage. The program stored in the storage media 1730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the central processor 1722 may be configured to communicate with the storage media 1730 and execute a series of instruction operations in the storage media 1730 on the server 1700.
[0188] The server 1700 may further include one or more power supplies 1726, one or more wired or wireless network interfaces 1750, one or more input / output interfaces 1758, and / or one or more operating systems, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM and so on.
[0189] The steps performed by the server in the above embodiments may be based on the Figure 17 server structure shown.
[0190] Among them, the CPU 1722 is used to execute the following steps:
[0191] Obtain a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of interactive elements in the video and the trigger actions corresponding to the interactive elements;
[0192] For each of the interactive elements in the target video, configure a corresponding eliminable event; the eliminable event is used to play the elimination effect corresponding to the interactive element in response to an effective elimination operation triggered for the interactive element in the target video; the effective elimination operation refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element.
[0193] Optionally, the CPU 1722 can also be used to execute the steps of any implementation manner of the video generation method provided in the embodiments of the present application.
[0194] The embodiments of the present application also provide a computer-readable storage medium for storing a computer program, and the computer program is used to execute any implementation manner of the video playback method or the video generation method described in the foregoing various embodiments.
[0195] The embodiments of the present application also provide a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes any implementation manner of the video playback method or the video generation method described in the foregoing various embodiments.
[0196] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be described in detail here.
[0197] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the displayed or discussed mutual coupling or direct coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be in an electrical, mechanical, or other form.
[0198] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0199] In addition, each functional unit in various embodiments of the present application may be integrated in a processing unit, may exist physically alone for each unit, or two or more units may be integrated in one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0200] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), a magnetic disk, or an optical disc that can store computer programs.
[0201] It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships may exist. For example, "A and / or B" may represent: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (one) of the following" or its similar expression refers to any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0202] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A video playing method, characterized in that, The method includes: After receiving the target video, setting the eliminable events corresponding to each interactive element in the target video to a non-responsive state; In response to an interactive participation operation triggered for the target video, restoring the eliminable events corresponding to each interactive element in the target video to a responsive state, and playing the target video including the interactive elements; the target video is a video recorded by a video production user based on an interactive video template, the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements, the interactive elements are virtual elements configured with eliminable events, wherein when recording the target video based on the interactive video template, if it is detected that the user makes a trigger action corresponding to the interactive element indicated by the interactive video template, the interactive element is added and displayed in the recorded target video; During the process of playing the target video, in response to an effective elimination operation triggered for the interactive element displayed in the target video, displaying the elimination effect corresponding to the interactive element, including: when the target video is played to the emission time corresponding to the interactive element, based on the emission attribute information corresponding to the interactive element, the interactive element is emitted in the playing interface of the target video through a particle emitter, and the emission attribute information includes the emission point position, emission mode, initial velocity, depth, scaling ratio of the interactive element, as well as the display content, gravitational acceleration, and production rate of the interactive element; when it is detected that the touch position on the playing interface of the target video is within the elimination area corresponding to the interactive element, displaying the elimination effect corresponding to the interactive element; when it is detected that the touch position on the playing interface of the target video is not within the elimination area corresponding to the interactive element, displaying the effect corresponding to an invalid elimination operation; the effective elimination operation refers to that the touch position on the playing interface of the target video is within the elimination area corresponding to the interactive element, and the elimination effect corresponding to the interactive element is any one of the effects of the interactive element breaking, exploding, and disappearing; the elimination effect is displayed on the screen where the interactive element is located, and the display effect of the interactive element is jointly determined by the particle emitter and the particle style layer, the particle emitter is used to determine the emission point position, emission mode, depth, initial velocity, and scaling ratio of the interactive element, and the particle style layer is used to create the interactive element and determine the display content, gravitational acceleration, and production rate of the interactive element; When no interactive participation operation is detected for the target video, playing the target video without the interactive elements.
2. The method according to claim 1, characterized in that, The method further includes: During the process of playing the target video, in response to an effective elimination operation triggered for the interactive element displayed in the target video, displaying the score corresponding to the effective elimination operation; After playing the target video, displaying the total elimination score; the total elimination score is determined according to the scores corresponding to each effective elimination operation generated when playing the target video.
3. The method according to claim 2, wherein The method further includes: During the playback of the target video, in response to consecutive valid elimination operations triggered for multiple interactive elements displayed in the target video, display the score corresponding to the consecutive valid elimination operations; the consecutive valid elimination operations refer to the valid elimination operations generated a preset number of times consecutively. Then the total elimination score is determined based on the scores corresponding to each valid elimination operation generated during the playback of the target video and the scores corresponding to each consecutive valid elimination operation.
4. The method according to claim 2 or 3, characterized in that, The method further includes: Obtain first reward virtual resources according to the total elimination score; the first reward virtual resources are determined based on at least one of the following factors: the score value range to which the total elimination score belongs, the interactive virtual resources paid when triggering the interactive participation operation for the target video.
5. The method according to claim 2 or 3, characterized in that, The method further includes: Display the interactive ranking corresponding to the target video; the interactive ranking is determined based on the total elimination scores of each video consumer user who triggered the interactive participation operation for the target video within the reference time period. If the ranking of the video consumer user in the interactive ranking belongs to a preset ranking range, obtain the second reward virtual resources corresponding to the preset ranking range.
6. The method according to claim 1, characterized in that The step of playing the target video in response to the interactive participation operation triggered for the target video includes any one of the following: Play the target video in response to an interactive virtual resource payment operation triggered for the target video. Play the target video in response to a touch operation on an interactive participation control displayed on the playback interface of the target video. In response to a touch operation on an interactive participation control displayed on the playback interface of the target video, display a virtual resource payment control on the playback interface; play the target video in response to an interactive virtual resource payment operation triggered through the virtual resource payment control.
7. The method according to claim 1, characterized in that, The method further includes: In response to a valid elimination operation triggered for the interactive element displayed in the target video, play the elimination sound effect corresponding to the interactive element.
8. The method according to claim 1, wherein The method further includes: In response to a valid elimination operation triggered for the interactive element displayed in the target video, switch the expression of the target object in the target video to an elimination special effect expression; the elimination special effect expression is obtained by processing the face of the target object based on an elimination special effect expression template, or is recorded by instructing the target object to record during the recording of the target video.
9. The method according to claim 1, wherein The target video is generated through the following method: In response to a selection operation triggered for the interactive video template among each candidate interactive video template, display the shooting prompt information corresponding to the interactive video template. The shooting prompt information is used to prompt the trigger action to be performed and the interactive element displayed in response to the trigger action. In response to a video shooting operation triggered based on the interactive video template, start recording the target video. During the recording of the target video, if it is detected that the target object in the target video performs the trigger action, display the interactive element in the recording interface of the target video. After completing the recording of the target video, in response to a publishing operation triggered for the target video, publish the target video.
10. The method according to claim 9, wherein The method further includes: After completing the recording of the target video, on the preview interface of the target video, in response to an effective elimination operation triggered for the interactive element displayed in the target video, display the elimination effect corresponding to the interactive element.
11. The method according to claim 9, wherein The method further includes: After completing the recording of the target video, in response to an editing operation triggered for the target video, generate an edited target video; the editing operation includes at least one of the following: video clip operation, sticker editing operation, background music editing operation, filter editing operation, and character editing operation. The step of, in response to a publishing operation triggered for the target video, publishing the target video includes: In response to a publishing operation triggered for the edited target video, publish the edited target video.
12. A video generation method, characterized in that, The method includes: Obtain a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of the interactive element in the video and the trigger action corresponding to the interactive element. When recording the target video based on the interactive video template, if it is detected that the user makes the trigger action corresponding to the interactive element indicated by the interactive video template, then add and display the interactive element in the recorded target video. For each of the interactive elements in the target video, configure its corresponding eliminable event; the eliminable event is used to play the elimination effect corresponding to the interactive element in response to an effective elimination operation triggered for the interactive element in the target video; the effective elimination operation means that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element, and the elimination effect corresponding to the interactive element is any one of the effects of the interactive element breaking, exploding, and disappearing. The display method of the elimination effect is as follows: when the target video plays to the emission time corresponding to the interactive element, based on the emission attribute information corresponding to the interactive element, the interactive element is emitted in the playback interface of the target video through a particle emitter. The emission attribute information includes the emission point position, emission mode, initial velocity, depth, scaling ratio of the interactive element, as well as the display content, gravitational acceleration, and production rate of the interactive element; when it is detected that the touch position on the playback interface of the target video is within the elimination area corresponding to the interactive element, display the elimination effect corresponding to the interactive element; when it is detected that the touch position on the playback interface of the target video is not within the elimination area corresponding to the interactive element, display the effect corresponding to an invalid elimination operation. Among them, the elimination effect is displayed on the screen where the interactive element is located, and the display effect of the interactive element is jointly determined by the particle emitter and the particle style layer. The particle emitter is used to determine the emission point position, emission mode, depth, initial velocity, and scaling ratio of the interactive element, and the particle style layer is used to create the interactive element and determine the display content, gravitational acceleration, and production rate of the interactive element.
13. A video playback device, characterized in that, The device includes: A video playback module, which is used to set the eliminable events corresponding to each interactive element in the target video to a non-responsive state after receiving the target video; in response to an interactive participation operation triggered for the target video, restore the eliminable events corresponding to each interactive element in the target video to the responsive state and play the target video including the interactive elements; the target video is a video recorded by a video production user based on an interactive video template, and the interactive video template is used to indicate the display style of the interactive elements in the video and the trigger actions corresponding to the interactive elements. The interactive elements are virtual elements configured with eliminable events. Among them, when recording the target video based on the interactive video template, if it is detected that the user makes the trigger action corresponding to the interactive element indicated by the interactive video template, the interactive element is added and displayed in the recorded target video; The video interaction module is used to display the elimination effect corresponding to the interaction element in response to a valid elimination operation triggered for the interaction element displayed in the target video during the playback of the target video, including: when the target video plays to the emission time corresponding to the interaction element, based on the emission attribute information corresponding to the interaction element, the interaction element is emitted in the playback interface of the target video through a particle emitter, and the emission attribute information includes the emission point position, emission mode, initial velocity, depth, scaling ratio of the interaction element, as well as the display content, gravitational acceleration, and production rate of the interaction element; when it is detected that the touch position on the playback interface of the target video is within the elimination area corresponding to the interaction element, the elimination effect corresponding to the interaction element is displayed; when it is detected that the touch position on the playback interface of the target video is not within the elimination area corresponding to the interaction element, the effect corresponding to an invalid elimination operation is displayed; the valid elimination operation refers to that the touch position on the playback interface of the target video is within the elimination area corresponding to the interaction element, and the elimination effect corresponding to the interaction element is any one of the effects of the interaction element breaking, exploding, and disappearing; the elimination effect is displayed on the screen where the interaction element is located, and the display effect of the interaction element is jointly determined by the particle emitter and the particle style layer. The particle emitter is used to determine the emission point position, emission mode, depth, initial velocity, and scaling ratio of the interaction element, and the particle style layer is used to create the interaction element and determine the display content, gravitational acceleration, and production rate of the interaction element; The video playback module is further used to play the target video without the interaction element when no interaction participation operation is triggered for the target video.
14. The device according to claim 13, characterized in that, The device further includes: The score display module is used to display the score corresponding to the valid elimination operation in response to the valid elimination operation triggered for the interaction element displayed in the target video during the playback of the target video; and, after playing the target video, display the total elimination score; the total elimination score is determined according to the scores corresponding to each valid elimination operation generated when playing the target video.
15. The device according to claim 14, characterized in that, The score display module is further used to: During the playback of the target video, display the score corresponding to the continuous valid elimination operation in response to the continuous valid elimination operation triggered for multiple interaction elements displayed in the target video; The continuous valid elimination operation refers to continuously generating the valid elimination operation a preset number of times; Then the total elimination score is determined according to the scores corresponding to each valid elimination operation generated when playing the target video and the scores corresponding to each continuous valid elimination operation.
16. The device according to claim 14 or 15, characterized in that, The device further includes: A reward resource acquisition module, configured to acquire first reward virtual resources according to the total elimination score; the first reward virtual resources are determined according to at least one of the following factors: the score range to which the total elimination score belongs, and the interactive virtual resources paid when triggering the interactive participation operation for the target video.
17. The device according to claim 14 or 15, characterized in that, The device further includes: A ranking display module, configured to display the interactive ranking corresponding to the target video; the interactive ranking is determined according to the total elimination scores of each video consumer user who triggers the interactive participation operation for the target video within a reference time period; The reward resource acquisition module is further configured to, if the ranking of the video consumer user in the interactive ranking belongs to a preset ranking range, acquire second reward virtual resources corresponding to the preset ranking range.
18. The device according to claim 13, characterized in that, The video playback module is specifically configured to implement its functions in any of the following ways: In response to an interactive virtual resource payment operation triggered for the target video, play the target video; In response to a touch operation on an interactive participation control displayed on the playback interface of the target video, play the target video; In response to a touch operation on an interactive participation control displayed on the playback interface of the target video, display a virtual resource payment control on the playback interface; in response to an interactive virtual resource payment operation triggered through the virtual resource payment control, play the target video.
19. The device according to claim 13, wherein The device further includes: A sound effect playback module, configured to play an elimination sound effect corresponding to the interactive element in response to an effective elimination operation triggered for the interactive element displayed in the target video.
20. The device according to claim 13, characterized in that, The device further includes: An expression switching module, configured to switch the expression of the target object in the target video to an elimination special effect expression in response to an effective elimination operation triggered for the interactive element displayed in the target video; the elimination special effect expression is obtained by processing the face of the target object based on an elimination special effect expression template, or is instructed to be recorded by the target object when recording the target video.
21. The device according to claim 13, characterized in that, The device further includes: A prompt information display module, configured to display shooting prompt information corresponding to the interactive video template in response to a selection operation triggered for the interactive video template among each candidate interactive video template; the shooting prompt information is used to prompt the trigger action to be performed and the interactive element displayed in response to the trigger action; A video recording module, configured to start recording the target video in response to a video shooting operation triggered based on the interactive video template; during the process of recording the target video, if it is detected that the target object in the target video performs the trigger action, display the interactive element in the recording interface of the target video; A video publishing module, configured to publish the target video in response to a publishing operation triggered for the target video after the recording of the target video is completed.
22. The device according to claim 21, characterized in that The device further includes: A video pre - interaction module, which is used to, after the recording of the target video is completed, on the preview interface of the target video, in response to the effective elimination operation triggered for the interaction element displayed in the target video, display the elimination effect corresponding to the interaction element.
23. The device according to claim 21, characterized in that, The device further includes: A video editing module, which is used to, after the recording of the target video is completed, in response to the editing operation triggered for the target video, generate an edited target video; the editing operation includes at least one of the following: video clipping operation, sticker editing operation, background music editing operation, filter editing operation, and character editing operation. Then the video publishing module is specifically used for: In response to the publishing operation triggered for the edited target video, publish the edited target video.
24. A video generation device, characterized in that, The device includes: A video acquisition module, which is used to acquire a target video recorded based on an interactive video template; the interactive video template is used to indicate the display style of the interaction elements in the video and the trigger actions corresponding to the interaction elements. When the target video is recorded based on the interactive video template, if it is detected that the user makes the trigger action corresponding to the interaction element indicated by the interactive video template, the interaction element is added and displayed in the recorded target video. An event configuration module, which is used to configure the corresponding eliminable event for each interaction element in the target video; the eliminable event is used to, in response to the effective elimination operation triggered for the interaction element in the target video, play the elimination effect corresponding to the interaction element; the effective elimination operation means that the touch position on the playback interface of the target video is within the elimination area corresponding to the interaction element, and the elimination effect corresponding to the interaction element is any one of the effects of the interaction element breaking, exploding, and disappearing. The display method of the elimination effect is: when the target video plays to the emission time corresponding to the interaction element, based on the emission attribute information corresponding to the interaction element, the interaction element is emitted on the playback interface of the target video through a particle emitter. The emission attribute information includes the emission point position, emission mode, initial velocity, depth, scaling ratio of the interaction element, as well as the display content, gravitational acceleration, and production rate of the interaction element; when it is detected that the touch position on the playback interface of the target video is within the elimination area corresponding to the interaction element, the elimination effect corresponding to the interaction element is displayed; when it is detected that the touch position on the playback interface of the target video is not within the elimination area corresponding to the interaction element, the effect corresponding to the invalid elimination operation is displayed. Among them, the elimination effect is displayed on the screen where the interaction element is located, and the display effect of the interaction element is jointly determined by the particle emitter and the particle style layer. The particle emitter is used to determine the emission point position, emission mode, depth, initial velocity, and scaling ratio of the interaction element, and the particle style layer is used to create the interaction element and determine the display content, gravitational acceleration, and production rate of the interaction element.
25. A device, characterized in that, The device includes a processor and a memory; The memory is used to store a computer program; The processor is used to execute the video playback method according to any one of claims 1 to 11, or the video generation method according to claim 12, based on the computer program.
26. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the video playback method according to any one of claims 1 to 11, or the video generation method according to claim 12.
27. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or the instruction is executed by the processor, the video playback method according to any one of claims 1 to 11, or the video generation method according to claim 12 is implemented.
Citation Information
Patent Citations
Video interaction method and device, and readable medium
CN108769814A
Method and device for adding video effect, terminal device and storage medium
CN109462776A