Video processing method and apparatus, terminal device and storage medium

HK40071006BActive Publication Date: 2026-07-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
HK · HK
Patent Type
Patents
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-09-21
Publication Date
2026-07-10

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a video processing method and device, terminal equipment and storage medium. The method comprises the following steps: displaying a video playing interface of a target video, wherein the video playing interface comprises a mode adjustment control; when the mode adjustment control is triggered, obtaining user behavior data, wherein the user behavior data is used to determine an unlocking duration of the target video; and playing the target video in the video playing interface according to the unlocking duration. According to the present application, the unlocking duration of the target video can be determined according to the user behavior data, and the target video can be played in the video playing interface according to the unlocking duration, thereby enriching the playing mode of the video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a video processing method, apparatus, terminal device and storage medium. Background Technology

[0002] As people's daily lives become richer and more diverse, entertainment and sports scenarios and video entertainment scenarios often coexist. That is, users may use mobile devices to play and watch videos while exercising indoors using equipment or working out.

[0003] In existing technologies, video playback typically involves users manually clicking on the video to start it. Specifically, users can manually drag the progress bar to jump to the desired section of the video. Clearly, current mobile devices offer limited video playback options, making the development of diverse playback methods a pressing technical challenge. Summary of the Invention

[0004] This application provides a video processing method, apparatus, terminal device, and storage medium, which can determine the unlock duration of a target video based on user behavior data and play the target video in the video playback interface according to the unlock duration, thus enriching the video playback methods.

[0005] One embodiment of this application provides a video processing method, including:

[0006] A video playback interface that displays the target video, the video playback interface including mode adjustment controls;

[0007] When the mode adjustment control is triggered, user behavior data is acquired, and the user behavior data is used to determine the unlock duration of the target video;

[0008] The target video is played in the video playback interface according to the unlock duration.

[0009] One embodiment of this application provides a video processing apparatus, including:

[0010] The display unit is used to display the video playback interface of the target video, the video playback interface including mode adjustment controls;

[0011] The acquisition unit is used to acquire user behavior data when the mode adjustment control is triggered, and the user behavior data is used to determine the unlock duration of the target video.

[0012] A playback unit is used to play the target video in the video playback interface according to the unlock duration.

[0013] One embodiment of this application provides a terminal device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the methods described in the above embodiments.

[0014] One aspect of this application provides a computer storage medium storing a computer program, which includes program instructions. When the program instructions are executed by a processor, they perform the methods described in the above embodiments.

[0015] One aspect of this application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. When the computer instructions are executed by the processor of a terminal device, the methods described in the above embodiments are performed.

[0016] The video processing method provided in this application embodiment can acquire user behavior data generated during user movement when the mode adjustment control in the video playback interface is triggered. Based on this data, the unlock duration of the target video can be determined, and the target video can be played in the video playback interface according to the unlock duration. This allows for unlocking the video through user movement, thereby achieving video playback and enriching the video playback experience. Compared to existing methods where user movement and video viewing are independent, this solution links user movement and video viewing, increasing the fun of combining exercise and entertainment. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the structure of a video processing system provided in an embodiment of this application;

[0019] Figure 2a This is a schematic diagram of another video processing system provided in an embodiment of this application;

[0020] Figure 2b This is a schematic diagram of a video playback interface provided in an embodiment of this application;

[0021] Figure 2c This is a schematic diagram of a mode selection interface provided in an embodiment of this application;

[0022] Figure 2dThis is a schematic diagram of a first mode interface provided in an embodiment of this application;

[0023] Figure 2e This is a schematic diagram of a second mode interface provided in an embodiment of this application;

[0024] Figure 2f This is a schematic diagram of another video playback interface provided in an embodiment of this application;

[0025] Figure 2g This is a schematic diagram of another video playback interface provided in an embodiment of this application;

[0026] Figure 2h This is a schematic diagram of another video playback interface provided in an embodiment of this application;

[0027] Figure 3a This is a scene illustration of a video processing method provided in an embodiment of this application;

[0028] Figure 3b This is a schematic diagram of a scenario for another video processing method provided in an embodiment of this application;

[0029] Figure 4 This is a flowchart illustrating a video processing method provided in an embodiment of this application;

[0030] Figure 5a This is a schematic diagram of another video playback interface provided in an embodiment of this application;

[0031] Figure 5b This is a schematic diagram of another video playback interface provided in an embodiment of this application;

[0032] Figure 5c This is a schematic diagram of another video playback interface provided in an embodiment of this application;

[0033] Figure 5d This is a schematic diagram of another mode selection interface provided in an embodiment of this application;

[0034] Figure 5e This is a schematic diagram of an interface for displaying mode icons provided in an embodiment of this application;

[0035] Figure 6 This is a flowchart illustrating another video processing method provided in an embodiment of this application;

[0036] Figure 7 This is a flowchart illustrating another video processing method provided in an embodiment of this application;

[0037] Figure 8 This is a schematic diagram of the structure of a video processing device provided in an embodiment of this application;

[0038] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0040] IoT: Internet of Things, refers to the technology by which devices exchange and interact with each other using various information they collect, such as sound, light, heat, electricity, mechanics, chemistry, biology, and location data, through radio frequency identification and local area networks.

[0041] In this application, the terminal device playing the target video and the motion device collecting user behavior data during the user's movement can establish a connection through IoT, such as through Bluetooth, Universal Serial Bus, Wireless LAN, or server relay, so as to send the user behavior data to the terminal device, so that the terminal device can determine the unlocking duration of the target video through the user behavior data.

[0042] Among these requirements, the sports equipment must meet the following criteria: First, the sports equipment must comply with the data transmission protocol (the sports equipment itself must be allowed to access the video application's server and reach a data exchange cooperation agreement before it can be interconnected); and second, the sports equipment itself must have data acquisition functions (including timing, distance conversion, pace statistics, heart rate sensors, etc.).

[0043] This application can be applied to the following scenarios: when a terminal device is playing a video and a communication connection is established between the motion device and the terminal device, the motion device sends the user behavior data collected during the user's movement to the terminal device. The terminal device can determine the unlock duration of the currently playing video based on the user behavior data, and subsequently determine whether to continue playing the video or pause playing the video based on the unlock duration.

[0044] Furthermore, this application can also be applied to the following scenario: a user wants to watch a certain video, which requires a paid membership to watch, and the video supports an unlock mode based on exercise, meaning the user can unlock the video using exercise data. Specifically, the user can use a fitness device to collect user behavior data generated during exercise. Assuming a connection is established between the fitness device and the terminal device, the fitness device can send the user behavior data to the terminal device. The terminal device can then determine the unlock duration of the video based on the user behavior data and play the video accordingly. This allows users to unlock and watch videos without purchasing a membership, and also incentivizes user exercise.

[0045] Please see Figure 1 , Figure 1 This is a schematic diagram of a video processing system provided in an embodiment of this application. The system architecture includes a terminal device 140 and a cluster of motion devices, wherein the cluster of motion devices may include motion devices 110, 120, ..., 130, etc. The cluster of motion devices and the terminal device 140 can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0046] In practice, any sports device in the sports equipment cluster can establish a connection with terminal device 140 via the Internet of Things (IoT). The IoT connection can be established via Bluetooth, Universal Serial Bus (USB), Wi-Fi, or a server relay. Taking sports device 110 as an example, if both terminal device 140 and sports device 110 support Bluetooth, they can establish a connection via Bluetooth when both are in Bluetooth mode. Alternatively, terminal device 140 can also connect to sports device 110 via USB. Furthermore, if terminal device 140 and sports device 110 are on the same Wi-Fi network, they can establish a connection via Wi-Fi. Finally, terminal device 140 and sports device 110 can also connect via the same relay server.

