Video playing progress adjusting method and electronic equipment

文档序号:1559151 发布日期:2020-01-21 浏览:4次 中文

阅读说明:本技术 视频播放进度调节方法及电子设备 (Video playing progress adjusting method and electronic equipment ) 是由 杨章 于 2019-10-16 设计创作,主要内容包括:本发明实施例公开了一种视频播放进度调节方法及电子设备。其中,视频播放进度调节方法包括:获取用于调节视频的播放进度的触控输入;响应于触控输入,获取在第一调节精度下的第一视频播放进度;在触控输入针对第一视频播放进度的第一触控参数达到第一参数阈值的情况下,在包括第一视频播放进度的第一视频播放进度段中,基于第二调节精度,调节视频的播放进度;其中,第一调节精度低于或等于第二调节精度。利用本发明实施例能够解决所定位的视频播放进度的准确性较低以及定位过程比较耗时的问题。(The embodiment of the invention discloses a video playing progress adjusting method and electronic equipment. The video playing progress adjusting method comprises the following steps: acquiring touch input for adjusting the playing progress of the video; responding to touch input, and acquiring a first video playing progress under a first adjusting precision; under the condition that a first touch parameter aiming at the first video playing progress of the touch input reaches a first parameter threshold value, the playing progress of the video is adjusted in a first video playing progress section comprising the first video playing progress based on second adjusting precision; wherein the first adjustment accuracy is lower than or equal to the second adjustment accuracy. The embodiment of the invention can solve the problems of low accuracy of the positioned video playing progress and time-consuming positioning process.)

1. A video playing progress adjusting method is characterized by comprising the following steps:

acquiring touch input for adjusting the playing progress of the video;

responding to the touch input, and acquiring a first video playing progress under a first adjusting precision;

under the condition that a first touch parameter of the touch input for the first video playing progress reaches a first parameter threshold value, in a first video playing progress section comprising the first video playing progress, adjusting the playing progress of the video based on a second adjusting precision;

wherein the first adjustment accuracy is lower than or equal to the second adjustment accuracy.

2. The method of claim 1, further comprising, after said adjusting the playing progress of the video based on the second adjustment precision:

acquiring a second video playing progress under the second adjusting precision;

under the condition that a first touch parameter of the touch input for the second video playing progress reaches a second parameter threshold value, in a second video playing progress section comprising the second video playing progress, the playing progress of the video is adjusted based on third adjusting precision;

the second video playing progress segment is a part or all of the first video playing progress segment, the second parameter threshold is greater than or equal to the first parameter threshold, and the second adjustment precision is lower than or equal to the third adjustment precision.

3. The method according to claim 1 or 2, wherein the first touch parameter comprises a touch pressure value and/or a touch duration of the touch input.

4. The method of claim 1,

the acquiring a first video playing progress at a first adjusting precision includes:

acquiring a first touch position of the touch input on the displayed first progress bar; the adjusting precision of the first progress bar is a first adjusting precision;

taking the playing progress corresponding to the first touch position as the first video playing progress;

the adjusting the playing progress of the video based on the second adjusting precision comprises:

displaying a second progress bar corresponding to the first video playing progress segment; wherein the adjustment precision of the second progress bar is the second adjustment precision;

and adjusting the playing progress of the video according to a second touch position of the touch input on the second progress bar.

5. The method of claim 4, further comprising, after said adjusting the playing progress of the video based on the second adjustment precision:

if the touch position of the touch input slides from the second progress bar to the first progress bar, hiding the second progress bar;

and adjusting the playing progress of the video according to a third touch position of the touch input on the first progress bar.

6. The method according to claim 4, wherein the displaying the second progress bar corresponding to the first video playing progress section comprises:

covering or replacing the first progress bar by using the second progress bar corresponding to the first video playing progress segment;

alternatively, the first and second electrodes may be,

and displaying the second progress bar corresponding to the first video playing progress segment.

7. The method of claim 1, further comprising:

acquiring a second touch parameter of the touch input aiming at the first video playing progress;

determining a first progress control duration corresponding to a second touch parameter according to a first mapping relation between the preset second touch parameter and the progress control duration;

and determining the first video playing progress segment according to the first progress control time length and the first video playing progress.

8. The method of claim 7, wherein the second touch parameter comprises at least one of a touch pressure value, a touch duration and a touch area of the touch input.

9. The method of claim 1, further comprising:

acquiring a target video playing progress corresponding to the touch input when the touch input is terminated;

and taking the target video playing progress as the positioned video playing progress.

10. An electronic device, comprising:

the input acquisition module is used for acquiring touch input for adjusting the playing progress of the video;

the progress acquisition module is used for responding to the touch input and acquiring a first video playing progress under a first adjusting precision;

the progress adjusting module is used for adjusting the video playing progress in a first video playing progress section comprising the first video playing progress based on second adjusting precision under the condition that a first touch parameter of the touch input aiming at the first video playing progress reaches a first parameter threshold value;

wherein the first adjustment accuracy is lower than or equal to the second adjustment accuracy.

Technical Field

The embodiment of the invention relates to the technical field of communication, in particular to a video playing progress adjusting method and electronic equipment.

Background

In the process of playing a video by using an electronic device, a user often adjusts the playing progress of the video according to the needs of the user, for example: skipping over contents that are not desired to be viewed or repeatedly playing back favorite contents.

At present, a user can adjust the playing progress of a video by dragging a progress bar of the video. However, the method of positioning the video playing progress by dragging the progress bar is utilized, the positioning accuracy is low, the process of positioning the video playing progress is time-consuming, repeated operation is needed, and the user experience is poor.

Disclosure of Invention

The embodiment of the invention provides a video playing progress adjusting method and electronic equipment, and aims to solve the problems that the accuracy of positioning the video playing progress is low and the positioning process is time-consuming.

In order to solve the technical problem, the invention is realized as follows:

in a first aspect, an embodiment of the present invention further provides a method for adjusting a video playing progress, including:

acquiring touch input for adjusting the playing progress of the video;

responding to touch input, and acquiring a first video playing progress under a first adjusting precision;

under the condition that a first touch parameter aiming at the first video playing progress of the touch input reaches a first parameter threshold value, the playing progress of the video is adjusted in a first video playing progress section comprising the first video playing progress based on second adjusting precision;

wherein the first adjustment accuracy is lower than or equal to the second adjustment accuracy.

In a second aspect, an embodiment of the present invention provides an electronic device, including:

the input acquisition module is used for acquiring touch input for adjusting the playing progress of the video;

the progress acquisition module is used for responding to touch input and acquiring a first video playing progress under a first adjusting precision;

the progress adjusting module is used for adjusting the playing progress of the video based on the second adjusting precision in a first video playing progress section comprising the first video playing progress under the condition that a first touch parameter aiming at the first video playing progress of the touch input reaches a first parameter threshold value;

wherein the first adjustment accuracy is lower than or equal to the second adjustment accuracy.

In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the video playing progress adjusting method according to the first aspect.

In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the video playing progress adjustment method according to the first aspect.

In the embodiment of the invention, in the playing process of the video, after the touch input by the user is received, if the first touch parameter of the touch input is smaller than the first parameter threshold, the playing progress of the video can be adjusted according to the first adjusting precision with lower precision to obtain the first video playing progress, so that the user can quickly find the approximate position of the video playing progress required to be positioned, if the first touch parameter of the touch input is greater than or equal to the first parameter threshold, the playing progress of the video can be adjusted in the first video playing progress section including the first video playing progress according to the second adjusting precision with higher precision, so that the user can quickly find the accurate position of the video playing progress required to be positioned, thereby realizing the accurate positioning of the playing progress of the video and reducing the time consumed by the positioning process, the efficiency of the positioning of the video playing progress is improved, and the accuracy of the positioned video playing progress is improved.

Drawings

The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.

Fig. 1 is a schematic flow chart of a video playing progress adjustment method according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a progress bar according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of a progress bar according to another embodiment of the present invention;

fig. 4 is a schematic flowchart of a video playing progress adjustment method according to another embodiment of the present invention;

fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;

fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.

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 invention.

In the existing method of positioning the video playing progress by dragging the progress bar, each video has only one progress bar, and the progress bar has a fixed adjustment precision, for example, an adjustment precision at a minute level or a second level.

