A kind of method and apparatus of regulating playing progress rate
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus of regulating playing progress rate.
Background technology
Along with the development of mobile communication technology, portable terminals such as mobile phone, panel computer are more and more universal in daily life.Increasing people brings into use portable terminal to carry out the broadcast of video, music, e-book etc.
In portable terminal, be used for the application program of media files such as displaying video, music, e-book, generally all be provided with playing progress bar, the function that provides playing progress rate to regulate is provided.The user can click the progress button on the playing progress bar, and the progress button is dragged to corresponding position, to realize the adjusting of playing progress rate by the touching operation to screen.
In realizing process of the present invention, the inventor finds that there is following problem at least in above-mentioned technology:
Because the screen display space of portable terminal is limited, the progress button is generally all smaller, is not easy a little to arrive, and has arrived other position of playing progress bar as fruit dot, then the playing progress rate mistake can be adjusted to this position, and the accuracy of playing progress rate adjusting is lower.
Summary of the invention
In order to solve the problem of above-mentioned technology, the embodiment of the invention provides a kind of method and apparatus of regulating playing progress rate, to improve the accuracy that playing progress rate is regulated.Described technical scheme is as follows:
On the one hand, provide a kind of method of regulating playing progress rate, described method comprises:
Receive at least two touching signals that produce on the screen;
Detect the situation of change of relative position information of the generation point of described at least two touching signals;
According to the situation of change of described relative position information, the playing progress rate of destination application is regulated.
On the other hand, provide a kind of device of regulating playing progress rate, described device comprises:
Receiver module is used for receiving at least two touching signals that produce on the screen;
Detection module is for detection of the situation of change of relative position information of the generation point of described at least two touching signals;
Adjustment module is used for the situation of change according to described relative position information, and the playing progress rate of destination application is regulated.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
In the embodiment of the invention, receive at least two touching signals that produce on the screen, the situation of change of relative position information according to the generation point of these at least two touching signals, playing progress rate to destination application is regulated, like this, and when carrying out the playing progress rate adjusting, do not require and touch certain certain location, so the situation of mistuning joint can not appear, thereby, can improve the accuracy that playing progress rate is regulated.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of the adjusting playing progress rate that provides of the embodiment of the invention;
Fig. 2 is the demonstration synoptic diagram of the playing progress bar that provides of the embodiment of the invention;
Fig. 3 is the apparatus structure synoptic diagram of the adjusting playing progress rate that provides of the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment one
The embodiment of the invention provides a kind of method of regulating playing progress rate, and as shown in Figure 1, the treatment scheme of this method can comprise the steps:
Step 101 receives at least two touching signals that produce on the screen.
Step 102 detects the situation of change of relative position information of the generation point of these at least two touching signals.
Step 103 according to the situation of change of relative position information, is regulated the playing progress rate of destination application.
In the embodiment of the invention, receive at least two touching signals that produce on the screen, the situation of change of relative position information according to the generation point of these at least two touching signals, playing progress rate to destination application is regulated, like this, and when carrying out the playing progress rate adjusting, do not require and touch certain certain location, so the situation of mistuning joint can not appear, thereby, can improve the accuracy that playing progress rate is regulated.
Embodiment two
The embodiment of the invention provides a kind of method of regulating playing progress rate, and the executive agent of this method can be the terminal with touch-screen, is preferably portable terminals such as mobile phone, panel computer.
Below in conjunction with implementation process, treatment scheme shown in Figure 1 is described in detail, content can be as follows.
Step 101 receives at least two touching signals that produce on the screen.
Terminal is equipped with touch-screen, and the bottom of screen can be provided with sensor in the touch-screen, and sensor can detect the touching to the screen upper surface, and produces the processor that the touching signal sends to terminal.Can be evenly distributed with a large amount of induction points on the touch-screen, each touching signal is made up of the induced signal of the adjacent induction point that can connect into an overall region.When terminal receives at least two touching signals simultaneously, can carry out following flow process.
Step 102 detects the situation of change of relative position information of the generation point of these at least two touching signals.
Preferably, described in step 101 and the step 102 at least two touching signals can be two touching signals, are that example describes with the situations that receive two touching signals in the embodiment of the invention.
Terminal can be obtained the positional information of the generation point of two touching signals, can determine two relative position informations of touching the generation point of signals according to two positional informations of touching the generation point of signals.Wherein, the generation point of touching signal can be to produce the geometric center of gravity of all induction points of this touching signal or the minimum circumscribed circle center of circle etc.Relative position information also can be the various information of relative position that can describe the generation point of these two touching signals.Preferably, relative position information can be the angle between line and the datum line of presetting of generation point of two touching signals, and perhaps, relative position information also can be two distances between the generation point of touching signals.
The description of above-mentioned positional information, relative position information can be set up coordinate system at the screen of terminal for convenience, and (short side direction of screen) sets up the x axle in the horizontal direction, and in the vertical direction is set up (long side direction of screen) y axle.Like this, above-mentioned positional information can represent that above-mentioned datum line can be got arbitrary line by the mode of coordinate, preferably can get the x axle and do datum line, and relative position information can calculate according to two positional informations that produce point.
When if relative position information is the line of generation point of two touching signals and the angle between the datum line preset, so, the situation of change of corresponding relative position information can comprise the anglec of rotation and the sense of rotation of line of the generation point of two touching signals, and sense of rotation can be clockwise direction or counter clockwise direction.If relative position information be two the touching signals generation point between distance, so, the situation of change of corresponding relative position information can comprise variable in distance amount and the variable in distance trend between the generation point of two touching signals, and variable in distance trend can be to increase or minimizing.When detecting the situation of change of relative position information, numerical value and the numerical value before the variation after relative position information can being changed compare calculating to obtain.
When the detection in carrying out this step is handled, preferably, in the time of can the positional information of generation point of at least one touching signal changes (namely being subjected to displacement) in two touching signals, detect the situation of change of the relative position information of two generation points of touching signals.In addition, also can be according to preset period, detect the situation of change of relative position information of the generation point of two touching signals.
For the situation that receives touching signal more than two, this relative position information of touching the generation point of signal more than two can be the various information that can describe the relative position of this generation point of touching signal more than two.Relative position information can have multiple choices, for example, relative position information can be the angle of respectively touching between polygonal any limit that the generation point of signal connects to form and the default datum line, accordingly, the situation of change of relative position information can be the anglec of rotation and the sense of rotation on this limit, again for example, relative position information can be respectively to touch the polygonal girth that the generation point of signal connects to form, accordingly, the situation of change of relative position information can be perimeter change amount and perimeter change trend.
Step 103 according to the situation of change of relative position information, is regulated the playing progress rate of destination application.
Comprise the anglec of rotation of line of generation point of two touching signals and the situation of sense of rotation for the situation of change of relative position information, the implementation of step 103 can be: the ratio that accounts in circumference angle (360 degree) according to the detected anglec of rotation, determine progress adjusting ratio, and according to default sense of rotation and the corresponding relation of regulating direction, determine the adjusting direction of detected sense of rotation correspondence; Regulate ratio and regulate direction according to the progress of determining, playing progress rate is regulated.
Wherein, the progress ratio of regulating can be the progress of regulating shared ratio in the total length of the in progress target medium of destination application.Regulate direction and can be and advance or retreat.
Preferably, can determine that progress adjusting ratio equals the ratio that the anglec of rotation accounts in the circumference angle.In addition, can determine that also progress adjusting ratio equals ratio that the anglec of rotation accounts for and the product of certain default coefficient in the circumference angle.Preferably, default sense of rotation and the corresponding relation of regulating direction, can be: the clockwise direction correspondence be advanced, and counterclockwise correspondence retreats.This corresponding relation can pre-set and be stored in terminal.Certainly, this default corresponding relation also can be that the clockwise direction correspondence retreats, and counterclockwise correspondence is advanced.
Comprise variable in distance amount between the generation point of two touching signals and the situation of variable in distance trend for the situation of change of relative position information, the implementation of step 103 can be: regulate the corresponding relation of ratio according to default variable in distance amount and progress, determine the progress adjusting ratio of detected variable in distance amount correspondence, and according to default variable in distance trend and the corresponding relation of regulating direction, determine the adjusting direction of detected variable in distance trend correspondence; Regulate ratio and regulate direction according to the progress of determining, described playing progress rate is regulated.
Wherein, the progress ratio of regulating can be the progress of regulating shared ratio in the total length of the in progress target medium of destination application.Regulate direction and can be and advance or retreat.Default variable in distance amount can be the corresponding certain adjusting ratio (as 1%) of each unit length (as 1 millimeter) with the corresponding relation that progress is regulated ratio.Corresponding relation, variable in distance trend that variable in distance amount and progress are regulated ratio can pre-set and be stored in terminal with the corresponding relation of regulating direction.
Preferably, default variable in distance trend and the corresponding relation of regulating direction can be: increase correspondence and advance, reduce correspondence and retreat.Certainly, this default corresponding relation also can be to increase correspondence to retreat, and reduces correspondence and advances.
In the embodiment of the invention, in order to prevent from when not regulating the demand of playing progress rate, taking place the operation of mistuning joint, can certain trigger condition be set to the processing of step 103, provide two kinds of preferred trigger conditions below.
Trigger condition one, the anglec of rotation surpasses default angle threshold, and corresponding, the processing procedure of step 103 can be: after the anglec of rotation surpasses default angle threshold, according to the situation of change of relative position information, the playing progress rate of destination application is regulated.
Like this, the user is when operation, can be earlier with two finger touches screens, rotate finger then, when the anglec of rotation of the line of the generation point of two touching signals reaches angle threshold, then trigger the process of regulating, terminal begins the situation of change according to relative position information, and the playing progress rate of destination application is regulated.
Trigger condition two, the lasting duration of two touching signals surpasses default duration threshold value, accordingly, the processing procedure of step 103 can be: after the lasting duration of two touching signals surpasses default duration threshold value, according to the situation of change of relative position information, the playing progress rate of destination application is regulated.
Like this, the user is when operation, can be earlier with two finger touches screens, keep the touching state with screen then, terminal can detect the lasting duration of two touching signals after receiving two touching signals, when detecting lasting duration above the duration threshold value, then trigger the process of regulating, terminal begins the situation of change according to relative position information, and the playing progress rate of destination application is regulated.
In addition, preferably, also two above-mentioned trigger conditions can be used in combination, be that trigger condition is that the anglec of rotation surpasses the lasting duration of default angle threshold or two touching signals above default duration threshold value, accordingly, the processing procedure of step 103 can be: after the lasting durations that the anglec of rotation surpasses default angle threshold or two touching signals surpass default duration threshold value, according to the situation of change of relative position information, the playing progress rate of destination application is regulated.Like this, two trigger conditions are as long as satisfy the process that both can trigger adjusting.
A variety of optional trigger conditions can also be arranged in addition, do not exemplify one by one in the embodiment of the invention.
In the embodiment of the invention, after two touching signals that the reception screen produces, can also comprise following processing: the playing progress rate corresponding playing progress bar of display-object application program on screen, this playing progress bar is annular, and the center of circle of annular is the mid point of the generation point line of two touching signals.The demonstration synoptic diagram of playing progress bar can be as shown in Figure 2.The whole circumference length of this annulus can the in progress target medium of corresponding destination application total length.
Preferably, this playing progress bar can show when above-mentioned trigger condition triggers.The interior circle of annulus and the diameter of cylindrical can be default value, also can be definite according to the distance between the generation point of two touching signals, for example can arrange outside diameter greater than this distance and interior circular diameter less than this distance.
The display position of progress starting point can arrange arbitrarily, for example, the progress starting point can be arranged on the tip position of annulus.In addition, preferred, can be preferentially the display position of current progress point (current progress point can progress displaying button) be arranged, and then calculate the display position of progress starting point according to the humidometer of current broadcast.When the display position of current progress point is set, can two in the touching signal generation point of any touching signal be set to current progress point display position (outside diameter greater than two produce between the point apart from and interior circular diameter less than the situation of this distance).
In the embodiment of the invention, on screen after the playing progress rate corresponding playing progress bar of display-object application program, can also comprise following processing: behind a touching blackout in two touching signals, detect the anglec of rotation and the sense of rotation of the line in another generation point of touching signal and the center of circle; According to the anglec of rotation and the sense of rotation of the line in another touching generation point of signal and the center of circle, playing progress rate is regulated.Wherein, sense of rotation can be clockwise direction or counter clockwise direction.
In force, the ratio that can account in circumference angle (360 degree) according to the detected anglec of rotation is determined that progress regulates ratio, and according to default sense of rotation and the corresponding relation of regulating direction, is determined the adjusting direction of detected sense of rotation correspondence; Regulate ratio and regulate direction according to the progress of determining, playing progress rate is regulated.Relevant treatment can be not repeated at this with reference to the detailed description at step 103 place.
A touching blackout can be that user's a finger has left screen.At this moment, preferred, can be rotated processing to playing progress bar according to the generation point of the touching signal that does not have to disappear, make the display position of current progress point corresponding with this generation point.Specifically can be to the line (or extended line) of the center of circle and this generation point and the intersection point of playing progress bar with the rotation of the display position of current progress point.
In the embodiment of the invention, receive at least two touching signals that produce on the screen, the situation of change of relative position information according to the generation point of these at least two touching signals, playing progress rate to destination application is regulated, like this, and when carrying out the playing progress rate adjusting, do not require and touch certain certain location, so the situation of mistuning joint can not appear, thereby, can improve the accuracy that playing progress rate is regulated.
Embodiment three
Based on identical technical conceive, the embodiment of the invention also provides a kind of device of regulating playing progress rate, and as shown in Figure 3, described device comprises:
Receiver module 310 is used for receiving at least two touching signals that produce on the screen;
Detection module 320 is for detection of the situation of change of relative position information of the generation point of described at least two touching signals;
Adjustment module 330 is used for the situation of change according to described relative position information, and the playing progress rate of destination application is regulated.
Preferably, described at least two touching signals are two touching signals;
The situation of change of described relative position information comprises: the anglec of rotation and the sense of rotation of the line of the generation point of described two touching signals.
Preferably, described adjustment module 330 is used for:
According to the ratio that the described anglec of rotation accounts in the circumference angle, determine progress adjusting ratio, and according to default sense of rotation and the corresponding relation of regulating direction, determine the adjusting direction of detected sense of rotation correspondence;
Regulate ratio and regulate direction according to the progress of determining, described playing progress rate is regulated.
Preferably, described adjustment module 330 is used for:
After the described anglec of rotation surpasses default angle threshold, according to the situation of change of described relative position information, the playing progress rate of destination application is regulated.
Preferably, described adjustment module 330 is used for:
After the lasting duration of described two touching signals surpasses default duration threshold value, according to the situation of change of described relative position information, the playing progress rate of destination application is regulated.
Preferably, also comprise display module, be used for:
After two touching signals that described reception screen produces, the playing progress rate corresponding playing progress bar that shows described destination application at described screen, described playing progress bar is annular, and the center of circle of described annular is the mid point of the generation point line of described two touching signals.
Preferably, described detection module 320 also is used for: behind a touching blackout of described two touching signals, detect the anglec of rotation and the sense of rotation of generation point with the line in the described center of circle of another touching signal;
Described adjustment module 330 also is used for: touch the anglec of rotation and the sense of rotation of generation point with the line in the described center of circle of signal according to described another, described playing progress rate is regulated.
Preferably, described at least two touching signals are two touching signals;
The situation of change of described relative position information comprises: variable in distance amount and variable in distance trend between the generation point of described two touching signals, wherein, described variable in distance trend comprises to be increased or reduces.
Preferably, described adjustment module 330 is used for:
Regulate the corresponding relation of ratio according to default variable in distance amount and progress, determine the progress adjusting ratio of detected variable in distance amount correspondence, and according to default variable in distance trend and the corresponding relation of regulating direction, determine the adjusting direction of detected variable in distance trend correspondence;
Regulate ratio and regulate direction according to the progress of determining, described playing progress rate is regulated.
In the embodiment of the invention, receive at least two touching signals that produce on the screen, the situation of change of relative position information according to the generation point of these at least two touching signals, playing progress rate to destination application is regulated, like this, and when carrying out the playing progress rate adjusting, do not require and touch certain certain location, so the situation of mistuning joint can not appear, thereby, can improve the accuracy that playing progress rate is regulated.
Need to prove: the device of the adjusting playing progress rate that above-described embodiment provides is when regulating playing progress rate, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure that is about to device is divided into different functional modules, to finish all or part of function described above.In addition, the device of the adjusting playing progress rate that above-described embodiment provides belongs to same design with the method embodiment that regulates playing progress rate, and its specific implementation process sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.