[0047] in, Figure 1 The terminal device 140 shown can be a mobile phone, tablet computer, laptop computer, handheld computer, mobile internet device (MID), vehicle, roadside equipment, aircraft, wearable device, such as smart watch, smart bracelet, pedometer, etc., and other smart devices with video processing functions.

[0048] in, Figure 1 The exercise equipment 110, exercise equipment 120, and exercise equipment 130 shown can be devices with exercise data collection functions, such as treadmills, fitness trackers, electronic devices, and exercise bikes. The exercise data can include, but is not limited to, exercise time, exercise distance, exercise speed, and user exercise heart rate.

[0049] In one possible implementation, taking motion device 110 as an example, terminal device 140 displays a video playback interface for the target video. This video playback interface includes mode adjustment controls. Users can click the mode adjustment controls; when a user clicks the controls, it indicates that terminal device 140 has entered motion mode. Terminal device 140 can acquire user behavior data sent by motion device 110. This user behavior data is collected by motion device 110 and used to determine the unlock duration of the target video. Terminal device 140 determines the unlock duration of the target video based on the user behavior data and then plays the target video in the video playback interface according to the unlock duration.

[0050] It is understood that the system architecture diagrams described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0051] Please see Figure 2a , Figure 2a This is a schematic diagram of another video processing system provided in an embodiment of this application. It should be noted that... Figure 2a The exercise equipment used in this context needs to meet the following requirements: First, the exercise equipment must comply with data transmission protocols (the equipment itself must be authorized to access the video application's server and reach a data exchange cooperation agreement before interconnection is possible); second, the exercise equipment itself must have data acquisition capabilities (including timing, distance conversion, pace statistics, heart rate sensors, etc.). Therefore, the exercise equipment can collect user behavior data corresponding to the user's actions during exercise. For example, specific examples of exercise equipment include treadmills, fitness trackers, electronic devices, and exercise bikes.

[0052] In one possible implementation, the sports equipment and the terminal device can establish a communication connection via Bluetooth, Universal Serial Bus (USB), Wi-Fi, or a server relay. Specifically: Bluetooth: Connects Bluetooth-enabled sports equipment and the terminal device for fast data exchange, suitable for situations where the terminal device has no network or a weak network connection. USB wired data transmission (USB): Direct data exchange via a point-to-point hardware interface, without relying on a network environment. Local area network (Wi-Fi): Connects sports equipment and the terminal device to a unified local area network for information interconnection, widely applicable to office and home scenarios. Server relay: Uses a remote Tencent Video server as a data relay and performs data calculations; sports equipment and the terminal device can be used simply by connecting to the network.

[0053] In one possible implementation, during the data backend process: the motion device's sensors store the collected user behavior data in the motion device's database. Then, the motion device transmits the user behavior data to the terminal device via Bluetooth, Universal Serial Bus, Wireless LAN, or a server relay. The data mapping device in the terminal device determines the unlock duration of the target video based on the user behavior data and plays the target video in the video playback interface according to the unlock duration.

[0054] like Figure 2b , Figure 2b This is a schematic diagram of a video playback interface provided in an embodiment of this application. Figure 2b As shown, after entering the video application, a video playback interface is displayed on the terminal device. This interface includes mode adjustment controls, the target video, and a playback progress bar for the target video. Users can click the mode adjustment controls in the video playback interface. When the terminal device responds to the user's click, it means the mode adjustment controls have been triggered. Furthermore, triggering the mode adjustment controls can indicate that the user has activated motion mode.

[0055] like Figure 2c , Figure 2c This is a schematic diagram of a mode selection interface provided in an embodiment of this application, such as... Figure 2cAs shown, when the user clicks the mode adjustment control, the target video pauses playback on the video playback interface and switches to the mode selection interface. The mode selection interface displays "Enable Sports Mode" at the mode adjustment control. The mode selection interface includes a first selection control and a second selection control. Specifically, the first selection control corresponds to the first mode, and the second selection control corresponds to the second mode. The first mode can be distance mode, and the second mode can be pace mode. The user can click either the first or second selection control in the mode selection interface. Clicking the first selection control selects the first mode, and clicking the second selection control selects the second mode.

[0056] like Figure 2d , Figure 2d This is a schematic diagram of a first mode interface provided in an embodiment of this application. After the user clicks the first selection control in the mode selection interface, the mode selection interface switches to... Figure 2d The interface shown includes an input box, a "Cancel" control, and a "Start Exercise" control. After entering the interface, a prompt message appears above the input box: "Please enter your target exercise distance." This prompt encourages the user to enter the target distance corresponding to the first mode (distance mode). For example, if the user enters "5KM," the input box will display "5KM." After entering the target distance, the user can click either the "Cancel" or "Start Exercise" control. If the user clicks "Start Exercise," the terminal device can obtain reference behavior data (i.e., target distance) corresponding to the first mode (distance mode) to determine the unlocking duration of the target video.

[0057] like Figure 2e , Figure 2e This is a schematic diagram of a second mode interface provided in an embodiment of this application. After the user clicks the second selection control in the mode selection interface, the mode selection interface switches to... Figure 2eThe interface shown includes an input box, a "Cancel" control, and a "Start Exercise" control. After entering the interface, a prompt message appears above the input box: "Please enter your target pace." This prompt encourages the user to enter their target pace for the second mode (pace mode). For example, if the user enters "7 km / h," the input box will display "7 km / h" as the target distance. After entering the target pace, the user can click either the "Cancel" or "Start Exercise" control. If the user clicks "Start Exercise," the terminal device can obtain reference behavior data (i.e., the target pace) corresponding to the second mode (pace mode) to determine the target video unlock duration.

[0058] In one possible implementation, such as Figure 2f , Figure 2f This is a schematic diagram of another video playback interface provided in an embodiment of this application. Figure 2f In the video playback interface, the playback progress bar can display the current unlock progress, i.e., the unlock duration. For example, if the current video playback progress is 01:00 and the unlock progress is 02:00, meaning the unlock progress is greater than the current video playback progress, then the video can continue playing in the playback interface, and the corresponding part of the unlock progress in the progress bar will be displayed in green. Of course, the video playback interface can also include a "speed control." If the unlock progress is greater than the current video playback progress, the user can click the "speed control." When the "speed control" is triggered, the video will play at the user-selected speed until the current video playback progress equals the current video unlock progress. Then, the current video speed will automatically adjust to the default speed, which can be 1x.

[0059] In one possible implementation, such as Figure 2g , Figure 2g This is a schematic diagram of another video playback interface provided in an embodiment of this application. Figure 2g For example, if the current video playback progress is 00:53 and the unlock progress is also 00:53, meaning the current video playback progress equals the unlock progress, then the current video playback will pause, and a prompt message will be displayed on the video playback interface. For example, it could be "Keep moving to unlock the progress bar!", and the playback progress bar could be highlighted in orange, indicating that the user needs to continue moving to unlock the progress, and the video playback will continue to show the current distance.

[0060] In one possible implementation, such as Figure 2h , Figure 2hThis is a schematic diagram of another video playback interface provided in an embodiment of this application. Figure 2h In the video, users can unlock the progress bar in advance. When the unlock progress (unlocked duration) is greater than or equal to the total duration of the current video, the user completes the unlock of that video. Upon completion, a pop-up window on the video playback interface displays the user's exercise data and comparison data with other runners in the same video. The comparison data can be displayed as percentages; for example, the pop-up message could say, "Congratulations on completing a 5km training run in 36.5 minutes, 32% faster than your competitors." Furthermore, the video playback interface can include an "OK and Return to Video" control. Clicking this control allows the user to watch the complete video on the playback interface.

[0061] For example, the video processing method provided in this application embodiment can be applied to the following scenarios: office exercise scenarios, home exercise scenarios, and group spinning scenarios in gyms, etc. Specifically, such as Figure 3a , Figure 3a This is a schematic diagram illustrating a video processing method provided in an embodiment of this application. For a home fitness scenario, firstly, a user can exercise using exercise equipment (such as a treadmill). The exercise equipment can collect the user's exercise data (i.e., user behavior data), such as distance, speed, and duration. Then, the exercise equipment sends the collected user behavior data to a terminal device. The data mapping device in the terminal device can calculate the unlock duration based on the user behavior data and play the current video on the video playback interface according to the unlock duration. Of course, the application scenario provided in this embodiment presupposes that a communication connection is established between the exercise equipment and the terminal device, enabling data transmission between them. The method for establishing a communication connection between the exercise equipment and the terminal device has been described above and will not be repeated here.

[0062] Additionally, please see Figure 3b , Figure 3bThis is a schematic diagram illustrating another video processing method provided in this application embodiment. In the group cycling scenario, it primarily targets gym-goers engaging in group exercise using group cycling bikes or other exercise equipment, and then unlocking videos or movies. Specifically, the behavioral data of each user can be superimposed to obtain total behavioral data. For example, user behavior data 1, user behavior data 2, and user behavior data 3 can be superimposed to obtain target user behavior data. The terminal device then unlocks videos or movies based on this target user behavior data. Using this application embodiment, user behavior data generated during exercise can be correlated with the corresponding video playback data on the terminal device, enhancing the fun and increasing user interest in exercise by allowing users to unlock videos through exercise.

[0063] Please see Figure 4 , Figure 4 This is a schematic flowchart of a video processing method provided in an embodiment of this application. The method is applied to a terminal device, such as... Figure 4 As shown, the video processing method may include steps S410 to S430. Wherein:

[0064] Step S410: Display the video playback interface of the target video, the video playback interface including mode adjustment controls.

[0065] In practice, when the terminal device is in the startup state, it can display a video playback interface for the target video. A schematic diagram of the video playback interface can be shown below. Figure 2b As shown, Figure 2b The video playback interface may include a mode adjustment control, a target video, a playback speed control, and a progress bar corresponding to the target video, which displays the playback progress of the target video. Specifically, the mode adjustment control may be a motion mode adjustment control, and the playback speed control corresponds to the playback speed of the target video. Typically, the playback speed can include 0.5x, 1x (the default speed), 1.5x, 2x, etc. It should be noted that the position of the mode adjustment control in the video playback interface is not limited. For example, the mode adjustment control may be located in the lower right corner of the video playback interface, or it may be located in the upper right corner. This embodiment does not limit the position of the mode adjustment control.

[0066] Step S420: When the mode adjustment control is triggered, user behavior data is acquired, and the user behavior data is used to determine the unlock duration of the target video.

[0067] In practice, on the video playback interface, users can click the mode adjustment control. When a user clicks the control, the terminal device responds to the click, indicating that the mode adjustment control has been triggered. Specifically, users can click the mode adjustment control immediately after entering the video playback interface, or they can click it after a portion of the target video has already played.

[0068] In practice, the terminal device receives user behavior data sent by the exercise equipment. This user behavior data is the behavioral data collected by the exercise equipment during the user's exercise, and it is transmitted via Bluetooth, Universal Serial Bus, Wi-Fi, or a server relay. Specifically, the user behavior data can include the user's exercise distance or pace, etc.

[0069] In one possible implementation, before the terminal device acquires user behavior data sent by the exercise device, the exercise device must comply with a data transmission protocol. This means the exercise device itself must gain access to the video application server corresponding to the terminal device and reach a data exchange cooperation agreement before interconnection with the terminal device is possible. Furthermore, the exercise device itself must have data acquisition capabilities, which may include timing, distance conversion, pace statistics, heart rate sensors, etc. Further, the terminal device and the exercise device establish a communication connection. Specifically, the methods for establishing a communication connection include, but are not limited to: Bluetooth, Universal Serial Bus (USB), Wireless LAN, or server relay.

[0070] For example, a connection can be established between a terminal device and a sports device in the following ways.

[0071] Application server relay (server relay method): The target video remote server can be used as a data relay to complete data calculation. It can be used by connecting sports equipment and terminal devices to the network.

[0072] Local Area WiFi (WLAN): This allows sports equipment and mobile devices to connect to a unified local area network, enabling information interconnection. It is widely applicable to office and home scenarios.

[0073] Bluetooth: Enables Bluetooth-enabled sports devices to connect with terminal devices for fast data exchange, suitable for situations where the terminal device has no network or a weak network connection.

[0074] USB wired data transmission (Universal Serial Bus method): Point-to-point hardware interface directly exchanges data without relying on a network environment. It connects the USB interface of the terminal device and the USB interface of the sports device through a USB data cable.

[0075] In one possible implementation, before the terminal device acquires user behavior data, it switches from the video playback interface to the mode selection interface, and pauses playback of the target video on the video playback interface. The mode selection interface includes a first selection control and a second selection control. Specifically, if the user clicks the mode adjustment control on the video playback interface, the device switches to the mode selection interface. A schematic diagram of the mode selection interface is shown below. Figure 2c As shown, the target video is paused on the video playback interface. Furthermore, the mode selection interface can include a first selection control and a second selection control. The first selection control can be the control corresponding to the first mode, and the second selection control can be the control corresponding to the second mode. The two modes are distinguished based on the data mapping method. Specifically, the data mapping method can be based on distance data mapping or pace data mapping. Of course, the data mapping method can also be based on the user's exercise heart rate or exercise duration, etc.

[0076] For example, if the first mode is distance mode, then the first selection control is the control corresponding to distance mode; if the second mode is pace mode, then the second selection control is the control corresponding to pace mode. Of course, more modes may exist later, such as a third mode and a fourth mode. In that case, the mode selection interface may also include the control corresponding to the third mode (i.e., the third control), and the mode selection interface may also include the control corresponding to the fourth mode (i.e., the fourth control), and so on.

[0077] In one possible implementation, the third mode can be a heart rate mode, and the fourth mode can be a duration mode. Specifically, for the heart rate mode, the exercise device can acquire the user's heart rate in real time during exercise. Once a connection is established between the exercise device and the terminal device, the heart rate is sent to the terminal device. The terminal device can obtain a reference heart rate threshold, which can be the average frequency of a normal human heartbeat. Further, the terminal device uses the ratio between the exercise heart rate and the reference heart rate threshold to determine the unlocking speed, thus obtaining the unlocking duration. Additionally, for the duration mode, the exercise device can acquire the user's exercise duration in real time. Once a connection is established between the exercise device and the terminal device, the exercise duration is sent to the terminal device. The terminal device can obtain a reference duration threshold, which can be a user-preset value or a terminal device-preset value. When the user's exercise duration reaches the reference duration threshold, the unlocking function for the target video is activated, thus unlocking the video promptly.

[0078] In one possible implementation, when the target selection control is triggered, the terminal device obtains reference behavior data corresponding to the mode of the target selection control from the mode selection interface. Here, the target selection control refers to either the first selection control or the second selection control, and the reference behavior data is used to determine the unlock duration of the target video. Specifically, if the user clicks the first selection control, i.e., the first selection control is triggered, the terminal device can obtain the reference behavior data corresponding to the mode of the first selection control from the mode selection interface. It should be noted that the reference behavior data can be set by the user or preset by the terminal device.

[0079] For example, when a user clicks the control corresponding to the distance mode, the terminal device responds to the user's click operation, that is, the control corresponding to the distance mode is triggered. The user can then input the target distance for their movement in the mode selection interface. If the user inputs a target distance of 5km, the terminal device will obtain reference behavior data of 5km from the mode selection interface. Similarly, when a user clicks the control corresponding to the pace mode, the terminal device responds to the user's click operation, that is, the control corresponding to the pace mode is triggered. The user can then input the target pace for their movement in the mode selection interface. If the user inputs a target pace of 7km / h, the terminal device will obtain reference behavior data of 7km / h from the mode selection interface.

[0080] In one possible implementation, after the target selection control is triggered, the mode adjustment control in the video playback interface is adjusted to display the mode icon and mode description text information corresponding to the target selection control's mode. Here, the target selection control refers to either the first or second selection control, and the mode icon of the target selection control's mode includes the unlock duration of the target video. Figure 5a As shown, the target selection control is the first selection control, which is specifically the selection control corresponding to the distance mode. Figure 5a In the video playback interface, before the mode adjustment control is triggered, the mode icon corresponding to the mode adjustment control is a "shoe" shaped icon. After the mode adjustment control is triggered, the mode icon corresponding to the mode adjustment control changes from a shoe shaped icon to a "running" shaped icon.

[0081] In one possible implementation, the mode icon for the first selection control corresponding to the first mode is different from the mode icon for the second selection control corresponding to the second mode, and the mode description text information for the first selection control corresponding to the first mode is different from the mode description text information for the second selection control corresponding to the second mode. For example, the different mode icons may include one or more differences in color, size, and icon style, such as... Figure 5b As shown, if the first mode is distance mode, the mode description text information for distance mode can specifically be: "Distance mode is starting, run a certain distance to unlock a certain progress bar"; for example... Figure 5c As shown, if the second mode is pace mode, the mode description text can be: "Pace mode activated, using pace as the unlock standard." The icon for distance mode is different from the icon for pace mode.

[0082] In one possible implementation, the mode selection interface also includes mode description text information for the first mode corresponding to the first selection control and mode description text information for the second mode corresponding to the second selection control. It should be noted that the mode description text information in this mode selection interface may or may not be the same as the mode description text information in the aforementioned video playback interface. For example, such as... Figure 5d As shown, if the first mode is distance mode, the mode description text information of distance mode can be: "Map your target distance to the video length proportionally, and unlock the progress bar according to how much you run"; if the second mode is pace mode, the mode description text information of pace mode can be: "Use your target pace as the unlock standard, and unlock the progress bar after reaching the target pace".

[0083] In one possible implementation, the display method of the mode icon corresponding to the target selection control during the pause of the target video playback interface differs from the display method of the mode icon corresponding to the target selection control during playback. Specifically, the different display methods include different modes of icon color, size, etc. For example, the mode icon corresponding to the paused target video could be orange, while the mode icon corresponding to the playing target video could be green. Or, for example... Figure 5e As shown, the size of the mode icon when the target video is paused can be twice the size of the mode icon when the target video is playing.

[0084] In one possible implementation, after the target selection control is triggered, an unlock progress bar containing the unlock duration is displayed in the video playback interface. The display method of the unlock progress bar differs when the target video is paused from the display method when the target video is playing. Specifically, the different display methods refer to the different ways the progress bar corresponding to the unlock duration is displayed. Further, the different display methods include different colors, sizes, etc. For example, the progress bar color when the target video is paused can be orange, and the progress bar color when the target video is playing can be green.

[0085] Step S430: Play the target video in the video playback interface according to the unlock duration.

[0086] In practice, the terminal device can determine the unlock duration of the target video based on the acquired user behavior data and reference behavior data. Then, the terminal device can obtain the already played duration of the target video and play the target video on the video playback interface based on the unlock duration and the already played duration. It should be noted that the already played duration of the target video refers to the playback duration counted from the time the user clicks the mode adjustment control, i.e., enters motion mode.

[0087] In one possible implementation, if the target video is not yet playing when the user clicks the mode adjustment control, the already played duration of the target video refers to the time interval between the start timestamp of the target video and the timestamp corresponding to the already played duration obtained by the terminal device. For example, if the total duration of the target video is 45 minutes, and the user clicks the mode adjustment control before the target video is played, then when the terminal device obtains the already played duration of the target video at 00:15, the already played duration of the target video obtained by the terminal device is 15 minutes. Alternatively, if the user clicks the mode adjustment control after the video has already played part of the video in the playback interface, and the user clicks the mode adjustment control after 10 minutes of playback, then if the terminal device obtains the already played duration of the target video at 00:15, the already played duration of the target video obtained by the terminal device is 5 minutes.

[0088] For example, a terminal device playing a target video based on the unlock duration and playback duration in the video playback interface can specifically include the following situations. For instance, if the unlock duration is longer than the current playback duration, the current video can be played in the video playback interface, which can also include a progress bar for the current video, which can include the unlock progress, i.e., the unlock duration. Figure 2f As shown, the current video has been playing for 1 minute, and the unlock duration is 2 minutes. The terminal device determines that the unlock duration is greater than the current playback duration, and therefore the current video can be played in the video playback interface. Conversely, if the unlock duration is less than or equal to the current playback duration, the current video will be paused in the video playback interface. Figure 2g As shown, the current video has been playing for 53 seconds, and the unlock time is also 53 seconds. Therefore, the terminal device determines that the unlock time equals the current playback time, pauses the video playback on the video playback interface, and displays a prompt message. This prompt message encourages the user to continue generating new user behavior data. Specifically, the prompt message could be something like, "Keep moving to unlock the progress bar!". For example, ... Figure 2hAs shown, if the unlocking time equals the total duration of the target video, the user can unlock the progress bar of the target video in advance. After completion, a pop-up window will appear on the video playback interface to display the exercise data and comparison data with other runners in the same video. For example, the pop-up window may display "Congratulations on completing the 5km distance training. The test case took 36.5 minutes, which is 32% faster than other runners." At the same time, the video playback interface includes a confirmation control. After the user clicks the confirmation control, the target video can continue to play in its entirety.

[0089] The video processing method provided in this application allows a terminal device to acquire user behavior data during exercise. The terminal device can then determine the unlock duration based on this data and play the target video on the video playback interface based on the acquired playback duration and unlock duration. This solution links user behavior data during exercise with the playback of the target video, enabling video unlocking and playback through user movement. Compared to existing methods where user movement and video viewing are independent, this solution links user movement and video viewing, thereby increasing the enjoyment of combining exercise with entertainment.

[0090] Please see Figure 6 , Figure 6 This is a flowchart illustrating another video processing method provided in an embodiment of this application. This method is applied to a terminal device. Figure 6 This embodiment is a specific implementation of the distance mode (i.e., the first mode) involved in this application, such as... Figure 6 As shown, the video processing method may include steps S610 to S680. Wherein:

[0091] Step S610: Obtain reference behavior data and user behavior data.

[0092] In practice, the terminal device acquires reference behavior data and user behavior data, and determines the unlocking duration of the target video based on the reference behavior data and user behavior data. Specifically, the reference behavior data includes the target distance in the first mode, where the first mode is the mode corresponding to the first selection control, and the first mode can specifically be a distance mode. The user behavior data includes the movement distance generated by the user during movement.

[0093] In one possible implementation, the terminal device dynamically acquires the motion distance data D1 of the motion device, and obtains the target distance D2 input by the user, the total duration L2 of the video selected by the user, and the current video playback duration Ln from the video application. Here, the total duration L2 of the video selected by the user refers to the total unplayed time of the target video, that is, the time interval between the start timestamp and the end timestamp of the target video from when the user clicks the mode adjustment control to enter motion mode.

[0094] Specifically, if a user selects a target video with a total duration of 50 minutes, then L2 equals 50 minutes. If, after selecting a target video with a total duration of 50 minutes, the user can further select a specific segment within that target video to unlock, such as the first 30 minutes, then the total duration of the target video would be 30 minutes. In summary, the total video duration can be specified by the user; it can be an entire target video or a specific segment within it. Similarly, the current video's played duration can also fall into either of these two categories. For a detailed explanation of the current video's played duration, please refer to [link to relevant documentation]. Figure 4 The specific explanation of the played duration of the target video in step S430 of the embodiment will not be repeated here. It should be noted that, in either case, the starting timestamps corresponding to the played duration Ln of the current video and the total duration L2 of the video selected by the user are the same. For example, Ln and L2 are both 00:00 of the target video, or Ln and L2 are both 01:00 of the target video. This application does not make specific limitations on this, as long as the starting timestamps of the two correspond to the same moment of the target video.

[0095] Step S620: Determine the unlocking duration of the target video based on the reference behavior data and user behavior data.

[0096] In one possible implementation, the terminal device determines the unlock duration of the target video based on the movement distance, the target distance, and the total unplayed video duration. Specifically, the terminal device obtains the distance ratio between the movement distance and the target distance; the terminal device multiplies the distance ratio by the total unplayed video duration to obtain the unlock duration of the target video.

[0097] For example, let the unlocking time be L1, and its conversion relationship is as shown in Formula 1:

[0098]

[0099] In Formula 1, D2 refers to the target distance (i.e., reference behavior data), D1 refers to the movement distance (i.e., user behavior data), and L2 refers to the total unplayed video duration. Therefore, the terminal device can calculate the unlock duration L1 of the target video according to Formula 1.

[0100] Step S630: Compare the unlock duration with the played duration.

[0101] Step S640: Determine whether the unlock duration is greater than the playback duration.

[0102] In practice, the terminal device compares the unlock duration L1 with the current playback duration Ln. If L1 is greater than Ln, the unlocked video can be played in the video playback interface. Here, the unlocked video refers to the video corresponding to the unlock duration L1 in the target video. If the unlock duration corresponds to the time period between 00:00 and 05:00 of the target video, then the portion of the target video corresponding to the time period between 00:00 and 05:00 can be played in the video playback interface.

[0103] Step S650: Pause the video playback and display an inspirational exercise prompt.

[0104] In practice, if L1 is less than or equal to Ln, it means that the video unlocking time is insufficient. In this case, the target video will be paused in the video playback interface, and a prompt message will be displayed in the video playback interface. The prompt message can be used to encourage the user to continue moving, thereby unlocking the video.

[0105] Step S660: Continue playing the video.

[0106] Step S670: Determine whether the unlock duration is equal to the total video duration.

[0107] In practice, if L1 is greater than Ln, the terminal device compares L1 with L2. If L1 is greater than or equal to L2, the video unlocking process ends, and the user's motion data and ranking data between the user and other connected users can be displayed in a pop-up window. The pop-up window also includes a confirmation control for playing the video; when the user clicks this control, they can stop exercising and continue playing the complete target video. If L1 is less than L2, the terminal device continues to determine the relationship between the unlocking duration and the playback duration until the unlocking duration L1 equals the total video duration L2.

[0108] Step S680: Unlocking complete, and motion data pops up.

[0109] In one possible implementation, the terminal device compares the unlock duration with the total unplayed video duration. If the unlock duration is greater than the already played duration of the target video and not less than the total unplayed video duration, a prompt pop-up is displayed. The prompt pop-up includes a completion message and a confirmation to play the video control. When the confirmation to play the video control is triggered, the device switches from the prompt pop-up to the video playback interface, where the unlocked video is played. The completion message indicates that the target video has been fully unlocked.

[0110] For example, this application embodiment can be applied to the following scenario: A user wants to watch a video that requires a membership. This video supports an exercise-based unlock mode, meaning the user can unlock the video through exercise. Specifically, the user can use an exercise device to collect user behavior data generated during exercise. Assuming a connection is established between the exercise device and the terminal device, the exercise device can send the user behavior data to the terminal device. The terminal device can then determine the unlock duration based on the user behavior data and play the video accordingly. This allows users to unlock and watch videos without paying for a membership, and also incentivizes user exercise. Furthermore, for video playback applications (APPs), this can extend the time users spend using the video playback APP, increasing its access rate and activity.

[0111] The video processing method provided in this application provides an interactive mode that maps the user's target movement distance to the total video duration. This allows the video to be unlocked based on the user's movement distance. On the one hand, it links the user's movement data with the video playback data, increasing the fun. On the other hand, it can unlock the video through movement, thereby motivating the user to exercise.

[0112] Please see Figure 7 , Figure 7 This is a flowchart illustrating another video processing method provided in an embodiment of this application. This method is applied to a terminal device. Figure 7 The embodiment is a specific implementation of the pacing mode (i.e., the second mode) involved in this application, such as... Figure 7 As shown, the video processing method may include steps S610 to S680. Wherein:

[0113] Step S710: Obtain reference behavior data and user behavior data.

[0114] In practice, the terminal device acquires reference behavior data and user behavior data, and determines the unlocking duration of the target video based on the reference behavior data and user behavior data. Specifically, the reference behavior data includes the target distance in the second mode, where the second mode is the mode corresponding to the second selection control, and the second mode can specifically be a pace mode. The user behavior data includes the pace generated by the user during movement.

[0115] In one possible implementation, the terminal device dynamically acquires the pace data S1 (exercise pace) of the exercise equipment and obtains the user-inputted target pace S2, the total duration L2 of the video selected by the user (total unplayed video duration), and the current video playback progress duration Ln from the video application. Here, the total duration L2 of the user-selected video refers to the total unplayed duration of the target video, that is, the time interval between the start timestamp and the end timestamp of the target video from when the user clicks the mode adjustment control to enter exercise mode. It should be noted that a detailed explanation of the total video duration L2 can be found in [link to relevant documentation]. Figure 7 The detailed description of the total video duration in the embodiments will not be repeated here.

[0116] Step S720: Determine the relationship between the running pace and the target pace.

[0117] Step S730: Determine the unlock duration of the target video based on the exercise pace, target pace, and the playback duration of the target video.

[0118] In one possible implementation, the terminal device determines the unlock duration of the target video based on the movement pace, the target pace, and the already played duration of the target video. The already played duration is the playback duration of the target video that begins to be counted when the second selection control is triggered. Specifically, if the movement pace is greater than or equal to the target pace, and the duration for which the movement pace is greater than or equal to the target pace is greater than a duration threshold, the terminal device obtains the pace ratio between the target pace and the movement pace; the terminal device then multiplies the pace ratio by the already played duration of the target video to obtain the unlock duration to be determined.

[0119] In practice, when a user's pace is greater than or equal to the target pace, the duration for which this pace is greater than or equal to the target pace must also exceed a duration threshold. In other words, the user's pace must remain at the target pace for a certain period before unlocking can begin. For example, if the target pace is 7 km / h, and the user's pace is 7.5 km / h at a certain moment, with a duration threshold of 2 seconds, then for the first 2 seconds of the user's pace reaching 7.5 km / h, the user's pace must be greater than or equal to 7 km / h. After that, unlocking can begin. Furthermore, after unlocking begins, the terminal device determines the current pace ratio based on the current speed and the target pace, and then determines the unlocking duration based on this ratio. Further, if the user's pace remains greater than the target pace after unlocking begins, the target video can be continuously unlocked, meaning the unlocking duration for the target video is continuously updated based on the pace ratio.

[0120] Furthermore, the terminal device obtains the historical maximum unlock duration of the target video. This historical maximum unlock duration is the largest among multiple historical unlock durations determined based on multiple sets of historical user behavior data. Finally, the terminal device uses the maximum unlock duration between the undetermined unlock duration and the historical maximum unlock duration as the unlock duration of the target video. It should be noted that since the user's unlock duration is determined by their pace of movement, and this pace of movement changes constantly, the unlock duration also changes accordingly. If, at a certain moment t1, the user's pace of movement is less than the pace of movement of the user at the previous moment t2, and the pace of movement at both moments t1 and t2 is greater than the target pace, then the unlock duration at moment t1 refers to the largest unlock duration among historical unlock durations, i.e., the unlock duration at moment t2.

[0121] For example, the terminal device determines whether the exercise pace S1 is greater than or equal to the target pace S2. If S1 is greater than or equal to the target pace S2, the target video is unlocked in the video playback interface. Let the unlock duration be L1 and the unlock speed be A. The conversion relationship for the speed A is shown in Formula 2, and the conversion relationship for the unlock duration L1 is shown in Formula 3.

[0122]

[0123] L1=A*Ln (3)

[0124] In Formula 2, S2 refers to the target pace, and S1 refers to the exercise pace. In Formula 3, Ln refers to the playback duration of the target video, which is the playback duration of the target video that begins to be counted when the second selection control is triggered. For a detailed explanation of the playback duration Ln of the current video, please refer to [link to relevant documentation]. Figure 4The specific explanation of the playback duration of the target video in step S430 of the embodiment will not be repeated here.

[0125] Step S740: Determine whether the unlock duration is equal to the total unplayed duration.

[0126] In one possible implementation, the terminal device compares the unlock duration with the total unplayed video duration. If the unlock duration is not less than the total unplayed video duration, a pop-up window is displayed. The pop-up window includes a completion message and a confirmation control for playing the video. When the confirmation control for playing the video is triggered, the device switches from the pop-up window to the video playback interface, where the unlocked video is played.

[0127] Step S750: Unlocking complete, and motion data pops up.

[0128] In practice, after calculating the unlocking duration L1 of the target video, the terminal device compares L1 with L2. If L1 is greater than or equal to L2, the video unlocking is complete, and the user's exercise data and ranking data between the user and other connected users can be displayed in a pop-up window. The pop-up window also includes a confirmation control for playing the video; when the user clicks this control, they can stop exercising and continue playing the complete target video. If L1 is less than L2, the terminal device then determines the relationship between the exercise pace S1 and the target pace S2.

[0129] Step S760: Do not initiate unlocking.

[0130] In one possible implementation, if the exercise pace is less than the target pace, the target video is paused in the video playback interface. Alternatively, the terminal device obtains the historical maximum unlock duration of the target video, wherein the historical maximum unlock duration is the largest historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical user behavior data. Then, the terminal device uses the historical unlock duration as the unlock duration.

[0131] Step S770: Determine whether the unlock duration is equal to the playback duration.

[0132] In practice, the terminal device obtains the played duration of the target video. If the unlock duration is less than or equal to the played duration of the target video, the target video is paused in the video playback interface, and a prompt message is displayed. If the unlock duration is greater than the played duration of the target video, the unlocked video is played in the video playback interface. The unlocked video refers to the video whose unlock duration corresponds to the target video's play duration. The prompt message indicates that the user's behavior data does not meet the playback conditions of the target video.

[0133] Step S780: Pause the video playback and pop up a prompt to encourage exercise.

[0134] In specific implementation, if L1 is less than or equal to Ln, it means that the video unlocking duration is insufficient. Then, pause the playback of the target video in the video playback interface and display a prompt message in the video playback interface. The prompt message can be used to encourage the user to continue exercising so as to unlock the video.

[0135] For example, if the user's current exercise pace is 6 km / h and the target pace is 7 km / h, the terminal device determines that the user's current exercise pace is less than the target pace. Then, the terminal device obtains the historical unlocking duration, where the historical unlocking duration can be 0 or not 0. A historical unlocking duration of 0 means that during this exercise process, the user's exercise pace has never reached the target pace, so the unlocking function of the target video has never been activated. A historical unlocking duration not equal to 0 means that the user's exercise pace has reached the target pace at a certain previous moment or multiple moments, and some videos have been unlocked. Therefore, when the user's exercise pace is less than the target pace at this moment, the user can still play the previously unlocked videos until the playback duration is equal to the historical unlocking duration, and then pause the playback of the current video.

[0136] Through the video processing method provided in this application, by comparing the user's target exercise pace with the target pace, the video can be unlocked based on the user's exercise pace. On the one hand, it can associate the user's exercise data with the video playback data, increasing the fun. On the other hand, the video can be unlocked through exercise, thereby encouraging the user to exercise. In terms of interaction ability, it creatively combines the daily exercise mode with the entertainment method of watching videos, making the video consumption form in the exercise scenario more interesting and challenging. From the perspective of the Internet of Things, it realizes data interconnection mapping, fully mobilizes the existing data resources and converts them into the interaction basis of video applications and exercise, providing a good platform for the development of more subsequent exercise and entertainment forms, such as subsequent support for multi-device linkage unlocking playback scenarios, and collective spinning bikes jointly unlocking movies, etc.

[0137] Please refer to Figure 8 , Figure 8 which is a schematic structural diagram of a video processing device provided by an embodiment of this application. Figure 8 which is a schematic structural diagram of a video processing device provided by an embodiment of this application. Figure 8 which is a schematic structural diagram of a video processing device provided by an embodiment of this application. This video processing device can be applied to Figures 4-7The terminal device in the corresponding method embodiment. The video processing device may be a computer program (including program code) running on a lightweight node, for example, the video processing device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiments of this application. The video processing device may include:

[0138] Display unit 810 is used to display the video playback interface of the target video, the video playback interface including mode adjustment controls;

[0139] The acquisition unit 820 is used to acquire user behavior data when the mode adjustment control is triggered, and the user behavior data is used to determine the unlock duration of the target video.

[0140] The playback unit 830 is used to play the target video in the video playback interface according to the unlock duration.

[0141] In one possible implementation, the video processing apparatus provided in this application embodiment further includes a switching unit 840.

[0142] The switching unit 840 is used to switch from the video playback interface to the mode selection interface before the acquisition unit 820 acquires user behavior data, and to pause the playback of the target video on the video playback interface. The mode selection interface includes at least a first selection control and a second selection control.

[0143] When the target selection control is triggered, the acquisition unit 820 acquires reference behavior data corresponding to the mode of the target selection control from the mode selection interface. The target selection control is either the first selection control or the second selection control. The reference behavior data is used to determine the unlock duration of the target video.

[0144] In one possible implementation, the video processing apparatus provided in this application embodiment further includes a processing unit 850.

[0145] The reference behavior data includes the target distance in the first mode, where the first mode is the mode corresponding to the first selection control, and the user behavior data includes the movement distance.

[0146] The method further includes:

[0147] The acquisition unit 820 acquires the total unplayed duration of the target video;

[0148] The acquisition unit 820 acquires the distance ratio between the movement distance and the target distance;

[0149] The processing unit 850 multiplies the distance ratio by the total unplayed duration of the video to obtain the unlock duration of the target video.

[0150] In one possible implementation, the reference behavior data includes a target pace in a second mode, the second mode being the mode corresponding to the second selection control, and the user behavior data includes exercise pace.

[0151] The method further includes:

[0152] If the exercise pace is greater than or equal to the target pace, the acquisition unit 820 acquires the playback duration of the target video, where the playback duration is the playback duration of the target video that was counted starting when the second selection control was triggered.

[0153] The processing unit 850 determines the unlock duration of the target video based on the target pace, the movement pace, and the playback duration of the target video.

[0154] In one possible implementation, the processing unit 850 determines the unlock duration of the target video based on the target pace, the movement pace, and the playback duration of the target video, including:

[0155] Obtain the speed ratio between the target pace and the running pace;

[0156] Multiply the speed ratio value by the already played duration of the target video to obtain the unlock duration to be determined;

[0157] Obtain the maximum historical unlock duration of the target video; the maximum historical unlock duration is the largest historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical user behavior data;

[0158] The maximum duration between the undetermined unlock duration and the historical maximum unlock duration is taken as the unlock duration of the target video.

[0159] In one possible implementation, if the exercise pace is less than the target pace, the acquisition unit 820 acquires the historical maximum unlock duration of the target video, wherein the historical maximum unlock duration is the maximum historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical user behavior data.

[0160] The processing unit 850 uses the historical unlock duration as the unlock duration.

[0161] In one possible implementation, the playback unit 830 plays the target video in the video playback interface according to the unlock duration, including:

[0162] Obtain the played duration of the target video;

[0163] If the unlock duration is less than or equal to the playback duration of the target video, then the playback of the target video will be paused on the video playback interface, and a prompt message will be displayed on the video playback interface.

[0164] If the unlock duration is greater than the playback duration of the target video, the unlocked video is played in the video playback interface. The unlocked video refers to the video in the target video that corresponds to the unlock duration.

[0165] In one possible implementation, if the unlock duration is greater than the already played duration of the target video, the playback unit 830 plays the unlocked video in the video playback interface, including:

[0166] Obtain the total unplayed duration of the target video;

[0167] If the unlock duration is greater than the already played duration of the target video, and the unlock duration is not less than the total unplayed duration of the video, a prompt pop-up window will be displayed, which includes a completion message and a confirmation control for playing the video.

[0168] When the confirmation video playback control is triggered, the system switches from the prompt pop-up to the video playback interface, where the unlocked video is played.

[0169] In one possible implementation, the method is executed by a terminal device;

[0170] Unit 820 acquires user behavior data, including:

[0171] The system receives user behavior data sent by a sports device. The user behavior data is the behavior data collected by the sports device during the user's exercise. The user behavior data is sent via Bluetooth, Universal Serial Bus, Wireless LAN, or server relay.

[0172] Please see Figure 9 , Figure 8 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. The above... Figures 4-7 The terminal device in the corresponding embodiment can be terminal device 900, such as... Figure 9As shown, terminal device 900 may include: user interface 902, processor 904, encoder 906, and memory 908. Signal receiver 916 is used to receive or transmit data via cellular interface 910, WIFI interface 912, ..., or NFC interface 814. Encoder 906 encodes the received data into a computer-processable data format. Memory 908 stores a computer program, and processor 904 is configured to execute the steps of any of the above method embodiments via the computer program. Memory 908 may include volatile memory (e.g., dynamic random access memory DRAM) and non-volatile memory (e.g., one-time programmable read-only memory OTPROM). In some instances, memory 908 may further include memory remotely located relative to processor 904, which can be connected to terminal device 900 via a network. User interface 902 may include: keyboard 918 and display 920.

[0173] exist Figure 9 In the computer device 900 shown, the processor 904 can be used to call computer programs stored in the memory 908 to achieve the following:

[0174] A video playback interface that displays the target video, the video playback interface including mode adjustment controls;

[0175] When the mode adjustment control is triggered, user behavior data is acquired, and the user behavior data is used to determine the unlock duration of the target video;

[0176] The target video is played in the video playback interface according to the unlock duration.

[0177] In one possible implementation, before the processor 904 acquires the user behavior data, it also includes:

[0178] Switching from the video playback interface to the mode selection interface, and pausing the playback of the target video on the video playback interface, the mode selection interface includes at least a first selection control and a second selection control.

[0179] When the target selection control is triggered, reference behavior data corresponding to the mode of the target selection control is obtained from the mode selection interface. The target selection control is either the first selection control or the second selection control. The reference behavior data is used to determine the unlock duration of the target video.

[0180] In one possible implementation, the reference behavior data includes the target distance in a first mode, where the first mode is the mode corresponding to the first selection control, and the user behavior data includes the movement distance.

[0181] Processor 904 is also used to perform the following operations:

[0182] Obtain the total unplayed duration of the target video;

[0183] Obtain the distance ratio between the movement distance and the target distance;

[0184] Multiply the distance ratio by the total unplayed time of the video to obtain the unlocking time of the target video.

[0185] In one possible implementation, the reference behavior data includes a target pace in a second mode, the second mode being the mode corresponding to the second selection control, and the user behavior data includes exercise pace.

[0186] Processor 904 is also used to perform the following operations:

[0187] If the exercise pace is greater than or equal to the target pace, then the playback duration of the target video is obtained, where the playback duration is the playback duration of the target video that is counted starting when the second selection control is triggered.

[0188] The unlock duration of the target video is determined based on the target pace, the exercise pace, and the playback duration of the target video.

[0189] In one possible implementation, the processor 804 determines the unlock duration of the target video based on the target pace, the movement pace, and the playback duration of the target video, including:

[0190] Obtain the speed ratio between the target pace and the running pace;

[0191] Multiply the speed ratio value by the already played duration of the target video to obtain the unlock duration to be determined;

[0192] Obtain the maximum historical unlock duration of the target video; the maximum historical unlock duration is the largest historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical user behavior data;

[0193] The maximum duration between the undetermined unlock duration and the historical maximum unlock duration is taken as the unlock duration of the target video.

[0194] In one possible implementation, processor 904 is also used to perform the following operations:

[0195] If the exercise pace is less than the target pace, then the maximum historical unlock duration of the target video is obtained. The maximum historical unlock duration is the maximum historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical user behavior data.

[0196] The historical unlock duration is used as the unlock duration.

[0197] In one possible implementation, the processor 904 plays the target video in the video playback interface according to the unlock duration, including:

[0198] Obtain the played duration of the target video;

[0199] If the unlock duration is less than or equal to the playback duration of the target video, then the playback of the target video will be paused on the video playback interface, and a prompt message will be displayed on the video playback interface.

[0200] If the unlock duration is greater than the playback duration of the target video, the unlocked video is played in the video playback interface. The unlocked video refers to the video in the target video that corresponds to the unlock duration.

[0201] In one possible implementation, if the unlock duration is greater than the already played duration of the target video, the processor 904 plays the unlocked video in the video playback interface, including:

[0202] Obtain the total unplayed duration of the target video;

[0203] If the unlock duration is greater than the already played duration of the target video, and the unlock duration is not less than the total unplayed duration of the video, a prompt pop-up window will be displayed, which includes a completion message and a confirmation control for playing the video.

[0204] When the confirmation video playback control is triggered, the system switches from the prompt pop-up to the video playback interface, where the unlocked video is played.

[0205] In one possible implementation, processor 904 acquires user behavior data, including:

[0206] The system receives user behavior data sent by a sports device. The user behavior data is the behavior data collected by the sports device during the user's exercise. The user behavior data is sent via Bluetooth, Universal Serial Bus, Wireless LAN, or server relay.

[0207] It should be understood that the computer device 900 described in the embodiments of this application can execute the foregoing text. Figures 4-7 The description of the video processing method in the corresponding embodiments can also be performed as described above. Figure 7 The description of the video processing apparatus in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.

[0208] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0209] Furthermore, it should be noted that this application embodiment also provides a computer storage medium, which stores a computer program executed by the aforementioned video processing device. This computer program includes program instructions, and when the processor executes these program instructions, it can execute the aforementioned... Figures 4-7 The methods described in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same methods will also not be repeated. For technical details not disclosed in the computer storage medium embodiments related to this application, please refer to the description of the method embodiments of this application. As an example, program instructions can be deployed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed across multiple locations and interconnected via a communication network. These multiple computer devices distributed across multiple locations and interconnected via a communication network can constitute a blockchain system.