Wherein, if the progress bar of video is the regulation precision of second rank, under the long condition of the broadcast duration of video, if the video broadcast progress that the user wants the location is longer from the time interval of current video broadcast progress, need slide longer distance or slide on the display screen many times on the display screen continuously on the display screen to can drag the progress sign on the progress bar to the video broadcast progress that wants the location, lead to carrying out the process that video broadcast progress was fixed a position time consuming, need to operate repeatedly, user experience is relatively poor.

If the progress bar of the video is the adjustment precision of the minute level, the user can only drag the progress mark on the progress bar to the position near the video playing progress to be positioned, so that the positioning precision is low. Similarly, in the case where the user request is high, the same problem exists with a progress bar having an adjustment accuracy on the order of seconds.

In order to solve the problems in the prior art, embodiments of the present invention provide a video playing progress adjustment method, an electronic device, and a medium.

Fig. 1 is a flowchart illustrating a video playing progress adjustment method according to an embodiment of the present invention. As shown in fig. 1, the video playing progress adjusting method includes:

s110, acquiring touch input for adjusting the playing progress of the video;

s120, responding to touch input, and acquiring a first video playing progress under a first adjusting precision;

s130, under the condition that a first touch parameter aiming at the first video playing progress of the touch input reaches a first parameter threshold value, in a first video playing progress section comprising the first video playing progress, the playing progress of the video is adjusted based on second adjusting precision; wherein the first adjustment accuracy is lower than the second adjustment accuracy.

In the embodiment of the invention, in the playing process of the video, after the touch input by the user is received, if the first touch parameter of the touch input is smaller than the first parameter threshold, the playing progress of the video can be adjusted according to the first adjusting precision with lower precision to obtain the first video playing progress, so that the user can quickly find the approximate position of the video playing progress required to be positioned, if the first touch parameter of the touch input is greater than or equal to the first parameter threshold, the playing progress of the video can be adjusted in the first video playing progress section including the first video playing progress according to the second adjusting precision with higher precision, so that the user can quickly find the accurate position of the video playing progress required to be positioned, thereby realizing the accurate positioning of the playing progress of the video and reducing the time consumed by the positioning process, the efficiency of the positioning of the video playing progress is improved, and the accuracy of the positioned video playing progress is improved.

The video playing progress adjusting method provided by the embodiment of the invention can be applied to electronic equipment, such as a mobile phone, a tablet computer, a personal computer and the like.

In step S110 of the embodiment of the present invention, the electronic device may acquire a touch input of the user during the playing of the video, specifically, the touch input may be a touch operation performed by the user on the display screen, for example, a sliding operation.

Under the condition that the display interface has the first progress bar, the video playing progress segment corresponding to the first progress bar may be the playing duration of the video, and at this time, the sliding operation may be a sliding operation for the first progress bar of the video, or the sliding operation may also be a sliding operation for a playing picture of the video. The sliding direction of the sliding operation may be a left-right direction of the playing picture.

In step S120 of the embodiment of the present invention, in response to the touch input, the electronic device may adjust the playing progress of the video with the first adjustment precision, and determine the playing progress of the video corresponding to the touch input according to the first adjustment precision, the sliding direction and the sliding distance of the touch input.

In the embodiment of the present invention, the first adjustment precision may be an adjustment precision on the order of minutes or seconds, and may also be other adjustment precisions, which is not limited herein.

Optionally, the first adjustment precision may be an adjustment precision on the order of minutes, so that in a case where the playing time of the video is long, the user may quickly find the approximate position of the video playing progress that needs to be located.

In some embodiments of the present invention, in the case that the touch input is a sliding operation for the first progress bar, the specific method of step S120 may be:

acquiring a first touch position of touch input on the displayed first progress bar; the adjusting precision of the first progress bar is a first adjusting precision;

and taking the playing progress corresponding to the first touch position as a first video playing progress.

At this time, the first touch position is the position where the progress mark is positioned on the first progress bar, so that the playing progress corresponding to the first touch position can be determined as the first video playing progress of the touch input under the first adjustment precision, and the user can intuitively and conveniently adjust the playing progress of the video under the first adjustment precision.

Fig. 2 is a schematic diagram of a progress bar according to an embodiment of the present invention. As shown in fig. 2, the video playing progress segment of the first progress bar is 00:00:00-03:00: 00:00, the playing time of the video is 3 hours, and the first adjustment precision corresponding to the first progress bar is a minute level, that is, each time the user drags the progress mark to move a certain distance on the first progress bar through touch input, the playing progress of the video changes by 1 minute.

In the embodiment shown in fig. 2, the playing process corresponding to the first touch position corresponding to the touch input of the user is 01:30:00, and thus the playing process of the first video is 01:30: 00.

In other embodiments of the present invention, when the touch input is a sliding operation for a playing screen of a video, the specific method in step S120 may further include: the method comprises the steps of obtaining the sliding direction, the sliding distance and the initial video playing progress of touch input, then determining the relative direction and the relative horizontal distance of a first touch position corresponding to the touch input relative to the initial touch position according to the sliding direction and the sliding distance, multiplying the relative horizontal distance and a first adjusting precision to obtain an adjusting time length to be changed, and finally calculating the first video playing progress corresponding to the touch input based on the initial video playing progress, the relative direction and the adjusting time length.

In these embodiments, if the relative direction is that the first touch position is on the left side of the initial touch position, the initial video playing progress is used to subtract the adjustment duration to obtain the first video playing progress, and if the relative direction is that the first touch position is on the right side of the initial touch position, the initial video playing progress is used to add the adjustment duration to obtain the first video playing progress.

In the embodiment of the present invention, the first touch parameter in step S130 may include a touch pressure value of the touch input, may also include a touch duration of the touch input, and may also include the touch pressure value and the touch duration of the touch input at the same time.

Taking the first touch parameter as the touch pressure value of the touch input as an example, when the video playing progress is adjusted to the first video playing progress, if the touch pressure value of the user for the first video playing progress reaches the first preset pressure value, the video playing progress can be adjusted based on the second adjustment precision in the first video playing progress section including the first video playing progress on the basis of the first video playing progress.

Taking the first touch parameter as the touch duration of the touch input as an example, when the playing progress of the video is adjusted to the first video playing progress, if the touch duration of the user for the first video playing progress reaches a first preset duration, the playing progress of the video can be adjusted based on the second adjustment precision in the first video playing progress section including the first video playing progress on the basis of the first video playing progress.

Therefore, the user can trigger the electronic equipment to enter a playing progress adjusting stage based on the second adjusting precision by enabling the first touch parameter aiming at the first video playing progress to reach the first parameter threshold value, so that the user can simply and conveniently switch the adjusting precision of the playing progress, and the user can more accurately adjust the playing progress of the video by utilizing the higher second adjusting precision.

In the embodiment of the present invention, the second adjustment accuracy is higher than or equal to the first adjustment accuracy, where the second adjustment accuracy may be an adjustment accuracy on the order of minutes, seconds, milliseconds, or microseconds, or may be other adjustment accuracies as long as the second adjustment accuracy is not lower than the first adjustment accuracy.

Optionally, the second adjustment precision may be an adjustment precision at the level of seconds, so that the user can more accurately position the required video playing progress, thereby improving the accuracy of the positioned video playing progress.

In some embodiments of the present invention, in the case that the touch input is a sliding operation for the first progress bar, the specific method of step S130 may be:

displaying a second progress bar corresponding to the first video playing progress segment; the adjusting precision of the second progress bar is a second adjusting precision;

and adjusting the playing progress of the video according to a second touch position of the touch input on the second progress bar.

At this time, the second touch position is the position where the progress mark is located on the second progress bar, so that the playing progress corresponding to the second touch position can be determined as the second video playing progress of the touch input at the second adjustment precision, so that the user can intuitively and conveniently adjust the playing progress of the video at the second adjustment precision.

The specific manner of displaying the second progress bar corresponding to the first video playing progress segment may include:

