CN107911544A - The method for controlling volume and device of a kind of mobile terminal - Google Patents
The method for controlling volume and device of a kind of mobile terminal Download PDFInfo
- Publication number
- CN107911544A CN107911544A CN201711113208.4A CN201711113208A CN107911544A CN 107911544 A CN107911544 A CN 107911544A CN 201711113208 A CN201711113208 A CN 201711113208A CN 107911544 A CN107911544 A CN 107911544A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- volume
- user
- sleep state
- testing result
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The application is suitable for technical field, there is provided the method for controlling volume and device of a kind of mobile terminal, including:During mobile terminal exports multimedia code stream, the testing result of the mobile terminal built-in sensors is obtained in real time;Whether the user for judging the mobile terminal according to the testing result is in sleep state;If the user of the mobile terminal is in sleep state, the volume of the mobile terminal is reduced.So that mobile terminal be in the case where that additionally need not add hardware device, whether user can be judged in sleep state.The electric quantity consumption of mobile terminal is reduced, and avoid long-time play music to cause hearing impaired user.
Description
Technical field
The application belongs to field of terminal technology, more particularly to the method for controlling volume and device of a kind of mobile terminal.
Background technology
Currently, many users like being listened to music with mobile phone before sleeping, but after user falls asleep, due to forgetting to close hand
Machine music, causes the music player of mobile phone to continue to play, until electricity is used up, which not only adds the power consumption of mobile phone, and
It is and long-term in this way, can also be had an impact to the hearing of user.
The content of the invention
In view of this, the embodiment of the present application provides method and terminal device, with solve in the prior art user fall asleep with
The problem of forgetting to close the electric quantity consumption that brings of music player and cause damage to hearing afterwards.
The first aspect of the embodiment of the present application provides a kind of method for controlling volume of mobile terminal, including:
During mobile terminal exports multimedia code stream, the detection of the mobile terminal built-in sensors is obtained in real time
As a result;
Whether the user for judging the mobile terminal according to the testing result is in sleep state;
If the user of the mobile terminal is in sleep state, the volume of the mobile terminal is reduced.
The second aspect of the embodiment of the present application provides a kind of sound volume control device of mobile terminal, including:
Detection unit, during exporting multimedia code stream in mobile terminal, obtains in the mobile terminal in real time
Put the testing result of sensor;
Whether judging unit, the user for judging the mobile terminal according to the testing result are in sleep state;
Volume reduces unit, if the user for the mobile terminal is in sleep state, reduces the mobile terminal
Volume.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, it is characterised in that described in the processor performs
The mobile end referred in any possible implementation of above-mentioned first aspect or above-mentioned first aspect is realized during computer program
The method for controlling volume at end.
The fourth aspect of the embodiment of the present application provides a kind of computer-readable recording medium, including:The computer can
Read storage medium and be stored with computer program, the computer program realized when being executed by processor above-mentioned first aspect or on
State the method for controlling volume of the mobile terminal referred in any possible implementation of first aspect.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes
Computer program, the computer program realize that the application first aspect provides described when being executed by one or more processors
The step of method for controlling volume of mobile terminal.
Existing beneficial effect is the embodiment of the present application compared with prior art:The application is more by being exported in mobile terminal
During media code stream, the testing result of the mobile terminal built-in sensors is obtained in real time;Sentenced according to the testing result
Whether the user of the disconnected mobile terminal is in sleep state;If the user of the mobile terminal is in sleep state, reduce
The volume of the mobile terminal.So that mobile terminal in the case where that additionally need not add hardware device, can be to user
It is no to be judged in sleep state.The electric quantity consumption of mobile terminal is reduced, and avoid long-time play music to cause
Hearing impaired user.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical solution in the embodiment of the present application
Needed in attached drawing be briefly described, it should be apparent that, drawings in the following description are only some of the application
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is method for controlling volume one embodiment flow diagram that the application provides;
Fig. 2 is another embodiment flow diagram for the method for controlling volume that the application provides;
Fig. 3 is another embodiment flow diagram for the method for controlling volume that the application provides;
Fig. 4 is sound volume control device one embodiment structure diagram that the application provides;
Fig. 5 is electric terminal one embodiment structure diagram that the application provides.
Embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present application.However, it will be clear to one skilled in the art that these are specific
The application can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details hinders the description of the present application.
It should be appreciated that ought be special described by the instruction of term " comprising " use in this specification and in the appended claims
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combinations and all possible combinations of one or more of the associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
Embodiment one
Fig. 1 is that the method for controlling volume for the mobile terminal that the embodiment of the present application one provides realizes flow diagram, wherein,
Mobile terminal can be mobile phone, tablet computer, MP3, and radio etc. carries the portable electric appts of audio playing function, wherein
The audio can be the broadcast that music, recording or the radio that music player plays play, or during broadcasting video
The sound of generation.This method may comprise steps of as shown in the figure:
Step S101, during mobile terminal exports multimedia code stream, obtains the built-in biography of the mobile terminal in real time
The testing result of sensor.
In the present embodiment, the multimedia code stream can be the various files with audio output, such as pure audio
MP3, WMA, WAV of form etc..The video file of audio output can be either carried, such as MP4, MKV, AVI etc. can also
It is the simulated audio signal of FM receiver.In the present embodiment, all built-in functional sensing to differ of the mobile terminal such as mobile phone
Device, the functional unit of these sensors and system in itself can detect mobile terminal state in which at any time.As the application
One embodiment, pass through the motion state that acceleration transducer (G-Sensor) and gyroscope detect mobile terminal.Wherein plus
Velocity sensor can be three axis linear acceleration sensors, for detecting the line in three mutually orthogonal axial directions of mobile terminal
Property acceleration.Gyroscope is then used to detect the speed that three mutually orthogonal axis of mobile terminal are rotated up.Such as when acceleration passes
The numerical value that sensor and gyroscope detect within the unit interval does not change, then it is assumed that mobile terminal remains static.As long as
Acceleration transducer and gyroscope have a numerical value to change within the unit interval, then all think that mobile terminal is in movement shape
State.Mobile terminal also detects the intensity of surrounding environment light by optical sensor.Passed on acceleration transducer, gyroscope and light
The operation principle of sensor refers to the prior art, and therefore not to repeat here.
Whether step S102, the user for judging the mobile terminal according to the testing result are in sleep state.
Step S103, if the user of the mobile terminal is in sleep state, reduces the volume of the mobile terminal.
In the present embodiment, in general, can be with when detecting that mobile terminal remains static and during dark state
Judge that user is currently in sleep state.Therefore, in this application, when judging that user is in sleep state, from
The dynamic broadcast sound volume for reducing mobile terminal.So as to avoid after user falls asleep mobile terminal from continuing playing music causing user
Impaired hearing and reduce mobile terminal electric quantity consumption.
Further, it is described to judge the user of the mobile terminal whether in sleep shape according to the testing result
State, including:If the testing result meets following two conditions at the same time, determine that the user of the mobile terminal is in sleep shape
State:The light intensity value that the optical sensor of the mobile terminal detects is less than the first predetermined threshold value;And the mobile terminal
Motion sensor senses are static to the motion state of the mobile terminal.
In the present embodiment, individually all can not be accurate according to the intensity of the motion state of mobile terminal or ambient light
Judge whether user is in sleep state.Therefore the ambient light with reference to residing for the motion state and mobile terminal of mobile terminal is needed
Intensity judges whether active user's state in which is sleep state jointly.When acceleration transducer and gyroscope are in the unit interval
Interior numerical value does not change, then it is assumed that the motion state of mobile terminal is static.When the optical sensor of the mobile terminal detects
Light intensity value be less than the first predetermined threshold value, then it is assumed that current environment light is very weak, it is believed that is currently at dark state.Then
It is used to be very much in dormant in maximum probability at this time.
Optionally, user can be to judging whether user is configured in dormant opportunity, such as during the day
Even if user's lunch break, since lunch break is shorter, mobile terminal can't consume too many electricity, and to the hearing of user
Do not influence, therefore be not necessarily to carry out volume adjustment.Or during the day, user is when in seat (at mobile terminal
In inactive state), when mobile terminal causes light sensor detected value relatively low in the trouser pocket of user so that mobile terminal mistake
Judge that user is in sleep state.Therefore, user can set a time interval, such as 7 points of 9 points-morning at night, Huo Zheye
The time interval for the Night that user is set on mobile terminals can be obtained.It is mobile whole only in above-mentioned time interval
Whether end just can judge in sleep state user.
Preferably, only in the special time section of foregoing user setting and when mobile terminal is exporting audio this
When two conditions meet at the same time, the optical sensor detection of above-mentioned mobile terminal and motion sensor can just carry out joint-detection and sentence
Whether disconnected user is in sleep state.As long as above-mentioned two condition has one to be unsatisfactory for, then all without to user whether in sleeping
Dormancy state is judged.So as to avoid the unnecessary electric quantity consumption for detecting and bringing, or according to testing result misjudgment
Caused unnecessary volume adjustment.
Optionally, it is described to judge whether the user of the mobile terminal is in sleep state according to the testing result, bag
Include:If in default duration, the testing result meets described two conditions at the same time, determines the use of the mobile terminal
Family is in sleep state.
In the present embodiment, if in default duration, mobile terminal keeps remaining static constant, and passes through
Light sensor detects that ambient light intensity is less than the first predetermined threshold value, then judges that user is in sleep state.Work as mobile terminal
Motion state change, i.e., motion state is changed into from inactive state, or to detect that luminous intensity exceedes default for optical sensor
During value, then above-mentioned detection is interrupted, and restart above-mentioned to judge whether user is in dormant detection.
Optionally, during light intensity is detected to around in optical sensor, message may be received due to mobile terminal
And cause screen to be lit, such as receive the message informing in short message or application.And light screen may be to light level
The testing result of device has an impact.Therefore, in the present embodiment, when mobile terminal causes screen due to receiving prompting message
It is lit, so that when the luminous intensity that optical sensor detects is more than preset value, does not then interrupt in above-mentioned default duration
Detection.Interrupted so as to avoid due to being detected caused by prompting message so that testing result is more accurate.
Embodiment two
Fig. 2 shows that the method for controlling volume that the embodiment of the present application two provides realizes flow.For convenience of description, only show
Go out and the relevant part of the embodiment of the present application.
As shown in Fig. 2, if described judge that the user is in sleep state, the volume of mobile terminal is reduced, including:
Step S201, if the user of the mobile terminal is in sleep state.
Step S202, reduces the volume of the mobile terminal step by step.
In the present embodiment, when mobile terminal detects that user is in sleep state, volume at this time is unadjusted
Volume, is set to the first volume.Specifically, drawn according to the volume of mobile terminal by the mute rank that volume is carried out to volume maximum
Point.Such as volume is divided into N grades, then mute 0 grade of correspondence, volume maximum correspond to N grades, and N may be greater than 1 integer.So
The first volume is reduced to the second volume step by step afterwards.Second volume can be a less volume, or preferable
Two volumes are mute.Second volume can have user to pre-set, and the second volume of system default is mute.
Optionally, first volume is reduced to the second volume step by step according to default interval time.
Sense of discomfort is caused to user in order to avoid being suddenly preferably minimized volume, in the present embodiment, is set default
Interval time t1, the interval time t1It can be pre-set by user, can also be by terminal default setting, such as t1Can be
Several seconds or several minutes.According to default interval time t1First volume is reduced to the second volume step by step, specifically, described
Two volumes are less than first volume, and preferable second volume-level is 0, i.e. mute state.In the present embodiment, user is judged
In sleep state, after having recorded the first current volume, at interval of time t1The volume of the mobile terminal just declines one
Level, until volume is reduced to the second volume.
In the present embodiment, in the case of judging that user has fallen asleep, the broadcast sound volume of mobile terminal is reduced step by step, is kept away
Exempt from that the sense of discomfort that volume is brought to user is greatly reduced suddenly.
Optionally, as shown in figure 3, during the volume for reducing the mobile terminal step by step, including
Whether step S301, detection user operate the mobile terminal.
In the present embodiment, when user operates mobile terminal, then show that user is now in waking state.Though
Right sensor detects that mobile terminal remains static and ambient light intensity is less than preset value, but possible user does not locate
In sleep state, therefore, during volume reduces, user realizes that mobile terminal may stop playing at this time, and user is only
Need to carry out mobile terminal the process that shirtsleeve operation can terminate volume and reduce.Such as user grips mobile terminal, or
Person touches the screen of mobile terminal, and operation of the user to mobile terminal, which can also be, to tap mobile terminal or rocked.
When volume reduce process be interrupted by the user after, show user be required within the ensuing time play music, therefore
It will not detect whether user is in sleep state in cycle regular hour, the time cycle is, for example, half an hour.Exceed
It will restart to detect whether user is in sleep state after half an hour.
Step S302, if detecting, user operates the mobile terminal, by the mobile terminal by current
Volume recovers the volume to reduction.
In the present embodiment, based on operation of the detection user to mobile terminal, so as to judge that user is not in sleep shape
State, therefore volume is recovered the volume to reduction by mobile terminal, i.e., the first volume of music is played before user.Thus user
Volume can be just set to recover original state without doing extra operation to mobile terminal.In the present embodiment, recover to first
The process of volume can be recovered step by step, when using recovering step by step, according to default interval time t2 by current volume level
It is not increased to the first volume-level step by step.The interval time t2 can be preset by user, can also be given tacit consent to by terminal and set
Put.Show that user is in waking state since user carries out mobile terminal operation, it is generally desirable to the volume of fast quick-recovery music,
Therefore the interval time t2 is significantly less than interval time t1, such as t2 can be 0.5~1 second, naturally it is also possible to by current
Volume, which is directly jumped, to be recovered to the first volume.The optional interval time t2 can be according to the current sound during reducing step by step
Measure and determined the difference between the first volume, such as when the more big then interval time t2 of the difference is longer, difference it is smaller then between
It is shorter every time t2.Since difference reflects the amplitude of recovery volume.If the amplitude recovered is too big, human ear needs certain
Buffer time, therefore interval time t2 is opposite longer, if the amplitude very little recovered, then human ear for volume change simultaneously
It is insensitive, therefore, shortening interval time t2 that can be appropriate.
Optionally, when the volume of the mobile terminal is reduced to 0, suspend the mobile terminal multimedia code stream it is defeated
Go out.
In the present embodiment, when second volume is 0, in order to avoid music player continues to run with and causes electricity
Consumption, suspends the output of the multimedia code stream of the mobile terminal.
Optionally, after the output of the multimedia code stream of the pause mobile terminal, further include:It is extensive when receiving
During the output order of the multimedia code stream of the multiple mobile terminal, recover the output of the mobile multimedia terminal code stream, and will
Volume recovers the volume to reduction.
In the present embodiment, when volume is reduced to 0 step by step, multimedia code stream is exported by automatic pause, if user afterwards
Need to recover music, be then only capable of the application interface by entering music player, and click on and continue to play virtual key
It can continue to play music, and user uses the operation of other modes, such as mobile terminal is gripped, or touch the screen of mobile terminal
Curtain, taps, rocks mobile terminal, then cannot make music player recover to play.Sleep state is in so as to avoid user
When, cause the recovery volume of mistake since the limb actions such as user's turn cause false touch to touch mobile terminal, and bother user just
Often sleep.
Embodiment three
Fig. 4 shows the composition structure of the sound volume control device for the mobile terminal that the embodiment of the present application three provides, in order to just
In explanation, illustrate only and the relevant part of the embodiment of the present application.
In the embodiment of the present application, described device is used for realization the volume control side of the mobile terminal described in Fig. 1 embodiments
Method, can be the unit for being built in the software unit of mobile terminal, hardware cell or software and hardware combining.The mobile terminal is set
Audio output unit is equipped with, includes but not limited to smart mobile phone, tablet computer, learning machine or intelligent vehicle-carried equipment etc..
As shown in figure 4, described device includes:
Detection unit 401, during exporting multimedia code stream in mobile terminal, obtains the mobile terminal in real time
The testing result of built-in sensors;
Judging unit 402, for being judged the user of the mobile terminal whether in sleep shape according to the testing result
State;
Volume reduces unit 403, if the user for the mobile terminal is in sleep state, reduces described mobile whole
The volume at end.
Optionally, the judging unit is additionally operable to;
If the testing result meets following two conditions at the same time, determine that the user of the mobile terminal is in sleep shape
State:
The light intensity value that the optical sensor of the mobile terminal detects is less than the first predetermined threshold value;And
The motion sensor senses of the mobile terminal are static to the motion state of the mobile terminal.
Optionally, it is described to judge whether the user of the mobile terminal is in sleep state according to the testing result, bag
Include:
If in default duration, the testing result meets described two conditions at the same time, determines described mobile whole
The user at end is in sleep state.
Optionally, the volume reduces unit and is additionally operable to,
If the user of the mobile terminal is in sleep state;
The volume of the mobile terminal is reduced step by step.
Optionally, during the volume for reducing the mobile terminal step by step, including:
Whether detection user operates the mobile terminal;
If detecting, user operates the mobile terminal, by the mobile terminal by current volume recover to
Volume before reduction.
Optionally, described device further includes:
Suspend unit, for when the volume of the mobile terminal is reduced to 0, suspending the multimedia bitstream of the mobile terminal
The output of stream.
Optionally, described device further includes:
Recovery unit, for after the output of the multimedia code stream of the pause mobile terminal, further including:When connecing
When receiving the output order for the multimedia code stream for recovering the mobile terminal, recover the defeated of the mobile multimedia terminal code stream
Go out, and volume is recovered to the volume to reduction.
It is to be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment
Execution sequence should determine that the implementation process without tackling the embodiment of the present application forms any limit with its function and internal logic
It is fixed.
Example IV
The embodiment of the present application provides a kind of electric terminal, referring to Fig. 5, the electric terminal in the embodiment of the present application includes:
Memory 501, one or more processors 502 (one is only shown in Fig. 5) and is stored on memory 501 and can be in processor
The computer program of upper operation.Wherein:Memory 501 is used to store software program and module, and processor 502 is deposited by operation
The software program and unit in memory 501 are stored up, so as to perform various functions application and data processing.Specifically, handle
Device 502 realizes following steps when being stored in the above computer program of memory 501 by operation:
During mobile terminal exports multimedia code stream, the detection of the mobile terminal built-in sensors is obtained in real time
As a result;
Whether the user for judging the mobile terminal according to the testing result is in sleep state;
If the user of the mobile terminal is in sleep state, the volume of the mobile terminal is reduced.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, it is described to judge the user of the mobile terminal whether in sleeping according to the testing result
Dormancy state, including:
If the testing result meets following two conditions at the same time, determine that the user of the mobile terminal is in sleep shape
State:
The light intensity value that the optical sensor of the mobile terminal detects is less than the first predetermined threshold value;And
The motion sensor senses of the mobile terminal are static to the motion state of the mobile terminal.
It is described in the third the possible embodiment provided based on above-mentioned second possible implementation
Judge whether the user of the mobile terminal is in sleep state according to the testing result, including:
If in default duration, the testing result meets described two conditions at the same time, determines described mobile whole
The user at end is in sleep state.
It is described in the 4th kind of possible embodiment provided based on the first above-mentioned possible implementation
If the user of the mobile terminal is in sleep state, the volume of the mobile terminal is reduced, including:
If the user of the mobile terminal is in sleep state;
The volume of the mobile terminal is reduced step by step.
In the 5th kind of possible embodiment provided based on above-mentioned 4th kind of possible implementation, in institute
During stating the volume for reducing the mobile terminal step by step, including:
Whether detection user operates the mobile terminal;
If detecting, user operates the mobile terminal, by the mobile terminal by current volume recover to
Volume before reduction.
In the 6th kind of possible embodiment provided based on above-mentioned 4th kind of possible implementation, bag
Include:When the volume of the mobile terminal is reduced to 0, suspend the output of the multimedia code stream of the mobile terminal.
In the 7th kind of possible embodiment provided based on above-mentioned 6th kind of possible implementation, also wrap
Include after the output of the multimedia code stream of the pause mobile terminal, further include:Recover described mobile whole when receiving
During the output order of the multimedia code stream at end, recover the output of the mobile multimedia terminal code stream, and volume is recovered to dropping
Volume before low.
Optionally, as shown in figure 5, above-mentioned electric terminal may also include:One or more input equipments 503 (only show in Fig. 5
Go out one) and one or more output equipments 504 (one is only shown in Fig. 5).Memory 501, processor 502, input equipment
503 and output equipment 504 connected by bus 505.
It should be appreciated that in the embodiment of the present application, alleged processor 302 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 503 can include keyboard, Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and
The directional information of fingerprint), microphone etc., output equipment 504 can include display, loudspeaker etc..
Memory 504 can include read-only storage and random access memory, and provide instruction sum number to processor 501
According to.Part or all of memory 504 can also include nonvolatile RAM.For example, memory 504 may be used also
With the information of storage device type.
Therefore during the application in mobile terminal by exporting multimedia code stream, the movement is obtained in real time
The testing result of terminal built-in sensor;Judge the user of the mobile terminal whether in sleep shape according to the testing result
State;If the user of the mobile terminal is in sleep state, the volume of the mobile terminal is reduced.So that mobile terminal is not
Need in the case of additionally adding hardware device, whether user can be judged in sleep state.Reduce mobile whole
The electric quantity consumption at end, and avoid long-time play music and cause hearing impaired user.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of above device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system
The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment
The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that each exemplary list described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can pass through others
Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-described embodiment side
All or part of flow in method, can also instruct relevant hardware to complete, above-mentioned computer by computer program
Program can be stored in a computer-readable recording medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of a embodiment of the method.Wherein, above computer program includes computer program code, and above computer program code can
Think source code form, object identification code form, executable file or some intermediate forms etc..Above computer computer-readable recording medium can be with
Including:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, the light of above computer program code can be carried
Disk, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above computer
The content that computer-readable recording medium includes can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, such as
In some jurisdictions, according to legislation and patent practice, computer-readable medium does not include being electric carrier signal and telecommunications letter
Number.
Above above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to foregoing reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing each
Technical solution described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical solution of the application, should all
Within the protection domain of the application.
Claims (10)
- A kind of 1. method for controlling volume of mobile terminal, it is characterised in that including:During mobile terminal exports multimedia code stream, the detection knot of the mobile terminal built-in sensors is obtained in real time Fruit;Whether the user for judging the mobile terminal according to the testing result is in sleep state;If the user of the mobile terminal is in sleep state, the volume of the mobile terminal is reduced.
- 2. method for controlling volume as claimed in claim 1, it is characterised in that described that the shifting is judged according to the testing result Whether the user of dynamic terminal is in sleep state, including:If the testing result meets following two conditions at the same time, determine that the user of the mobile terminal is in sleep state:The light intensity value that the optical sensor of the mobile terminal detects is less than the first predetermined threshold value;AndThe motion sensor senses of the mobile terminal are static to the motion state of the mobile terminal.
- 3. method for controlling volume as claimed in claim 2, it is characterised in that described that the shifting is judged according to the testing result Whether the user of dynamic terminal is in sleep state, including:If in default duration, the testing result meets described two conditions at the same time, determines the mobile terminal User is in sleep state.
- 4. method for controlling volume as claimed in claim 1, it is characterised in that slept if the user of the mobile terminal is in Dormancy state, then reduce the volume of the mobile terminal, including:If the user of the mobile terminal is in sleep state;The volume of the mobile terminal is reduced step by step.
- 5. method for controlling volume as claimed in claim 4, it is characterised in that in the sound for reducing the mobile terminal step by step During amount, including:Whether detection user operates the mobile terminal;If detecting, user operates the mobile terminal, and the mobile terminal is recovered to reducing by current volume Preceding volume.
- 6. method for controlling volume as claimed in claim 4, it is characterised in that further include:When the volume of the mobile terminal is reduced to 0, suspend the output of the multimedia code stream of the mobile terminal.
- 7. method for controlling volume as claimed in claim 6, it is characterised in that in the multimedia of the pause mobile terminal After the output of code stream, further include:When receiving the output order for the multimedia code stream for recovering the mobile terminal, recover institute The output of mobile multimedia terminal code stream is stated, and volume is recovered to the volume to reduction.
- A kind of 8. sound volume control device of mobile terminal, it is characterised in that including:Detection unit, during exporting multimedia code stream in mobile terminal, obtains the built-in biography of the mobile terminal in real time The testing result of sensor;Whether judging unit, the user for judging the mobile terminal according to the testing result are in sleep state;Volume reduces unit, if the user for the mobile terminal is in sleep state, reduces the sound of the mobile terminal Amount.
- 9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that the processor realizes such as claim 1 to 7 when performing the computer program The step of any one the method.
- 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 7 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711113208.4A CN107911544A (en) | 2017-11-13 | 2017-11-13 | The method for controlling volume and device of a kind of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711113208.4A CN107911544A (en) | 2017-11-13 | 2017-11-13 | The method for controlling volume and device of a kind of mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107911544A true CN107911544A (en) | 2018-04-13 |
Family
ID=61844880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711113208.4A Pending CN107911544A (en) | 2017-11-13 | 2017-11-13 | The method for controlling volume and device of a kind of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107911544A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358834A (en) * | 2018-12-05 | 2019-02-19 | 重庆交通大学 | A kind of intelligent earphone control method and intelligent earphone |
CN109510900A (en) * | 2019-01-29 | 2019-03-22 | 上海与德通讯技术有限公司 | A kind of control method, device, equipment and storage medium |
CN110267334A (en) * | 2019-06-19 | 2019-09-20 | 拉扎斯网络科技(上海)有限公司 | Control method, control device, readable storage medium storing program for executing and wireless beacon device |
CN110491419A (en) * | 2019-08-26 | 2019-11-22 | 广东小天才科技有限公司 | A kind of control method for playing back, system and terminal device |
CN110825449A (en) * | 2019-09-19 | 2020-02-21 | 咪咕音乐有限公司 | Music playing method, electronic equipment and storage medium |
CN111315001A (en) * | 2020-02-11 | 2020-06-19 | 闻泰通讯股份有限公司 | Audio and video intelligent adjusting method, device, equipment and medium |
CN112954112A (en) * | 2019-11-26 | 2021-06-11 | 夏普株式会社 | Electronic device, control device, and recording medium |
CN115388511A (en) * | 2022-08-17 | 2022-11-25 | 珠海格力电器股份有限公司 | Air conditioner control method and device based on wearable device and electronic device |
CN115834764A (en) * | 2022-11-29 | 2023-03-21 | 咪咕文化科技有限公司 | Multimedia file playing method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002368676A (en) * | 2001-06-07 | 2002-12-20 | Sanyo Electric Co Ltd | Intermittent reception method, intermittent receiver and mobile communication terminal capable of utilizing them |
CN104050039A (en) * | 2014-07-03 | 2014-09-17 | 中科创达软件股份有限公司 | Method and device for having control over multimedia playing |
CN104318934A (en) * | 2014-09-11 | 2015-01-28 | 小米科技有限责任公司 | Method, terminal, wearable device and play device for closing multimedia file |
CN104836918A (en) * | 2015-05-28 | 2015-08-12 | 惠州Tcl移动通信有限公司 | Method and system for automatically switching contextual modes of mobile terminal |
CN105847574A (en) * | 2016-04-25 | 2016-08-10 | 乐视控股(北京)有限公司 | Method for controlling loudspeaker volume and terminal device |
CN105898572A (en) * | 2016-04-28 | 2016-08-24 | 乐视控股(北京)有限公司 | Play control method and device |
-
2017
- 2017-11-13 CN CN201711113208.4A patent/CN107911544A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002368676A (en) * | 2001-06-07 | 2002-12-20 | Sanyo Electric Co Ltd | Intermittent reception method, intermittent receiver and mobile communication terminal capable of utilizing them |
CN104050039A (en) * | 2014-07-03 | 2014-09-17 | 中科创达软件股份有限公司 | Method and device for having control over multimedia playing |
CN104318934A (en) * | 2014-09-11 | 2015-01-28 | 小米科技有限责任公司 | Method, terminal, wearable device and play device for closing multimedia file |
CN104836918A (en) * | 2015-05-28 | 2015-08-12 | 惠州Tcl移动通信有限公司 | Method and system for automatically switching contextual modes of mobile terminal |
CN105847574A (en) * | 2016-04-25 | 2016-08-10 | 乐视控股(北京)有限公司 | Method for controlling loudspeaker volume and terminal device |
CN105898572A (en) * | 2016-04-28 | 2016-08-24 | 乐视控股(北京)有限公司 | Play control method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358834A (en) * | 2018-12-05 | 2019-02-19 | 重庆交通大学 | A kind of intelligent earphone control method and intelligent earphone |
CN109510900A (en) * | 2019-01-29 | 2019-03-22 | 上海与德通讯技术有限公司 | A kind of control method, device, equipment and storage medium |
CN110267334A (en) * | 2019-06-19 | 2019-09-20 | 拉扎斯网络科技(上海)有限公司 | Control method, control device, readable storage medium storing program for executing and wireless beacon device |
CN110491419A (en) * | 2019-08-26 | 2019-11-22 | 广东小天才科技有限公司 | A kind of control method for playing back, system and terminal device |
CN110491419B (en) * | 2019-08-26 | 2021-08-13 | 广东小天才科技有限公司 | Playing control method, system and terminal equipment |
CN110825449A (en) * | 2019-09-19 | 2020-02-21 | 咪咕音乐有限公司 | Music playing method, electronic equipment and storage medium |
CN112954112A (en) * | 2019-11-26 | 2021-06-11 | 夏普株式会社 | Electronic device, control device, and recording medium |
CN111315001A (en) * | 2020-02-11 | 2020-06-19 | 闻泰通讯股份有限公司 | Audio and video intelligent adjusting method, device, equipment and medium |
CN115388511A (en) * | 2022-08-17 | 2022-11-25 | 珠海格力电器股份有限公司 | Air conditioner control method and device based on wearable device and electronic device |
CN115834764A (en) * | 2022-11-29 | 2023-03-21 | 咪咕文化科技有限公司 | Multimedia file playing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107911544A (en) | The method for controlling volume and device of a kind of mobile terminal | |
CN104737101B (en) | The computing device of the non-vision response triggered with power | |
CN108521521A (en) | volume adjusting method, mobile terminal and computer readable storage medium | |
CN106126175B (en) | A kind of adjusting method and mobile terminal of sound effect parameters | |
CN107357411B (en) | Electronic device | |
CN105549740B (en) | A kind of method and apparatus of playing audio-fequency data | |
WO2014209405A1 (en) | System and method for adaptive haptic effects | |
CN107613146B (en) | Volume adjustment method and device and mobile terminal | |
AU2012232659A1 (en) | Method and apparatus for providing sight independent activity reports responsive to a touch gesture | |
CN108804005B (en) | Terminal control method and device and mobile terminal | |
CN108170500A (en) | Download progress method for refreshing, terminal device and computer readable storage medium | |
CN101795323A (en) | Electronic alarm operation method, electronic alarm and mobile communication terminal | |
CN102291482A (en) | Method for power management of mobile communication terminal and mobile communication terminal using this method | |
EP3553642A1 (en) | Method for automatically setting wallpaper, terminal device and graphical user interface | |
CN106156583A (en) | A kind of method of speech unlocking and terminal | |
CN110489573A (en) | Interface display method and electronic equipment | |
CN105933537B (en) | A kind of volume processing method and user terminal | |
CN106647942A (en) | Wearable equipment control method and device and wearable equipment | |
CN106055236A (en) | Content pushing method and terminal | |
CN109697262A (en) | A kind of information display method and device | |
CN106776223B (en) | Method and device for managing use duration of mobile equipment | |
CN106507187A (en) | A kind of video broadcasting method and terminal | |
CN108632461B (en) | Alarm clock reminding method, device, terminal and computer readable storage medium | |
CN110286836B (en) | Device, method and graphical user interface for mobile application interface elements | |
CN109634550A (en) | A kind of voice operating control method and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180413 |
|
RJ01 | Rejection of invention patent application after publication |