[0210] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned... Figures 4-6 The methods described in the corresponding embodiments are therefore not repeated here.

[0211] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0212] The above-disclosed embodiments are merely some of the embodiments of this application, and should not be construed as limiting the scope of this application. Those skilled in the art can understand that implementing all or part of the above embodiments and making equivalent changes in accordance with the claims of this application still fall within the scope of the invention.

Claims

1. A video processing method, characterized in that, include: The video playback interface displays the target video, and the video playback interface includes mode adjustment controls and speed control; When the mode adjustment control is triggered, the system enters motion mode and switches from the video playback interface to the mode selection interface. The mode selection interface includes at least a first selection control and a second selection control. The first selection control is the control corresponding to the distance mode, and the second selection control is the control corresponding to the pace mode. When the target selection control is triggered, the reference behavior data input by the object in the interface of the mode corresponding to the target selection control is obtained, wherein the target selection control is the first selection control or the second selection control; The reference behavior data includes: the target distance in the distance mode, or the target pace in the pace mode; the reference behavior data is used to determine the unlock duration of the target video; Obtain object behavior data, which is used to determine the unlock duration of the target video; The target video is played in the video playback interface according to the unlock duration. If the unlock duration is greater than the video playback duration of the target video, in response to the object's trigger operation on the speed control, the target video is played in the video playback interface at the target speed selected by the object until the video playback duration of the target video is equal to the unlock duration. Then, the speed of the target video is adjusted to the default speed for playback in the video playback interface. If the unlock duration is equal to the total duration of the target video, then the target video will be played in its entirety according to the specified duration.

2. The method according to claim 1, characterized in that, The reference behavior data includes the target distance in the distance mode, and the object behavior data includes the movement distance; The method further includes: Obtain the total unplayed duration of the target video; Obtain the distance ratio between the movement distance and the target distance; Multiply the distance ratio by the total unplayed time of the video to obtain the unlocking time of the target video.

3. The method according to claim 1, characterized in that, The reference behavior data includes the target pace in the pacing mode, and the object behavior data includes the movement pace. The method further includes: If the exercise pace is greater than or equal to the target pace, and the duration of the exercise pace being greater than or equal to the target pace is greater than the duration threshold, then the playback duration of the target video is obtained. The playback duration is the playback duration of the target video that is counted starting when the second selection control is triggered. The unlock duration of the target video is determined based on the target pace, the exercise pace, and the playback duration of the target video.

4. The method according to claim 3, characterized in that, Determining the unlock duration of the target video based on the target pace, the exercise pace, and the playback duration of the target video includes: Obtain the speed ratio between the target pace and the running pace; Multiply the speed ratio value by the already played duration of the target video to obtain the unlock duration to be determined; Obtain the maximum historical unlock duration of the target video; the maximum historical unlock duration is the largest historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical object behavior data; The maximum duration between the undetermined unlock duration and the historical maximum unlock duration is taken as the unlock duration of the target video.