and covering or replacing the first progress bar by using a second progress bar corresponding to the first video playing progress segment. Wherein the first progress bar is replaced with a second progress bar, i.e., only the second progress bar is displayed at a position originally displaying the first progress bar in the video, and the first progress bar is hidden. And covering the first progress bar by using the second progress bar, namely displaying the second progress bar on the original first progress bar in the video so as to shield the first progress bar. The two modes can enable the user to only see the second progress bar, reduce the space occupied by the progress bar and ensure the simplicity of the display interface.

Or, directly display the second progress bar corresponding to the first video playing progress segment at another position other than the first progress bar, for example, display the second progress bar above the first progress bar, and continue to display the first progress bar at the same time, at this time, the user may directly slide from the first progress bar onto the second progress bar to continue touch input, so that the user is more intuitive and convenient.

In some embodiments of the present invention, in the case that the touch input is a sliding operation for a playing screen of a video, the specific method in step S130 may be: the method comprises the steps of obtaining the sliding direction, the sliding distance and the first video playing progress of touch input relative to a first touch position, then determining the relative direction and the relative horizontal distance of a second touch position of the touch input relative to the first touch position according to the sliding direction and the sliding distance, multiplying the relative horizontal distance and a second adjusting precision to obtain an adjusting time length to be changed, and finally calculating to obtain a second video playing progress corresponding to the touch input based on the first video playing progress, the relative direction and the adjusting time length.

In these embodiments, if the relative direction is that the second touch position is on the left side of the first touch position, the adjustment duration is subtracted from the first video playing progress to obtain the second video playing progress, and if the relative direction is that the second touch position is on the right side of the first touch position, the adjustment duration is added to the first video playing progress to obtain the second video playing progress.

In some embodiments of the present invention, the first video playing progress segment may be the same as the playing time of the video, so that the user may perform more accurate adjustment of the playing progress of the video within a longer time range. In other embodiments of the present invention, the first video playing progress segment may also be the same as the predetermined time length that is less than the playing time length of the video, so that the user can more clearly understand the video playing progress corresponding to the touch input. In other embodiments of the present invention, the first video playing progress segment may further correspond to a progress control duration determined according to the touch input, so as to improve flexibility of adjusting the playing progress of the video.

In a case that the first video playing progress segment may also have the same length as the progress control time determined according to the touch input, the video playing progress adjustment method may further include:

acquiring a second touch parameter of the touch input aiming at the first video playing progress;

determining a first progress control duration corresponding to a second touch parameter according to a preset first mapping relation between the second touch parameter and the progress control duration;

and determining a first video playing progress section according to the first progress control time length and the first video playing progress.

The second touch parameter includes at least one of a touch pressure value, a touch duration and a touch area of the touch input.

Taking the second touch parameter as the touch pressure value of the touch input as an example, the first progress control duration corresponding to the touch pressure value can be found according to the first mapping relationship between the preset second touch parameter and the progress control duration. Then, the first video playing progress is taken as the middle point of the first progress control time length, so that the first video playing progress section is determined. Therefore, the progress control duration corresponding to the first video playing progress segment can be flexibly adjusted according to the user requirement, and the use experience of the user is improved.

Taking the second touch parameter as the touch area of the touch input as an example, the first progress control duration corresponding to the touch area can be found according to the first mapping relationship between the preset second touch parameter and the progress control duration. Then, the first video playing progress is taken as the middle point of the first progress control time length, so that the first video playing progress section is determined. Because the fingers of different users are different in size, the first progress control duration is determined based on the touch area, customized services can be performed for different users, the convenience of the users is improved, and the use experience of the users is improved.

Fig. 3 is a schematic diagram of a progress bar according to another embodiment of the present invention. As shown in fig. 3, the video playing progress segment of the first progress bar is 00:00:00-03:00: 00:00, the playing time of the video is 3 hours, and the first adjustment precision corresponding to the first progress bar is a minute level, that is, each time the user drags the progress mark to move a certain distance on the first progress bar through touch input, the playing progress of the video changes by 1 minute. The first video playing progress section of the second progress bar is 01:25:00-01:35:00, and the second adjusting precision corresponding to the second progress bar is at the level of seconds, namely, each time the user drags the progress mark to move for a certain distance on the second progress bar through touch input, the playing progress of the video changes for 1 second.

