CN106714035B - Volume adjusting method, device and terminal - Google Patents
Volume adjusting method, device and terminal Download PDFInfo
- Publication number
- CN106714035B CN106714035B CN201611155174.0A CN201611155174A CN106714035B CN 106714035 B CN106714035 B CN 106714035B CN 201611155174 A CN201611155174 A CN 201611155174A CN 106714035 B CN106714035 B CN 106714035B
- Authority
- CN
- China
- Prior art keywords
- volume adjustment
- adjustment request
- sent
- time
- volume
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
Abstract
The embodiment of the invention discloses a kind of volume adjusting methods, applied to field of terminal technology, this method comprises: when detecting the operation for stopping volume adjustment, generate time label and volume adjustment request, and bind time label and volume adjustment request, it is the time label generated by time flag update preset in system, compare the bound time label of volume adjustment request to be sent mark whether with the time updated in system it is identical, if they are the same, then the volume adjustment request to be sent is sent.The embodiment of the invention also discloses a kind of volume adjustment device and terminal, can be improved to the accuracy for playing end volume control.
Description
Technical field
The invention belongs to field of terminal technology more particularly to a kind of volume adjusting methods, device and terminal.
Background technique
In the intelligent radio epoch of today, many smart machines can carry out information by being connected to the network together
Transmitting and control.In the practical application of multimedia striding equipment control, there is kind of usage scenario very common, that is, across setting
The volume of standby control player.That is a hand-held control terminal (such as mobile phone) sends volume control instruction to player end (such as intelligence
Wireless sound box), then player end adjusts volume according to the control instruction.
In the prior art, when the volume adjustment of striding equipment, for example, the broadcasting sound of mobile phone terminal slider bar control wireless sound box
Amount, needs volume real-time synchronization numerical value being accurate to 1, and can support quickly repeatedly to be adjusted in user's short time.?
Control terminal slider bar numerical value change sends new volume value to broadcasting end when being more than or equal to 1, meanwhile, in the hand for detecting user
Refer to that confirmation user stops adjusting volume operation when frameing out, then waits 2 seconds request messages sent to broadcasting end volume, etc.
To the reason of be because message number it is very more, message, which comes into force, needs the time.It is may create the problem that at this time when user's short time
Interior multiple finger frames out, then starts again at adjusting control volume in adjustment region rapidly, waits multiple requests in 2 seconds before
Message is persistently sent, cause play end can not accurate synchronization adjust volume, to the phenomenon that volume slider bounce, i.e. sound occur
The position of the volume value of case and at that time slider bar does not correspond to, and makes troubles to user's operation.
Summary of the invention
The present invention provides a kind of volume adjusting method, device and terminal, to by for volume adjustment request setting it is unique
Time label, and by the time label confirm the validity volume adjustment request, thus solve play end can not accurate synchronization
The problem of control terminal volume adjustment.
First aspect of the embodiment of the present invention provides a kind of volume adjusting method, comprising:
When detecting the operation for stopping volume adjustment, time label and volume adjustment request are generated, and described in binding
Time label and volume adjustment request;
It is the time label generated by time flag update preset in system;
The bound time label of volume adjustment request to be sent is compared to mark whether with the time updated in system
It is identical, if they are the same, then send the volume adjustment request to be sent.
Second aspect of the embodiment of the present invention provides a kind of volume adjustment device, comprising:
Generation module is asked for when detecting the operation for stopping volume adjustment, generating time label and volume adjustment
It asks, and binds the time label and volume adjustment request;
Update module, for being to mark the time generated by time flag update preset in system;
Contrast module, for compare the bound time label of volume adjustment request to be sent with it is updated in system
Time marks whether identical;
Sending module, if after being updated in the time label and system bound for the volume adjustment request to be sent
Time label it is identical, then send the volume adjustment request to be sent.
The third aspect of the embodiment of the present invention provides a kind of terminal, which is characterized in that the terminal includes:
Memory and processor;
The memory is stored with executable program code;
The processor coupled with the memory calls the executable program generation stored in the memory
Code executes the volume adjusting method provided such as first aspect of the embodiment of the present invention.
From the embodiments of the present invention it is found that volume adjusting method provided by the invention, device and terminal, whenever detecting
Stop the operation of volume adjustment, just generates a time label and volume adjustment corresponding with time label is requested, and according to
The information of time label in the time flag update system, before sending volume adjustment request, by comparing the volume tune
It is identical that section requests corresponding time label to mark whether with the updated time recorded in system, if so, indicating the volume
The corresponding request of last time operation that request is off volume adjustment is adjusted, volume adjustment request is sent to and plays end,
By the way that unique time label is arranged for volume adjustment request, and the effective volume adjustment of confirmation user is marked to grasp by the time
Make, to exclude the volume adjustment request of other invalid operations generation, improves to the accuracy for playing end volume adjustment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention.
Fig. 1 is the application scenarios schematic diagram of adjustment volume adjusting method provided in an embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram for the volume adjusting method that first embodiment of the invention provides;
Fig. 3 is the implementation process schematic diagram for the volume adjusting method that second embodiment of the invention provides;
Fig. 4 is the structural schematic diagram for the volume adjustment device that third embodiment of the invention provides;
Fig. 5 is the structural representation for the volume adjustment device that fourth embodiment of the invention provides;
Fig. 6 shows a kind of terminal hardware structure chart.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to Figure 1, Fig. 1 is the application scenario diagram of volume adjusting method provided in an embodiment of the present invention, the volume adjustment
Method can be applied to have in the terminal 10 of touch screen, and terminal 10 can be described as control terminal, and terminal 10 includes smart phone, plate electricity
The intelligent and portables equipment such as brain also includes PC machine, smart television etc. in the intelligent non-portable device of touch screen.Playing end 20 is
Have each Terminal Type of playing function, such as speaker.Terminal 10 is connect with end 20 is played by wired or wireless way.In Fig. 1
Be mobile phone with terminal 10, play end 20 be speaker, for mobile phone and speaker wirelessly connect.
Terminal 10 receives the gesture instruction of user by volume adjustment interface, adjusts the broadcast sound volume for playing end 20.Generally
There is volume slider in the volume adjustment interface, user carries out preset operation by finger in the volume slider,
Manipulation plays the variation of the volume at end 20, which is usually to increase and decrease direction according to the volume indicated in the volume slider
Carry out corresponding operation.
Specifically refer to the specific descriptions of following embodiments.
Referring to Fig. 2, Fig. 2 is the implementation process schematic diagram for the volume adjusting method that first embodiment of the invention provides, it should
Method can be applied to have in the terminal of touch screen, mainly comprise the steps that
S201, when detecting the operation for stopping volume adjustment, generate time label and volume adjustment request, and bind
Time label and volume adjustment request;
When terminal detects the operation for stopping volume adjustment, the time label of current time is generated, and generating time mark
While note, volume adjustment request is generated, volume adjustment request plays end for request and adjusts volume, specifically according to stop tone
It measures the volume value when operation adjusted and adjusts volume.
It S202, is to mark time flag update preset in system the time generated;
Preset time label, time label indicate a unique time point in systems.By this in system
Preset time label, is updated to the time generated label, that is, the time point that the preset time marks is updated to when detecting
Stop the time point when operation of volume adjustment.
It is every time to mark the time being newly generated by the preset time flag update.
The bound time label of S203, comparison volume adjustment request to be sent is marked with the time updated in system
It is whether identical, if they are the same, then send the volume adjustment request to be sent.
When needing to send volume adjustment request, the bound time label of the current volume adjustment request to be sent of comparison
Mark whether with the time updated in system it is identical, if they are the same, then it represents that bound in current volume adjustment request to be sent
Time label be the time label updated for the last time in system, which is that user finally adjusts
The request of volume is saved, to exclude other invalidation requests, then volume adjustment request to be sent is sent to broadcasting end, so that should
It plays end broadcast sound volume is adjusted according to the volume adjustment request to be sent, avoids the broadcasting end excessive invalid because receiving
The request of volume is adjusted, and the phenomenon that the volume slider bounce of generation.
In the embodiment of the present invention, whenever detecting the operation for stopping volume adjustment, just generate time label and with this
Time marks corresponding volume adjustment request, and according to the information of the time label in the time flag update system, is sending
Before volume adjustment request, by compare that the volume adjustment requests to record in corresponding time label and system it is updated when
Between mark whether it is identical, if so, indicating that volume adjustment request is off the last time operation of volume adjustment and corresponding asks
It asks, volume adjustment request is sent to and plays end, when unique time label being set by requesting for volume adjustment, and being passed through
Between label confirmation user effective volume adjustment operation improved to exclude the volume adjustment request of other invalid operations generation
To the precision for playing end volume adjustment.
Referring to Fig. 3, Fig. 3 is the implementation process schematic diagram for the volume adjusting method that second embodiment of the invention provides, this
In embodiment, the time is labeled as timestamp, and timestamp is a character string, uniquely identifies the time at certain a moment, this method
The following steps are included:
Whether S301, the finger for detecting user leave Touch Screen, alternatively, the finger of user is in Touch Screen sliding process
In whether leave the region that can be detected of control sliding block;
It determines whether user stops the operation of volume adjustment by judging the gesture of user, specifically, can be detection
Whether the finger of user leaves Touch Screen, leaves Touch Screen then and indicates that user stops at and carries out any operation on touch screen,
It can be detected alternatively, whether the finger for being also possible to detection user leaves control sliding block on Touch Screen in sliding process
The region arrived, the control sliding block are the modules for controlling volume adjustment, the corresponding control for being shown as adjusting volume on touch screen
Slider bar processed, the region which can be detected on touch screen are the control slider bar regions.
If S302, detecting that the finger of user leaves Touch Screen, alternatively, the finger of user is in Touch Screen sliding process
In leave the region that can be detected of control sliding block, generate timestamp and volume adjustment request, and bind the timestamp
And volume adjustment request;
If detecting, the finger of user leaves Touch Screen, alternatively, user's finger is left in Touch Screen sliding process
The region that control sliding block can be detected, that is, the region where the upper control slider bar that frames out confirms user at this time
The operation for stopping volume adjustment then generating timestamp and volume adjustment request, and volume adjustment request, which is used to indicate, plays end
Specified file is played according to the volume that active user is adjusted.
Further, the timestamp and volume adjustment request are bound, that is, record the timestamp and the volume adjustment
The one-to-one relationship of request.
S303, it is sent after volume adjustment request is set to wait for preset time period;
After generating volume adjustment request, it is set to send after waiting preset time period, so that the volume can be passed through
The timestamp of request is adjusted to determine whether sending a volume adjustment request.
S304, the value of the timestamp of generation is assigned to timestamp preset in the system;
A timestamp is preset in the system of terminal, timestamp is a character string, is uniquely identified a certain
The value of the time at quarter, the timestamp can be modified.
If finger frequently leaves Touch Screen or leaves the control slider bar region user in a short time, in short-term
It is interior to generate multiple timestamps and volume adjustment request, the value of the timestamp generated every time is assigned to preset in the system
Timestamp, so that the value of timestamp preset in the system is continuously updated, a last assignment is user's last time
Stop the value of the corresponding timestamp of operation of volume adjustment.
The execution sequence of step S303 and S304 are not limited by the present embodiment, can also first carry out S304, rear to execute
S303 or this two steps are performed simultaneously.
The quantity that S305, the current volume adjustment to be sent of detection are requested;
If the quantity of current volume adjustment request to be sent be it is multiple, then follow the steps S306, it is pending by comparing
It is identical that the volume adjustment sent requests bound timestamp to mark whether with the updated time, to determine whether to send one
Volume adjustment request.
If the quantity of current volume adjustment request to be sent is one, S307 is thened follow the steps, is not compared to be sent
Volume adjustment request bound timestamp and updated timestamp, but directly transmit the volume adjustment to be sent and ask
It asks.Because volume adjustment to be sent requests only one, the dysregulation that will not cause control terminal is directly transmitted.It can simplify
Volume adjustment process.
Whether S306, the comparison bound timestamp of volume adjustment request to be sent and updated timestamp are identical;
Updated current timestamp is requested in corresponding timestamp and system to carry out pair volume adjustment to be sent
Than seeing whether the two is identical.That is, it is judged that whether my user's last time stops volume adjustment for the volume adjustment request to be sent
Adjusting request when operation.
If they are the same, S307 is thened follow the steps;If not identical, the volume adjustment request to be sent is not sent.
S307, the volume adjustment request to be sent is sent.
If the quantity of current volume adjustment request to be sent is one, show that the volume adjustment request to be sent is
User currently stops adjusting request when volume adjustment operation.
Alternatively,
If the quantity of current volume adjustment request to be sent is that multiple also, to be sent volume adjustment requests is tied up
Fixed timestamp is identical as updated timestamp, then shows that the volume adjustment request to be sent is that user's last time stops
Adjusting request when volume adjustment operates sends volume adjustment request to be sent, if the two is not identical, do not send this to
The volume adjustment of transmission is requested.
In the embodiment of the present invention, whenever detecting the operation for stopping volume adjustment, just generate time label and with this
Time marks corresponding volume adjustment request, and according to the information of the time label in the time flag update system, is sending
Before volume adjustment request, by compare that the volume adjustment requests to record in corresponding time label and system it is updated when
Between mark whether it is identical, if so, indicating that volume adjustment request is off the last time operation of volume adjustment and corresponding asks
It asks, volume adjustment request is sent to and plays end, when unique time label being set by requesting for volume adjustment, and being passed through
Between label confirmation user effective volume adjustment operation improved to exclude the volume adjustment request of other invalid operations generation
To the precision for playing end volume adjustment.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram for the volume adjustment device that third embodiment of the invention provides, in order to just
In explanation, only parts related to embodiments of the present invention are shown.The exemplary volume adjustment device of Fig. 4 can be 2 He of earlier figures
The executing subject for the volume adjusting method that embodiment illustrated in fig. 3 provides.The device can be terminal or a module of terminal.Figure
4 exemplary volume adjustment devices specifically include that generation module 401, update module 402, contrast module 403 and sending module
404.Detailed description are as follows for above each functional module:
Wherein, generation module 401, for when detecting the operation for stopping volume adjustment, generating time label and sound
Amount adjusts request, and binds time label and volume adjustment request;
While generating time label, volume adjustment request is generated, volume adjustment request plays end tune for requesting
Save volume, specifically according to stop volume adjustment operation when volume value adjust volume.
Update module 402, for being to mark the time generated by time flag update preset in system;
Preset time label, time label indicate a unique time point in systems.By this in system
Preset time label, is updated to the time generated label, that is, the time point that the preset time marks is updated to when detecting
Stop the time point when operation of volume adjustment.
Contrast module 403, for comparing the bound time label of volume adjustment request to be sent and being updated in system
Time afterwards marks whether identical;
Sending module 404, if the time bound in the volume adjustment request to be sent for this marks and updates in system
Time label afterwards is identical, then sends the volume adjustment request to be sent.
When needing to send volume adjustment request, contrast module 403 compares current volume adjustment request to be sent and is tied up
Fixed time label mark whether with the time updated in system it is identical, if they are the same, then it represents that volume tune currently to be sent
The bound time label of section request is the time label updated for the last time in system, the volume adjustment request to be sent
It is the request that user finally adjusts volume, to exclude other invalidation requests, then to send this pending to end is played for sending module 404
The volume adjustment request sent is kept away so that the broadcasting end is adjusted broadcast sound volume according to the volume adjustment request to be sent
Exempt from the broadcasting end because receiving the excessive invalid request for adjusting volume, and the phenomenon that the volume slider bounce of generation.
The details of the present embodiment not to the greatest extent, please refers to the description of earlier figures 2 and embodiment illustrated in fig. 3, details are not described herein again.
It should be noted that the division of each functional module is only in the embodiment of the exemplary volume adjustment device of figure 4 above
Be for example, can according to need in practical application, such as corresponding hardware configuration requirement or software realization convenience
Consider, and above-mentioned function distribution is completed by different functional modules, i.e., is divided into the internal structure of volume adjustment device not
Same functional module, to complete all or part of the functions described above.Moreover, the phase in practical application, in the present embodiment
The functional module answered can be by corresponding hardware realization, can also execute corresponding software by corresponding hardware and complete.This theory
Each embodiment that bright book provides can all apply foregoing description principle, repeat no more below.
In the embodiment of the present invention, whenever detecting the operation for stopping volume adjustment, just generate time label and with this
Time marks corresponding volume adjustment request, and according to the information of the time label in the time flag update system, is sending
Before volume adjustment request, by compare that the volume adjustment requests to record in corresponding time label and system it is updated when
Between mark whether it is identical, if so, indicating that volume adjustment request is off the last time operation of volume adjustment and corresponding asks
It asks, volume adjustment request is sent to and plays end, when unique time label being set by requesting for volume adjustment, and being passed through
Between label confirmation user effective volume adjustment operation improved to exclude the volume adjustment request of other invalid operations generation
To the precision for playing end volume adjustment.
Referring to Fig. 5, the structural schematic diagram for the volume adjustment device that fourth embodiment of the invention provides, for the ease of saying
Bright, only parts related to embodiments of the present invention are shown.The exemplary volume adjustment device of Fig. 5 can be earlier figures 2 and Fig. 3 institute
Show the executing subject for the volume adjusting method that embodiment provides.The device can be terminal or a module of terminal.Fig. 5 example
Volume adjustment device, essentially consisted in the difference of the device in embodiment illustrated in fig. 4:
Further, generation module 401 further include:
Detection sub-module 4011, whether the finger for detecting user leaves Touch Screen, alternatively, the finger of user is touching
Whether region that control sliding block can be detected is left in control screen sliding process;
It determines whether user stops the operation of volume adjustment by judging the gesture of user, specifically, can be detection
Whether the finger of user leaves Touch Screen, leaves Touch Screen then and indicates that user stops at and carries out any operation on touch screen,
It can be detected alternatively, whether the finger for being also possible to detection user leaves control sliding block on Touch Screen in sliding process
The region arrived, the control sliding block are the modules for controlling volume adjustment, the corresponding control for being shown as adjusting volume on touch screen
Slider bar processed, the region which can be detected on touch screen are the control slider bar regions.
Submodule 4012 is generated, if for detecting that the finger of user leaves Touch Screen, alternatively, the finger of user is touching
The region that control sliding block can be detected is left in control screen sliding process, generates time label and volume adjustment is asked
It asks.
The time is labeled as timestamp.
Update module 402 is also used to the value of the timestamp generated being assigned to timestamp preset in the system.
The value of the timestamp generated every time is assigned to timestamp preset in the system, so that when preset in the system
Between the value stabbed be continuously updated, a last assignment is the operation corresponding time that user's last time stops volume adjustment
The value of stamp.
The device may further comprise:
Setup module 501, for being sent after volume adjustment request is set to wait for preset time period.
Detection module 502, for detecting the quantity of current volume adjustment request to be sent.
Further, contrast module 403, if the quantity for being also used to current volume adjustment request to be sent be it is multiple,
Compare the bound time label of volume adjustment request to be sent mark whether with the updated time it is identical.
It is pending to send this if the quantity for being also used to current volume adjustment request to be sent is one for sending module 404
The volume adjustment request sent.
The details of the present embodiment not to the greatest extent, please refers to the description of earlier figures 2 to embodiment illustrated in fig. 4, details are not described herein again.
In the embodiment of the present invention, whenever detecting the operation for stopping volume adjustment, just generate time label and with this
Time marks corresponding volume adjustment request, and according to the information of the time label in the time flag update system, is sending
Before volume adjustment request, by compare that the volume adjustment requests to record in corresponding time label and system it is updated when
Between mark whether it is identical, if so, indicating that volume adjustment request is off the last time operation of volume adjustment and corresponding asks
It asks, volume adjustment request is sent to and plays end, when unique time label being set by requesting for volume adjustment, and being passed through
Between label confirmation user effective volume adjustment operation improved to exclude the volume adjustment request of other invalid operations generation
To the precision for playing end volume adjustment.
Referring to Fig. 6, Fig. 6 is the terminal structure schematic diagram provided in an embodiment of the present invention for executing volume adjusting method.
Terminal as described in this embodiment, comprising:
At least one input equipment 61;At least one output equipment 62;At least one processor 63, such as central processing
Device;And memory 64.
Above-mentioned input equipment 61, output equipment 62, processor 63 and memory 64 are connected by bus 65.
Wherein, input equipment 61 concretely camera, touch panel, physical button or mouse etc..Output equipment
62 concretely display screens.
Memory 64 can be high random access memory body (RAM, Random Access Memory) memory, can also
For non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 64 can for storing one group
Program code is executed, processor 63 is coupled with memory 64, and above-mentioned input equipment 61, output equipment 62 and processor 63 are for adjusting
With the executable program code stored in memory 64, perform the following operations:
The code is executed by processor 63, executes the volume adjustment side as described in earlier figures 2 and embodiment illustrated in fig. 3
Method.
Specifically, that is, it executes when detecting the operation for stopping volume adjustment, generates time label and volume adjustment is asked
It asks, and binds the time label and volume adjustment request;It is to generate by time flag update preset in system
The time label;The bound time label of volume adjustment request to be sent is compared to mark with the time updated in system
It is whether identical, if they are the same, then send the volume adjustment request to be sent.
In multiple embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling or direct-coupling or communication linkage can be through some interfaces, the INDIRECT COUPLING or logical of device or module
Letter link can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple
On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The 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 words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.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 or disk etc. are various can store journey
The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The above are the descriptions to volume adjusting method provided by the present invention, device and terminal, for the general of this field
Technical staff, thought according to an embodiment of the present invention, there will be changes in the specific implementation manner and application range, comprehensive
On, the contents of this specification are not to be construed as limiting the invention.
Claims (11)
1. a kind of volume adjusting method, which is characterized in that the described method includes:
When detecting the operation for stopping volume adjustment, time label and volume adjustment request are generated, and bind the time
Label and volume adjustment request, when the volume adjustment request is for requesting to play operation of the end according to volume adjustment
Volume value adjusts volume;
It is the time label generated by time flag update preset in system;
Compare the bound time label of volume adjustment request to be sent mark whether with the time updated in system it is identical,
If they are the same, then the volume adjustment request to be sent is sent.
2. the method according to claim 1, wherein described when detecting the operation for stopping volume adjustment, life
Include: at time label and volume adjustment request
Detection user finger whether leave Touch Screen, alternatively, the finger of user in Touch Screen sliding process whether from
Open the region that control sliding block can be detected;
If detecting, the finger of user leaves Touch Screen, alternatively, the finger of user leaves control in Touch Screen sliding process
The region that sliding block processed can be detected generates time label and volume adjustment request.
3. method according to claim 1 or 2, which is characterized in that the time is labeled as timestamp, then will be pre- in system
The time flag update set is that the time label generated includes:
The value of the timestamp of generation is assigned to timestamp preset in the system.
4. according to the method described in claim 3, it is characterized in that, the binding time label and the volume adjustment
After request further include:
It is sent after volume adjustment request is set to wait for preset time period.
5. the method according to claim 1, wherein described compare bound in volume adjustment request to be sent
Time label mark whether with the updated time it is identical, before further include:
The quantity of the current volume adjustment request to be sent of detection;
If the quantity of current volume adjustment request to be sent be it is multiple, execute and compare volume adjustment request to be sent and tied up
Fixed time label marks whether identical step with the updated time;
If the quantity of current volume adjustment request to be sent is one, executes and send the volume adjustment request to be sent
The step of.
6. a kind of volume adjustment device, which is characterized in that described device includes:
Generation module, for when detecting the operation for stopping volume adjustment, generating time label and volume adjustment request, and
The time label and volume adjustment request are bound, the volume adjustment request is for requesting to play end according to volume tune
The volume value when operation of section adjusts volume;
Update module, for being to mark the time generated by time flag update preset in system;
Contrast module, for comparing the bound time label of volume adjustment request to be sent and updated time in system
Mark whether identical;
Sending module, if when updated in the time label and system bound for the volume adjustment request to be sent
Between mark identical, then send the volume adjustment request to be sent.
7. device according to claim 6, which is characterized in that the generation module further include:
Whether detection sub-module, the finger for detecting user leave Touch Screen, alternatively, the finger of user is sliding in Touch Screen
The dynamic region whether leaving control sliding block in the process and can be detected;
Submodule is generated, if for detecting that the finger of user leaves Touch Screen, alternatively, the finger of user is sliding in Touch Screen
The region that control sliding block can be detected is left during dynamic, generates time label and volume adjustment request.
8. device according to claim 6 or 7, which is characterized in that the time is labeled as timestamp, then the update mould
Block is also used to the value of the timestamp generated being assigned to timestamp preset in the system.
9. device according to claim 8, which is characterized in that described device further include:
Setup module, for being sent after volume adjustment request is set to wait for preset time period.
10. device according to claim 9, which is characterized in that described device further include:
Detection module, for detecting the quantity of current volume adjustment request to be sent;
The contrast module, if the quantity for being also used to current volume adjustment request to be sent be it is multiple, compare to be sent
The bound time label of volume adjustment request marks whether identical with the updated time;
The sending module is sent described pending if the quantity for being also used to current volume adjustment request to be sent is one
The volume adjustment request sent.
11. a kind of terminal, which is characterized in that the terminal includes:
Memory and processor;
The memory is stored with executable program code;
The processor coupled with the memory calls the executable program code stored in the memory, holds
It goes such as claim 1 to the described in any item volume adjusting methods of claim 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611155174.0A CN106714035B (en) | 2016-12-14 | 2016-12-14 | Volume adjusting method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611155174.0A CN106714035B (en) | 2016-12-14 | 2016-12-14 | Volume adjusting method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106714035A CN106714035A (en) | 2017-05-24 |
CN106714035B true CN106714035B (en) | 2019-09-17 |
Family
ID=58937691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611155174.0A Active CN106714035B (en) | 2016-12-14 | 2016-12-14 | Volume adjusting method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106714035B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478657B (en) * | 2008-11-10 | 2011-06-08 | 华亚微电子(上海)有限公司 | Volume control method and apparatus, television receiving apparatus |
CN101668042A (en) * | 2009-09-10 | 2010-03-10 | 深圳市同洲电子股份有限公司 | Method and device for updating local page of embedded communication system |
CN103326929B (en) * | 2013-06-24 | 2017-02-08 | 小米科技有限责任公司 | Method and device for transmitting messages |
CN104519081A (en) * | 2013-09-27 | 2015-04-15 | 阿里巴巴集团控股有限公司 | Page access method and device |
CN103546616A (en) * | 2013-09-30 | 2014-01-29 | 深圳市同洲电子股份有限公司 | Volume adjusting method and device |
CN106101776B (en) * | 2016-07-13 | 2019-09-06 | Oppo广东移动通信有限公司 | Method, smart machine and the speaker of volume adjustment |
-
2016
- 2016-12-14 CN CN201611155174.0A patent/CN106714035B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106714035A (en) | 2017-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10381047B2 (en) | Method, device, and system of synchronously playing media file | |
CN109496419A (en) | Document handling method, device and system | |
US20180213077A1 (en) | Method and apparatus for controlling smart device, and computer storage medium | |
CN102821150B (en) | Based on application management method and the Cloud Server of cloud service | |
CN102419900A (en) | Remote control realizing method and device of electrical equipment | |
CN103647756A (en) | Advertisement broadcasting method, server, client and system | |
CN112882850B (en) | Key event processing method, device, equipment and storage medium | |
CN106502808A (en) | A kind of method of copied files, device and terminal | |
CN106101809A (en) | A kind of in third party's player interpolation method of control, device and terminal | |
CN106161656B (en) | Interface jumping method and device | |
CN106302093B (en) | Communication method, system and server | |
CN106714035B (en) | Volume adjusting method, device and terminal | |
CN106878927B (en) | Multifunctional Bluetooth equipment and attaching method thereof | |
CN105009557A (en) | Display and manipulate call forwarding on no reply timer in called terminal | |
CN103647755A (en) | Advertisement broadcasting method, server, client and system | |
CN103813194A (en) | Information processing method and electronic device | |
CN106850953B (en) | Volume adjusting method, device and terminal | |
CN104284221A (en) | Information processing method, wearable device and digital television device | |
CN104699240A (en) | Control method and electronic equipment | |
CN104581352B (en) | The method and system of fast positioning in a kind of TV box | |
CN105357243B (en) | A kind of method and apparatus with internet of things equipment remote interaction | |
CN104954538B (en) | A kind of information processing method and electronic equipment | |
CN108108105B (en) | Information processing equipment and information processing method | |
CN109246554B (en) | Terminal and regulation and control method of vibrator thereof | |
US20170193632A1 (en) | Media file processing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |