The content of the invention
Based on this, the embodiment of the present invention proposes a kind of player fast forwarding and fast rewinding control method, system, storage medium and intelligence
Terminal, solve the problems, such as that existing player is not accurate enough in fast forwarding and fast rewinding control process.
One embodiment of the invention provides a kind of player fast forwarding and fast rewinding control method, and concrete technical scheme is as follows:
A kind of player fast forwarding and fast rewinding control method, applied to intelligent terminal, wherein, on the intelligent terminal at least provided with
Two volume keys, methods described include:
In the case where any current player of the intelligent terminal is in broadcast state, monitors whether there is volume keying in real time
Triggering command processed;
If so, the volume control information of any volume key input got is then converted into broadcasting control information,
So that the audio-video document currently playing to the current player carries out corresponding fast forward and fast reverse control;
The volume control information of any volume key input is obtained, and according to the broadcasting control information pair after conversion
The currently playing audio-video document of the current player carries out corresponding fast forward and fast reverse control.
The embodiment of the present invention judges whether to receive volume keying by monitoring under being in broadcast state in current player
Triggering command processed, when receiving volume key control triggering command, i.e., the volume control information of volume key is converted into and currently broadcast
The broadcasting control information of the fast forward and fast reverse of device is put, so as to by controlling volume key to realize the quantitative fast forward and fast reverse of player
Control, and directly by controlling volume key control fast forwarding and fast rewinding when, it need not to solve during playing audio-video after lock screen again
Carry out fast forwarding and fast rewinding operation so that it is easy to operate, solve existing player and not enough accurately asked in fast forwarding and fast rewinding control process
Topic.
Further, it is described and currently playing to the current player according to the broadcasting control information after conversion
The step of corresponding fast forward and fast reverse of audio-video document progress controls includes:
Obtain the currently playing duration information of the currently playing audio-video document and total playing duration information;
The smallest offset duration of the currently playing audio-video document is determined according to total playing duration information;
Determined according to the broadcasting control information, the currently playing duration information and the smallest offset duration current
The target play position that the audio-video document played need to be adjusted, and control the current player to jump to the target
Play position.
Further, it is described and currently playing to the current player according to the broadcasting control information after conversion
After audio-video document carries out the step of corresponding fast forward and fast reverse control, in addition to step:
Monitor in real time and exit triggering command with the presence or absence of volume key control;
If so, then corresponding volume is controlled to adjust according to the volume control information of any volume key input got
Section.
Further, described the step of monitoring whether there is volume key control triggering command in real time, includes:
The volume control information for whether receiving two volume keys while input is monitored in real time;
If so, then judging whether the duration of the volume control information of input is more than preset time.
An alternative embodiment of the invention proposes a kind of player fast forwarding and fast rewinding control system, applied to intelligent terminal, its
In, include on the intelligent terminal at least provided with two volume keys, the system:
First judge module, under being in broadcast state in any current player of the intelligent terminal, supervise in real time
Listen and whether there is volume key control triggering command;
Conversion module, for when first judge module determines to listen to the volume key control triggering command, inciting somebody to action
The volume control information of any volume key input got is converted into broadcasting control information, so as to described currently playing
The currently playing audio-video document of device carries out corresponding fast forward and fast reverse control;
First control module, for obtaining the volume control information of any volume key input, and according to conversion after
The broadcasting control information audio-video document currently playing to the current player carries out corresponding fast forward and fast reverse control.
Further, first control module includes:
Acquiring unit, for the currently playing duration information for obtaining the currently playing audio-video document and total broadcasting
Duration information;
Determining unit, total playing duration information for being obtained according to the acquiring unit determine currently playing institute
State the smallest offset duration of audio-video document;
Control unit, for inclined according to the broadcasting control information, the currently playing duration information and the minimum
Move duration and determine the target play position that the currently playing audio-video document need to be adjusted, and control the current player
Jump to the target play position.
Further, the system also includes:
Second judge module, triggering command is exited with the presence or absence of volume key control for monitoring in real time;
Second control module, for determining to listen to the volume key control and exit triggering to refer to when second judge module
When making, corresponding volume adjusting is controlled according to the volume control information of any volume key input got.
Further, first judge module includes:
First judging unit, the volume control information of two volume key inputs whether is received for monitoring in real time;
Second judging unit, for determining to receive the volume of two volume key inputs when first judging unit
During control information, judge whether the duration of the volume control information of input is more than preset time.
An alternative embodiment of the invention proposes a kind of storage medium, is stored thereon with application program, the program is processed
The step of device realizes the above method when performing.
An alternative embodiment of the invention proposes a kind of intelligent terminal, including memory, processor and is stored in storage
The step of above method being realized on device and the application program that can run on a processor, during the computing device described program.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention
Embodiment be described in detail.Many details are elaborated in the following description in order to fully understand this hair
It is bright.But the invention can be embodied in many other ways as described herein, those skilled in the art can be not
Similar improvement is done in the case of running counter to intension of the present invention, therefore the present invention is not limited to the specific embodiments disclosed below.
Fig. 1 is refer to, the flow chart of the player fast forwarding and fast rewinding control method proposed for the first embodiment of the present invention should
Method is applied to intelligent terminal, wherein, include on the intelligent terminal at least provided with two volume keys, this method:
Step S101, in the case where any current player of the intelligent terminal is in broadcast state, monitors whether deposit in real time
In volume key control triggering command;
Wherein, when listening to volume key control triggering command, then step S102 is performed;
, wherein it is desired to, it is noted that the intelligent terminal, which can be Intelligent flat, smart mobile phone, MP4 players etc., is provided with sound
Amount key and any one in the equipment of audio and video playing can be carried out.The volume key is at least 2, and it can be intelligent terminal
It is provided with, or the volume key being inserted into by line control earphone on intelligent terminal, it is used to control volume to increase respectively
It is subject to and volume is reduced.Wherein, this method is used for the control of F.F. and rewind when intelligent terminal carries out audio-video document broadcasting
System, therefore intelligent terminal now should be player and is under broadcast state, wherein, player can be intelligent terminal system
Integrated audio/video player, or the audio software or video software of audio frequency and video software company exploitation and composition.Wherein, now
Current player is monitored in real time and is under broadcast state whether receive volume key control triggering command, wherein the volume key control
The volume control of volume key is converted into the instruction of fast forward and fast reverse control for triggering by triggering command, and volume key control triggering refers to
Order can be set according to demand.When being not received by the volume key control triggering command, what current player received
Volume control information for control current player volume, such as when receive volume+when, the now operation of intelligent terminal
System responds the volume control information, tunes up the volume of current player.
Step S102, the volume control information of any volume key input got is converted into broadcasting control letter
Breath, so that the audio-video document currently playing to the current player carries out corresponding fast forward and fast reverse control;
Wherein, when listen to current player be under broadcast state receive volume key control triggering command when, now
The volume control information of volume key is converted into the broadcasting control information of the fast forward and fast reverse of current player, to currently broadcasting
Put the currently playing audio-video document of device and carry out corresponding F.F. or F.F. control.For example, when receive user press volume key+
When, now receive volume key+volume control information, now by volume key+volume control information be converted into broadcasting for F.F.
Control information is put, so as to control the currently playing audio-video document of current player to carry out forwarding operation.
Step S103, the volume control information of any volume key input is obtained, and according to the broadcasting after conversion
The control information audio-video document currently playing to the current player carries out corresponding fast forward and fast reverse control;
Wherein, now monitor whether to receive the volume control information of volume key input, any volume key is defeated when receiving
During the volume control information entered, determine that the audio-video document currently playing to current player is carried out according to the volume control information
Corresponding F.F. or F.F. control.For example, when receive user pressing volume key+when, now receive volume key+volume control
Information processed, the currently playing audio-video document of current player is now controlled to carry out forwarding operation.It is pointed out that two
The control of respective fast forward and fast reverse corresponding to volume key can be set according to the demand of user, and user can set volume
Key+to realize the forwarding operation of player, volume key-to realize the forwarding operation of player can also be set, but should be noted
, when user determines volume key+be forwarding operation, its corresponding volume key-be then fast reverse operation, two volume key pair
That answers operates control response opposite each other.
The embodiment of the present invention judges whether to receive volume keying by monitoring under being in broadcast state in current player
Triggering command processed, when receiving volume key control triggering command, i.e., the volume control information of volume key is converted into and currently broadcast
The broadcasting control information of the fast forward and fast reverse of device is put, so as to by controlling volume key to realize the quantitative fast forward and fast reverse of player
Control, and directly by controlling volume key control fast forwarding and fast rewinding when, it need not to solve during playing audio-video after lock screen again
Carry out fast forwarding and fast rewinding operation so that it is easy to operate, solve existing player and not enough accurately asked in fast forwarding and fast rewinding control process
Topic.
Fig. 2 is refer to, the flow chart of the player fast forwarding and fast rewinding control method provided in the second embodiment of the present invention, its
In, this method includes:
Step S111, in the case where any current player of the intelligent terminal is in broadcast state, monitors whether deposit in real time
In volume key control triggering command;
Wherein, when listening to volume key control triggering command, then step S112 is performed.
It is pointed out that monitoring the step of whether there is volume key control triggering command in real time includes:
The volume control information for whether receiving two volume keys while input is monitored in real time;
If so, then judging whether the duration of the volume control information of input is more than preset time.
Wherein, in the present embodiment, the trigger event of volume key control triggering command is two volume keys of long-press simultaneously, and
It is more than preset time when the duration of two volume keys of long-press.Now preset time can carry out sets itself according to demand,
Can be 3 seconds in the present embodiment, now after being more than 3 seconds the duration for getting two volume keys of long-press, i.e., when lasting
When the volume control information of two volume key inputs is all received in the time more than 3 seconds, volume key control triggering command is triggered,
The fast forward and fast reverse playback that the volume control of volume key is now converted into player controls.
It is pointed out that the volume key control triggering command can be other, in other embodiments of the invention, its
Can be the control for a rearrangeable switch being arranged on by system software in the operating system of intelligent terminal, such as
One (volume/speed) shift knob is set in the drop-down menu in android operating systems, when opening the shift knob, i.e.,
Volume key is under fast forwarding and fast rewinding state of a control, now in current player during playing audio-video document, by pressing volume
Key is the operation that fast forward and fast reverse can be achieved;When closing the shift knob, i.e., volume key is under volume control states, now
In current player during playing audio-video document, the operation of volume control can be achieved by pressing volume key.
In other embodiments of the invention, its volume key control triggering command can also be persistently to be obtained in preset time
Get the first volume key (volume key+), the second volume key (volume key -), the first volume key (volume key+) and the second volume key
The volume control information of (volume key -) input, its preset time can be set according to demand, such as its preset time is 5
Second, then pressed successively within 5 second time volume key+, volume key-, volume key+and volume key-when triggering volume key control touch
Send instructions, the now volume control of volume key is converted into the fast forward and fast reverse control of player.Wherein, volume key control triggering refers to
Making to preset multiple different default input information, its default different input information can be set according to user's request,
It can also be press successively volume key-, volume key+, volume key-and volume key+etc. various operations.
Step S112, the volume control information of any volume key input got is converted into broadcasting control letter
Breath, so that the audio-video document currently playing to the current player carries out corresponding fast forward and fast reverse control;
Wherein, when listen to current player be under broadcast state receive volume key control triggering command when, now
The volume control information of volume key is converted into the broadcasting control information of the fast forward and fast reverse of current player.
Step S113, obtains the volume control information of any volume key input, and obtains the currently playing sound
The currently playing duration information of video file and total playing duration information;
Wherein, now monitor and obtain the volume control information of any volume key input, and the volume of volume key is controlled
Information is converted into the broadcasting control information of the fast forward and fast reverse of current player, and obtains the currently playing sound of current player and regard
The currently playing duration information of frequency file and total playing duration information, that is, determine that the current of currently playing audio-video document is broadcast
Position is put, and plays total duration.
Step S114, the smallest offset of the currently playing audio-video document is determined according to total playing duration information
Duration;
Wherein, when can determine the smallest offset of currently playing audio-video document according to the broadcasting total duration determined
It is long, it is in the present embodiment, long about 4 minutes at that time for example, when current audio-video document be song, now according to it is total when
Length is determined during smallest offset a length of 5 seconds, and when current audio-video document is video film, long at that time is about 2 hours, now
A length of 1 minute when determining smallest offset according to total duration, wherein smallest offset duration many experiments can be determined according to
The minimum time of the response for the fast forwarding and fast rewinding that user can receive for the audio-video document of different durations.
In other embodiments of the invention, the smallest offset duration can also according to user's sets itself, for example,
One (volume/speed) shift knob is set in the drop-down menu in android operating systems, should when opening the shift knob
The lower section of shift knob can eject a removable slide block assembly, and user can set the smallest offset by dragging the movement sliding block
Duration, such as when user dragged the movement sliding block by 30 seconds, user during playing audio-video document, passes through under current player
When control volume key is to realize fast forwarding and fast rewinding operation, often presses player before a volume key control is deserved and realize fast forward and fast reverse
The operation of 30 seconds.
Step S115, according to the broadcasting control information after conversion, the currently playing duration information and it is described most
Small shift durations determine the target play position that the currently playing audio-video document need to be adjusted, and control and described currently broadcast
Put device and jump to the target play position;
Wherein, the smallest offset duration of currently playing audio-video document is determined according to broadcasting total duration, it is currently playing
The volume control information of position and volume key input can determine the target that currently playing audio-video document need to be adjusted
Play position, and control current player to jump to the target play position.For example, audio-video document is video electricity before playing
During shadow, long at that time is about 2 hours, now according to total duration determine during smallest offset it is a length of 1 minute, get current broadcast
Duration information is put as 35 minutes, when the volume control information of the volume key input now received is fast inlet signal (volume key+),
Now control player jumps to the 36th minute position of the audio-video document and carries out normal play, it is achieved thereby that volume key
Control the operation of player fast forward and fast reverse.
Step S116, monitor exit triggering command with the presence or absence of volume key control in real time;
Wherein, when listening to volume key and exiting triggering command, then step S117 is performed.
Wherein, now can be in the aobvious of intelligent terminal when user is needing to carry out the regulation of volume on current player
The control of volume is carried out in display screen.Or when needing to be controlled by volume key, now need to exit current volume keying
The control of player fast forwarding and fast rewinding processed is, it is necessary to which the fast forward and fast reverse from volume key control current player is converted into control volume.
Triggering volume key control is now needed to exit triggering command, it is therefore desirable to monitor exit triggering with the presence or absence of volume key control in real time
Instruction.In the present embodiment, the volume key control exits triggering command and is alternatively volume key control triggering command, i.e., when user exists
During the current normal play audio-video document of current player, after continuing two volume keys of long-press more than 3 seconds, volume keying is entered
The pattern of the fast forward and fast reverse of player processed, fast forward and fast reverse of the volume key for control current player is pressed in this mode,
When in this mode, after user continued two volume keys of long-press more than 3 seconds, normal condition is reverted to, now by pressing volume
Key control volume.Wherein in other embodiments of the invention, it can also be the drop-down dish in android operating systems
One (volume/speed) shift knob is set in list, and when closing the shift knob, as triggering volume key control exits triggering and referred to
Order, now in current player during playing audio-video document, the operation of volume control can be achieved by pressing volume key.
Step S117, corresponding volume is controlled to adjust according to the volume control information of any volume key input got
Section;
Wherein, when listen to current player be in receive volume key control under broadcast state and exit triggering command when,
The play operation of the fast forwarding and fast rewinding by volume key control current player is exited, then is changed into controlling the operation of volume adjusting.
Fig. 3 is refer to, is a kind of structure of the player fast forwarding and fast rewinding control system provided in one embodiment of the invention
Block diagram, the system 100 are applied to intelligent terminal, wherein, at least provided with two volume keys, the system on the intelligent terminal
100 include:
First judge module 101, under being in broadcast state in any current player of the intelligent terminal, in real time
Monitoring whether there is volume key control triggering command.
Conversion module 102, for determining to listen to the volume key control triggering command when first judge module 101
When, the volume control information of any volume key input got is converted into broadcasting control information, so as to work as to described
The currently playing audio-video document of preceding player carries out corresponding fast forward and fast reverse control.
First control module 103, for obtaining the volume control information of any volume key input, and according to conversion after
The broadcasting control information audio-video document currently playing to the current player carry out corresponding fast forward and fast reverse control
System.
Fig. 4 is refer to, is a kind of knot of the player fast forwarding and fast rewinding control system provided in another embodiment of the present invention
Structure block diagram, the system 110 are applied to intelligent terminal, wherein, at least provided with two volume keys, the system on the intelligent terminal
110 include:
First judge module 111, under being in broadcast state in any current player of the intelligent terminal, in real time
Monitoring whether there is volume key control triggering command.
Conversion module 112, for determining to listen to the volume key control triggering command when first judge module 111
When, the volume control information of any volume key input got is converted into broadcasting control information, so as to work as to described
The currently playing audio-video document of preceding player carries out corresponding fast forward and fast reverse control.
First control module 113, for obtaining the volume control information of any volume key input, and according to conversion after
The broadcasting control information audio-video document currently playing to the current player carry out corresponding fast forward and fast reverse control
System.
Second judge module 114, triggering command is exited with the presence or absence of volume key control for monitoring in real time.
Second control module 115, for determining that listening to the volume key control exits when second judge module 113
During triggering command, corresponding volume adjusting is controlled according to the volume control information of any volume key input got.
Wherein, first judge module 111 includes:
First judging unit 1111, the volume control of two volume key inputs whether is received for monitoring in real time
Information;
Second judging unit 1112, for determining that to receive two volume keys defeated when first judging unit 1111
During the volume control information entered, judge whether the duration of the volume control information of input is more than preset time.
Wherein, first control module 113 includes:
Acquiring unit 1131, for obtaining the currently playing duration information of the currently playing audio-video document and total
Playing duration information;
Determining unit 1132, total playing duration information for being obtained according to the acquiring unit 1131 determine current
The smallest offset duration of the audio-video document played;
Control unit 1133, for according to the broadcasting control information, the currently playing duration information and it is described most
Small shift durations determine the target play position that the currently playing audio-video document need to be adjusted, and control and described currently broadcast
Put device and jump to the target play position.
The technical characteristic and technique effect for the player fast forwarding and fast rewinding control system that the embodiment of the present invention proposes and the present invention
The method that embodiment proposes is identical, will not be described here.
The embodiment of the present invention additionally provides a kind of storage medium, is stored thereon with application program, and the program is held by processor
The step of any one method in above-described embodiment 1 and 2 is realized during row.
The embodiment of the present invention additionally provides a kind of intelligent terminal, including memory, processor and storage are on a memory
And the application program that can be run on a processor, realize during the computing device described program in above-described embodiment 1 and 2 and appoint
The step of method of anticipating.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.
The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more
Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.