Video progress adjustment methods and electronic devices
By integrating functional controls and time information from the progress bar into electronic devices and hiding other controls when adjusting playback progress, the poor user experience caused by thin progress bars is solved, improving the comfort and smoothness of video playback progress adjustment.
Patent Information
- Application Number
- CN202310526708.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-03-31
AI Technical Summary
In electronic devices, thin progress bars make it more difficult for users to adjust the video playback progress, resulting in a poor user experience. Furthermore, the scattered and obstructed functional controls and time information affect the viewing experience.
The function controls and time information are integrated into the progress bar, and other function controls other than the progress bar are hidden when the user adjusts the playback progress. The position update of the progress cursor is controlled by touch and drag operations, providing multiple ways to adjust the playback progress.
This reduces the obstruction of the video screen by the progress bar, lowers the probability of accidental touches on controls, and improves the user's comfort and smoothness when adjusting the playback progress.
Smart Images

Figure CN116546284B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese patent application filed on March 31, 2022, with application number 202210345131.8 and title "Video Progress Adjustment Method, Electronic Device and Computer-Readable Storage Medium", and the entire contents of this application are included in the parent application. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a video progress adjustment method and electronic device. Background Technology
[0003] With the continuous development of network technology and electronic devices, the number of users watching videos on electronic devices (such as mobile phones and tablets) is increasing daily. When users watch videos on electronic devices (including videos on video websites and videos locally on the electronic device), they can drag the progress bar in the video playback window to adjust the playback progress, so as to quickly understand the subsequent video content or review the previous video content.
[0004] When a user drags the progress bar, they first need to touch the video playback window to reveal the progress bar, which is hidden at the bottom of the window. To avoid the progress bar obscuring the video image too much, it is usually made relatively thin and long. However, a thin and long progress bar increases the difficulty for users to adjust the progress, potentially leading to a poor user experience when adjusting the video playback progress. Summary of the Invention
[0005] This application provides a video progress adjustment method and electronic device, which can reduce the obstruction of the video screen by the progress bar and improve the user experience when adjusting the playback progress.
[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0007] Firstly, a video progress adjustment method is provided, applied to an electronic device. The method includes: the electronic device displaying a first interface including a progress bar, functional controls, and time information. The functional controls and time information are located in a first area where the progress bar is located. The progress bar includes a progress cursor. The first interface also includes the video frame at a first playback progress point, where the first playback progress point is the playback progress corresponding to the first position of the progress cursor on the progress bar. Integrating the functional controls and time information onto the progress bar reduces the obstruction of the video frame by the progress bar, functional controls, and time information, improving the user's viewing experience. Furthermore, in response to a user's touch operation on the progress bar, the electronic device hides the functional controls and displays the time information in a second area of the first interface. When a user touches the progress bar, it can be assumed that the user needs to adjust the playback progress. Hiding the functional controls and displaying the time information in the second area allows the user to focus on dragging the progress bar and avoids accidental touches of functional controls or time information obscuring the progress bar, improving the user's comfort during progress adjustment. In response to a user's drag operation based on a touch point, the electronic device controls the progress cursor to update from a first position to a second position on the progress bar and displays a second interface. The second interface includes the video frame at the second playback progress, which is the playback progress corresponding to the second position of the progress cursor on the progress bar. The displacement values between the first and second positions are associated with the drag distance corresponding to the first operation.
[0008] In one possible design approach of the first aspect, the method further includes: in response to the user stopping the operation of touching the progress bar, the electronic device redisplays the function controls and time information in the first area. The user stopping the operation of touching the progress bar can mean either the user no longer touches the progress bar or the user no longer touches the display screen of the electronic device. That is, after the user stops touching the progress bar, it can be assumed that the user no longer adjusts the playback progress, and at this time, the function controls and time information are redisplayed in the first area.
[0009] In one possible design approach of the first aspect, the method further includes: within a preset time period after the user stops touching the progress bar, if the electronic device receives a click operation on the progress bar from the user, the electronic device controls the progress cursor to update from the second position to the third position on the progress bar, and displays a third interface. The third interface includes the video screen at the third playback progress, where the third playback progress is the playback progress when the progress cursor is at the third position on the progress bar, and the third position is the click position corresponding to the click operation. In other words, within the preset time period after the user stops touching the progress bar, the user can also adjust the playback progress by directly clicking the progress bar, achieving the effect of quickly adjusting the playback progress.
[0010] In one possible design approach of the first aspect, the method further includes: if the electronic device does not receive a click operation from the user on the progress bar after a preset time has elapsed since the user stopped touching it, the electronic device redisplays the function controls and time information in the first area. In other words, the electronic device has a preset time buffer period (e.g., 2 seconds) after the user stops touching the progress bar, during which time it can receive user clicks on the progress bar. Only after the buffer period ends (i.e., after the preset time has elapsed since the user stopped touching the progress bar) is it assumed that the user will no longer adjust the playback progress, at which point the function controls and time information are redisplayed in the first area.
[0011] In one possible design of the first aspect, the method further includes: during a preset time period after the user stops touching the progress bar, the electronic device continues to hide the function controls and displays the time information in a second area of the first interface. That is, during the buffer period, the electronic device still hides the function controls and displays the time information in the second area of the first interface, facilitating user adjustment of the progress bar.
[0012] In one possible design approach of the first aspect, the second area does not overlap with the first area. This ensures that the time information does not obscure the progress bar while the user adjusts the playback progress, allowing the user to more easily focus on adjusting the progress. Additionally, it makes it easier for the user to adjust the video to the desired time point using this time information.
[0013] In one possible design of the first aspect, in response to a user's drag operation based on a touch point, the electronic device controls the progress cursor to update from a first position to a second position on the progress bar and displays a second interface, including: in response to the user's drag operation based on a touch point, the electronic device obtains the start position and end position of the first operation, the start position being the position of the touch point; the electronic device determines the drag distance and the drag direction corresponding to the first operation based on the start position and end position; the electronic device determines a first displacement value corresponding to the drag distance, the first displacement value being the displacement value of the progress cursor on the progress bar; the electronic device determines a second position based on the first position, the first displacement value, and the drag direction; the electronic device adjusts the progress cursor to the second position and displays the second interface.
[0014] In one possible design approach of the first aspect, the electronic device determines the first displacement value corresponding to the dragging distance by: determining a proportional reference value based on the total duration of the video, the proportional reference value being used to reflect the displacement value of the progress cursor on the progress bar when the dragging distance is a unit distance during the user's dragging of the progress bar, the proportional reference value being negatively correlated with the total duration; and determining the first displacement value based on the proportional reference value and the dragging distance, the first displacement value being the product of the proportional reference value and the dragging distance.
[0015] In one possible design approach of the first aspect, the proportional reference value and the total duration show a negative correlation, including:
[0016] If the total duration is less than or equal to a preset first threshold, the ratio reference value is greater than 1; if the total duration is greater than the preset first threshold and less than or equal to a preset second threshold, the ratio reference value is 1; if the total duration is greater than the preset second threshold, the ratio reference value is greater than a first ratio and less than 1. The first ratio is the ratio of the total length of the progress bar to the maximum distance of the first operation in the direction of the progress bar. Thus, when the video is long, if the user drags the progress bar with a large amplitude, the displacement value of the progress cursor on the progress bar can change by a small amplitude, allowing the user to adjust the progress bar more precisely; when the video is short, if the user drags the progress bar with a small amplitude, the displacement value of the progress cursor on the progress bar can change by a large amplitude, allowing the user to adjust more quickly.
[0017] In one possible design approach of the first aspect, the ratio reference value is a preset first value, wherein if the total duration is less than or equal to a preset first threshold, the first value is greater than 1; if the total duration is greater than a preset second threshold, the first value is greater than a first ratio and less than 1. That is to say, the ratio reference value can be a preset fixed value.
[0018] In one possible design approach of the first aspect, the proportional reference value and the total duration of the video satisfy the following:
[0019]
[0020] Where Z is the proportional reference value, T is the total duration of the video, if T is less than or equal to the preset first threshold, T1 = 1s, Z1 = 5, T2 = 5s, Z2 = 2; if T is greater than the preset second threshold, T1 = 2min, Z1 = 5, T2 = 5min, Z2 = M / N, where M is the total length of the progress bar, and N is the maximum distance of the first operation in the direction of the progress bar.
[0021] In a second aspect, this application provides an electronic device including a memory and one or more processors; wherein the memory is used to store computer program code, the computer program code including computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method as described in the first aspect and any possible design thereof.
[0022] Thirdly, this application provides a computer-readable storage medium including computer instructions. When the computer instructions are executed on an electronic device (such as a mobile phone), they cause the electronic device to perform the methods described in the first aspect and any of its possible design embodiments.
[0023] Fourthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the method described in the first aspect and any possible design thereof.
[0024] Fifthly, this application provides a chip system including one or more interface circuits and one or more processors. The interface circuits and processors are interconnected via lines. The aforementioned chip system can be applied to electronic devices including communication modules and memory. The interface circuits are used to receive signals from the memory of the electronic device and send the received signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device can perform the methods described in the first aspect and any of its possible design embodiments.
[0025] It is understood that the beneficial effects achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip system described in the fifth aspect can be referred to as the beneficial effects in the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description
[0026] Figure 1 A scene diagram for playing video provided in an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of the structure of a mobile phone provided in an embodiment of this application;
[0028] Figure 3 An interface diagram provided for an embodiment of this application;
[0029] Figure 4 An interface diagram provided for an embodiment of this application;
[0030] Figure 5 An interface diagram provided for an embodiment of this application;
[0031] Figure 6A An interface diagram provided for an embodiment of this application;
[0032] Figure 6B An interface diagram provided for an embodiment of this application;
[0033] Figure 7 This illustrates the process by which a mobile phone adjusts the playback progress of a video based on the length of the progress bar dragged by the user, as described in an embodiment of this application.
[0034] Figure 8A A schematic diagram of a dragging trajectory provided in an embodiment of this application;
[0035] Figure 8BThis is another schematic diagram of a dragging trajectory provided in the embodiments of this application;
[0036] Figure 9A A set of interface diagrams provided for embodiments of this application;
[0037] Figure 9B A set of interface diagrams provided for embodiments of this application;
[0038] Figure 10 A flowchart illustrating a video progress adjustment method provided in this application embodiment;
[0039] Figure 11 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0040] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0041] Currently, when users watch videos on electronic devices, if they need to understand subsequent video content or review previous video content, they can drag the progress bar in the video playback window to adjust the playback progress and jump to the corresponding playback point. Optionally, the progress bar is hidden during video playback. Before dragging the progress bar, the user needs to touch the video playback window to display the progress bar hidden at the bottom of the video playback window. This progress bar is used to indicate the video playback progress, which can be the elapsed playback time and total playback time, the remaining playback time and total playback time, etc. It should be noted that this progress bar is just one name used in this embodiment; it can also be called a video progress bar, playback progress bar, etc. Its meaning has been described in this embodiment, and its name does not constitute any limitation on this embodiment.
[0042] For example, taking a mobile phone as an electronic device, such as Figure 1 As shown in (a), in response to a user's action to play a video, the mobile phone can display interface 101. This interface 101 may include a video playback window 102 for playing a video. Figure 1 As shown in (a), the mobile phone can receive the user's click on the video playback window 102, and respond to the operation as follows: Figure 1As shown in (b), all controls on the phone's interface 101 except for the video playback window 102 are hidden, and the video plays in the video playback window 102. During video playback, the progress bar is hidden. If the user wishes to adjust the video playback progress, such as... Figure 1 As shown in (b), the user can touch the video playback window 102. The mobile phone can receive the user's touch on the video playback window 102 and respond to the operation as follows: Figure 1 As shown in (c), the mobile phone displays area 103 on the video playback window 102. This area 103 is located at the bottom of the video playback window 102, and includes a progress bar 103a, which the user can drag to learn about subsequent video content or review previous video content.
[0043] In addition to displaying a hidden progress bar for a specific video, electronic devices also display other functional controls and other information, such as time information, so that users can pause video playback, adjust video direction, or view the total duration and played duration of the video based on the displayed functional controls and other information.
[0044] For example, Figure 1 As shown in (c), area 103 includes a progress bar 103a, a pause control 103b, a flip control 103c, and time information 103d. The pause control 103b and the flip control 103c are located at opposite ends of the progress bar 103a, while the time information 103d is located below the progress bar 103a. The progress bar 103a can be used to adjust the video playback progress; the pause control 103b is used to pause or resume video playback; the flip control 103c is used to adjust the video orientation (e.g., from portrait to landscape); and the time information 103d indicates the elapsed playback time and the total video duration.
[0045] Optionally, to avoid affecting the integrity of video playback, the progress bar can be made relatively thin and long, with a small operable area. For example, the progress bar 103a mentioned above is made relatively thin and long. When the progress bar and other functional controls and information are displayed, and the progress bar is dragged, the thin and long design of the progress bar makes it easy for users to accidentally touch other functional controls (such as the pause control 103b, the flip control 103c) or the video screen while dragging the progress bar, reducing the smoothness of the user's progress adjustment process and resulting in a poor user experience in adjusting the video playback progress. In addition, the positions of the progress bar 103a, pause control 103b, flip control 103c, and time information 103d are relatively scattered, causing area 103 to occupy a large area at the bottom of the video playback window 102, obscuring a significant portion of the video screen and affecting the user's viewing experience.
[0046] In view of this, embodiments of this application provide a video progress adjustment method and an electronic device, which integrates various functional controls and video time information in the area where the progress bar is located, and hides other functional controls except the progress bar when the user adjusts the playback progress. This not only reduces the obstruction of the video screen by various controls, but also reduces the probability of the user accidentally touching various controls while dragging the progress bar, thereby improving the user experience during the process of adjusting the video playback progress.
[0047] Optionally, the electronic device in this application embodiment may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device. This application embodiment does not impose any special restrictions on the specific type of electronic device.
[0048] The following is a schematic diagram illustrating the structure of an electronic device used in this application, using a mobile phone as an example. Please refer to... Figure 2 The electronic device 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.
[0049] The aforementioned sensor module 280 may include sensors such as pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, and bone conduction sensors.
[0050] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments, the electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0051] Processor 210 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0052] The controller can be the nerve center and command center of the electronic device 200. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0053] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0054] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0055] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the electronic device 200. In other embodiments, the electronic device 200 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0056] The charging management module 240 receives charging input from a charger, which can be a wireless charger or a wired charger. While charging the battery 242, the charging management module 240 can also supply power to the electronic device via the power management module 241.
[0057] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, internal memory 221, external memory, display 294, camera 293, and wireless communication module 260, etc. In some embodiments, the power management module 241 and the charging management module 240 may also be housed in the same device.
[0058] The wireless communication function of electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor. In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling electronic device 200 to communicate with networks and other devices through wireless communication technology.
[0059] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0060] The mobile communication module 250 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation.
[0061] The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 can be housed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 can be housed in the same device.
[0062] The wireless communication module 260 can provide solutions for wireless communication applications on the electronic device 200, including WLAN (such as wireless fidelity, Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and other wireless communication technologies.
[0063] The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0064] Electronic device 200 implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0065] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel.
[0066] The electronic device 200 can implement its shooting function through an ISP, a camera 293, a video codec, a GPU, a display 294, and an application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or videos. In some embodiments, the electronic device 200 may include one or N cameras 293, where N is a positive integer greater than 1.
[0067] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0068] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 210 executes various functional applications and data processing of electronic device 200 by running the instructions stored in internal memory 221. For example, in this embodiment, processor 210 can execute instructions stored in internal memory 221, which may include a program storage area and a data storage area.
[0069] The program storage area can store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.). The data storage area can store data created during the use of the electronic device 200 (such as audio data, phonebook, etc.). Furthermore, the internal memory 221 can include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0070] Electronic device 200 can implement audio functions such as music playback and recording through audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, and application processor.
[0071] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch-sensitive buttons. Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 292 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to achieve contact and separation with the electronic device 200. The electronic device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
[0072] Next, taking a mobile phone as an example, we will explain the video progress adjustment method provided in this application with reference to the accompanying drawings.
[0073] like Figure 3 As shown, the phone can display a main interface 301. The main interface 301 may include an icon 302 for the gallery application. The phone can receive a user's click on this icon 302 and respond to the action as follows: Figure 4 As shown, the mobile phone can open the Gallery app and display its interface 303. The Gallery app is an application for managing photos and videos on electronic devices such as mobile phones and tablets. It can be a system application or a third-party application; this application does not restrict the name of the application. That is to say, the user can click the Gallery app icon 302 to open the Gallery app interface 303. However, it should be noted that the user can also invoke the Gallery app to open interface 303 from other applications. For example, the user can click the image sharing control in a social media application to open interface 303; no specific restrictions are made here.
[0074] Still as Figure 4 As shown, interface 303 may include video 304 and thumbnails of other images and videos. If the user wishes to view video 304, they can click on it. In response to the user clicking on video 304, as follows... Figure 5 As shown, the mobile phone can display a video playback window 305, which is used to play video 304. The video playback window 305 also includes a progress bar 306, a pause control 307, time information 308, and a mute control 309, etc.
[0075] The progress bar 306 is used to indicate the video playback progress to the user. For example, in Figure 5In this context, the progress bar 306 includes a progress cursor, which indicates the user's current viewing time. The area of the progress bar after the progress cursor corresponds to unplayed video segments in video 304; the area of the progress bar before the progress cursor corresponds to played video segments in video 304. Figure 5 In the diagram, the dark shaded area represents the progress bar area before the user's current viewing point, and the light shaded area represents the progress bar area after the user's current viewing point. The progress bar 306 can also adjust the playback progress of the video 304 (i.e., the progress cursor). For example, the user can drag the progress bar 306 left or right to move the progress cursor to the right.
[0076] The pause control 307 is used to pause or resume video playback. Specifically, if the phone is playing video 304 in video playback window 305, the phone can receive the user's click on the pause control 307, and in response to this operation, the phone can pause video 304 playback. If the phone pauses video 304 playback, the phone can receive the user's click on the pause control 307, and in response to this operation, the phone can resume video 304 playback. In an optional implementation, after the user selects video 304 from interface 303, the phone can automatically play the video 304's frame in video playback window 305 (e.g., ...). Figure 5 As shown in the image, users do not need to manually play the video, thus improving the user experience.
[0077] Time information 308 is used to indicate the played duration of video 304 and the total duration of video 304. For example, in Figure 5 In the video, the playback time of video 304 is 1 second, and the total duration of video 304 is 30 seconds.
[0078] The mute control 309 includes a first state and a second state. When the mute control 309 is in the first state (i.e., when...), Figure 5 When the mute control 309 is in the second state, the phone will not play the sound of video 304 regardless of whether the phone's system volume is 0. When the mute control 309 is in the second state, the phone needs to determine whether to play the sound of video 304 based on the system volume. Specifically, if the phone's system volume is not 0, the phone will play the sound of video 304; if the phone's system volume is 0, the phone will not play the sound of video 304. In an optional implementation, after the user selects video 304 from interface 303, the mute control 309 can be in the first state by default. This can prevent the phone from automatically playing the sound of video 304 after the user clicks on it, thus protecting user privacy.
[0079] like Figure 5As shown, the progress bar 306 is located at the bottom of the video playback window 305. This minimizes the obstruction of the video playback window by the progress bar 306, ensuring uninterrupted video viewing for the user. Furthermore, the pause control 307, time information 308, and mute control 309 are all located within the area of the progress bar 306. The length w and height h of the progress bar 306 should not be too large, just large enough to accommodate the icons of the pause control 307, time information 308, and mute control 309. Additionally, the length w of the progress bar 306 is less than the width of the mobile phone. This setting method can avoid the pause control 307, time information 308, and mute control 309 occupying additional areas on the video playback window 305 other than the area where the progress bar 306 is located, and reduce the obstruction of the video playback window 305 (e.g., the screen of video 304) by the progress bar 306, pause control 307, time information 308, and mute control 309 in the horizontal direction (i.e., the direction in which the length w of the progress bar 306 is located), thus ensuring the user's video viewing experience.
[0080] The phone displays as follows Figure 6A When the video playback window 305 is displayed, the user can drag the progress bar 306. In response to the user's dragging of the progress bar 306, the mobile phone can adjust the playback progress of the video 304. It should be noted that this dragging of the progress bar 306 can be achieved by adjusting the position of the progress cursor on the progress bar 306, thus adjusting the playback progress of the video 304. Dragging the progress bar 306 can also be referred to as dragging the progress bar 306, sliding the progress bar 306, etc., and no specific limitation is made here.
[0081] The following will combine Figures 6A-6B This explains the process of adjusting the playback progress of a video that returns a 304 error on a mobile phone.
[0082] like Figure 6A As shown, the phone can display a video playback window (305). It should be noted that... Figure 6A The video playback window 305 in the middle and Figure 5 The video playback window in the middle is similar to error 305, the difference is that... Figure 6A In the video playback window 305, the progress cursor of video 304 is at the 10-second mark. Figure 5 In the video playback window 305, the progress cursor of video 304 is currently at the 1st second. For example... Figure 6BAs shown in (a), (b), and (c), the mobile phone can receive the user's dragging of the progress bar 306 (e.g., dragging the progress bar 306 from left to right). In response to this operation, the mobile phone adjusts the playback progress of the video 304 (e.g., jumping from screen 1 to screen 2). Specifically, the user's dragging of the progress bar 306 can include three sub-operations: (1) touching the progress bar 306; (2) dragging based on the touch point; and (3) stopping touching the progress bar 306. Stopping touching the progress bar 306 can be understood as the user no longer touching the progress bar 306. For example, it could be the user touching other areas of the video playback window 305 besides the progress bar 306, or the user no longer touching the mobile phone's display screen.
[0083] like Figure 6B As shown in (a), the mobile phone can receive a user's touch on the progress bar 306. In response to this operation, on the one hand, the mobile phone hides the pause control 307 and the mute control 309. On the other hand, the mobile phone can also adjust the display area of the time information 308 from the area where the progress bar 306 is located to the area above the progress bar 306. Figure 6B As shown in (b), the mobile phone can receive a dragging operation by the user based on a touch point, and in response to this operation, the mobile phone adjusts the playback progress of video 304. For example, the mobile phone can jump from screen 1 to screen 2, where screen 1 is the view of video 304 when the progress cursor is at the 10th second, and screen 2 is the view of video 304 when the progress cursor is at the 20th second. Figure 6B As shown in (c), the mobile phone can also receive the user's operation to stop touching the progress bar 306. In response to the operation, the mobile phone will redisplay the pause control 307, the mute control 309 and the time information 308 in the area where the progress bar 306 is located.
[0084] Users can touch any position on the progress bar 306 except for the pause control 307 and the mute control 309. When the phone detects that a user is touching the progress bar 306, it assumes that the user needs to adjust the video progress. Hiding the pause control 307 and the mute control 309 allows the user to focus on adjusting the playback progress without interference from other control functions. Furthermore, hiding the pause control 307 and the mute control 309 prevents accidental touches that could disrupt the video progress adjustment process, improving user comfort. Adjusting the display area of the time information 308 from the area where the progress bar 306 is located to the area above the progress bar 306 ensures that the time information 308 is not obscured while the user is dragging the progress bar 306, facilitating video playback progress adjustments.
[0085] It should be noted that, Figure 6BThis example only illustrates the user dragging the progress bar 306 from left to right. In reality, the user can also drag the progress bar 306 from right to left. Furthermore, during the dragging of the progress bar 306 from left to right or right to left, the dragging trajectory can be a curve, a broken line, or a straight line; no specific limitations are imposed here. In an optional implementation, the mobile phone can also display the dragging trajectory.
[0086] Optionally, to enhance user control during playback progress adjustment, the displacement value of the progress cursor on the progress bar 306 is correlated with the length of the progress bar dragged by the user. This will be discussed in conjunction with... Figure 7 This application describes the process by which the mobile phone adjusts the video playback progress based on the length of the progress bar dragged by the user in this embodiment. For example... Figure 7 As shown, the process includes:
[0087] S201, the mobile phone receives the user's operation of dragging the progress bar 306 corresponding to the video.
[0088] Here, "video" refers to a video currently playing on the phone, such as a video that returned a 304 error. Figure 6B As shown in (a), (b), and (c), the user's operation of dragging the progress bar 306 corresponding to the video can include three sub-operations: touching the progress bar 306, dragging based on the touch point, and stopping touching the progress bar 306. It should be noted that this operation of dragging the progress bar 306 corresponding to the video can adjust the position of the progress cursor on the progress bar 306, thereby adjusting the playback progress of the video.
[0089] S202, in response to the user's dragging of the progress bar 306, the mobile phone obtains the start and end positions corresponding to the operation.
[0090] Wherein, the starting position is the position of the touch point (e.g., ). Figure 6B (a) The position of the finger in the diagram corresponds to the sub-operation of touching the progress bar 306. The end position is the position where the user stops dragging the progress bar 306 (e.g., the position where the finger is located). Figure 6B (b) The position of the finger in the diagram. It should be noted that the starting position can be any position on the progress bar 306 other than the pause control 307 and the mute control 309, and the ending position can be any position on the display screen; that is, the ending position can be on the progress bar 306 or not. In other words, the user can drag the progress bar 306 from its location to any position on the display screen. For example, as shown... Figure 8A As shown, the user can first touch point A on the progress bar 306, and then move along the trajectory of the straight line L to point B outside the progress bar 306 before releasing the touch. Point A is the starting position, and point B is the ending position. For example, as... Figure 8BAs shown, the user can first touch point C of the progress bar 306, and then move along the dragging trajectory of curve S to point C before releasing the hand and no longer touching the progress bar 306. Point C is the starting position, and point D is the ending position.
[0091] S203, the mobile phone determines the first length and drag direction based on the start and end positions.
[0092] The first length (also known as the drag distance) indicates the displacement value of the drag operation in the direction of the progress bar 306, and the drag direction indicates the user's drag direction, including the direction in which the progress cursor points to the starting point of the progress bar 306 and the direction in which the progress cursor points to the ending point of the progress bar 306. For example, in Figure 5 In the process, the direction in which the progress cursor points to the starting point of the progress bar 306 is from right to left, and the direction in which the progress cursor points to the ending point of the progress bar 306 is from left to right.
[0093] The mobile phone can determine the initial length and drag direction based on the relative positions of the starting and ending positions. The phone can establish a coordinate system on the display screen. For example, ... Figure 8A and Figure 8B As shown, the phone can establish a coordinate system with the starting point of progress bar 306 as the origin and the direction of the progress cursor pointing to the ending point of progress bar 306 as the x-axis. In this way, the phone can obtain the position coordinates of the starting and ending positions, and determine the first length and dragging direction based on the x-coordinates of the starting and ending positions. If the x-coordinate of the starting position is less than the x-coordinate of the ending position, the dragging direction can be determined to be from left to right; if the x-coordinate of the starting position is greater than the x-coordinate of the ending position, the dragging direction can be determined to be from right to left. For example, if the user uses... Figure 8A If the progress bar 306 is dragged in the manner shown, the first length N1 is x2-x1, and the dragging direction is from left to right. For example, if the user uses... Figure 8B Dragging the progress bar 306 as shown will result in a first length N1 of x3-x4, with the dragging direction from right to left. Understandably, if the dragging direction is from right to left, the progress cursor should move to the left from its current position, meaning the phone needs to play the video segment before the progress cursor. If the dragging direction is from left to right, the progress cursor should move to the right from its current position, meaning the phone needs to play the video segment after the progress cursor.
[0094] S204, the mobile phone determines the first displacement value of the first length mapping.
[0095] The first displacement value is the displacement of the progress cursor on the progress bar 306 when the user drags the progress bar to a length equal to a first length. Specifically, the mobile phone can calculate the first displacement value based on a proportional reference value and the first length. The proportional reference value reflects the displacement of the progress cursor on the progress bar 306 when the user drags the progress bar to a unit length (e.g., 1). This proportional reference value is related to the total duration of the video. In an optional implementation, if Z represents the proportional reference value, the total duration of the video and the proportional reference value can satisfy the correspondence shown in Table 1.
[0096] Table 1
[0097] Total video duration T Ratio reference value Z T≤T1 Z>1 T1<T≤T2 Z=1 T>T2 M / N<Z<1
[0098] Where T is the total duration of the video, T1 is a preset first threshold, and T2 is a preset second threshold, with the first threshold being less than the second threshold. M is the total length of the progress bar 306, and N is the maximum distance the drag operation covers in the direction of the progress bar 306. Understandably, since the length and width of mobile phones vary, the video playback window may be horizontal or vertical when the phone is in landscape or portrait mode, thus the total length and maximum distance N of the progress bar 306 may differ. In one optional implementation, the preset first threshold can be 5 seconds, and the preset second threshold can be 2 minutes. Of course, the preset first and second thresholds can also be set according to actual needs.
[0099] As shown in Table 1, if the total length of the video is less than or equal to a preset first threshold (e.g., less than or equal to 5 seconds), then Z satisfies: Z > 1. That is, when the user drags the progress bar by a unit length, the displacement value of the progress cursor on the progress bar 306 will be greater than the length the user drags the progress bar. This means that when the user drags the progress bar by a small amount, the displacement value of the progress cursor on the progress bar 306 can change by a large amount, allowing for faster user adjustments. It should be noted that Z can be a preset first value (e.g., 2, 3, 5, etc.) or a change value associated with the total duration T. For example, Where T1 = 1s, Z1 = 5, T2 = 5s, and Z2 = 2. For example, when the total duration T is 1 second, the proportional reference value Z is 5; when the total duration T is 3 seconds, the proportional reference value Z is 3.5; and when the total duration T is 5 seconds, the proportional reference value Z is 2. Thus, the proportional reference value Z is positively correlated with the total duration T, allowing for more precise progress adjustment in longer videos and faster progress adjustment in shorter videos.
[0100] If the total duration of the video 304 is greater than the preset first threshold and less than or equal to the preset second threshold (for example, greater than 5 seconds and less than or equal to 2 minutes), then Z=1. That is, when the length by which the user drags the progress bar is a unit length, the displacement value of the progress cursor on the progress bar 306 is also a unit length.
[0101] If the total duration of the video 304 is greater than the preset second threshold (for example, greater than 2 minutes), then Z satisfies: M / N<Z<1. In this case, when the length by which the user drags the progress bar is a unit length, the displacement value of the progress cursor on the progress bar 306 will be less than the length by which the user drags the progress bar, which means that when the user drags the progress bar with a relatively large amplitude, the displacement value of the progress cursor on the progress bar 306 can change with a relatively small amplitude, so that the user can adjust the progress bar more precisely. Similarly, Z may be a preset second value (for example, a value such as 1 / 2 or 1 / 3), or may be a variable value associated with the total duration T. For example, where T1=2min, Z1=5, T2=5min, Z2=M / N. For example, when the total duration T is 2min, the proportional reference value Z is 1; when the total duration T is 5min, the proportional reference value Z is
[0102] In this way, after the proportional reference value Z is determined in the foregoing manner, the mobile phone may calculate the first displacement value according to the first length and the proportional reference value. The first displacement value, the first length, and the proportional reference value satisfy the formula:
[0103] M1=N1*Z
[0104] where M1 is the first displacement value, and N1 is the first length. For example, Z is 2, and the first length N1 is 3.1, then the first displacement value M1 may be 6.2. That is, when the length by which the user drags the progress bar is 3.1, the displacement value of the progress cursor on the progress bar 306 is 6.2.
[0105] In S205, the mobile phone determines the second position according to the first position, the dragging direction, and the first displacement value.
[0106] The first position is the position of the progress cursor on the progress bar before the mobile phone receives the dragging operation. For example, the first position may be Figure 6B the position where the progress cursor is located in (a). The second position is the position of the progress cursor on the progress bar after the mobile phone receives the dragging operation. For example, the second position may be Figure 6B the position where the progress cursor is located in (b).
[0107] Specifically, the mobile phone may first determine the maximum displacement value of the progress cursor on the progress bar 306 according to the first position and the dragging direction. The maximum displacement value is associated with the first position, the dragging direction, and the total length of the progress bar 306.
[0108] Taking the progress bar length M2 corresponding to the first position as an example, if the dragging direction is the direction in which the progress cursor points to the end point of the progress bar 306 (for example, from left to right), the maximum displacement value of the progress cursor on the progress bar 306 is δM = M - M2; if the dragging direction is the direction in which the progress cursor points to the start point of the progress bar 306 (for example, from right to left), the maximum displacement value of the progress cursor on the progress bar 306 is δM = M2.
[0109] When the dragging direction is from left to right, if the first displacement value M1 is greater than the adjustable length δM (M-M2), then the second position is the position after the phone moves the progress cursor on the progress bar 306 from left to right by δM (i.e., the end position of the progress bar). If the first displacement value M1 is less than the adjustable length δM, then the second position is the position after the phone moves the progress cursor on the progress bar 306 from left to right by the first displacement value M1.
[0110] When the dragging direction is from right to left, if the first displacement value M1 is greater than the adjustable length δM (which is M2), then the second position is the position after the phone moves the progress cursor on the progress bar 306 from right to left by δM (i.e., the starting position of the progress bar). If the first displacement value M1 is less than the adjustable length δM, then the second position is the position after the phone moves the progress cursor on the progress bar 306 from right to left by the first displacement value M1.
[0111] S206, the phone adjusts the progress cursor to the second position.
[0112] Understandably, after the phone adjusts the progress bar to the second position, it can still display the video playback interface after the progress bar has been adjusted to the second position. For example, Figure 6B The video playback interface 305 in (b) of the document.
[0113] As can be seen, the progress adjustment method provided in this application embodiment can integrate various functional controls and video time information on the progress bar, which can reduce the obstruction of the video screen by various functional controls and video time information, reduce the probability of accidental touch by users, and improve the user experience in the process of adjusting the video playback progress.
[0114] In one alternative implementation, the mobile phone, in response to receiving a user's action to stop touching the progress bar 306, displays a hidden pause control 307 and a mute control 309. For example, as Figure 6B As shown in (c) in the figure.
[0115] In one alternative implementation, after receiving a user's instruction to stop touching the progress bar 306, the phone keeps the pause control 307 and the mute control 309 hidden for a preset time. After the preset time ends, the hidden pause control 307 and mute control 309 are displayed. This means that the function controls remain hidden for the preset time.
[0116] The preset time can be set as needed, such as 2 seconds or 3 seconds. Within this preset time, the phone can receive user interaction with the progress bar 306 again. Since the function controls remain hidden within the preset time, accidental touches on the function controls will not occur.
[0117] For example, such as Figure 9A As shown in (a), the mobile phone can receive a user's touch on the progress bar 306. In response to this operation, on the one hand, the mobile phone hides the pause control 307 and the mute control 309. On the other hand, the mobile phone can also adjust the display area of the time information 308 from the area where the progress bar 306 is located to the area above the progress bar 306. Figure 9A As shown in (b), the mobile phone can receive the user's dragging of the progress bar 306, and in response to this operation, the mobile phone adjusts the playback progress of the video 304. For example, the mobile phone can jump from screen 1 to screen 2, where screen 1 is the frame of video 304 at the 10th second, and screen 2 is the frame of video 304 at the 20th second. Figure 9A As shown in (c), after receiving the user's operation to stop touching the progress bar 306, the mobile phone still hides the pause control 307 and the mute control 309 for a preset time, and continues to display the time information 308 in the area above the progress bar 306. Figure 9A As shown in (d), after a preset time following the user stopping touching the progress bar 306 (i.e., after a preset time following the moment the user stops touching the progress bar 306), the phone will re-display the pause control 307, the mute control 309, and the time information 308 on the progress bar 306.
[0118] If, within a preset time after the user stops touching the progress bar 306, the phone receives another operation on the progress bar 306, the phone can adjust the playback progress again. For example, such as... Figure 9B As shown in (a), the mobile phone can receive the user's dragging of the progress bar 306, and in response to this operation, the mobile phone adjusts the video playback progress. For example, the mobile phone's video playback interface can be... Figure 9B The video playback interface 305 shown in (a) changes to Figure 9B The video playback interface 305 is shown in (b) above. Within a preset time (e.g., 2 seconds) after the user stops touching the progress bar 306, as shown... Figure 9BAs shown in (c), the mobile phone can receive the user's tap on the progress bar 306 and respond to the operation as follows: Figure 9B As shown in (d), the phone adjusts the progress cursor to the clicked position. It should be noted that after the phone adjusts the progress cursor to the clicked position, the user can stop touching the progress bar 306 again. In this case, the phone can still hide the pause control 307 and the mute control 309 for a preset time. After the preset time ends, the hidden pause control 307 and mute control 309 will be displayed.
[0119] Because within a preset time after the user stops touching the progress bar 306, the user can adjust the playback progress by clicking the progress bar 306 again. Thus, by combining these two methods of adjusting playback progress—after dragging the progress bar 306, the user can then click it again to adjust the playback progress—a quick and easy adjustment of the playback progress can be achieved.
[0120] like Figure 10 The diagram shown is a flowchart of a video progress adjustment method provided in an embodiment of this application. The method includes:
[0121] S301, the electronic device displays a first interface, which includes a progress bar, function controls, and time information.
[0122] The functional controls and time information are located in the first area where the progress bar is situated. The progress bar includes a progress cursor. The first interface also includes the video feed at the first playback progress point, which corresponds to the playback progress when the progress cursor is at the first position on the progress bar.
[0123] For example, the first interface can be Figure 6A The video playback window 305 in the middle can have a progress bar 306, and functional controls can include a pause control 307, a mute control 309, and time information 308. The first position can be... Figure 6A The first area, where the progress cursor is located, is the area where progress bar 306 is located. It should be noted that this first interface can also be the video playback interface of a video application, a video playback interface on a webpage, etc. Functional controls can also include other controls, such as flip controls, fast-forward controls, and rewind controls. Furthermore, this first interface can also include controls not set in the first area, such as share controls and favorites controls.
[0124] S302, in response to the user's touch operation on the progress bar, the electronic device hides the function controls and displays the time information in the second area of the first interface.
[0125] The second region does not overlap with the first region. For example, a touch operation could be... Figure 6BThe operation of touching the progress bar 306 shown in (a) can be performed in the second area. Figure 6B The area where time information 308 is located is shown in (a) above. In an alternative implementation, this second area may also be... Figure 6B The area below the progress bar 306 in (a) or other areas that do not obscure the progress bar and video screen will not be described in detail here.
[0126] S303, in response to a user's drag operation based on a touch point, the electronic device controls the progress cursor to update from a first position to a second position on the progress bar and displays a second interface.
[0127] The touch point refers to the touch point corresponding to the aforementioned touch operation. The second interface includes the video frame at the first playback progress point, where the second playback progress point is the playback progress corresponding to the second position of the progress cursor on the progress bar. The displacement values of the first and second positions are associated with the drag distance corresponding to the first operation. It should be noted that the correspondence between the displacement values of the first and second positions and the drag distance corresponding to the first operation can be found in [reference needed]. Figure 7 The content described herein will not be repeated here.
[0128] For example, the second interface can be Figure 6B The video playback window 305 shown in (b) can be positioned at the second location. Figure 6B The position of the progress cursor in (b) of the diagram. The second interface can also be the video playback interface of a video application, a video playback interface on a webpage, etc. Functional controls can also include other controls, such as flip controls, fast-forward controls, rewind controls, etc. Furthermore, the second interface can also include share controls, favorites controls, etc.
[0129] In one alternative implementation, the method further includes: in response to the user ceasing to touch the progress bar, the electronic device re-displays the function controls and time information in the first area.
[0130] For example, such as Figure 6B As shown in (c), after the user stops touching the progress bar, the electronic device re-displays the pause control 307, the mute control 309, and the time information 308 on the progress bar 306.
[0131] In an optional implementation, the method further includes: within a preset time period after the user stops touching the progress bar, if the electronic device receives a click operation on the progress bar from the user, the electronic device displays a third interface, the third interface including the video screen at a third playback progress, the third playback progress being the playback progress corresponding to the third position of the progress cursor on the progress bar, and the third position being the click position corresponding to the click operation.
[0132] For example, the user's click action on the progress bar can be... Figure 9B The operation of clicking the progress bar 306 shown in (c) can be used by the third interface. Figure 9B The video playback window 305 in (d) can be the third position. Figure 9B The location clicked by the user in (b) of the image.
[0133] In one optional implementation, the method further includes: if the electronic device does not receive a click operation from the user on the progress bar after a preset time has elapsed since the user stopped touching the progress bar, the electronic device will re-display the function controls and time information in the first area.
[0134] For example, the preset time can be 2 seconds, such as... Figure 9A As shown in (d), 2 seconds after the user stops touching the progress bar, the electronic device re-displays the pause control 307, the mute control 309, and the time information 308 on the progress bar 306.
[0135] In an optional implementation, the method further includes: for a preset time after the user stops touching the progress bar, the electronic device continues to hide the function controls and displays time information in a second area of the first interface.
[0136] For example, such as Figure 9A As shown in (c), within 2 seconds after the user stops touching the progress bar, the electronic device continues to hide the pause control 307 and the mute control 309, and displays the time information 308 above the progress bar 306.
[0137] This application also provides an electronic device, which includes a memory and one or more processors;
[0138] The memory stores computer program code, including computer instructions. When the processor executes the computer instructions, the electronic device performs the functions or steps described in the above method embodiments. The structure of this electronic device can be referenced... Figure 2 The structure of the mobile phone is shown.
[0139] This application also provides a chip system, such as... Figure 11As shown, the chip system includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 and the interface circuit 1102 are interconnected via lines. For example, the interface circuit 1102 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1102 can be used to send signals to other devices (e.g., the processor 1101). Exemplarily, the interface circuit 1102 can read instructions stored in the memory and send those instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and this application embodiment does not specifically limit this.
[0140] This application also provides a computer storage medium that includes computer instructions. When the computer instructions are executed on the electronic device, the electronic device performs various functions or steps performed by the electronic device in the above method embodiments.
[0141] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.
[0142] It is understood that the electronic device provided in this application embodiment includes hardware structures and / or software modules corresponding to perform each function in order to achieve the above-mentioned functions. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0143] This application embodiment can divide the above-described electronic device into functional modules based on the method example described above. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0145] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0146] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0147] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0148] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0149] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of progress adjustment of a video, characterized by, Applied to electronic devices, the method includes: The electronic device displays a first interface. The first area of the first interface includes a progress bar and function controls. The function controls include at least one of a pause control and a mute control. The first interface also includes a video playback window. The first area is located at the bottom of the video playback window. The video playback window displays the video frame at the first playback progress. The progress bar includes a progress cursor. The first playback progress is the playback progress corresponding to the first position of the progress cursor on the progress bar. In response to the user's dragging operation on the progress bar, the electronic device displays a second interface, hides the functional controls in the first area of the second interface, and controls the progress cursor to update from the first position to the second position on the progress bar. The second position corresponds to the second playback progress of the video. A first time is displayed in the second area of the second interface, and the first time indicates the time corresponding to the second playback progress. In response to the user ceasing to touch the progress bar, the electronic device displays a third interface and redisplays the function controls in the first area of the third interface. The third interface includes the video frame at the second playback progress, and the first time frame in the second area is hidden.
2. The method according to claim 1, characterized in that, The first area of the first interface includes a second time, which indicates the time corresponding to the first playback progress; when the electronic device displays the second interface, the second time is hidden.
3. The method of claim 1, wherein, The first time also indicates the total duration of the video.
4. The method of claim 1, wherein, The second region does not overlap with the first region.
5. The method according to any one of claims 1 to 4, characterized in that, The functional controls include a pause control. When the electronic device is playing the video, it receives a first operation on the pause control, and in response to the first operation, the electronic device pauses the playback of the video; When the electronic device pauses the video playback, it receives a second operation on the pause control, and in response to the second operation, the electronic device resumes playing the video.
6. The method according to any one of claims 1 to 4, characterized in that, The drag operation is either dragging from left to right or dragging from right to left.
7. The method according to any one of claims 1 to 4, characterized in that, The functional controls are located within the area where the progress bar is located.
8. The method according to any one of claims 1 to 4, characterized in that, The video playback window on the second interface displays the video frame at the second playback progress.
9. The method according to any one of claims 1 to 4, characterized in that, The method further includes: In response to a user's touch operation on the progress bar, the electronic device hides the functional controls in the first area of the first interface and displays a second time on the first interface, the second time indicating the time corresponding to the first playback progress.
10. The method of claim 1, wherein, The method further includes: During a preset time period after the user stops touching the progress bar, the electronic device continues to hide the function controls in the first area and continues to display the first time, which indicates the time corresponding to the second playback progress.
11. The method of claim 10, wherein, The method further includes: If the electronic device receives the user's operation on the progress bar within a preset time after the user stops touching the progress bar, the electronic device controls the progress cursor to update from the second position to the third position on the progress bar and displays a fourth interface. The fourth interface includes the video screen when the video is at the third playback progress, and the third playback progress is the playback progress when the progress cursor is at the third position.
12. The method of claim 10, wherein, The method further includes: If the electronic device does not receive any user interaction with the progress bar after a preset time has elapsed since the user stopped touching it, the electronic device will then re-display the function controls in the first area.
13. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to the drag operation, the electronic device acquires the start position and end position of the drag operation; The electronic device determines the dragging distance and the dragging direction corresponding to the dragging operation based on the starting position and the ending position. The electronic device determines a first displacement value corresponding to the dragging distance, wherein the first displacement value is the displacement value of the progress cursor on the progress bar; The electronic device determines the second position based on the first position, the first displacement value, and the dragging direction; The electronic device adjusts the progress cursor to the second position.
14. The method according to claim 1, characterized in that, The drag operation ends either within the first area or outside the first area.
15. The method according to claim 13, characterized in that, The electronic device determines the first displacement value corresponding to the dragging distance, including: A proportional reference value is determined based on the total duration of the video. The proportional reference value is used to reflect the displacement value of the progress cursor on the progress bar when the dragging distance is a unit distance during the process of the user dragging the progress bar. The proportional reference value is negatively correlated with the total duration. The first displacement value is determined based on the proportional reference value and the dragging distance, wherein the first displacement value is the product of the proportional reference value and the dragging distance.
16. The method of claim 15, wherein, The negative correlation between the ratio reference value and the total duration includes: If the total duration is less than or equal to a preset first threshold, then the ratio reference value is greater than 1; If the total duration is greater than the preset first threshold and less than or equal to the preset second threshold, then the ratio reference value is 1; If the total duration is greater than the preset second threshold, then the ratio reference value is greater than the first ratio and less than 1, where the first ratio is the ratio of the total length of the progress bar to the maximum distance of the drag operation in the direction of the progress bar.
17. The method of claim 16, wherein, The ratio reference value is a preset first value, wherein if the total duration is less than or equal to a preset first threshold, the first value is greater than 1; if the total duration is greater than the preset second threshold, the first value is greater than the first ratio and less than 1.
18. An electronic device, comprising: The electronic device includes: a memory and one or more processors; the memory is coupled to the processors; The memory is used to store computer program code, which includes computer instructions; when the computer instructions are executed by the processor, the electronic device performs the method as described in any one of claims 1-17.
19. A computer-readable storage medium, characterized in that, Includes computer instructions; When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-17.
Citation Information
Patent Citations
Control display method and device, electronic equipment and storage medium
CN113110783A
