A kind of method and apparatus regulating playing progress rate
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus regulating playing progress rate.
Background technology
Along with the development of mobile communication technology, the mobile terminal such as mobile phone, panel computer is more and more universal in daily life.Increasing people brings into use mobile terminal to carry out the broadcasting of video, music, e-book etc.
In the terminal, for playing the application program of the media files such as video, music, e-book, playing progress bar is generally all provided with, the function regulated for providing playing progress rate.User by operating the touching of screen, can click the progress button in playing progress bar, and progress button being dragged to corresponding position, to realize the adjustment of playing progress rate.
Realizing in process of the present invention, inventor finds that above-mentioned technology at least exists following problem:
Due to the screen display limited space of mobile terminal, progress button is general all smaller, is not easy a little to arrive, as fruit dot has arrived other position of playing progress bar, then playing progress rate can be adjusted to this position by mistake, and the accuracy that playing progress rate regulates is lower.
Summary of the invention
In order to solve the problem of above-mentioned technology, embodiments provide a kind of method and apparatus regulating playing progress rate, to improve the accuracy that playing progress rate regulates.Described technical scheme is as follows:
On the one hand, provide a kind of method regulating playing progress rate, described method comprises:
Receive two touching signals that screen produces;
Detect the situation of change of the relative position information of the generation point of two touching signals, the situation of change of relative position information, comprising: the anglec of rotation of the line of the generation point of two touching signals and sense of rotation;
According to the situation of change of relative position information, the playing progress rate of destination application is regulated;
When after touching blackouts in two touching signals, detect the anglec of rotation and sense of rotation that another touching generation point of signal and two touch the line of the mid point of the generation point line of signal;
The anglec of rotation and the sense of rotation of the line of the mid point of the generation point line of signal is touched according to another touching generation point of signal and two, determine that progress regulates ratio and regulates direction, according to the adjustment ratio determined and adjustment direction, playing progress rate is regulated.
On the other hand, provide a kind of device regulating playing progress rate, described device comprises:
Receiver module, for receiving two touching signals that screen produces;
Detection module, for detecting the situation of change of the relative position information of the generation point of two touching signals, the situation of change of relative position information, comprising: the anglec of rotation of the line of the generation point of two touching signals and sense of rotation;
Adjustment module, for the situation of change according to relative position information, regulates the playing progress rate of destination application;
Detection module, also for: when after touching blackouts in two touching signals, detect the anglec of rotation and sense of rotation that another touching generation point of signal and two touch the line of the mid point of the generation point line of signal;
Adjustment module, also for the anglec of rotation and the sense of rotation of touching the line of the mid point of the generation point line of signal according to another touching generation point of signal and two, determine that progress regulates ratio and regulates direction, according to the adjustment ratio determined and adjustment direction, playing progress rate is regulated.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, receive two touching signals that screen produces, according to the situation of change of the relative position information of the generation point of these two touching signals, the playing progress rate of destination application is regulated, like this, when carrying out playing progress rate and regulating, do not require to touch certain specific position, so the situation that there will not be mistuning to save, thus, the accuracy that playing progress rate regulates can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the adjustment playing progress rate that the embodiment of the present invention provides;
Fig. 2 is the display schematic diagram of the playing progress bar that the embodiment of the present invention provides;
Fig. 3 is the apparatus structure schematic diagram of the adjustment playing progress rate that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method regulating playing progress rate, as shown in Figure 1, the treatment scheme of the method can comprise the following steps:
Step 101, receives at least two touching signals that screen produces.
Step 102, detects the situation of change of the 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, regulates the playing progress rate of destination application.
In the embodiment of the present invention, receive at least two touching signals that screen produces, according to the situation of change of the relative position information of the generation point of these at least two touching signals, the playing progress rate of destination application is regulated, like this, when carrying out playing progress rate and regulating, do not require to touch certain specific position, so the situation that there will not be mistuning to save, thus, the accuracy that playing progress rate regulates can be improved.
Embodiment two
Embodiments provide a kind of method regulating playing progress rate, the executive agent of the method can be the terminal with touch-screen, is preferably the mobile terminal such as mobile phone, panel computer.
Below in conjunction with implementation process, be described in detail the treatment scheme shown in Fig. 1, content can be as follows.
Step 101, receives at least two touching signals that screen produces.
Terminal is provided with touch-screen, and in touch-screen, the bottom of screen can be provided with sensor, and sensor can detect the touching to screen upper surface, and produces the processor that touching signal sends to terminal.Touch-screen can be evenly distributed with a large amount of induction points, and 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, flow process below can be carried out.
Step 102, detects the situation of change of the relative position information of the generation point of these at least two touching signals.
Preferably, step 101 and the touching signal of at least two described in step 102 can be two touching signals, are described in the embodiment of the present invention for the situation receiving two touching signals.
Terminal can obtain the positional information of the generation point of two touching signals, can determine the relative position information of the generation point of two touching signals according to the positional information of the generation point of two touching signals.Wherein, the geometric center of gravity that the generation point of signal can be all induction points producing this touching signal or the minimum circumscribed circle center of circle etc. are touched.Relative position information also can be the various information that can describe the relative position of the generation point of these two touching signals.Preferably, relative position information can be the angle between the line of the generation point of two touching signals and default datum line, or relative position information also can be the distance between the generation point of two touching signals.
The conveniently description of above-mentioned positional information, relative position information, coordinate system can be set up on the screen of terminal, (short side direction of screen) can set up x-axis in the horizontal direction, in the vertical direction sets up (long side direction of screen) y-axis.Like this, above-mentioned positional information can be represented by the mode of coordinate, and above-mentioned datum line can get arbitrary line, preferably can get x-axis and do datum line, and the positional information that relative position information can produce point according to two calculates.
If when relative position information is the angle between the line of the generation point of two touching signals and default datum line, so, the situation of change of corresponding relative position information can comprise the anglec of rotation and the sense of rotation of the 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 is the distance between the generation point of two touching signals, so, the situation of change of corresponding relative position information can comprise distance variable quantity between the generation point of two touching signals and distance variation tendency, and distance variation tendency can be increase or reduce.When detecting the situation of change of relative position information, the numerical value after relative position information can being changed and the numerical value before change compare and calculate to obtain.
When performing the check processing in this step, preferably, can in two touching signals the positional information of generation point of at least one touching signal change (being namely subjected to displacement) time, detects the situation of change that two are touched the relative position information of the generation point of signals.In addition, also according to the cycle of presetting, the situation of change of the relative position information of the generation point of two touching signals can be detected.
For the situation receiving two or more touching signal, the relative position information of the generation point of this two or more touching signal can be the various information that can describe the relative position of the generation point of this two or more touching signal.Relative position information can have multiple choices, such as, relative position information can be polygonal any angle between limit and default datum line that the generation point of each touching signal connects to form, accordingly, the situation of change of relative position information can be the anglec of rotation and the sense of rotation on this limit, again such as, relative position information can be the polygonal girth that the generation point of each touching 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, regulates the playing progress rate of destination application.
Situation of change for relative position information comprises the anglec of rotation of line and the situation of sense of rotation of the generation point of two touching signals, the implementation of step 103 can be: the ratio accounted in circumferential angle (360 degree) according to the anglec of rotation detected, determine that progress regulates ratio, and according to the sense of rotation preset with regulate the corresponding relation in direction, determine the adjustment direction that the sense of rotation that detects is corresponding; Regulate ratio according to the progress determined and regulate direction, playing progress rate is regulated.
Wherein, progress regulates ratio can be ratio shared in the total length of the target medium that the progress regulated is being play at destination application.Regulate direction can be advance or retreat.
Preferably, can determine that progress regulates ratio to equal the ratio that the anglec of rotation accounts in circumferential angle.In addition, the ratio also can determined progress to regulate ratio to equal the anglec of rotation accounts in circumferential angle and the product of certain predetermined coefficient.Preferably, the corresponding relation in the sense of rotation preset and adjustment direction, Ke Yishi: clockwise direction correspondence is advanced, counterclockwise correspondence retrogressing.This corresponding relation can pre-set and be stored in terminal.Certainly, this corresponding relation preset also can be that clockwise direction correspondence retreats, and counterclockwise correspondence is advanced.
Situation of change for relative position information comprises the distance variable quantity between two generation points touching signals and the situation apart from variation tendency, the implementation of step 103 can be: the corresponding relation regulating ratio according to the distance variable quantity preset and progress, determine that the progress that the distance variable quantity that detects is corresponding regulates ratio, and according to the distance variation tendency preset with regulate the corresponding relation in direction, determine the adjustment direction that the distance variation tendency that detects is corresponding; Regulate ratio according to the progress determined and regulate direction, described playing progress rate is regulated.
Wherein, progress regulates ratio can be ratio shared in the total length of the target medium that the progress regulated is being play at destination application.Regulate direction can be advance or retreat.The distance variable quantity preset and progress regulate the corresponding relation of ratio can be certain adjustment ratio (as 1%) corresponding to each unit length (as 1 millimeter).Distance variable quantity and progress regulate the corresponding relation of ratio, distance variation tendency can pre-set with regulating the corresponding relation in direction and be stored in terminal.
Preferably, the distance variation tendency preset and the corresponding relation regulating direction, Ke Yishi: increase corresponding advance, reduces corresponding retrogressing.Certainly, this corresponding relation preset also can be increase corresponding retrogressing, reduces corresponding advance.
In the embodiment of the present invention, in order to prevent the operation that mistuning joint occurs when not regulating the demand of playing progress rate, certain trigger condition can be set to the process of step 103, shown below is two kinds of preferred trigger conditions.
Trigger condition one, the anglec of rotation exceedes default angle threshold, and accordingly, the processing procedure of step 103 can be: after the anglec of rotation exceedes default angle threshold, according to the situation of change of relative position information, the playing progress rate of destination application is regulated.
Like this, user is when operating, can first with two finger touching screens, then finger is rotated, when the anglec of rotation of the line of the generation point of two touching signals reaches angle threshold, then trigger the process of adjustment, terminal starts the situation of change according to relative position information, regulates the playing progress rate of destination application.
Trigger condition two, the lasting duration of two touching signals exceedes default duration threshold value, accordingly, the processing procedure of step 103 can be: after the lasting duration of two touching signals exceedes 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, user is when operating, can first with two finger touching screens, then the touching state with screen is kept, terminal can detect the lasting duration of two touching signals after receiving two touching signals, when detecting that lasting duration exceedes duration threshold value, then triggers the process of adjustment, terminal starts the situation of change according to relative position information, regulates the playing progress rate of destination application.
In addition, preferably, also above-mentioned two trigger conditions can be combinationally used, namely trigger condition is that the anglec of rotation exceedes default angle threshold or two lasting durations touching signals exceed default duration threshold value, accordingly, the processing procedure of step 103 can be: the anglec of rotation exceed default angle threshold or two touching signals lasting duration exceed default duration threshold value after, according to the situation of change of relative position information, the playing progress rate of destination application is regulated.Like this, as long as two trigger conditions meet the process that both can be triggered adjustment.
A variety of optional trigger condition can also be had in addition, do not enumerate in the embodiment of the present invention.
In the embodiment of the present invention, after receiving two touching signals that screen produces, following process can also be comprised: the playing progress bar that the playing progress rate of display-object application program is corresponding 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 display schematic diagram of playing progress bar can be as shown in Figure 2.The whole circumferential length of this annulus can the total length of target medium play of corresponding destination application.
Preferably, this playing progress bar can show when above-mentioned trigger condition triggers.The inner circle of annulus and outer diameter of a circle can be default value, also can determine according to the distance between the generation point of two touching signals, such as, can arrange outside diameter and be greater than this distance and interior circular diameter is less than this distance.
The display position of progress starting point can be arranged arbitrarily, such as, progress starting point can be arranged on the tip position of annulus.In addition, preferably, preferentially can arrange the display position of current schedules point (current schedules point can progress displaying button), and then calculate the display position of progress starting point according to the humidometer of current broadcasting.When arranging the display position of current schedules point, the generation point of any one touching signal in two touching signals can be set to the display position (outside diameter is greater than the spacing of 2 generation points and interior circular diameter is less than the situation of this distance) of current schedules point.
In the embodiment of the present invention, after the playing progress bar that the playing progress rate of display-object application program is corresponding on screen, following process can also be comprised: when after a touching blackout in two touching signals, detect the anglec of rotation and the sense of rotation of another touching generation point of signal and the line in the center of circle; Touch the anglec of rotation and the sense of rotation of generation point of signal and the line in the center of circle according to another, 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 circumferential angle (360 degree) according to the anglec of rotation detected, determine that progress regulates ratio, and according to the sense of rotation preset with regulate the corresponding relation in direction, determine the adjustment direction that the sense of rotation that detects is corresponding; Regulate ratio according to the progress determined and regulate direction, playing progress rate is regulated.Relevant treatment with reference to the detailed description at step 103 place, can be not repeated at this.
A touching blackout can be that the finger of user have left screen.Now, preferably, according to the generation point not having the touching signal disappeared, rotation process can be carried out to playing progress bar, makes the display position of current schedules point corresponding with this generation point.Can be specifically that the display position of current schedules point is rotated to the center of circle and the line (or extended line) of this generation point and the intersection point of playing progress bar.
In the embodiment of the present invention, receive at least two touching signals that screen produces, according to the situation of change of the relative position information of the generation point of these at least two touching signals, the playing progress rate of destination application is regulated, like this, when carrying out playing progress rate and regulating, do not require to touch certain specific position, so the situation that there will not be mistuning to save, thus, the accuracy that playing progress rate regulates can be improved.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of device regulating playing progress rate, and as shown in Figure 3, described device comprises:
Receiver module 310, for receiving at least two touching signals that screen produces;
Detection module 320, for the situation of change of the relative position information of the generation point of at least two touching signals described in detecting;
Adjustment module 330, for the situation of change according to described relative position information, regulates the playing progress rate of destination application.
Preferably, described at least two touching signals are two touching signals;
The situation of change of described relative position information, comprising: the anglec of rotation of the line of the generation point of described two touching signals and sense of rotation.
Preferably, described adjustment module 330, for:
According to the ratio that the described anglec of rotation accounts in circumferential angle, determine that progress regulates ratio, and according to the sense of rotation preset with regulate the corresponding relation in direction, determine the adjustment direction that the sense of rotation that detects is corresponding;
Regulate ratio according to the progress determined and regulate direction, described playing progress rate is regulated.
Preferably, described adjustment module 330, for:
After the described anglec of rotation exceedes 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, for:
After the lasting duration of described two touching signals exceedes 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, for:
After two touching signals that described reception screen produces, show the playing progress bar that the playing progress rate of described destination application is corresponding on the 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 for: when after touching blackouts in described two touching signals, detect another touching generation point of signal and the anglec of rotation of the line in the described center of circle and sense of rotation;
Described adjustment module 330, also for: according to another touching generation point of signal described and the anglec of rotation of the line in the described center of circle and sense of rotation, 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, comprising: the distance variable quantity between the generation point of described two touching signals and distance variation tendency, and wherein, described distance variation tendency comprises to be increased or reduce.
Preferably, described adjustment module 330, for:
The corresponding relation of ratio is regulated according to the distance variable quantity preset and progress, determine that the progress that the distance variable quantity that detects is corresponding regulates ratio, and according to the distance variation tendency preset with regulate the corresponding relation in direction, determine the adjustment direction that the distance variation tendency that detects is corresponding;
Regulate ratio according to the progress determined and regulate direction, described playing progress rate is regulated.
In the embodiment of the present invention, receive at least two touching signals that screen produces, according to the situation of change of the relative position information of the generation point of these at least two touching signals, the playing progress rate of destination application is regulated, like this, when carrying out playing progress rate and regulating, do not require to touch certain specific position, so the situation that there will not be mistuning to save, thus, the accuracy that playing progress rate regulates can be improved.
It should be noted that: the device of the adjustment playing progress rate that above-described embodiment provides is when regulating playing progress rate, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the adjustment playing progress rate that above-described embodiment provides belongs to same design with regulating the embodiment of the method for playing progress rate, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.