CN108270923A - A kind of music control method, music controller and mobile terminal - Google Patents

A kind of music control method, music controller and mobile terminal Download PDF

Info

Publication number
CN108270923A
CN108270923A CN201810059747.2A CN201810059747A CN108270923A CN 108270923 A CN108270923 A CN 108270923A CN 201810059747 A CN201810059747 A CN 201810059747A CN 108270923 A CN108270923 A CN 108270923A
Authority
CN
China
Prior art keywords
music
mobile terminal
button
mentioned
time
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
Application number
CN201810059747.2A
Other languages
Chinese (zh)
Inventor
王英茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810059747.2A priority Critical patent/CN108270923A/en
Publication of CN108270923A publication Critical patent/CN108270923A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

This application discloses a kind of music control method, music controller, mobile terminal and computer readable storage medium, wherein, which includes:The first button and the second button of mobile terminal are monitored, first button and second button are the physical button of the mobile terminal;If listening to the first click event based on first button and the second click event based on second button, the described first time of origin for clicking event and the time of origin of the second click event are obtained;Calculate the time difference of time of origin that the described first time of origin for clicking event clicks event with described second;If the time difference is not more than preset difference threshold, the mobile terminal is controlled to start music or the mobile terminal is controlled to exit music.Application scheme improves user in the state of being inconvenient to light screen to the control efficiency of music.

Description