5. The method according to claim 3, characterized in that, Also includes: If the exercise pace is less than the target pace, then the maximum historical unlock duration of the target video is obtained. The maximum historical unlock duration is the maximum historical unlock duration among multiple historical unlock durations determined based on multiple sets of historical object behavior data. The historical unlock duration is used as the unlock duration.

6. The method according to claim 1, characterized in that, Playing the target video in the video playback interface according to the unlock duration includes: Obtain the played duration of the target video; If the unlock duration is less than or equal to the playback duration of the target video, then the playback of the target video is paused in the video playback interface, and a prompt message is displayed in the video playback interface. The prompt message is used to indicate that the object behavior data does not meet the playback conditions of the target video. If the unlock duration is greater than the playback duration of the target video, the unlocked video is played in the video playback interface. The unlocked video refers to the video in the target video that corresponds to the unlock duration.

7. The method according to claim 6, characterized in that, If the unlock duration is greater than the already played duration of the target video, then the unlocked video is played in the video playback interface, including: Obtain the total unplayed duration of the target video; If the unlocking duration is greater than the already played duration of the target video, and the unlocking duration is not less than the total unplayed duration of the video, a prompt pop-up window will be displayed. The prompt pop-up window includes a completion message and a confirmation video playback control. The completion message is used to indicate that the target video has been fully unlocked. When the confirmation video playback control is triggered, the system switches from the prompt pop-up to the video playback interface, where the unlocked video is played.

