A kind of video control method and mobile phone terminalTechnical field
The present invention relates to technical field of mobile terminals more particularly to a kind of video control methods and mobile phone terminal.
Background technology
With the arrival of mobile terminal intellectualization times, the configuration of mobile terminal is stronger and stronger, and function is more and more complete,More and more users carry out video playing by mobile terminal, in the video or individual recording of different place browsing and downloadVideo, to enjoy the intelligent experience that mobile terminal is brought.
However, since the prior art controls the broadcasting of video, the control interface for entering video player, ability are neededTo carrying out video pause, video playing, video switching, video fast forward or the operation of video rewind.By taking video switches as an example, when rightWhen mobile terminal with touch screen plays out control, user needs the broadcast interface by video on touch screen, hence intoTo the control interface of video, then the corresponding switching key of logical lookup, to complete the upper next part handover operation of video, operating process is numerousIt is trivial, also, video play operation is carried out every time, it needs to start touch screen, increases the power consumption of terminal.
Invention content
A kind of video control method of the embodiment of the present invention offer and mobile phone terminal, the displacement for passing through preset mobile phone terminal are joinedCorrespondence between number and video control operation, realizes through different directions whipping to the mobile phone terminal playing videoCarry out the function of next part switching.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
The embodiment of the present invention provides a kind of video control method, is applied to mobile phone terminal during playing video,The method includes:
The mobile phone terminal obtains the displacement parameter of itself, and the displacement parameter is that the mobile phone terminal is got rid of in response to userIt is dynamic and generation, wherein the displacement parameter includes the shift value and displacement time of the mobile phone terminal;
The value of the acceleration in preset all directions is calculated according to the displacement parameter;
If the value of acceleration in a first direction is more than the first predetermined threshold value, the mobile phone terminal generates the first switchingInstruction, first switching command, which is used to indicate, switches currently playing video to the Shang Yiji of currently playing collection of drama;
If the value of acceleration in a second direction is more than first predetermined threshold value, the mobile phone terminal generates secondSwitching command, second switching command, which is used to indicate, switches currently playing video to next collection of currently playing collection of drama,In, the second direction is parallel and opposite with the first direction;
The mobile phone terminal according to first switching command or second switching command to currently playing video intoThe corresponding handover operation of row.
After the value of the acceleration according to displacement parameter calculating in preset all directions, also wrapIt includes:
If the value of the acceleration on third direction is more than the second predetermined threshold value, the mobile phone terminal generates third switchingInstruction, the third switching command, which is used to indicate, suspends currently playing video;
If the value of the acceleration in fourth direction is more than second predetermined threshold value, the mobile phone terminal generates the 4thSwitching command, the 4th switching command are used to indicate broadcasting current video;
Wherein, the third direction is parallel with the fourth direction and on the contrary, the third direction and the first directionVertically and in the same plane;
The mobile phone terminal according to the third switching command or the 4th switching command to currently playing video intoThe corresponding control operation of row.
After the value of the acceleration according to displacement parameter calculating in preset all directions, also wrapIt includes:
If the value of the acceleration on the 5th direction is more than third predetermined threshold value, the mobile phone terminal generates the 5th switchingInstruction, the 5th switching command are used to indicate the brightness for increasing currently playing video;
If the value of the acceleration on the 6th direction is more than third predetermined threshold value, the mobile phone terminal generates the 6th switchingInstruction, the 6th switching command are used to indicate the brightness for reducing currently playing video;
Wherein, the 5th direction is parallel with the 6th direction and on the contrary, where the 5th direction and the first directionPlane it is vertical;
The mobile phone terminal according to the 5th switching command or the 6th switching command to currently playing video intoThe corresponding control operation of row.
The value that acceleration in preset all directions is calculated according to the displacement parameter includes:
The shift value of the mobile phone terminal is projected to the preset all directions, is obtained described preset eachDisplacement component value on direction, the preset all directions include the first direction and/or second direction and/or thirdDirection and/or fourth direction and/or the 5th direction and/or the 6th direction;
Calculate the displacement component value of the preset all directions divided by square of the displacement time, obtain it is describedThe value of acceleration in preset all directions.
Before the displacement parameter that the mobile phone terminal obtains itself, further include:
The mobile phone terminal obtains the induction control button triggered in response to user and operates, and starts the induction and controls work(Energy.
The embodiment of the present invention provides a kind of mobile phone terminal, including:
Acquiring unit, the displacement parameter of itself is obtained for the mobile phone terminal, and the displacement parameter is that the mobile phone is wholeEnd is generated in response to user's whipping, wherein the displacement parameter includes the shift value and displacement time of the mobile phone terminal;
Computing unit, the value for calculating the acceleration in preset all directions according to the displacement parameter;
Processing unit, if the value for acceleration in a first direction is more than the first predetermined threshold value, the mobile phone terminalThe first switching command is then generated, first switching command, which is used to indicate, switches currently playing video to currently playing collection of dramaA upper collection;And if the value of acceleration in a second direction, more than first predetermined threshold value, the mobile phone terminal generatesSecond switching command, second switching command are used to indicate that switch currently playing video next to currently playing collection of dramaCollection, wherein the second direction is parallel and opposite with the first direction;
Execution unit, for the mobile phone terminal according to first switching command or second switching command to currentThe video of broadcasting carries out corresponding handover operation and the mobile phone terminal obtains the induction control button triggered in response to userOperation, starts the induction control function.
The processing unit, if the value for the acceleration being additionally operable on third direction is more than the second predetermined threshold value, the handMachine terminal then generates third switching command, and the third switching command, which is used to indicate, suspends currently playing video;And ifThe value of acceleration in fourth direction is more than second predetermined threshold value, and the mobile phone terminal then generates the 4th switching command, instituteIt states the 4th switching command and is used to indicate broadcasting current video;Wherein, the third direction it is parallel with the fourth direction and on the contrary,The third direction is vertical with the first direction and in the same plane;
The execution unit is additionally operable to the mobile phone terminal according to the third switching command or the 4th switching commandCorresponding control operation is carried out to currently playing video.
The processing unit, if the value for the acceleration being additionally operable on the 5th direction is more than third predetermined threshold value, the handMachine terminal then generates the 5th switching command, and the 5th switching command is used to indicate the brightness for increasing currently playing video;AndIf the value of the acceleration on the 6th direction is more than third predetermined threshold value, the mobile phone terminal generates the 6th switching command, instituteIt states the 6th switching command and is used to indicate the brightness for reducing currently playing video;Wherein, the 5th direction is parallel with the 6th directionAnd on the contrary, the 5th direction is vertical with the plane where the first direction;
The execution unit is additionally operable to the mobile phone terminal according to the 5th switching command or the 6th switching commandCorresponding control operation is carried out to currently playing video.
The computing unit is obtained for projecting the shift value of the mobile phone terminal to the preset all directionsDisplacement component value in the preset all directions, the preset all directions include the first direction and/Or second direction and/or third direction and/or fourth direction and/or the 5th direction and/or the 6th direction;And it calculates described pre-The displacement component value of all directions first set divided by square of the displacement time obtain described in preset all directionsAcceleration value.
The mobile phone terminal is provided with gyroscope and/or has gravity sensor and/or close to inductor and/or ground magnetic strengthAnswer device and/or gesture induction device.
A kind of video control method of the embodiment of the present invention offer and mobile phone terminal are applied to mobile phone terminal and are playing videoDuring, pass through the correspondence between the displacement parameter and video control operation of preset mobile phone terminal, it is determined that Yong HuIt watches the upper next part Switch Video corresponding to the whipping operation during video to mobile phone terminal to operate, realize through not TongfangThe function of carrying out upper next part switching to the mobile phone terminal playing video to whipping mobile phone terminal, avoids user and enters controlThe cumbersome flow of corresponding control button is searched at interface, carries out video play operation every time, need not be started touch screen, be reduced endThe power consumption at end.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of invention for those of ordinary skill in the art without creative efforts, can be withObtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram one for video control method that the embodiment of the present invention provides;
Fig. 2 is schematic diagram of the space by the value for calculating acceleration in coordinate system;
Fig. 3 is a kind of flow diagram two for video control method that the embodiment of the present invention provides;
Fig. 4 is a kind of structural schematic diagram for mobile phone terminal that the embodiment of the present invention provides.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as specific system structure, interface, technology itThe detail of class, to understand thoroughly the present invention.However, it will be clear to one skilled in the art that there is no these specificThe present invention can also be realized in the other embodiments of details.In other situations, omit to well-known device, circuit andThe detailed description of method, in case unnecessary details interferes description of the invention.
Mobile phone terminal, be a kind of abbreviation of mobile phone wireless network receiving terminal, be can use in the broader context it is portableFormula telephone terminal, including transmitter(Mobile phone), receiver(Network server).Further, mobile phone terminal may be TVThe function of television set is integrated into mobile phone by mobile phone, TV signal is broadcast by mobile phone receipts.In addition, character "/" herein, oneAs indicate forward-backward correlation object be a kind of relationship of "or".
Embodiment one
The embodiment of the present invention provides a kind of video control method, as shown in Figure 1, including:
101, mobile phone terminal obtains the displacement parameter of itself during playing video.
Wherein, the displacement parameter in the embodiment of the present invention generates for mobile phone terminal in response to user's whipping, can wrapInclude the shift value and displacement time of mobile phone terminal in the positive and negative six direction of x-axis in space coordinate, y-axis, z-axis.In addition, the present invention is realIt includes having gyroscope and/or having gravity sensor and/or close to inductor and/or earth induction to apply mobile phone terminal in exampleDevice and/or gesture induction device.
An embodiment of the present invention provides a kind of video control methods, are applied to mobile phone terminal, pass through preset mobile phone terminalCorrespondence between displacement parameter and video control operation, so that perceiving user's different directions during video playingWhipping operation, realize and upper next part is carried out to the mobile phone terminal playing video by different directions whipping mobile phone terminal cutThe function of changing avoids user and enters the cumbersome flow that control interface searches corresponding control button.
Specifically, user answers control function by triggering the induction control button on mobile phone terminal, start feeling.In the inductionIn the state of function triggering, mobile phone terminal obtains the displacement parameter of itself during playing video, which is handMachine terminal is generated in response to user's whipping.
102, mobile phone terminal calculates the value of the acceleration in preset all directions according to displacement parameter.
Wherein, the direction vector of the displacement parameter is the vector that x-axis, y-axis, z-axis are generated as coordinate system using in space coordinateDirection.The acceleration includes six acceleration component values, and six acceleration component values are six of mobile phone terminal spatiallyAcceleration component values.It is the value of six direction, respectively:
values[0]:The positive and negative directional acceleration of x-axis;
values[1]:The positive and negative directional acceleration of y-axis;
values[2]:The positive and negative directional acceleration of z-axis;
The definition in the direction wherein x, y, z is using the lower right corner of horizontal positioned mobile phone terminal as reference system coordinate origin, x-axisDirection is exactly the horizontal direction of mobile phone terminal, and is just to the right;Y-axis direction is exactly the vertical side along the horizontal plane of mobile phone terminalTo, and be just forward;Z-axis direction is exactly mobile phone terminal with horizontal plane direction, and the direction of sky be just, groundDirection is negative.
Due to being provided with gravity sensor in video playback apparatus remote controler, in whipping mobile phone terminal, gravity passes userSensor can obtain displacement parameter and then calculate the value of the direction vector and acceleration.
Specifically, projecting the shift value of mobile phone terminal to preset all directions, preset all directions are obtainedOn displacement component value, and then mobile phone terminal calculate preset all directions displacement component value divided by displacement time it is flatSide obtains the value of the acceleration in preset all directions.
As shown in Fig. 2, point O is the starting point of mobile phone terminal movement, point P is the terminal of mobile phone terminal movement, and OP is that mobile phone is wholeThe shift value of end motion, T are the time that mobile phone terminal is moved from O to P, and OM is projections of the OP in z-plane, then in z-planeAcceleration value=OM/T2 of interior mobile phone terminal.
If the value of acceleration 103, in a first direction is more than the first predetermined threshold value, mobile phone terminal generates the first switchingInstruction.
Wherein, the first switching command is used to indicate the Shang Yiji switched in currently playing video to currently playing collection of drama.
Specifically, if it is first direction to calculate the direction vector that displacement parameter obtains, which can be that x-axis is squareTo, also, the value for calculating the projection of the value for the acceleration that displacement parameter obtains in the first direction is more than the first predetermined threshold value,So mobile phone terminal generates the first switching command, and instruction switches the Shang Yiji in currently playing video to currently playing collection of drama.
If the value of acceleration 104, in a second direction is more than the first predetermined threshold value, mobile phone terminal generates the second switchingInstruction.
Wherein, the second switching command is used to indicate the next collection switched in currently playing video to currently playing collection of drama,Wherein, the second direction is parallel and opposite with above-mentioned first direction.
Specifically, if it is second direction to calculate the direction vector that displacement parameter obtains, which can be x-axis losing sideTo, also, it is first pre- still above this to calculate the value of the projection of the value of acceleration that displacement parameter obtains in the second directionIf threshold value, then mobile phone terminal generates the second switching command, instruction switches in currently playing video to currently playing collection of dramaNext collection.
It should be noted that first direction and second direction herein is only to be with positive direction of the x-axis and negative direction of the x-axisExample, also the first direction and second direction can also be respectively positive direction of the y-axis and negative direction of the y-axis or z-axis positive direction and zAxis negative direction.
105, mobile phone terminal carries out currently playing video according to the first switching command or the second switching command correspondingHandover operation.
Specifically, if mobile phone terminal generates the first instruction, executes and switch currently playing video to currently playing collection of dramaThe operation of an interior upper collection;If mobile phone terminal generates the second instruction, executes and switch currently playing video to currently playing playThe operation of next collection in collection.
So far, mobile phone terminal generates corresponding video switching command according to displacement parameter, realizes through different directions whippingMobile phone terminal carries out the mobile phone terminal playing video function of upper next part switching.
The embodiment of the present invention provides a kind of video control method, is applied to mobile phone terminal during playing video,Mobile phone terminal obtains the displacement parameter of itself by mobile phone terminal, and displacement parameter generates for mobile phone terminal in response to user's whipping's;And then the value of the acceleration in preset all directions is calculated according to displacement parameter;If acceleration in a first directionThe value of degree is more than the first predetermined threshold value, and mobile phone terminal then generates the first switching command, and the first switching command is used to indicate switching and works asThe video of preceding broadcasting to currently playing collection of drama Shang Yiji;If the value of acceleration in a second direction is more than the first default thresholdValue, mobile phone terminal then generate the second switching command, and the second switching command, which is used to indicate, switches currently playing video to currently broadcastingPut next collection of collection of drama, wherein second direction is parallel and opposite with first direction;Last mobile phone terminal is according to the first switching commandOr second switching command corresponding handover operation is carried out to currently playing video.The displacement that this method passes through preset mobile phone terminalCorrespondence between parameter and video control operation, it is determined that user grasps the whipping of mobile phone terminal during watching videoMake corresponding upper next part Switch Video operation, realizes and the mobile phone terminal is being broadcast by different directions whipping mobile phone terminalThe function that video carries out next part switching is put, user is avoided and enters the cumbersome flow that control interface searches corresponding control button,Video play operation is carried out every time, need not be started touch screen, be reduced the power consumption of terminal.
Embodiment two
The embodiment of the present invention provides a kind of video control method, as shown in figure 3, including:
201, mobile phone terminal obtains the induction control button triggered in response to user and operates, and start feeling answers control function.
An embodiment of the present invention provides a kind of video control methods, are applied to mobile phone terminal, pass through preset mobile phone terminalCorrespondence between displacement parameter and video control operation, so that perceiving user's different directions during video playingWhipping operation, realize and upper next part is carried out to the mobile phone terminal playing video by different directions whipping mobile phone terminal cutThe function of changing avoids user and enters the cumbersome flow that control interface searches corresponding control button.
Specifically, user answers control function by triggering the induction control button on mobile phone terminal, start feeling.In the inductionIn the state of function triggering, mobile phone terminal obtains the displacement parameter of itself and then generates first and cut during playing videoChange the switching command of instruction/second.Wherein, family can be to trigger corresponding object by the induction control button triggered on mobile phone terminalManage button, or trigger corresponding virtual key.
In addition, the mobile phone terminal in the embodiment of the present invention is provided with gyroscope and/or has gravity sensor and/or approachInductor and/or earth inductor and/or gesture induction device.
202, mobile phone terminal obtains the displacement parameter of itself during playing video.
Wherein, the displacement parameter in the embodiment of the present invention generates for mobile phone terminal in response to user's whipping, can wrapInclude the shift value and displacement time of mobile phone terminal in the positive and negative six direction of x-axis in space coordinate, y-axis, z-axis.The direction wherein x, y, zDefinition be using the lower right corner of horizontal positioned mobile phone terminal as reference system coordinate origin, x-axis direction is exactly the water of mobile phone terminalSquare to, and to the right be just;Y-axis direction is exactly the vertical direction along the horizontal plane of mobile phone terminal, and is just forward;Z-axis directionIt is exactly mobile phone terminal with horizontal plane direction, and the direction of sky is just, the direction on ground is negative.
Specifically, user answers control function by triggering the induction control button on mobile phone terminal, start feeling.In the inductionIn the state of function triggering, mobile phone terminal obtains the displacement parameter of itself during playing video, which is handMachine terminal is generated in response to user's whipping.
203, mobile phone terminal calculates the direction vector of displacement parameter and the value of the acceleration on direction vector.
Specifically, when user watches current video using mobile phone terminal, it is desirable to which it is in playlist to switch current videoNext collection or it is upper one collection, mobile phone terminal can be done at this time specific direction whipping operation, due to being equipped in the mobile phone terminalGravity sensing device, therefore mobile phone terminal further obtains the value of direction vector and acceleration after obtaining displacement parameter.
It should be noted that the unit of acceleration is meter per second2, since video playback apparatus remote controler may be towards differenceDirection movement, therefore the acceleration value that obtains of gravity sensor includes the value there are three direction, respectively:
values[0]:X-axis direction acceleration;
values[1]:Y-axis directional acceleration;
values[2]:Z axis direction acceleration;
The definition in the direction wherein x, y, z is using the lower right corner of the video playback apparatus remote controler lain in a horizontal plane in as reference systemCoordinate origin, x-axis direction are exactly the horizontal direction of video playback apparatus remote controler, and are just to the right;Y-axis direction is exactly that video is broadcastThe vertical direction along the horizontal plane of appliance remote control is put, and is just forward;Z-axis direction be exactly video playback apparatus remote controler withThe direction of horizontal plane, and the direction of sky is just, the direction of the earth is negative.
Specifically, projecting the shift value of mobile phone terminal to preset all directions, preset all directions are obtainedOn displacement component value, and then mobile phone terminal calculate preset all directions displacement component value divided by displacement time it is flatSide obtains the value of the acceleration in preset all directions.
If the value of acceleration 204, in a first direction is more than the first predetermined threshold value, mobile phone terminal generates the first switchingInstruction.
Wherein, the first switching command is used to indicate the Shang Yiji switched in currently playing video to currently playing collection of drama.
Specifically, if it is first direction to calculate the direction vector that displacement parameter obtains, which can be that x-axis is squareTo, also, the value for calculating the projection of the value for the acceleration that displacement parameter obtains in the first direction is more than the first predetermined threshold value,So mobile phone terminal generates the first switching command, and instruction switches the Shang Yiji in currently playing video to currently playing collection of drama.
If the value of acceleration 205, in a second direction is more than the first predetermined threshold value, mobile phone terminal generates the second switchingInstruction.
Wherein, the second switching command is used to indicate the next collection switched in currently playing video to currently playing collection of drama,Wherein, the second direction is parallel and opposite with above-mentioned first direction.
Specifically, if it is second direction to calculate the direction vector that displacement parameter obtains, which can be x-axis losing sideTo, also, it is first pre- still above this to calculate the value of the projection of the value of acceleration that displacement parameter obtains in the second directionIf threshold value, then mobile phone terminal generates the second switching command, instruction switches in currently playing video to currently playing collection of dramaNext collection.
It should be noted that first direction and second direction herein is only to be with positive direction of the x-axis and negative direction of the x-axisExample, also the first direction and second direction can also be respectively positive direction of the y-axis and negative direction of the y-axis or z-axis positive direction and zAxis negative direction.
If the value of the acceleration 206, on third direction is more than the second predetermined threshold value, mobile phone terminal generates third switchingInstruction.
Wherein, third switching command, which is used to indicate, suspends currently playing video.
Specifically, if it is third direction to calculate the direction vector that displacement parameter obtains, which can be y-axis losing sideTo, also, the value for calculating projection of the value for the acceleration that displacement parameter obtains on the third direction is more than the second predetermined threshold value,So mobile phone terminal generates third switching command, and instruction suspends currently playing video.
If the value of the acceleration 207, in fourth direction is more than the second predetermined threshold value, mobile phone terminal generates the 4th switchingInstruction.
Wherein, the 4th switching command is used to indicate broadcasting current video.
Specifically, if it is fourth direction to calculate the direction vector that displacement parameter obtains, which can be that y-axis is squareTo, also, the value for calculating projection of the value for the acceleration that displacement parameter obtains in the fourth direction is more than the second default thresholdValue, then mobile phone terminal generates the 4th switching command, instruction plays currently playing video.
It should be noted that above-mentioned third direction it is parallel with fourth direction and on the contrary, and third direction and first direction hang downDirect join is in the same plane.
If 208, the value of the acceleration on the 5th direction is more than third predetermined threshold value, mobile phone terminal generates the 5th switchingInstruction.
Wherein, the 5th switching command is used to indicate the brightness for increasing currently playing video.
Specifically, if it is the 5th direction to calculate the direction vector that displacement parameter obtains, the 5th direction can be z-axis losing sideTo, also, the value for calculating projection of the value for the acceleration that displacement parameter obtains on the 5th direction is more than third predetermined threshold value,So mobile phone terminal generates the 5th switching command, and instruction increases the brightness of currently playing video.
If 209, the value of the acceleration on the 6th direction is more than third predetermined threshold value, mobile phone terminal generates the 6th switchingInstruction.
Wherein, the 6th switching command is used to indicate the brightness for reducing currently playing video.
Specifically, if it is the 6th direction to calculate the direction vector that displacement parameter obtains, the 6th direction can be that z-axis is squareTo, also, the value for calculating projection of the value for the acceleration that displacement parameter obtains on the 6th direction is more than third predetermined threshold value,So mobile phone terminal generates the 6th switching command, and instruction reduces the brightness of currently playing video.
It is cut on the contrary, and the 5th direction and first direction it should be noted that above-mentioned 5th direction is parallel with the 6th directionThe plane at place is vertical.In addition, step 204 does not limit the priority for executing step to 209 no temporal logical order relationshipsSequentially.
So far, mobile phone terminal is provided with the pre-set threshold value of three groups of corresponding whipping operations and three groups of acceleration, right respectivelyThree groups of x-axis under space coordinates, y-axis, z-axis space vector directions are answered, are realized through different directions whipping mobile phone terminal to thisMobile phone terminal playing video carries out corresponding control operation.
210, mobile phone terminal according to the switching command of the first switching command/second switching command/third switching command/the 4th/The switching command of 5th switching command/the 6th carries out corresponding control operation to currently playing video.
Specifically, if mobile phone terminal generates the first instruction, executes and switch currently playing video to currently playing collection of dramaThe operation of an interior upper collection.
If mobile phone terminal generates the second instruction, execute next in the currently playing video to currently playing collection of drama of switchingThe operation of collection.
If mobile phone terminal generates third instruction, the operation for suspending currently playing video is executed.
If mobile phone terminal generates the 4th instruction, the operation for playing currently playing video is executed.
If mobile phone terminal generates the 5th instruction, the operation for the brightness for increasing currently playing video is executed.
If mobile phone terminal generates the 6th instruction, the operation for the brightness for reducing currently playing video is executed.
Illustratively, user is watching TV play using mobile phone terminal《Also pearl sound of laughing》During, it is desirable to adjust mobile phoneScreen luminance of terminal, at this time can do mobile phone terminal the whipping operation of specific direction, for example, with mobile phone terminal be it is horizontal towardsUpper whipping, due to being equipped with gravity sensing device in the mobile phone terminal, mobile phone terminal obtains the displacement ginseng of the upward whipping of userNumber is the 5th direction according to the corresponding direction vector of operation for obtaining the upward whipping is further calculated, on the 5th directionAcceleration value be 8 meter per seconds2, it is more than 5 meter per second of third preset value2, then mobile phone terminal generates the 5th switching command, and holdsThe operation of the brightness of the currently playing video of increase corresponding to the 5th switching command of row.
The embodiment of the present invention provides a kind of video control method, is applied to mobile phone terminal during playing video,Mobile phone terminal obtains the displacement parameter of itself by mobile phone terminal, and displacement parameter generates for mobile phone terminal in response to user's whipping's;And then the value of the acceleration in preset all directions is calculated according to displacement parameter;If acceleration in a first directionThe value of degree is more than the first predetermined threshold value, and mobile phone terminal then generates the first switching command, and the first switching command is used to indicate switching and works asThe video of preceding broadcasting to currently playing collection of drama Shang Yiji;If the value of acceleration in a second direction is more than the first default thresholdValue, mobile phone terminal then generate the second switching command, and the second switching command, which is used to indicate, switches currently playing video to currently broadcastingPut next collection of collection of drama, wherein second direction is parallel and opposite with first direction;Last mobile phone terminal is according to the first switching commandOr second switching command corresponding handover operation is carried out to currently playing video.This method is joined by preset mobile phone terminal displacementCorrespondence between number and video control operation, it is determined that user operates the whipping of mobile phone terminal during watching videoCorresponding upper next part Switch Video operation, realizes through different directions whipping mobile phone terminal to the mobile phone terminal playingVideo carries out the function of next part switching, avoids user and enters the cumbersome flow that control interface searches corresponding control button, oftenSecondary carry out video play operation, need not start touch screen, reduce the power consumption of terminal.
Embodiment three
The embodiment of the present invention provides a kind of mobile phone terminal, as shown in figure 4, including:
Acquiring unit 01, obtains the displacement parameter of itself for mobile phone terminal, displacement parameter be mobile phone terminal in response toFamily whipping and generate, wherein displacement parameter includes the shift value and displacement time of mobile phone terminal;
Computing unit 02, the value for calculating the acceleration in preset all directions according to displacement parameter;
Processing unit 03, if the value for acceleration in a first direction is more than the first predetermined threshold value, mobile phone terminalThe first switching command is generated, the first switching command, which is used to indicate, switches currently playing video to upper the one of currently playing collection of dramaCollection;And if the value of acceleration in a second direction is more than the first predetermined threshold value, mobile phone terminal generates the second switching command,Second switching command, which is used to indicate, switches currently playing video to next collection of currently playing collection of drama, wherein second direction withFirst direction is parallel and opposite;
Execution unit 04, for mobile phone terminal according to the first switching command or the second switching command to currently playing videoIt carries out corresponding handover operation and mobile phone terminal obtains the induction control button triggered in response to user and operates, start feeling is answeredControl function.
Further, processing unit 03, if the value for the acceleration being additionally operable on third direction is more than the second predetermined threshold value,Mobile phone terminal then generates third switching command, and third switching command, which is used to indicate, suspends currently playing video;And ifThe value of cubic upward acceleration is more than the second predetermined threshold value, and mobile phone terminal then generates the 4th switching command, the 4th switching commandIt is used to indicate broadcasting current video;Wherein, third direction is parallel with fourth direction and on the contrary, third direction is vertical with first directionAnd in the same plane;
Execution unit 04 is additionally operable to mobile phone terminal and is regarded to currently playing according to third switching command or the 4th switching commandFrequency carries out corresponding control operation.
Further, processing unit 03, if the value for the acceleration being additionally operable on the 5th direction is more than third predetermined threshold value,Mobile phone terminal then generates the 5th switching command, and the 5th switching command is used to indicate the brightness for increasing currently playing video;And ifThe value of acceleration on the 6th direction is more than third predetermined threshold value, and mobile phone terminal then generates the 6th switching command, the 6th switchingInstruction is used to indicate the brightness for reducing currently playing video;Wherein, the 5th direction is parallel with the 6th direction and on the contrary, the 5th directionIt is vertical with the plane where first direction;
Execution unit 04 is additionally operable to mobile phone terminal and is regarded to currently playing according to the 5th switching command or the 6th switching commandFrequency carries out corresponding control operation.
Further, computing unit 02 is obtained for projecting the shift value of mobile phone terminal to preset all directionsDisplacement component value in preset all directions, preset all directions include first direction and/or second direction and/orThird direction and/or fourth direction and/or the 5th direction and/or the 6th direction;And calculate the position of preset all directionsSquare of component value divided by displacement time is moved, the value of the acceleration in preset all directions is obtained.
Further, mobile phone terminal be provided with gyroscope and/or have gravity sensor and/or close to inductor and/orEarth inductor and/or gesture induction device.
The embodiment of the present invention provides a kind of mobile phone terminal, is applied to mobile phone terminal during playing video, mobile phoneTerminal obtains the displacement parameter of itself by mobile phone terminal, and displacement parameter generates for mobile phone terminal in response to user's whipping;And then the value of the acceleration in preset all directions is calculated according to displacement parameter;If acceleration in a first directionValue is more than the first predetermined threshold value, and mobile phone terminal then generates the first switching command, and the first switching command is used to indicate switching and currently broadcastsThe video put to currently playing collection of drama Shang Yiji;If the value of acceleration in a second direction is more than the first predetermined threshold value, handMachine terminal then generates the second switching command, and the second switching command, which is used to indicate, switches currently playing video to currently playing collection of dramaNext collection, wherein second direction is parallel and opposite with first direction;Last mobile phone terminal is according to the first switching command or secondSwitching command carries out corresponding handover operation to currently playing video.This method by the displacement parameter of preset mobile phone terminal withCorrespondence between video control operation, it is determined that user is right to the whipping of mobile phone terminal operation institute during watching videoThe upper next part Switch Video operation answered, realizes through different directions whipping mobile phone terminal to the mobile phone terminal playing videoThe function of carrying out next part switching avoids user and enters the cumbersome flow that control interface searches corresponding control button, every time intoRow video play operation need not start touch screen, reduce the power consumption of terminal.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each functionThe division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical applicationBlock is completed, i.e., the internal structure of device is divided into different function modules, to complete all or part of work(described aboveEnergy.The specific work process of the system, apparatus, and unit of foregoing description can refer to corresponding in preceding method embodimentJourney, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be withIt realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module orThe division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple unitsOr component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, instituteDisplay or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unitINDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, you can be located at a place, or may be distributed over multipleIn network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can alsoIt is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated listThe form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent productWhen, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantiallyThe all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other wordsIt embodies, which is stored in a storage medium, including some instructions are used so that a computerEquipment(Can be personal computer, server or the network equipment etc.)Or processor(processor)It is each to execute the present inventionThe all or part of step of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CDEtc. the various media that can store program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all containLid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.