A kind of music control method, music controller and mobile terminal
Technical field
The application belongs to technical field of mobile terminals more particularly to a kind of music control method, music controller, movement Terminal and computer readable storage medium.
Background technology
Current mobile terminal, such as smart mobile phone, tablet computer etc., are provided with music playback function.If user needs Various controls are carried out to music to operate, then need first to light touch screen, and all kinds of controls are inputted by the clicking operation to touch screen System instruction, to realize that the control to music operates, such as open music playback function, alternatively, closing music playback function.When with Family is then difficult to realize the control to music, leads to user to music in when being inconvenient to light in the state of screen Control efficiency it is low.
Invention content
It in view of this, can this application provides a kind of music control method, music controller, mobile terminal and computer Storage medium is read, the control efficiency to music can be improved in a state that user is inconvenient to light screen.
The first aspect of the application provides a kind of music control method, and above-mentioned music control method includes:
The first button and the second button of mobile terminal are monitored, wherein, it above-mentioned first button and above-mentioned second presses Key is the physical button of above-mentioned mobile terminal;
If listen to the first click event based on above-mentioned first button and the second click thing based on above-mentioned second button Part then obtains the above-mentioned first time of origin for clicking event and the time of origin of above-mentioned second click event;
Calculate the time difference of time of origin that the above-mentioned first time of origin for clicking event clicks event with above-mentioned second;
If above-mentioned time difference is not more than preset difference threshold, above-mentioned mobile terminal is controlled to start music or control It makes above-mentioned mobile terminal and exits music.
The second aspect of the application provides a kind of music controller, and above-mentioned music controller includes:
Monitoring unit is monitored for the first button to mobile terminal and the second button, wherein, above-mentioned first button And above-mentioned second button is the physical button of above-mentioned mobile terminal;
Acquiring unit, for when listening to the first click event based on above-mentioned first button and based on above-mentioned second button Second click event, then obtain it is above-mentioned first click event time of origin and it is above-mentioned second click event time of origin;
Computing unit, when clicking the time of origin of event and the generation of the above-mentioned second click event for calculating above-mentioned first Between time difference;
Control unit, for when above-mentioned time difference is not more than preset difference threshold, then controlling above-mentioned mobile terminal Start music or the above-mentioned mobile terminal of control exits music.
The third aspect of the application provides a kind of mobile terminal, above-mentioned mobile terminal include memory, processor and The computer program that can be run in above-mentioned memory and on above-mentioned processor is stored in, above-mentioned processor performs above computer The step of as above method of first aspect is realized during program.
The fourth aspect of the application provides a kind of computer readable storage medium, and above computer readable storage medium storing program for executing is deposited The step of containing computer program, the as above method of first aspect realized when above computer program is executed by processor.
Therefore by the embodiment of the present application, the first button of above-mentioned mobile terminal and the second button are carried out first It monitors, wherein, above-mentioned first button and above-mentioned second button are the physical button of above-mentioned mobile terminal, when listening to based on upper State the first click event of the first button and based on above-mentioned second button second click event when, obtain it is above-mentioned first click thing The time of origin of part and it is above-mentioned second click event time of origin, and calculate it is above-mentioned first click event time of origin with it is upper The time difference of the time of origin of the second click event is stated, when above-mentioned time difference is not more than preset difference threshold, control Above-mentioned mobile terminal starts music or the above-mentioned mobile terminal of control exits music.Application scheme causes user to be not required to Light screen, you can realize that the control to music operates, such as start music and broadcast by the physical button of mobile terminal Music is put or exited, improves the control efficiency to music to a certain degree.
Description of the drawings
It, 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, the accompanying drawings in the following description is 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 the realization flow diagram of music control method provided by the embodiments of the present application;
Fig. 2 is another realization flow diagram of music control method provided by the embodiments of the present application;
Fig. 3 is the structure diagram of music controller provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific 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 there is no these specifically The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details interferes the description of the present application.
In order to illustrate the above-mentioned technical solution of the application, illustrated below by specific embodiment.
Embodiment one
A kind of music control method provided by the embodiments of the present application is described below, referring to Fig. 1, the application is implemented Music control method in example includes:
In a step 101, the first button of mobile terminal and the second button are monitored;
In the embodiment of the present application, above-mentioned first button and above-mentioned second button be above-mentioned mobile terminal physics by Key.For example, above-mentioned first button can be the volume plus key of mobile terminal, above-mentioned second button can be the volume of mobile terminal Subtract key;Alternatively, above-mentioned first button can be the volume down key of mobile terminal, above-mentioned second button can be the sound of mobile terminal Measure plus key;Alternatively, above-mentioned first button can be by the volume plus key on line control earphone that mobile terminal connects, above-mentioned second presses Key can be by the volume down key on line control earphone that mobile terminal connects;Alternatively, above-mentioned first button can be mobile terminal The volume down key on line control earphone connected, above-mentioned second button can be by the sounds on line control earphone that mobile terminal connects Measure plus key;Certainly, above-mentioned first button and the second button may be other existing physical buttons on mobile terminal, herein It is not construed as limiting.Under the free position of mobile terminal, such as the bright screen state of mobile terminal or mobile terminal put out screen state Under, the first button of mobile terminal and the second button are monitored, to know whether are above-mentioned first button and the second button It is pressed by the user.
In a step 102, if listening to the first click event based on above-mentioned first button and based on above-mentioned second button Second click event, then obtain it is above-mentioned first click event time of origin and it is above-mentioned second click event time of origin;
In the embodiment of the present application, above-mentioned the first click event based on above-mentioned first button is included to the short of the first button It presses and long-press, above-mentioned the second click event package based on above-mentioned second button includes the short-press and long-press to the second button.Wherein, when Length is carried out to the first button or the second button on time, the time of origin of the click event is at the beginning of long-press operates.
In step 103, when calculating the time of origin of above-mentioned first click event and the generation of the above-mentioned second click event Between time difference;
At step 104, if above-mentioned time difference is not more than preset difference threshold, above-mentioned mobile terminal is controlled to start Music or the above-mentioned mobile terminal of control exit music.
In the embodiment of the present application, can be listen to the first button occur the first click event (or the second button hair Raw second clicks event) after, continue to monitor whether the second button occurs the second click event within the preset difference threshold time (or whether the first button occurs the first click event) has occurred if listening to the second button within the preset difference threshold time Second clicks event (or the first click event has occurred in the first button), then based on the current music state control of mobile terminal Above-mentioned mobile terminal is made to start music or above-mentioned mobile terminal is controlled to exit music.Specifically, above-mentioned shifting is being controlled When dynamic terminal starts music, if mobile terminal is equipped with more than two music class application programs, one can be randomly choosed Music class application program starts above-mentioned randomly selected music class application program on the backstage of mobile terminal;It alternatively, can also One application program is preset, and start above-mentioned preset music class application journey on the backstage of mobile terminal by user Sequence;Alternatively, the history access times of each mounted music class application program of above-mentioned mobile terminal can also be obtained, and upper The backstage for stating mobile terminal starts the above-mentioned highest music class application program of history access times, does not limit herein.
Therefore by the embodiment of the present application, to the first button and the second button under the free position of mobile terminal It is monitored, it, can be according to mobile whole when listening to user within a certain period of time while pressing the first button and the second button Current music state is held to control, and above-mentioned mobile terminal starts music or the above-mentioned mobile terminal of control exits music and broadcasts It puts so that user can also control music even in the case where being inconvenient to light screen, realize quick start Music quickly exits music, improves control efficiency of the user to music to a certain extent.
It should be understood that the size of the serial 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 coping with the embodiment of the present application forms any limit with its function and internal logic It is fixed.
Embodiment two
On the basis of above-described embodiment one, the embodiment of the present application two shows the realization stream of another music control method Journey, details are as follows:
In step 201, the first button of mobile terminal and the second button are monitored;
In step 202, if listening to the first click event based on above-mentioned first button and based on above-mentioned second button Second click event, then obtain it is above-mentioned first click event time of origin and it is above-mentioned second click event time of origin;
In step 203, when calculating the time of origin of above-mentioned first click event and the generation of the above-mentioned second click event Between time difference;
In the embodiment of the present application, above-mentioned steps 201,202 and 203 it is identical with above-mentioned steps 101,102 and 103 respectively or It is similar, above-mentioned steps 101,102,103 are specifically can refer to, are not repeated herein.
In step 204, if above-mentioned time difference is not more than preset difference threshold, it is current to detect above-mentioned mobile terminal Whether in music state, if so, step 205 is performed, if it is not, then performing step 206;
In the embodiment of the present application, when above-mentioned time difference is not more than preset difference threshold at that time, you can think above-mentioned First click event and the second click event almost occur at the same time, can continue to detect whether above-mentioned mobile terminal is currently in Music state.Specifically, whether the above-mentioned mobile terminal of above-mentioned detection currently includes in music state:It detects above-mentioned Whether the foreground or backstage of mobile terminal have run music class application program;If the foreground of above-mentioned mobile terminal or running background have Music class application program, it is determined that above-mentioned mobile terminal is currently at music state;If the foreground of above-mentioned mobile terminal or Backstage not running has music class application program, it is determined that above-mentioned mobile terminal is not presently within music state.Above-mentioned music Class application program includes the music player that mobile terminal carries, voice memo, third party's music player, above-mentioned third party Music player includes Netease's cloud music, QQ music etc., is not construed as limiting herein.It is above-mentioned in the foreground of mobile terminal or running background There is music class application program, in playing music on foreground or backstage including music class application program, alternatively, music class application program In playing music on foreground or backstage pause, it is not construed as limiting herein.
In step 205, above-mentioned mobile terminal is controlled to exit music;
In the embodiment of the present application, when detecting that above-mentioned mobile terminal is in music state, either foreground or The music class application program of running background is playing in music or paused broadcasting music, and above-mentioned mobile terminal is controlled to move back Go out music.Specifically, in order to reduce the power consumption of mobile terminal, music class music program is avoided to occupy multi-mobile-terminal Memory, the above-mentioned music that exits include:By the music class application program of the foreground of above-mentioned mobile terminal or running background from upper The foreground or backstage for stating mobile terminal are removed.Optionally, if the quantity of the music class application program of foreground or running background is two More than a, then music class application program more than above-mentioned two is removed from the foreground of above-mentioned mobile terminal or backstage.
In step 206, then above-mentioned mobile terminal is controlled to start music.
In the embodiment of the present application, when detecting that above-mentioned mobile terminal is not in music state, i.e. mobile terminal Foreground or backstage not running when having any music class application program, above-mentioned mobile terminal can control to start music.Tool Body, the above-mentioned above-mentioned mobile terminal of control starts music and includes:Starting a music class on the backstage of above-mentioned mobile terminal should Use program;The progress of the above-mentioned previous music of music class application program based on startup carries out continued broadcasting.If mobile terminal is installed There are two more than music class application programs, then can randomly choose a music class application program, start on the backstage of mobile terminal Above-mentioned randomly selected music class application program;Alternatively, an application program can also be preset by user, and mobile whole The backstage at end starts above-mentioned preset music class application program;Alternatively, it is each to obtain above-mentioned mobile terminal The history access times of the music class application program of installation, and start history access times highest on the backstage of above-mentioned mobile terminal Music class application program, do not limit herein.
Optionally, above-mentioned music control method further includes:
When above-mentioned mobile terminal is under music state, if being listened to more than twice in the second preset time difference Above-mentioned first clicks event, then the sequence list played based on above-mentioned the first click event above-mentioned more than twice according to current music Switch to next song;
When above-mentioned mobile terminal is under music state, if being listened to more than twice in the second preset time difference Above-mentioned second clicks event, then the sequence list played based on above-mentioned the second click event above-mentioned more than twice according to current music Switch to a piece of music.
Therefore by the embodiment of the present application, to the first button and the second button under the free position of mobile terminal It is monitored, it, can be in mobile terminal when listening to user within a certain period of time while pressing the first button and the second button Foreground or running background above-mentioned mobile terminal is controlled when having music class application program to exit the music class of foreground or running background Application program, alternatively, starting a music class application when having mobile terminal foreground or backstage not running has music class application program Program carries out music so that user can also control music even in the case where being inconvenient to light screen System realizes quick startup music or quickly exits music, improves control of the user to music to a certain extent Efficiency processed.
It should be understood that the size of the serial 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 coping with the embodiment of the present application forms any limit with its function and internal logic It is fixed.
Embodiment three
The embodiment of the present application also provides a kind of music controller, as shown in figure 3, the music control in the embodiment of the present application Device 300 includes:
Monitoring unit 301 is monitored for the first button to mobile terminal and the second button, wherein, above-mentioned first Button and above-mentioned second button are the physical button of above-mentioned mobile terminal;
Acquiring unit 302, for when listening to the first click event based on above-mentioned first button and based on above-mentioned second Button second click event, then obtain it is above-mentioned first click event time of origin and it is above-mentioned second click event generation when Between;
Computing unit 303, for calculating the hair that the above-mentioned first time of origin for clicking event clicks event with above-mentioned second The time difference of raw time;
Control unit 304, it is above-mentioned mobile whole for when above-mentioned time difference is not more than preset difference threshold, then controlling End starts music or the above-mentioned mobile terminal of control exits music.
Optionally, above-mentioned control unit 304 further includes:
Detection sub-unit, for whether detecting above-mentioned mobile terminal currently in music state;
Subelement is exited in control, for when above-mentioned mobile terminal is in music state, controlling above-mentioned mobile terminal Exit music;
Promoter unit is controlled, it is above-mentioned mobile whole for when above-mentioned mobile terminal is not in music state, controlling End starts music.
Optionally, whether above-mentioned detection sub-unit has run specifically for the foreground or backstage for detecting above-mentioned mobile terminal Music class application program when the foreground of above-mentioned mobile terminal or running background have music class application program, determines above-mentioned movement Terminal is currently at music state, when the foreground of above-mentioned mobile terminal or backstage not running have music class application program, Determine that above-mentioned mobile terminal is not presently within music state.
Optionally, subelement is exited in above-mentioned control, specifically for by the sound on the foreground of above-mentioned mobile terminal or running background Happy class application program is removed from the foreground of above-mentioned mobile terminal or backstage.
Optionally, above-mentioned control promoter unit, should specifically for starting a music class on the backstage of above-mentioned mobile terminal With program, and the progress of the above-mentioned previous music of music class application program based on startup carries out continued broadcasting.
Optionally, above-mentioned control promoter unit, including:
History access times obtain subelement, and more than two music class application programs are equipped with for working as above-mentioned mobile terminal When, obtain the history access times of each mounted music class application program of above-mentioned mobile terminal;
Application program launching subelement, it is highest for starting above-mentioned history access times on the backstage of above-mentioned mobile terminal Music class application program.
It should be noted that music controller in the embodiment of the present application specifically can (such as the App in a manner of software Form) and/or the mode of hardware integrate in the terminal.
Therefore by the embodiment of the present application, under the free position of mobile terminal, music controller can be to One button and the second button are monitored, when listening to user within a certain period of time while press the first button and the second button When, can have on the foreground of mobile terminal or running background controlled during music class application program above-mentioned mobile terminal exit foreground or The music class application program of running background, alternatively, when having mobile terminal foreground or backstage not running has music class application program Start a music class application program and carry out music so that user also can be right even in the case where being inconvenient to light screen Music is controlled, and can improve control efficiency of the user to music.
Example IV
The embodiment of the present application provides a kind of mobile terminal, referring to Fig. 4, the mobile terminal in the embodiment of the present application includes: Memory 401, one or more processors 402 (one is only shown in Fig. 4) and is stored on memory 401 and can be in processor The computer program of upper operation.Wherein:Memory 401 for storing software program and module, by operation deposited by processor 402 The software program and unit in memory 401 are stored up, it is above-mentioned pre- to obtain so as to perform various functions application and data processing If the corresponding resource of event.Specifically, processor 402 is stored real in the above computer program of memory 401 by operation Existing following steps:
The first button and the second button of mobile terminal are monitored, wherein, it above-mentioned first button and above-mentioned second presses Key is the physical button of above-mentioned mobile terminal;
If listen to the first click event based on above-mentioned first button and the second click thing based on above-mentioned second button Part then obtains the above-mentioned first time of origin for clicking event and the time of origin of above-mentioned second click event;
Calculate the time difference of time of origin that the above-mentioned first time of origin for clicking event clicks event with above-mentioned second;
If above-mentioned time difference is not more than preset difference threshold, above-mentioned mobile terminal is controlled to start music or control It makes above-mentioned mobile terminal and exits music.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, the above-mentioned mobile terminal of above-mentioned control starts music or the above-mentioned mobile terminal of control moves back Go out music, including:
Whether above-mentioned mobile terminal is detected currently in music state;
If above-mentioned mobile terminal is in music state, above-mentioned mobile terminal is controlled to exit music;
If above-mentioned mobile terminal is not in music state, above-mentioned mobile terminal is controlled to start music.
It is above-mentioned in the third the possible embodiment provided based on above-mentioned second possible embodiment Detect whether above-mentioned mobile terminal is currently in music state, including:
Whether the foreground or backstage for detecting above-mentioned mobile terminal have run music class application program;
If the foreground of above-mentioned mobile terminal or running background have music class application program, it is determined that above-mentioned mobile terminal is current In music state;
If the foreground of above-mentioned mobile terminal or backstage not running have music class application program, it is determined that above-mentioned mobile terminal is worked as Before be not in music state.
It is above-mentioned in the 4th kind of possible embodiment provided based on the third above-mentioned possible embodiment Above-mentioned mobile terminal is controlled to exit music, including:
By the music class application program of the foreground of above-mentioned mobile terminal or running background from the foreground of above-mentioned mobile terminal or It removes on backstage.
It is above-mentioned in the 5th kind of possible embodiment provided based on the third above-mentioned possible embodiment Above-mentioned mobile terminal is controlled to exit music, including:
Start a music class application program on the backstage of above-mentioned mobile terminal;
The progress of the above-mentioned previous music of music class application program based on startup carries out continued broadcasting.
Based on the first above-mentioned possible embodiment or above-mentioned second of possible embodiment is as base Plinth is either based on the third above-mentioned possible embodiment or based on above-mentioned 4th kind of possible embodiment, Or in the 6th kind of possible embodiment provided based on above-mentioned 5th kind of possible embodiment, in above-mentioned control It states mobile terminal and starts music, including:
If above-mentioned mobile terminal is equipped with more than two music class application programs, obtain that above-mentioned mobile terminal is each to have pacified The history access times of the music class application program of dress;
Start the above-mentioned highest music class application program of history access times on the backstage of above-mentioned mobile terminal.
Further, as shown in figure 4, above-mentioned mobile terminal 4 may also include:One or more input equipments 403 are (in Fig. 4 only Show one) and one or more output equipments 404 (one is only shown in Fig. 4).Memory 401, processor 402, input are set It is connected for 403 and output equipment 404 by bus 405.
It should be appreciated that above-mentioned mobile terminal 4 can be the computing devices such as smart mobile phone, tablet computer.Alleged processor 402 Can be central processing unit (Central Processing Unit, CPU), which can also be other general procedures Device, 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) either other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..It is logical It can be microprocessor with processor or the processor can also be any conventional processor etc..
Input equipment 403 can include keyboard, Trackpad, fingerprint adopt sensor (for acquire the finger print information of user and The directional information of fingerprint), microphone etc., output equipment 404 can include screen, loud speaker etc..
Memory 401 can include read-only memory and random access memory, and provide instruction sum number to processor 402 According to.Part or all of memory 401 can also include nonvolatile RAM.For example, memory 401 may be used also With the information of storage device type.
Therefore by the embodiment of the present application, mobile terminal can press the first button and second under free position Key is monitored, can be mobile whole when listening to user within a certain period of time while pressing the first button and the second button The foreground at end or running background control above-mentioned mobile terminal to exit the music of foreground or running background when having music class application program Class application program, should alternatively, starting a music class when having mobile terminal foreground or backstage not running has music class application program Music is carried out with program so that user can also control music even in the case where being inconvenient to light screen System, can improve control efficiency of the user to music.
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 each unit is individually physically present, can also two or more units integrate in a unit, it is above-mentioned integrated The form that hardware had both may be used in unit is realized, 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.Above system The specific work process of middle unit, module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, 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 lists 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 It is performed with hardware or software mode, specific application 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 device 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 in actual implementation, 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 does not perform.Another point, 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 unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses 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 storage 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 certain intermediate forms etc..Above computer readable medium can be with Including:Any entity of above computer program code or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, light can be carried Disk, computer storage, read-only memory (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 readable medium includes can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, such as In certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include being electric carrier signal and telecommunications letter Number.
More than above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned 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 aforementioned each Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Within the protection domain of the application.

Claims (10)

1. a kind of music control method, which is characterized in that the music control method includes:
The first button and the second button of mobile terminal are monitored, wherein, first button and second button are equal Physical button for the mobile terminal;
If listening to the first click event based on first button and the second click event based on second button, Obtain the described first time of origin for clicking event and the time of origin of the second click event;
Calculate the time difference of time of origin that the described first time of origin for clicking event clicks event with described second;
If the time difference is not more than preset difference threshold, the mobile terminal is controlled to start music or control institute It states mobile terminal and exits music.
2. music control method as described in claim 1, which is characterized in that the control mobile terminal starts music and broadcasts Put or control the mobile terminal to exit music, including:
Whether the mobile terminal is detected currently in music state;
If the mobile terminal is in music state, the mobile terminal is controlled to exit music;
If the mobile terminal is not in music state, the mobile terminal is controlled to start music.
3. music control method as claimed in claim 2, which is characterized in that whether the detection mobile terminal is currently located In music state, including:
Whether the foreground or backstage for detecting the mobile terminal have run music class application program;
If the foreground of the mobile terminal or running background have music class application program, it is determined that the mobile terminal is currently at Music state;
If the foreground of the mobile terminal or backstage not running have music class application program, it is determined that the mobile terminal is currently not In music state.
4. music control method as claimed in claim 3, which is characterized in that the control mobile terminal exits music and broadcasts It puts, including:
By the music class application program of the foreground of the mobile terminal or running background from the foreground of the mobile terminal or backstage It removes.
5. music control method as claimed in claim 3, which is characterized in that the control mobile terminal starts music and broadcasts It puts, including:
Start a music class application program on the backstage of the mobile terminal;
The progress of the previous music of music class application program based on startup carries out continued broadcasting.
6. such as music control method described in any one of claim 1 to 5, which is characterized in that the control mobile terminal Start music, including:
If the mobile terminal is equipped with more than two music class application programs, it is each mounted to obtain the mobile terminal The history access times of music class application program;
Start the highest music class application program of history access times on the backstage of the mobile terminal.
7. a kind of music controller, which is characterized in that the music controller includes:
Monitoring unit is monitored for the first button to mobile terminal and the second button, wherein, first button and institute State the physical button that the second button is the mobile terminal;
Acquiring unit, for when listen to the first click event based on first button and based on second button the Two click event, then obtain the described first time of origin for clicking event and the time of origin of the second click event;
Computing unit clicks the time of origin of event and the time of origin of the described second click event for calculating described first Time difference;
Control unit, for when the time difference is not more than preset difference threshold, then the mobile terminal being controlled to start Music or the control mobile terminal exit music.
8. music controller as claimed in claim 7, which is characterized in that described control unit further includes:
Detection sub-unit, for whether detecting the mobile terminal currently in music state;
Subelement is exited in control, for when the mobile terminal is in music state, the mobile terminal being controlled to exit Music;
Promoter unit is controlled, for when the mobile terminal is not in music state, the mobile terminal being controlled to open Dynamic music.
9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when performing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 6 the method.
CN201810059747.2A 2018-01-22 2018-01-22 A kind of music control method, music controller and mobile terminal Pending CN108270923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810059747.2A CN108270923A (en) 2018-01-22 2018-01-22 A kind of music control method, music controller and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810059747.2A CN108270923A (en) 2018-01-22 2018-01-22 A kind of music control method, music controller and mobile terminal

Publications (1)

Publication Number Publication Date
CN108270923A true CN108270923A (en) 2018-07-10

Family

ID=62776311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810059747.2A Pending CN108270923A (en) 2018-01-22 2018-01-22 A kind of music control method, music controller and mobile terminal

Country Status (1)

Country Link
CN (1) CN108270923A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262997A (en) * 2020-01-13 2020-06-09 Oppo广东移动通信有限公司 Terminal application control method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080051136A1 (en) * 2006-08-22 2008-02-28 Moon Dae-Ho Method terminal and method for reproducing button sound thereof
CN102118507A (en) * 2011-03-09 2011-07-06 惠州Tcl移动通信有限公司 Mobile terminal utilizing volume key as music pause key and realization method thereof
US20150074575A1 (en) * 2013-09-12 2015-03-12 Samsung Electronics Co., Ltd. Method and apparatus for controlling application using key inputs or combination thereof
CN105630354A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Application control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080051136A1 (en) * 2006-08-22 2008-02-28 Moon Dae-Ho Method terminal and method for reproducing button sound thereof
CN102118507A (en) * 2011-03-09 2011-07-06 惠州Tcl移动通信有限公司 Mobile terminal utilizing volume key as music pause key and realization method thereof
US20150074575A1 (en) * 2013-09-12 2015-03-12 Samsung Electronics Co., Ltd. Method and apparatus for controlling application using key inputs or combination thereof
CN105630354A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Application control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262997A (en) * 2020-01-13 2020-06-09 Oppo广东移动通信有限公司 Terminal application control method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
KR101907182B1 (en) Application program control method and related apparatus
CN108733342A (en) volume adjusting method, mobile terminal and computer readable storage medium
CN109062479A (en) Split screen application switching method, device, storage medium and electronic equipment
CN104575537B (en) Music switching method and user equipment
CN105120063A (en) Volume prompting method of input voice and electronic device
CN105635449A (en) Alarm clock control method and mobile terminal
CN103620542A (en) A physical key simulating method and apparatus based on a touch screen
CN103295604B (en) Method, device and terminal that a kind of control terminal is play
CN105515942A (en) Method for playing voice message automatically and electronic equipment
CN108549518A (en) A kind of method, apparatus that music information is shown and terminal device
CN105227760A (en) A kind of alarm clock setting method and terminal
CN105045516A (en) Method and terminal for switching working mode
CN105446489A (en) Voice dual-mode control method and apparatus, and user terminal
CN107734121B (en) Volume control method and device, storage medium and electronic equipment
CN106297836A (en) A kind of audio frequency playing method and terminal
CN108513216B (en) Information processing method and wire-controlled earphone
CN108572866A (en) A kind of application management method, application program management device and mobile terminal
CN104536781A (en) Terminal
CN108270923A (en) A kind of music control method, music controller and mobile terminal
CN108509247A (en) A kind of extremely simple mode implementation method, system and terminal device
CN106161768B (en) Call device selection method and device
CN107515666A (en) A kind of data managing method and terminal
CN109831714B (en) Method and device for identifying earphone keys and electronic equipment
CN117406906A (en) Screen processing method, device, electronic equipment and computer readable storage medium
CN108536512B (en) Interface switching method and device and terminal equipment

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: 20180710

RJ01 Rejection of invention patent application after publication