8. The method according to claim 1, characterized in that, The method is executed by the terminal device; The acquisition of object behavior data includes: The device receives object behavior data sent by a motion device. The object behavior data is the behavior data collected by the motion device during the object's movement. The object behavior data is sent via Bluetooth, Universal Serial Bus, Wireless LAN, or server relay.

9. The method according to claim 1, characterized in that, Also includes: After the target selection control is triggered, the mode adjustment control in the video playback interface is adjusted to the mode icon and mode description text information corresponding to the target selection control mode. The mode icon of the target selection control mode includes the unlock duration of the target video.

10. The method according to claim 9, characterized in that, The mode icon for the distance mode of the first selection control is different from the mode icon for the pace mode of the second selection control, and the mode description text information for the distance mode of the first selection control is different from the mode description text information for the pace mode of the second selection control.

11. The method according to claim 9, characterized in that, The mode selection interface also includes mode description text information for the distance mode corresponding to the first selection control and mode description text information for the pace mode corresponding to the second selection control.

12. The method according to claim 9, characterized in that, The display method of the mode icon corresponding to the target selection control during the pause of the target video on the video playback interface is different from the display method of the mode icon corresponding to the target selection control during the playback of the target video on the video playback interface.

13. The method according to claim 9, characterized in that, Also includes: After the target selection control is triggered, an unlock progress bar containing the unlock duration is displayed in the video playback interface. The display method of the unlock progress bar when the target video is paused in the video playback interface is different from the display method of the unlock progress bar when the target video is playing in the video playback interface.