In the embodiment shown in fig. 3, the playing process corresponding to the second touch position corresponding to the touch input of the user is 01:31:05, and thus the playing process of the first video is 01:31: 05.

In some embodiments of the present invention, in a case that the display interface simultaneously displays the first progress bar and the second progress bar, if the user does not find the video playing progress to be located in the video playing progress corresponding to the second progress bar, after adjusting the video playing progress based on the second adjustment accuracy, the method further includes:

if the touch position of the touch input slides from the second progress bar to the first progress bar, hiding the second progress bar;

and adjusting the playing progress of the video according to the third touch position of the touch input on the first progress bar.

From this, the user can make display interface stop showing the second progress bar through sliding touch input back to first progress bar by the second progress bar to, according to the third touch-control position of touch input on first progress bar, adjust the video broadcast progress with first regulation precision, thereby can improve and need not adjust the flexibility of switching between the precision.

Fig. 4 is a flowchart illustrating a video playing progress adjustment method according to another embodiment of the present invention. As shown in fig. 4, the video playing progress adjusting method includes:

s140, acquiring a second video playing progress under a second adjusting precision;

s150, under the condition that a first touch parameter aiming at a second video playing progress of touch input reaches a second parameter threshold value, in a second video playing progress section comprising the second video playing progress, the playing progress of the video is adjusted based on third adjusting precision; the second video playing progress segment is part or all of the first video playing progress segment, the second parameter threshold is greater than or equal to the first parameter threshold, and the second adjustment precision is lower than or equal to the third adjustment precision.

In step S140 of the embodiment of the present invention, in response to the touch input, the electronic device may adjust the video playing progress based on the first video playing progress with the second adjustment precision, and determine the second video playing progress corresponding to the touch input according to the second adjustment precision, the sliding direction and the sliding distance of the touch input, so as to further accurately determine the video playing progress. Specifically, the method for obtaining the second video playing progress at the second adjustment precision is similar to the method for obtaining the first video playing progress at the first adjustment precision, and is not repeated here.

The first touch parameter in step S150 of the embodiment of the present invention may also include a touch pressure value and/or a touch duration of the touch input.

Taking the first touch parameter as the touch pressure value of the touch input as an example, when the video playing progress is adjusted to the second video playing progress, if the touch pressure value of the user for the second video playing progress reaches the second preset pressure value, the video playing progress can be adjusted based on the third adjustment precision in the second video playing progress section including the second video playing progress on the basis of the second video playing progress.

Taking the first touch parameter as the touch duration of the touch input as an example, when the playing progress of the video is adjusted to the second video playing progress, if the touch duration of the user for the second video playing progress reaches the second preset duration, the playing progress of the video can be adjusted based on the third adjustment precision in the second video playing progress section including the second video playing progress on the basis of the second video playing progress.

In the embodiment of the present invention, if the electronic device is set to adjust the playing progress of the video based on the second adjustment precision by using the touch input smaller than the first parameter threshold after the touch input reaches the first parameter threshold with respect to the first touch parameter of the first video playing progress, the second parameter threshold may be greater than or equal to the first parameter threshold. If the electronic device is set to adjust the video playing progress by using the touch input not less than the first parameter threshold based on the second adjustment precision after the first touch parameter of the first video playing progress by the touch input reaches the first parameter threshold, the second parameter threshold needs to be greater than the first parameter threshold.

In the embodiment of the present invention, the third adjustment accuracy is higher than or equal to the second adjustment accuracy, where the third adjustment accuracy may be an adjustment accuracy of a minute level, a second level, a millisecond level, or a microsecond level, or may be other adjustment accuracies as long as the third adjustment accuracy is not lower than the second adjustment accuracy.

In the embodiment of the present invention, the method for adjusting the video playing progress based on the third adjustment precision is similar to the method for adjusting the video playing progress based on the second adjustment precision, and details are not repeated here. Moreover, in the case of displaying the third progress bar, the determination method of the second video playing progress segment corresponding to the third progress bar is similar to the determination method of the first video playing progress segment, and details are not repeated here.

In the embodiment of the present invention, in the process of adjusting the playing progress of the video based on the first adjustment precision, the second adjustment precision, or the third adjustment precision when the electronic device responds to the touch input, the method further includes:

