Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, for the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions or actions, and those skilled in the art can understand that the words such as "first" and "second" do not limit the quantity and execution order. For example, the first input and the second input are for distinguishing different inputs, rather than for describing a particular order of inputs.
The execution main body of the play progress adjusting method provided in the embodiment of the present invention may be the electronic device (including a mobile electronic device and a non-mobile electronic device), or may also be a functional module and/or a functional entity capable of implementing the play progress adjusting method in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily explain the play progress adjusting method provided by the embodiment of the present invention.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the method for adjusting a play progress provided by the embodiment of the present invention is described by taking the operating system shown in fig. 1 as an example.
Fig. 1 is a schematic diagram of a possible operating system according to an embodiment of the present invention. In fig. 1, the architecture of the operating system includes 4 layers, respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application layer comprises various application programs (including system application programs and third-party application programs) in an operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes a library (also referred to as a system library) and an operating system runtime environment. The library mainly provides various resources required by the operating system. The operating system runtime environment is used to provide a software environment for the operating system.
The kernel layer is the operating system layer of the operating system and belongs to the lowest layer of the operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the operating system based on the Linux kernel.
Taking the operating system shown in fig. 1 as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for adjusting a play progress provided in the embodiment of the present invention based on the system architecture of the operating system shown in fig. 1, so that the method for adjusting a play progress may operate based on the operating system shown in fig. 1. That is, the processor or the electronic device may implement the method for adjusting a play progress provided by the embodiment of the present invention by running the software program in the operating system.
The playing progress adjusting method provided by the embodiment of the invention can be applied to various scenes, for example, the playing progress adjusting method can be applied to the scene of adjusting the playing progress of a video file, or the scene of adjusting the playing progress of an audio file and the like.
Taking the scene of the playing progress applied to adjust the video file as an example, when the screen a of the electronic device with the retractable screen displays the picture of the video a, if the user wants to adjust the progress of the video a, the user can slide down on the screen a by using the three fingers, at this time, the screen a of the electronic device continues playing or suspends playing the video a and stretches out of the screen B, at this time, the video a is also played in the screen B, and a progress bar is displayed for adjusting the playing progress of the video a played in the screen B. Then, the user can adjust the progress bar to change the playing progress of the video a played in the screen B, and after the playing progress required by the user is adjusted, the electronic device can play the adjusted video a on the screen a. Therefore, the user can adjust the playing progress through the screen B and finally adjust the playing progress of the video A played by the screen A, so that the playing content of the video A played by the screen A can not be influenced in the process of adjusting the playing progress, the phenomenon that the user mistakenly operates to adjust the playing progress to cause the interruption of watching the video A can be avoided, and the process of adjusting the progress of the multimedia file is simple and convenient to operate and high in efficiency.
The method for adjusting a play progress according to the embodiment of the present invention is described below with reference to a flowchart of the method for adjusting a play progress shown in fig. 2, where fig. 2 is a flowchart of the method for adjusting a play progress according to the embodiment of the present invention, and includes steps 201 to 203:
step 201: the electronic equipment receives a first input of a user under the condition that a playing interface of a first file is displayed in the first area and a playing interface of a second file is displayed in the second area.
The second file is the first file or a part of the first file.
In this embodiment of the present invention, the first area and the second area may be two areas in the same screen of the electronic device, or may also be areas in different screens, which is not limited in this embodiment of the present invention.
For example, when the electronic device includes a first screen and a second screen, the first region may be a region in the first screen of the electronic device, and the second region may be a region in the second screen of the electronic device; alternatively, the first area may be an upper area in the first screen of the electronic device, and the second area may be a lower area in the first screen of the electronic device.
In an embodiment of the present invention, the first file and the second file may be multimedia files, where the multimedia files may be audio files or video files.
In an embodiment of the present invention, the first input may include: the click input by the user on the second area, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
The specific gesture in the embodiment of the invention can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the invention can be click input, double-click input or click input of any number of times, and can also be long-press input or short-press input.
In one example, the above-mentioned click input by the user on the second area may include: user input to a target control displayed in the second region. The target control may be an existing control in the electronic device, or may be a newly added control, which is not limited in the embodiment of the present invention.
For example, the target control may be a progress bar or a scroll play bar, which is not limited in the embodiment of the present invention.
It is to be understood that the above-mentioned second file is the first file or a part of the first file refers to: the content of the second file may be all or part of the content of the first file.
For example, if the second file is a partial file in the first file, the content of the second file may be the content of the first file already played in the target area by the electronic device, or may also be the content of the first file not played in the target area by the electronic device, which is not limited in this embodiment of the present invention.
Step 202: and responding to the first input, the electronic equipment adjusts the playing progress of the second file to the first node, and starts playing the second file from the first node.
In this embodiment of the present invention, step 202 may specifically include the following steps: in response to the first input, the electronic device keeps playing or pauses playing the first file in the first area, adjusts the playing progress of the second file to the first node, and starts playing the second file from the first node.
It should be noted that, in the embodiment of the present invention, a node may be a play time, for example, the play progress of the second file is adjusted to 10 minutes and 20 seconds.
For example, the electronic device may display, in real time, a playing screen corresponding to the playing progress of the second file in the process of adjusting the playing progress of the second file in the second area, so as to prompt the user whether the currently displayed screen is a screen required by the user. For example, the electronic device may adjust the playing progress of the second file to the first node, and may display a first screen described below corresponding to the first node.
For example, taking an electronic device as an example having a first screen and a retractable second screen, as shown in fig. 3, a playing interface of a video 1 is displayed in a first screen 31a of the electronic device, a playing picture (i.e., 32 in fig. 3) is displayed in the playing interface, a playing interface of a video 1 is displayed in an extended second screen 31b, and a playing picture (i.e., 33 in fig. 3) is displayed in the playing interface, and it can be seen that the playing pictures of the first screen and the second screen are the same at this time. When the user wants to adjust the play progress of the video 1 in the first screen 31a, the user can slide on the second screen 31b to adjust the play progress of the video 1 in the second screen until the play progress of the video 1 played in the second screen 31b is adjusted to 10 minutes and 20 seconds that are wanted to be adjusted. As shown in fig. 4, a picture (i.e., 34 in fig. 4) corresponding to 10 minutes and 20 seconds in the video 1 is displayed in the second screen 31b of the electronic apparatus. Meanwhile, the first screen 31a of the electronic device may pause playing the video 1, i.e., the first screen 31a keeps displaying the playing picture 32 of the video 1, or the first screen 31a continues playing the video 1 during the adjustment of the second screen 31b by the user (not shown).
Step 203: after the first input is finished, the electronic equipment adjusts the playing progress of the first file to a second node, and the first file is played from the second node.
And the first picture of the second file corresponding to the first node is the same as the second picture of the first file corresponding to the second node.
For example, if the first file and the second file are audio files, the first screen and the second screen are corresponding playing screens (e.g., lyric screens) of the audio files, and it can be understood that the corresponding displayed lyrics are the same in the first screen and the second screen.
It should be noted that, if the second file is the first file, the first node is the same as the second node; and if the second file is a partial file in the first file, the first node is different from the second node.
For example, when the first node is different from the second node, the electronic device may determine a second picture, which is the same as the first picture, in the first file by comparing the first picture corresponding to the first node of the second file with a picture in the first file, and then determine the second node according to the play node corresponding to the second picture.
In one example, the first input end mentioned above refers to the user's finger leaving the second area.
For example, the playing the first file from the second node may include: the first file is played from the second node in the first area, or the first file is played from the second node in the second area, or the first file is played from the second node in the first area and the second area, which is not limited in the embodiment of the present invention.
In an example, in a case that the electronic device is a device having a first screen and a retractable second screen, the step 203 may specifically include the following steps: after the first input is finished, the electronic equipment adjusts the playing progress of the first file to a second node, displays a playing interface of the first file in the first screen, starts playing the first file from the second node, and contracts the second screen.
For example, referring to fig. 4, when the user determines that the frame 34 displayed on the second screen 31b is the playing node of the video 1 that is desired to be adjusted, the user may lift the finger from the second screen 31b (i.e., the first input mentioned above is ended). Then, as shown in fig. 5, the electronic device starts playing the video 1 at the node of 10 minutes and 20 seconds in the first screen 31a and displays the corresponding screen 34, and at the same time, the electronic device may also shrink the second screen 31 b.
It can be understood that the electronic device can keep playing or pause playing the first file in the first area, and adjust the playing progress of the second file in the second area, and any operation of the user on the second area will not affect the first file played in the first area before the first input is finished, so that the influence on the playing of the first file due to the misoperation of the user can be avoided.
Optionally, in addition to adjusting the playing progress of the first file to the second node and playing the first file from the second node directly after the first input is ended, the electronic device may be triggered by the user to adjust the playing progress of the first file to the second node and play the first file from the second node, for example, step 203 may further include the following steps 203a and 203 b:
step 203 a: and the electronic equipment receives a fourth input of the user after the first input is finished.
Illustratively, the fourth input is used to trigger the electronic device to adjust the playing progress of the first file to the second node, and play the first file from the second node.
Illustratively, the fourth input may include: the click input of the user to the screen of the electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
In one example, the fourth input may be a gesture of sliding at least one finger of the user upwards. For example, the fourth input may be an input by a user sliding a three finger slide on a screen of the electronic device.
Step 203 b: and responding to the fourth input, adjusting the playing progress of the first file to the second node, and starting to play the first file from the second node.
For example, referring to fig. 4, a frame 34 corresponding to 10 minutes and 20 seconds in the video 1 is displayed on the second screen 31b of the electronic device, and when the user determines that the frame 34 is the playing node of the video 1 that the user wants to adjust, the user may slide three fingers upwards on the second screen 31b (i.e., the fourth input described above). At this time, as shown in fig. 5, the electronic device starts playing the video 1 at the node of 10 minutes and 20 seconds on the first screen 31a and displays the corresponding screen 34, and at the same time, the electronic device may also shrink the second screen 31 b.
In the method for adjusting a playing progress provided in the embodiment of the present invention, when a playing interface of a first file is displayed in a first area, and a playing interface of a second file (which is the first file or a part of the first file) is displayed in a second area, after receiving a first input from a user, an electronic device may adjust the playing progress of the second file to a first node, and start playing the second file from the first node. Then, after the first input is finished, the electronic device may adjust the playing progress of the first file to a second node, and start playing the first file from the second node; and the first picture of the second file corresponding to the first node is the same as the second picture of the first file corresponding to the second node. Through the scheme, when a user wants to adjust the playing progress of the first file, the user can trigger the electronic equipment to adjust the playing progress of the second file in the second area to the first node which wants to be adjusted. Then, the electronic device may adjust the first file to a second node according to the first node, and play the first file from the second node. Therefore, the playing content of the first file in the first area watched by the user is not influenced in the process of adjusting the playing progress of the multimedia file, and the user can be prevented from mistakenly triggering the electronic equipment to adjust the progress of the first file in the first area.
Optionally, in the embodiment of the present invention, the user may trigger the electronic device to determine the first area and the second area.
Illustratively, before receiving the first input of the user in step 201, the method may further include the following steps 201a and 201 b:
step 201 a: and under the condition that the target area displays the playing interface of the first file, the electronic equipment receives a second input.
Wherein the target area comprises at least one of: a first region, a second region. It is to be understood that the target region may be the first region, may also be the second region, and may also be the first region and the second region.
For example, the target area may be a partial or entire area in a screen of the electronic device, which is not limited in this embodiment of the present invention. For example, the target area may be an upper area in the screen of the electronic device, or a lower area in the screen of the electronic device, or a left area in the screen of the electronic device, or a right area in the screen of the electronic device, or an upper left area in the screen of the electronic device, or a lower left area in the screen of the electronic device, or an upper right area in the screen of the electronic device, or a lower right area in the screen of the electronic device, which may be specifically set according to actual usage requirements, and is not limited in this embodiment of the present invention.
In an example, if the electronic device is a multi-screen electronic device, the target region may be all or a partial region of at least one screen of the multi-screen electronic device, where the screen of the multi-screen electronic device may be a folding screen or a telescopic screen, which is not limited in this embodiment of the present invention.
For example, the screen of the electronic device is a telescopic screen having a first screen and a second screen which is adjustable in telescopic manner, and the target area may be an area in the first screen, an area in the second screen, or an area in the first screen and the second screen, which is not limited in the embodiment of the present invention.
In an embodiment of the present invention, the second input may include: the click input of the user to the screen of the electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
In one example, the second input may be a gesture in which at least one finger of the user slides down on the screen of the electronic device. For example, the second input may be an input by a user sliding down three fingers on a screen of the electronic device.
Step 201 b: and responding to the second input, the electronic equipment displays the playing interface of the first file in the first area, and displays the playing interface of the second file in the second area.
And the playing picture of the first file in the first area is the same as the playing picture of the first file in the target area.
In one example, after the electronic device receives a second input from the user, the electronic device may divide the screen of the electronic device into a first area and a second area, wherein the first area is used for continuing to play the first file, and the second area is used for adjusting the playing progress of the first file.
Example 1, a retractable screen of an electronic device includes a first screen and a second screen, a target area may be all display areas of the first screen and the second screen, after the electronic device receives an input that a user slides down three fingers on the target area of the electronic device, the first area may be all display areas in the first screen, and the second area may be all display areas in the second screen.
Example 2, the retractable screen of the electronic device includes a first screen and a second screen, the target area may be all display areas of the first screen, and after the electronic device receives an input that a user slides down three fingers on the first screen of the electronic device, the first area may be all display areas in the first screen, and the second area may be all display areas in the second screen.
Example 3, the retractable screen of the electronic device includes a first screen and a second screen, the target area may be all display areas of the first screen, after the electronic device receives an input that a user slides down three fingers on the first screen of the electronic device, the first area may be all display areas of the second screen, and the second area may be all display areas of the first screen.
For example 4, the retractable screen of the electronic device includes a first screen, the target area may be all display areas of the first screen, after the electronic device receives an input that a user slides down three fingers on the first screen of the electronic device, the first area may be a display area on the upper half of the first screen, and the second area may be a display area on the lower half of the first screen.
For example, taking an electronic device as an electronic device with a first screen and a second screen as an example, as shown in fig. 6, a first screen 31a of the electronic device displays a playing interface of a video 1 in a full screen, and when a playing screen 32 is displayed in the playing interface, if a user wants to adjust a playing progress of the video 1, three fingers may be slid downward on the playing screen 32, at this time, as shown in fig. 3, the first screen 31a of the electronic device keeps the playing interface of the video 1 in the full screen, the playing screen 32 is displayed in the playing interface, the electronic device extends out of the second screen 31b, the playing interface of the video 1 in the full screen is displayed in the second screen 31b, and the playing screen 33 is displayed in the playing interface.
Therefore, the user can trigger the electronic equipment to partition the screen according to the requirement under the condition that the playing progress of the first file needs to be adjusted, so that the adjustment of the playing progress of the first file in the first area is realized by adjusting the playing progress of the second file in the second area, and the progress of the electronic equipment for adjusting the first file in the first area is prevented from being triggered by mistake by the user.
Optionally, in an embodiment of the present invention, in order to enhance a visual effect of a user viewing the first file, after the electronic device completes adjustment of the playing progress of the first file through the first area and the second area, the first file may be displayed on the first area and the second area.
Illustratively, before playing the first file from the second node in step 203 above, the method may further include step 203c of:
step 203 c: and the electronic equipment cancels the display of the playing interface of the second file in the second area.
Specifically, after the first input is finished, the electronic device cancels the display of the play interface of the second file in the second area.
It should be noted that, in step 203c and step 203, the electronic device adjusts the playing progress of the first file to a point that the second node has no obvious sequence when executing. For example, the electronic device may execute the electronic device in step 203 to adjust the playing progress of the first file to the second node before step 203c, or the electronic device may execute the electronic device in step 203 to adjust the playing progress of the first file to the second node after step 203c, or the electronic device may execute the electronic device in step 203 to adjust the playing progress of the first file to the second node simultaneously with step 203c, which is not limited in the embodiment of the present invention.
Based on step 203c, the playing the first file from the second node in step 203 may specifically include the following step 203 d:
step 203 d: and the electronic equipment displays the playing interface of the first file in the third area and starts playing the first file from the second node.
Wherein the third region includes the first region and the second region.
It should be noted that, the electronic device may display the play interface of the first file in the first area, or may display the play interface of the first file in the second area, in addition to displaying the play interface of the first file in the third area, which is not limited in this embodiment of the present invention.
For example, referring to fig. 4, when the user determines that the frame 34 displayed on the second screen 31b is the playing node of the video 1 that the user wants to adjust, the user can lift the finger from the second screen 31b (i.e., the first input mentioned above is finished). Then, the electronic device may cancel the playing interface displaying the video 1 in the second screen 31b, display a screen 34 corresponding to the video 1 with a playing progress of 10 minutes and 20 seconds in the first screen 31a and the second screen 31b, and continue playing the video 1 from the screen 34.
Therefore, after the electronic equipment can complete the adjustment of the playing progress of the first file in the first area and the second area, the first file can be displayed in the first area and the second area, so that the size of a playing picture of the first file can be increased, and the visual effect of watching the first file by a user is improved.
Optionally, in the embodiment of the present invention, since the finger of the user has a certain contact area with the screen of the electronic device, and the size of the progress bar of the electronic device is fixed at present, it may be possible that the user cannot accurately adjust the playing progress of the first file.
For example, when the first progress bar is displayed in the second area and the first input includes the first sub-input and the second sub-input, the adjusting the playing progress of the second file to the first node in response to the first input in step 202 may specifically include the following steps 202a to 202 c:
step 202 a: in response to the first sub-input to the first progress bar, the electronic device determines a third file of the second files and displays a second progress bar corresponding to the third file.
And the third file is a part of the second file.
In the embodiment of the invention, the first progress bar is used for indicating the duration of the second file.
For example, the first progress bar may be displayed in a superimposed manner on the second area, or may be displayed in a floating manner on the second area, which is not limited in this embodiment of the present invention.
For example, the first progress bar may include a first slide rail and a first slider, and a user may drag the first slider to move on the first slide rail, so as to adjust the playing progress of the second file.
For example, a screen in the second area of the electronic device may be changed according to the user's input to the first progress bar. For example, when the user clicks on the first progress bar for input, the corresponding display screen in the second area of the electronic device is different according to the different positions of the first progress bar touched by the fingers of the user.
In an example, the step 201b may specifically include the following steps: and responding to the second input, the electronic equipment displays the playing interface of the first file in the first area, displays the playing interface of the second file in the second area, and displays the first progress bar in the second area.
For example, as shown in fig. 3, the second screen 31b of the electronic device is displayed with a first progress bar 35 in an overlapped manner, and the first progress bar 35 includes the slide rail 1 and the slider 1.
It is understood that the third file is a partial file in the second file, and means: the duration of the third file is less than that of the second file, and the content of the third file is less than that of the second file.
For example, the third file may be set by a user or may be default, which is not limited in the embodiment of the present invention.
Illustratively, the first sub-input is used for triggering the electronic device to determine a third file and display a second progress bar.
For example, the first sub-input may include: the click input of the user on the first progress bar, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
In an example, the first sub-input may be a click input of a user to the first progress bar for a preset duration.
For example, the second progress bar may indicate a duration of the third file.
For example, the second progress bar may be displayed in a superimposed manner on the second area, or may be displayed in a floating manner on the second area, which is not limited in this embodiment of the present invention.
For example, the second progress bar may include a second slide rail and a second slider, and a user may drag the second slider to move on the second slide rail, so as to adjust the playing progress of the third file.
It should be noted that, when the lengths of the sliding rails of the second progress bar and the first progress bar are the same, the adjustable duration of the second progress bar is less than the adjustable duration of the first progress bar, and therefore the second progress bar can perform more detailed progress adjustment compared with the first progress bar.
Step 202 b: the electronic device receives a second sub-input to the second progress bar.
Illustratively, the second sub-input is used for adjusting the playing progress of the third file.
The second sub-input may include: the click input of the user on the second progress bar, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
Step 202 c: and responding to the second sub-input, and adjusting the playing progress of the second file to the first node by the electronic equipment.
For example, referring to fig. 4, if a user needs to adjust the playing node of the video 1 in the second screen 31b of the electronic device to 10 minutes and 30 seconds, and the user drags the slider 1 with the index finger, it is difficult to accurately adjust the video 1 in the second screen 31b to the node of 10 minutes and 30 seconds, which is prone to generate deviation. Thus, the user may first adjust the video 1 to 10 minutes and 20 seconds, and then the user may press the first progress bar 35 for 2 seconds. At this time, the electronic device may determine, according to a schedule determination rule default by the system, a sub-video with a schedule of 10 to 11 points (i.e., the third file mentioned above) in the video 1 on the second screen 31b, and, as shown in fig. 7, the electronic device may display a second schedule bar (i.e., 36 in fig. 7) corresponding to the sub-video with the schedule of 10 to 11 points on the second screen 31b, where the second schedule bar 36 includes the slider 2 and the slide rail 2. Then, when the user needs to further fine tune the video 1 to 10 minutes 30 seconds, the user can drag the slider 2, and finally, the electronic device can tune the playing progress of the second file to 10 minutes 30 seconds (i.e. the first node).
Therefore, the electronic equipment can improve the accuracy of the progress regulation through the more detailed second progress bar in the progress regulation mode of the double progress bars.
Further optionally, in an embodiment of the present invention, to improve flexibility of setting the second progress bar, the third file may be freely set by a user.
In particular, the electronic device may determine the third file in at least two possible implementations.
In a first possible implementation:
for example, the determining the third file in the second file in response to the first sub-input to the first progress bar in the step 202a may specifically include the following steps a1 and a 2:
step A1: in response to a first sub-input to the first progress bar, the electronic device displays a target marquee.
Wherein, the target marquee includes: the start marquee is used for selecting the start time of the third file, and the end marquee is used for selecting the end time of the third file.
Illustratively, the electronic device displaying the target marquee includes: the electronic equipment displays the target selection frame with a preset display effect. Wherein the preset display effect may be at least one of: highlight, flicker, and jitter.
For example, the electronic device may display the start and end marquees in different colors, respectively.
Step A2: the electronic device determines a third file of the second files after receiving user input to at least one of the start and end marquees.
For example, the user's input of the start tab may specifically include: the embodiment of the present invention does not limit the input to the initial tab box by a click input of the user, or a drag input of the user to the initial tab box, or a sliding input of the user on the initial tab box, or any feasible input of the user on the initial tab box.
For example, the user's input of the termination vote box may specifically include: the embodiment of the present invention does not limit this, and the method includes a click input of the user on the termination marquee, or a drag input of the user on the termination marquee, or a slide input of the user on the termination marquee, or any feasibility input of the user on the termination marquee.
For example, referring to fig. 4, if a user needs to adjust the playing node of the video 1 on the second screen 31b of the electronic device to 10 minutes and 30 seconds, and the user's index finger dragging the slider 1 can hardly adjust the video 1 in the second screen 31b to the node of 10 minutes and 30 seconds accurately, a deviation is easily generated. In this manner, the user may first adjust video 1 to 10 minutes and 20 seconds, and then the user may double-click on the first progress bar 35. At this time, as shown in fig. 8, the electronic device may display a target selection frame (i.e., 37 in fig. 8) on the second screen 31b, where the target selection frame 37 includes a red selection frame 37a and a green selection frame 37b, then, the user may drag the red selection frame 37a to select the start time 10 minutes, drag the green selection frame 37b to select the end time 11 minutes, and finally, the electronic device may determine the sub-videos (i.e., the third file described above) of the video 1 on the second screen 31b with the start time 10 minutes and the end time 11 minutes.
It should be noted that, after the electronic device displays the start frame and the end frame, if the user does not input the start frame and the end frame, the electronic device takes the time corresponding to the start frame and the end frame as the default start time and the default end time.
In a second possible implementation:
for example, the determining the third file in the second file in response to the first sub-input to the first progress bar in the step 202a may specifically include the following steps B1 to B3:
step B1: in response to a first sub-input to the first progress bar, the electronic device determines a target time according to an input position of the first sub-input.
For example, the input position of the first sub-input refers to a position where the user touches the first progress bar. Specifically, the position where the user touches the first progress bar may be determined according to the coordinates where the user touches the screen of the electronic device.
Step B2: and the electronic equipment determines the target time length according to the input time length of the first sub-input.
Illustratively, there is a corresponding relationship between the input duration of the first sub-input and the target duration. Specifically, the electronic device receives the start of timing when the user touches the screen of the electronic device, and the electronic device stops timing when the user stops touching the screen of the electronic device, so that the input duration is obtained. Then, the electronic device may determine the target duration according to the correspondence.
Step B3: and the electronic equipment selects the starting time and the ending time of the third file according to the target time and the target duration, and determines the third file in the second files.
And the target time is the central time between the starting time and the ending time of the third file.
For example, the target time may be any time between the start time and the end time of the third file except the center time, in addition to the center time between the start time and the end time of the third file.
For example, referring to fig. 4, if a user needs to adjust the playing node of the video 1 on the second screen 31b of the electronic device to 10 minutes and 30 seconds, and the user's index finger dragging the slider 1 can hardly adjust the video 1 in the second screen 31b to the node of 10 minutes and 30 seconds accurately, a deviation is easily generated. Thus, the user can press the position corresponding to 10 minutes and 20 seconds in the first progress bar 35 for a long time to determine the target time to be 10 minutes and 20 seconds, and when the user presses the position for a long time to reach 2 seconds, the target time duration is determined to be 40 seconds. Then, the electronic device takes 10 minutes and 20 seconds as a center, takes 20 seconds forward to select the start time 10 minutes and 01 seconds, and takes 20 seconds backward to select the end time 10 minutes and 40 seconds, and finally, the electronic device can determine the sub-videos (i.e., the third file) with the start time 10 minutes and 01 seconds and the end time 10 minutes and 40 seconds in the video 1 on the second screen 31 b; furthermore, the pressing time of the user is different, the number of seconds selected forward and backward correspondingly is also different, and the longer the pressing time is, the longer the number of seconds is.
Therefore, the user can flexibly determine the third file according to the requirement, and the time length of the third file is less than that of the second file, so that the second progress bar corresponding to the third file can more accurately adjust the progress of the multimedia file.
Optionally, in the embodiment of the present invention, if the user does not want to perform adjustment again or does not find a progress required to be adjusted in the process of triggering the electronic device to adjust the progress, the user may trigger the electronic device to cancel the adjustment.
Illustratively, after the step 202, the method may further include the following steps 204 and 205:
step 204: the electronic device receives a third input by the user on the second area.
The third input is used for canceling the adjustment of the playing progress of the first file.
Illustratively, the third input may include: the click input of the user to the screen, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
In one example, the electronic device may receive a third input from the user on the second area while the first area remains playing the first file.
In another example, the electronic device may receive a third input from the user on the second area in a case where the first area pauses the playing of the first file.
Step 205: and responding to the third input, and the electronic equipment continuously plays the first file in the target area at the playing progress of the first area.
For example, in a case where the electronic device keeps playing the first file in the first area, the playing progress of the first area may be: when the electronic equipment cancels the adjustment of the playing progress of the first file, the electronic equipment plays the playing node of the first file at present; in a case that the electronic device pauses playing of the first file in the first area, the playing progress of the first area may be a playing node when the playing of the first file is paused.
For example, referring to fig. 3, the electronic device stretches out of the second screen 31b, the playing screen 33 is displayed in the second screen 31b, and the first progress bar 35 is displayed in an overlapping manner, and the first progress bar 35 includes the sliding rail 1 and the sliding block 1. At this time, the first screen 31a of the electronic device keeps playing the video 1. If the user drags the slider 1 to perform the progress adjustment, but does not find the progress of the adjustment, the user may double-click the second screen 31b when the user wants to cancel the adjustment. Since the first screen 31a keeps playing the video 1, the picture a of the video 1 is already displayed, and after the user double-clicks the second screen 31b, as shown in fig. 9, the electronic device continues playing the video 1 from the picture a (i.e., 41 in fig. 9) in the first screen 31a, and contracts the second screen 31 b.
Therefore, in the process of adjusting the playing progress of the multimedia file, when the user no longer needs to adjust the progress, for example, the user does not want to adjust the progress of the multimedia file, or the user does not find the multimedia progress that the user wants to adjust, the progress adjustment can be cancelled, at this time, the cancellation of the progress adjustment does not affect the playing progress of the first file in the first area, the electronic device can also continue to play the first file in the target area at the playing progress of the first area, and the flexibility of the progress adjustment of the multimedia file is improved.
Fig. 10 is a schematic diagram of a possible structure of a play progress adjustment apparatus according to an embodiment of the present invention, and as shown in fig. 10, the play progress adjustment apparatus 600 includes: a receiving module 601 and an executing module 602, wherein: a receiving module 601, configured to receive a first input of a user when a playing interface of a first file is displayed in a first area and a playing interface of a second file is displayed in a second area; an executing module 602, configured to adjust a playing progress of the second file to the first node in response to the first input received by the receiving module 601, and start playing the second file from the first node; after the first input is finished, the playing progress of the first file is adjusted to the second node, and the first file is played from the second node; and the first picture of the second file corresponding to the first node is the same as the second picture of the first file corresponding to the second node, and the second file is the first file or a part of the first file.
Optionally, as shown in fig. 10, the playing progress adjusting device further includes: a display module 603; the receiving module 601 is further configured to receive a second input under the condition that the target area displays the playing interface of the first file; a display module 603, configured to display a playing interface of the first file in the first area and display a playing interface of the second file in the second area in response to the second input received by the receiving module 601; wherein the playing picture of the first file in the first area is the same as the playing picture of the first file in the target area, and the target area comprises at least one of the following items: a first region, a second region.
Optionally, as shown in fig. 10, the playing progress adjusting device further includes: a display module 603; the display module 603 is further configured to cancel displaying the play interface of the second file in the second area; an executing module 602, specifically configured to display a playing interface of the first file in the third area, and start playing the first file from the second node; wherein the third region includes the first region and the second region.
Optionally, as shown in fig. 10, the playing progress adjusting device further includes: a display module 603 and a determination module 604; the second area displays a first progress bar, and the first input comprises a first sub-input and a second sub-input; a determining module 604, configured to determine a third file in the second files in response to the first sub-input to the first progress bar received by the receiving module 601; a display module 603, configured to display, in response to the first sub-input to the first progress bar received by the receiving module 601, a second progress bar corresponding to a third file, where the third file is a partial file of the second file; the receiving module 601 is further configured to receive a second sub-input to the second progress bar; the executing module 602 is specifically configured to adjust the playing progress of the second file to the first node in response to the second sub-input received by the receiving module 601.
Optionally, the display module 603 is further configured to display the target marquee in response to the first sub-input to the first progress bar received by the receiving module 601; the target marquee includes: the starting marquee is used for selecting the starting time of the third file, and the ending marquee is used for selecting the ending time of the third file; a determining module 604, configured to determine a third file in the second file after receiving an input of at least one of the start tab and the end tab displayed by the display module 603 from a user; or, the determining module 604 is specifically configured to determine, in response to the first sub-input to the first progress bar received by the receiving module 601, a target time according to an input position of the first sub-input; determining a target time length according to the input time length of the first sub-input; and selecting the starting time and the ending time of the third file according to the target time and the target duration, and determining the third file in the second file, wherein the target time is the central time between the starting time and the ending time of the third file.
It should be noted that, as shown in fig. 10, the modules that are necessarily included in the play progress adjustment apparatus 600 are indicated by solid line boxes, such as a receiving module 601; the modules that may or may not be included in the play progress adjustment apparatus 600 are indicated by dashed boxes, such as the determination module 604.
In the play progress adjusting apparatus provided in the embodiment of the present invention, in a case that a play interface of a first file is displayed in a first area, and a play interface of a second file (which is the first file or a part of the first file) is displayed in a second area, after receiving a first input from a user, an electronic device may adjust a play progress of the second file to a first node, and start playing the second file from the first node. Then, after the first input is finished, the electronic device may adjust the playing progress of the first file to a second node, and start playing the first file from the second node; and the first picture of the second file corresponding to the first node is the same as the second picture of the first file corresponding to the second node. Through the scheme, when a user wants to adjust the playing progress of the first file, the user can trigger the electronic equipment to adjust the playing progress of the second file in the second area to the first node which wants to be adjusted. Then, the electronic device may adjust the first file to a second node according to the first node, and play the first file from the second node. Therefore, the playing content of the first file in the first area watched by the user is not influenced in the process of adjusting the playing progress of the multimedia file, and the user can be prevented from mistakenly triggering the electronic equipment to adjust the progress of the first file in the first area.
The playing progress adjusting device provided by the embodiment of the invention can realize each process in the method embodiment, and is not described again to avoid repetition.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device 100 for implementing various embodiments of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of electronic device 100 shown in fig. 11 does not constitute a limitation of the electronic device, and that electronic device 100 may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The user input unit 107 is configured to display a playing interface of a first file in the first area, and receive a first input of a user when a playing interface of a second file is displayed in the second area; an audio output unit 103 for adjusting a playing progress of the second file to the first node in response to the first input received by the user input unit 107; playing the second file from the first node; after the first input is finished, the playing progress of the first file is adjusted to the second node, and the first file is played from the second node; and the first picture of the second file corresponding to the first node is the same as the second picture of the first file corresponding to the second node, and the second file is the first file or a part of the first file.
In the electronic device provided by the embodiment of the present invention, when the play interface of the first file is displayed in the first area, and the play interface of the second file (which is the first file or a part of the first file) is displayed in the second area, after receiving the first input from the user, the electronic device may adjust the play progress of the second file to the first node, and start playing the second file from the first node. Then, after the first input is finished, the electronic device may adjust the playing progress of the first file to a second node, and start playing the first file from the second node; and the first picture of the second file corresponding to the first node is the same as the second picture of the first file corresponding to the second node. Through the scheme, when a user wants to adjust the playing progress of the first file, the user can trigger the electronic equipment to adjust the playing progress of the second file in the second area to the first node which wants to be adjusted. Then, the electronic device may adjust the first file to a second node according to the first node, and play the first file from the second node. Therefore, the playing content of the first file in the first area watched by the user is not influenced in the process of adjusting the playing progress of the multimedia file, and the user can be prevented from mistakenly triggering the electronic equipment to adjust the progress of the first file in the first area.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device 100 provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 11, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device 100, connects various parts of the entire electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the foregoing method for adjusting a play progress, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing method for adjusting a play progress, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.