14. A video processing apparatus, characterized in that, include: The display unit is used to display the video playback interface of the target video, the video playback interface including mode adjustment controls and speed control; The acquisition unit is used to enter motion mode and switch from the video playback interface to the mode selection interface when the mode adjustment control is triggered. The mode selection interface includes at least a first selection control and a second selection control. The first selection control is the control corresponding to the distance mode, and the second selection control is the control corresponding to the pace mode. The acquisition unit is further configured to acquire reference behavior data input by the object in the interface of the mode corresponding to the target selection control when the target selection control is triggered, wherein the target selection control is the first selection control or the second selection control; The reference behavior data includes: the target distance in the distance mode, or the target pace in the pace mode; the reference behavior data is used to determine the unlock duration of the target video; The acquisition unit is further configured to acquire object behavior data, which is used to determine the unlock duration of the target video; A playback unit is configured to play the target video in the video playback interface according to the unlock duration; The playback unit is further configured to, in response to the object's trigger operation on the speed control, play the target video in the video playback interface at the target speed selected by the object if the unlock duration is greater than the video playback duration of the target video, until the video playback duration of the target video is equal to the unlock duration, and then adjust the speed of the target video to the default speed for playback in the video playback interface. The playback unit is further configured to play the target video in its entirety according to the duration if the unlock duration is equal to the total duration of the target video.

15. A terminal device, characterized in that, It includes a memory and a processor, wherein the memory stores a set of program code, and the processor calls the program code stored in the memory to execute the method described in any one of 1 to 13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 13.