acquiring a target video playing progress corresponding to touch input when the touch input is terminated;

and taking the target video playing progress as the positioned video playing progress.

At this time, when the touch input is terminated, for example, when the user lifts his hand, if the playing progress of the video is adjusted by using the first progress bar, the second progress bar or the third progress bar, all progress bars except the first progress bar are hidden, and the target video playing progress when the user lifts his hand is taken as the positioned video playing progress, so that the positioning of the playing position of the video is completed.

In some embodiments of the present invention, in the process of adjusting the playing progress of the video, the method for adjusting the playing progress of the video further includes:

and displaying a preview picture of the video playing progress corresponding to the touch input. Specifically, a form of a floating window may be adopted, and a preview of the video playing progress corresponding to the touch input is displayed at a position corresponding to the progress mark, or the video playing picture may be directly replaced by the preview of the video playing progress corresponding to the touch input.

Therefore, a user can know whether the video playing progress corresponding to the touch input is the video playing progress to be positioned more intuitively, and the intuitiveness and the convenience for positioning the video playing progress are improved.

Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic apparatus includes:

an input obtaining module 210, configured to obtain a touch input for adjusting a playing progress of a video;

the progress obtaining module 220 is configured to obtain a first video playing progress at a first adjustment precision in response to the touch input;

the progress adjusting module 230 is configured to, when a first touch parameter of the touch input for the first video playing progress reaches a first parameter threshold, adjust the playing progress of the video based on the second adjusting precision in a first video playing progress segment including the first video playing progress;

wherein the first adjustment accuracy is lower than or equal to the second adjustment accuracy.

In the embodiment of the invention, in the playing process of the video, after the touch input by the user is received, if the first touch parameter of the touch input is smaller than the first parameter threshold, the playing progress of the video can be adjusted according to the first adjusting precision with lower precision to obtain the first video playing progress, so that the user can quickly find the approximate position of the video playing progress required to be positioned, if the first touch parameter of the touch input is greater than or equal to the first parameter threshold, the playing progress of the video can be adjusted in the first video playing progress section including the first video playing progress according to the second adjusting precision with higher precision, so that the user can quickly find the accurate position of the video playing progress required to be positioned, thereby realizing the accurate positioning of the playing progress of the video and reducing the time consumed by the positioning process, the efficiency of the positioning of the video playing progress is improved, and the accuracy of the positioned video playing progress is improved.

In this embodiment of the present invention, the progress obtaining module 220 is further configured to: and acquiring a second video playing progress under a second adjusting precision. At this time, the progress adjustment module 230 is further configured to: and under the condition that the first touch parameter of the touch input aiming at the second video playing progress reaches a second parameter threshold value, in a second video playing progress section comprising the second video playing progress, the playing progress of the video is adjusted based on the third adjusting precision. The second video playing progress segment is part or all of the first video playing progress segment, the second parameter threshold is greater than or equal to the first parameter threshold, and the second adjustment precision is lower than or equal to the third adjustment precision.

Therefore, in the embodiment of the invention, the video playing progress can be further accurately positioned by using the third adjusting precision, so that the video playing progress can be quickly and accurately positioned, and the use experience of a user is improved.

In an embodiment of the present invention, the first touch parameter includes a touch pressure value and/or a touch duration of the touch input.

In some embodiments of the present invention, the progress acquisition module 220 is further configured to: acquiring a first touch position of touch input on the displayed first progress bar; the adjusting precision of the first progress bar is a first adjusting precision; and taking the playing progress corresponding to the first touch position as a first video playing progress. At this time, the progress adjustment module 230 is further configured to: displaying a second progress bar corresponding to the first video playing progress segment; the adjusting precision of the second progress bar is a second adjusting precision; and adjusting the playing progress of the video according to a second touch position of the touch input on the second progress bar.

Therefore, the user can intuitively and conveniently change the position of the progress mark on the first progress bar corresponding to the first adjusting precision and the second progress bar corresponding to the second adjusting precision, and the playing progress of the video is rapidly adjusted.

In some embodiments of the present invention, the progress adjustment module 230 is further configured to: after the playing progress of the video is adjusted based on the second adjustment precision, if the touch position of the touch input slides from the second progress bar to the first progress bar, the second progress bar is hidden; and adjusting the playing progress of the video according to the third touch position of the touch input on the first progress bar.

From this, the user can make display interface stop showing the second progress bar through sliding touch input back to first progress bar by the second progress bar to, according to the third touch-control position of touch input on first progress bar, adjust the video broadcast progress with first regulation precision, thereby can improve and need not adjust the flexibility of switching between the precision.

In some embodiments of the present invention, the progress adjustment module 230 may overlay or replace the first progress bar with the second progress bar corresponding to the first video playing progress segment. In other embodiments of the present invention, the progress adjustment module 230 may also directly display a second progress bar corresponding to the first video playing progress section at a position other than the first progress bar.

In some embodiments of the present invention, the electronic device may further include:

the parameter acquisition module is used for acquiring a second touch parameter of the touch input aiming at the first video playing progress;

the time length determining module is used for determining a first progress control time length corresponding to a second touch parameter according to a first mapping relation between the preset second touch parameter and the progress control time length;

and the progress section determining module is used for determining the first video playing progress section according to the first progress control time length and the first video playing progress.

The second touch parameter includes at least one of a touch pressure value, a touch duration and a touch area of the touch input.

Therefore, the user can flexibly adjust the first progress control duration of the first video playing progress section corresponding to the second progress bar by changing the second touch parameter of the touch input, and the flexibility of adjusting the video playing progress is improved.

In some embodiments of the present invention, the electronic device may further include:

the positioning determination module is used for acquiring a target video playing progress corresponding to touch input when the touch input is terminated;

and the progress positioning module is used for taking the target video playing progress as the positioned video playing progress.

In some embodiments of the present invention, the electronic device may further include:

and the preview display module is used for displaying a preview picture of the video playing progress corresponding to the touch input.

Therefore, a user can know whether the video playing progress corresponding to the touch input is the video playing progress to be positioned more intuitively, and the intuitiveness and the convenience for positioning the video playing progress are improved.

The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.

Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 6, the electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

Wherein, the processor 310 is configured to: acquiring touch input for adjusting the playing progress of the video; responding to touch input, and acquiring a first video playing progress under a first adjusting precision; under the condition that a first touch parameter aiming at the first video playing progress of the touch input reaches a first parameter threshold value, the playing progress of the video is adjusted in a first video playing progress section comprising the first video playing progress based on second adjusting precision; wherein the first adjustment accuracy is lower than the second adjustment accuracy.

In the embodiment of the invention, in the playing process of the video, after the touch input by the user is received, if the first touch parameter of the touch input is smaller than the first parameter threshold, the playing progress of the video can be adjusted according to the first adjusting precision with lower precision to obtain the first video playing progress, so that the user can quickly find the approximate position of the video playing progress required to be positioned, if the first touch parameter of the touch input is greater than or equal to the first parameter threshold, the playing progress of the video can be adjusted in the first video playing progress section including the first video playing progress according to the second adjusting precision with higher precision, so that the user can quickly find the accurate position of the video playing progress required to be positioned, thereby realizing the accurate positioning of the playing progress of the video and reducing the time consumed by the positioning process, the efficiency of the positioning of the video playing progress is improved, and the accuracy of the positioned video playing progress is improved.

It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 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 301 can also communicate with a network and other devices through a wireless communication system.

The electronic device provides wireless broadband internet access to the user via the network module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.

The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.

The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (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 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds 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 301 in case of the phone call mode.

The electronic device 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or the backlight when the electronic device 300 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 305 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 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 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 307 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 device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 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 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.

Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 6 to implement the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.

The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. 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 308 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 300 or may be used to transmit data between the electronic apparatus 300 and the external device.

The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage 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 309 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 310 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.

The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 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 300 includes some functional modules that are not shown, and are not described in detail herein.

Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program is executed by the processor 310 to implement each process of the video playing progress adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

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 video playing progress adjustment method embodiment, 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 invention 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 a terminal (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 invention.

While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:映射虚拟环境的装置和方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类