CN106066781B - A kind of method and apparatus terminating playing audio-fequency data - Google Patents

A kind of method and apparatus terminating playing audio-fequency data Download PDF

Info

Publication number
CN106066781B
CN106066781B CN201610425958.4A CN201610425958A CN106066781B CN 106066781 B CN106066781 B CN 106066781B CN 201610425958 A CN201610425958 A CN 201610425958A CN 106066781 B CN106066781 B CN 106066781B
Authority
CN
China
Prior art keywords
terminal
audio
data
sound volume
zero
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610425958.4A
Other languages
Chinese (zh)
Other versions
CN106066781A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610425958.4A priority Critical patent/CN106066781B/en
Publication of CN106066781A publication Critical patent/CN106066781A/en
Application granted granted Critical
Publication of CN106066781B publication Critical patent/CN106066781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Abstract

The invention discloses a kind of method and apparatus for terminating playing audio-fequency data, belong to field of computer technology.The described method includes: detecting the audio broadcast sound volume of the terminal after terminal enters during playing audio-fequency data and closes screen state;When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration and reaches the first preset duration, terminate to play the currently playing audio data of the terminal.Using the present invention, terminal screen will not stimulate the eyes of user during closing audio data.

Description

A kind of method and apparatus terminating playing audio-fequency data
Technical field
The present invention relates to field of computer technology, in particular to a kind of method and apparatus for terminating playing audio-fequency data.
Background technique
Audio data can help people to relieve fatigue, and loosen mood, and many people like listening audio data before sleeping, can To conduce to sleep.
Before sleep, user can open a terminal the audio data broadcast message class application program of upper installation, select and play corresponding Audio data, terminal screen can be closed later, terminal can continue playing audio-fequency data in the case where closing screen state.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
After a period of time, user then needs to open terminal screen if it is intended to closing audio data, closes audio data and broadcasts Class application program is put, at this moment the lamp in room may have been switched off, so, the light that terminal screen issues will stimulate user's Eyes.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides it is a kind of terminate playing audio-fequency data method and Device.The technical solution is as follows:
In a first aspect, providing a kind of method for terminating playing audio-fequency data, which comprises
After terminal enters during playing audio-fequency data closes screen state, the audio for detecting the terminal plays sound Amount;
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration and reaches the first preset duration, Terminate to play the currently playing audio data of the terminal.
Optionally, it is described when terminal during playing audio-fequency data enter close screen state after, detect the terminal Audio broadcast sound volume, comprising:
After entering pass screen state during terminal in a sleep mode playing audio-fequency data, the sound of the terminal is detected Frequency broadcast sound volume.
In this way, terminal only can just trigger the processing of this programme after user opens sleep pattern.
Optionally, described when detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach first When preset duration, terminate to play the currently playing audio data of the terminal, comprising:
Detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the second preset duration after, If receiving volume down instruction, it is immediately finished and plays the currently playing audio data of the terminal, wherein described second Preset duration is less than first preset duration.
In this way, can repeatedly press volume-down keys if user needs terminal to terminate playing audio-fequency data at once.
Optionally, described to terminate after playing the currently playing audio data of the terminal, the method also includes:
The audio broadcast sound volume of the terminal is adjusted to default volume.
In this way, again playing audio-fequency data when, user can normally be listened to and be broadcast it is not necessary that audio broadcast sound volume is adjusted The first audio data put.
Optionally, described when detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach first When preset duration, terminate to play the currently playing audio data of the terminal, comprising:
When detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the first preset duration and When the terminal is continuously in pass screen state, then terminate to play the currently playing audio data of the terminal.
In this way, terminal can be without terminating to broadcast if user's operating terminal in preset duration enters working condition Put the processing of audio data.
Optionally, described to terminate after playing the currently playing audio data of the terminal, the method also includes:
When end plays the currently playing audio data of the terminal, stores the audio broadcast sound volume and be adjusted to zero The playback progress point of Shi Suoshu audio data.
In this way, again playing audio-fequency data when, user continues to receive at the time of can becoming zero from upper secondary audio program broadcast sound volume The audio data for listening last time to play avoids omitting relevant information.
Second aspect, provides a kind of device for terminating playing audio-fequency data, and described device includes:
Detection module, for detecting the terminal after terminal enters during playing audio-fequency data and closes screen state Audio broadcast sound volume;
Ending module, for when detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the When one preset duration, terminate to play the currently playing audio data of the terminal.
Optionally, the detection module, is used for:
After entering pass screen state during terminal in a sleep mode playing audio-fequency data, the sound of the terminal is detected Frequency broadcast sound volume.
Optionally, the ending module, is used for:
Detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the second preset duration after, If receiving volume down instruction, it is immediately finished and plays the currently playing audio data of the terminal, wherein described second Preset duration is less than first preset duration.
Optionally, described device further include:
Adjustment module, for after terminating to play the currently playing audio data of the terminal, by the sound of the terminal Frequency broadcast sound volume is adjusted to default volume.
Optionally, the ending module, is used for:
When detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the first preset duration and When the terminal is continuously in pass screen state, then terminate to play the currently playing audio data of the terminal.
Optionally, described device further include:
Memory module, for storing the audio and playing when end plays the currently playing audio data of the terminal Volume is adjusted to the playback progress point of audio data when zero.
According to the third aspect of an embodiment of the present disclosure, a kind of device terminating playing audio-fequency data is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
After terminal enters during playing audio-fequency data closes screen state, the audio for detecting the terminal plays sound Amount;
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration and reaches the first preset duration, Terminate to play the currently playing audio data of the terminal.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, after terminal enters during playing audio-fequency data closes screen state, terminal is detected Audio broadcast sound volume;When detecting that audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the first preset duration When, terminate the currently playing audio data of playback terminal.In this way, during terminal plays audio data, if user thinks It wants controlling terminal to stop playing audio-fequency data, then can be directly adjusted to audio broadcast sound volume by pressing volume adjustment button Zero, without opening terminal screen, so that the process for closing audio data will not stimulate the eyes of user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of method flow diagram for terminating playing audio-fequency data provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of a scenario for terminating playing audio-fequency data provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for terminating playing audio-fequency data provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram for terminating playing audio-fequency data provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram for terminating playing audio-fequency data provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of method for terminating playing audio-fequency data, the executing subject of this method is terminal. Wherein, terminal can be the terminal for playing audio-fequency data, can be computer, mobile phone etc..Place can be set in terminal Device, memory, input unit, audio output unit, screen are managed, processor can be used at the process of playing audio-fequency data Reason, memory can be used for storing the data of the data and generation that need in following treatment processes, and input unit can be used for User carries out instruction input during playing audio-fequency data, and screen is displayed for needing to show in following treatment processes To the content of user, audio output unit be used for play it is following during audio data.In the present embodiment, using terminal as mobile phone For, the detailed description of scheme is carried out, other situations are similar therewith, and the present embodiment is not repeated.
Below in conjunction with specific embodiment, process flow shown in FIG. 1 is described in detail, content can be as Under:
Step 101, after entering pass screen state during playing audio-fequency data when terminal, the audio for detecting terminal is played Volume.
In an implementation, the broadcast message class application program for playing audio-fequency data can be installed, when user wants in terminal When using terminal playing audio-fequency data, it can click and open above-mentioned broadcast message class application program, at this moment terminal can then show broadcasting The homepage of class application program, after user clicks the audio data for selecting and confirming desired broadcasting at the terminal, terminal then may be used To play associated audio data by broadcast message class application program, herein, audio data can be song, sound novel, broadcast etc.. If terminal user in playing audio-fequency data does not carry out other operations, terminal if, can enter screen state of closing, and can be It closes and continues playing audio-fequency data under screen state.Meanwhile it can be set to enter during playing audio-fequency data when terminal and closing screen When state, start the audio broadcast sound volume for detecting terminal.
Optionally, the processing for only carrying out this programme in a sleep mode can be set, correspondingly, the processing of step 101 It can be such that during terminal in a sleep mode playing audio-fequency data into after closing screen state, detect the audio of terminal Broadcast sound volume.
In an implementation, terminal can be set there are many operating mode, such as mode standard, conference model, outdoor mode.Often Kind of mode has the function of different, and this programme may operate under the sleep pattern of terminal.Specifically, user can be with before sleeping The operating mode of terminal is adjusted to sleep pattern, in this way, after terminal enters pass screen state during playing audio-fequency data, eventually Available current operating mode is held, if terminal is in sleep pattern, can detecte the audio broadcast sound volume of terminal.
Step 102, when detect audio broadcast sound volume be adjusted to zero and be continuously zero duration reach first it is default when When long, terminate the currently playing audio data of playback terminal.
In an implementation, it is contemplated that user listens to the scene of audio data before sleeping, since ambient light is more dim, bright screen The light that terminal screen is issued under state can stimulate the eyes of user, so, if the desired closing of user is currently playing Audio data is then more likely to complete corresponding operation in the case where terminal is in and closes screen state, further, in conjunction with the volume of terminal Adjusting key is the structure of generally physical button, and user can conveniently complete to adjust the operation of volume in the dark, and Adjust volume can not also triggering terminal enter bright screen state.Therefore, it is based on above-mentioned consideration, user can be by adjusting terminal The operation of audio broadcast sound volume, which carrys out triggering terminal, terminates playing audio-fequency data.Specifically, terminal, which is in close, plays sound under screen state Frequency according to when, can be with the audio broadcast sound volume of real-time detection terminal, when detecting that audio broadcast sound volume is adjusted to zero, can be with Current time is recorded, the audio broadcast sound volume of terminal can be continued to test later, if the audio broadcast sound volume of terminal is continuously Zero duration reaches the first preset duration, then can terminate the currently playing audio data of playback terminal.Concrete application scene can As shown in Figure 2.
Optionally, user can terminate to play audio number with controlling terminal at once by persistently pressing volume-down keys According to, correspondingly, the processing of step 102 can be such that detect audio broadcast sound volume be adjusted to zero and be continuously zero when After length reaches the second preset duration, if receiving volume down instruction, it is immediately finished the currently playing audio of playback terminal Data, wherein the second preset duration is less than the first preset duration.
In an implementation, terminal is in playing audio-fequency data under closing screen state, if user wants controlling terminal and terminates to play The audio broadcast sound volume of terminal then can be adjusted to zero by pressing volume reduction key by audio data.At this moment, terminal can be with Start timing, if the audio broadcast sound volume of terminal is continuously after the zero, and second preset duration still in the second preset duration Volume down instruction is received, then can be immediately finished the currently playing audio data of playback terminal.
Optionally, after terminating playing audio-fequency data, audio broadcast sound volume can be recalled to original state by terminal, corresponding to handle It can be such that after terminating the currently playing audio data of playback terminal, the audio broadcast sound volume of terminal be adjusted to default volume.
In an implementation, the audio broadcast sound volume of terminal can be adjusted to default sound after terminating playing audio-fequency data by terminal Amount, in this way, can be played out according to default volume when terminal playing audio-fequency data again.Meanwhile for other function sounds Amount (such as incoming call reminding sound volume) is the terminal of same volume with audio broadcast sound volume, in this manner it is ensured that user will not be because of end The audio broadcast sound volume at end omits crucial prompt information after being adjusted to zero.In addition, the audio broadcast sound volume in terminal is adjusted During section is zero, the first audio broadcast sound volume before audio broadcast sound volume reduces can recorde, in this way, terminating in terminal After playing audio-fequency data, the audio broadcast sound volume of terminal can be adjusted to the first audio broadcast sound volume.
Optionally, if terminal entered working condition in the preset duration after audio broadcast sound volume becomes zero, no Triggering terminal terminates the processing of playing audio-fequency data, correspondingly, the processing of step 102, which can be such that work as, detects that audio plays Volume be adjusted to zero and be continuously zero duration reach the first preset duration and terminal be continuously in close screen state when, then terminate The currently playing audio data of playback terminal.
In an implementation, terminal is after playing audio-fequency data goes forward side by side and enters the GATT screen state, if detecting audio broadcast sound volume quilt It is adjusted to zero, then can be detected eventually in the first preset duration with beginning timing from that time that audio broadcast sound volume becomes zero The audio broadcast sound volume and state at end, if audio broadcast sound volume is continuously zero in the first preset duration and terminal is continuously in Screen state is closed, then terminal can terminate the currently playing audio data of playback terminal after the first preset duration.If first Variation occurred for audio broadcast sound volume in preset duration or terminal entered working condition, then can abandon this timing, by Audio broadcast sound volume is adjusted to restart timing when zero again.
Optionally, continuing to play for the ease of next time, terminal can recorde the playback progress of audio data before terminating to play, Corresponding processing can be such that storage audio broadcast sound volume is conditioned when end playback terminal currently playing audio data The playback progress point of audio data when being zero.
In an implementation, when detect audio broadcast sound volume be adjusted to zero and be continuously zero duration reach first it is default when After length, terminal can terminate to play currently playing audio data.Simultaneously, it is contemplated that terminal can play one in the first preset duration The audio data of progress is determined, in this way, broadcasting again next time if audio data, which is that sound novel is this kind of, needs the coherent audio listened to When putting audio data user may holiday important information, therefore, when terminating the currently playing audio data of playback terminal When, terminal can store audio broadcast sound volume and be adjusted to the playback progress point of audio data when zero plays the sound in turn again Frequency according to when, can be played since the playback progress point of storage.Alternatively, terminal can start every time playing audio-fequency data When, the playback progress of currently playing audio data is adjusted into forward the first preset duration.
In the embodiment of the present invention, after terminal enters during playing audio-fequency data closes screen state, terminal is detected Audio broadcast sound volume;When detecting that audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the first preset duration When, terminate the currently playing audio data of playback terminal.In this way, during terminal plays audio data, if user thinks It wants controlling terminal to stop playing audio-fequency data, then can be directly adjusted to audio broadcast sound volume by pressing volume adjustment button Zero, without opening terminal screen, so that the process for closing audio data will not stimulate the eyes of user.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices for terminating playing audio-fequency data, such as Shown in Fig. 3, which includes:
Detection module 301, for detecting the end after terminal enters during playing audio-fequency data and closes screen state The audio broadcast sound volume at end;
Ending module 302, for when detecting that the audio broadcast sound volume is adjusted to zero and while being continuously zero is up to When to the first preset duration, terminate to play the currently playing audio data of the terminal.
Optionally, the detection module 301, is used for:
After entering pass screen state during terminal in a sleep mode playing audio-fequency data, the sound of the terminal is detected Frequency broadcast sound volume.
Optionally, the ending module 302, is used for:
Detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the second preset duration after, If receiving volume down instruction, it is immediately finished and plays the currently playing audio data of the terminal, wherein described second Preset duration is less than first preset duration.
Optionally, as shown in figure 4, described device further include:
Adjustment module 303, for after terminating to play the currently playing audio data of the terminal, by the terminal Audio broadcast sound volume is adjusted to default volume.
Optionally, the ending module 302, is used for:
When detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the first preset duration and When the terminal is continuously in pass screen state, then terminate to play the currently playing audio data of the terminal.
Optionally, as shown in figure 5, described device further include:
Memory module 304, for storing the audio and broadcasting when end plays the currently playing audio data of the terminal Playback amount is adjusted to the playback progress point of audio data when zero.
In the embodiment of the present invention, after terminal enters during playing audio-fequency data closes screen state, terminal is detected Audio broadcast sound volume;When detecting that audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the first preset duration When, terminate the currently playing audio data of playback terminal.In this way, during terminal plays audio data, if user thinks It wants controlling terminal to stop playing audio-fequency data, then can be directly adjusted to audio broadcast sound volume by pressing volume adjustment button Zero, without opening terminal screen, so that the process for closing audio data will not stimulate the eyes of user.
It should be understood that the device provided by the above embodiment for terminating playing audio-fequency data is terminating playing audio-fequency data When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function With being completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete above description All or part of function.In addition, the device provided by the above embodiment for terminating playing audio-fequency data and end play audio The embodiment of the method for data belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
A kind of structural schematic diagram for terminal that the another exemplary embodiment of the disclosure provides.The terminal can be mobile phone Deng.
Referring to Fig. 6, terminal 600 may include following one or more components: processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and Communication component 616.
The integrated operation of the usual controlling terminal 600 of processing component 602, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 602 may include that one or more processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in terminal 600.These data are shown Example includes the instruction of any application or method for operating in terminal 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 606 provides electric power for the various assemblies of terminal 600.Electric power assembly 606 may include power management system System, one or more power supplys and other with for audio output apparatus 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between the terminal 600 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When terminal 600 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when audio output apparatus 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, wheat Gram wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or warp It is sent by communication component 616.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for terminal 600 is commented Estimate.For example, sensor module 614 can detecte the state that opens/closes of terminal 600, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 600, and sensor module 614 can also detect 600 1 components of terminal 600 or terminal Position change, the existence or non-existence that user contacts with terminal 600,600 orientation of terminal or acceleration/deceleration and terminal 600 Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between terminal 600 and other equipment.Terminal 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 600 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of terminal 600 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal When row, enable the terminal to execute a kind of method for managing application program, this method comprises:
After terminal enters during playing audio-fequency data closes screen state, the audio for detecting the terminal plays sound Amount;
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration and reaches the first preset duration, Terminate to play the currently playing audio data of the terminal.
Optionally, it is described when terminal during playing audio-fequency data enter close screen state after, detect the terminal Audio broadcast sound volume, comprising:
After entering pass screen state during terminal in a sleep mode playing audio-fequency data, the sound of the terminal is detected Frequency broadcast sound volume.
Optionally, described when detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach first When preset duration, terminate to play the currently playing audio data of the terminal, comprising:
Detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the second preset duration after, If receiving volume down instruction, it is immediately finished and plays the currently playing audio data of the terminal, wherein described second Preset duration is less than first preset duration.
Optionally, described to terminate after playing the currently playing audio data of the terminal, the method also includes:
The audio broadcast sound volume of the terminal is adjusted to default volume.
Optionally, described when detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach first When preset duration, terminate to play the currently playing audio data of the terminal, comprising:
When detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the first preset duration and When the terminal is continuously in pass screen state, then terminate to play the currently playing audio data of the terminal.
Optionally, described to terminate after playing the currently playing audio data of the terminal, the method also includes:
When end plays the currently playing audio data of the terminal, stores the audio broadcast sound volume and be adjusted to zero The playback progress point of Shi Suoshu audio data.
In the embodiment of the present invention, after terminal enters during playing audio-fequency data closes screen state, terminal is detected Audio broadcast sound volume;When detecting that audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the first preset duration When, terminate the currently playing audio data of playback terminal.In this way, during terminal plays audio data, if user thinks It wants controlling terminal to stop playing audio-fequency data, then can be directly adjusted to audio broadcast sound volume by pressing volume adjustment button Zero, without opening terminal screen, so that the process for closing audio data will not stimulate the eyes of user.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (11)

1. a kind of method for terminating playing audio-fequency data, which is characterized in that the described method includes:
After terminal enters during playing audio-fequency data closes screen state, the audio broadcast sound volume of the terminal is detected;
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration and reaches the first preset duration, terminate Play the currently playing audio data of the terminal;
Wherein, described to terminate after playing the currently playing audio data of the terminal, the method also includes:
When end plays the currently playing audio data of the terminal, stores the audio broadcast sound volume and be adjusted to 1 when institute State the playback progress point of audio data.
2. the method according to claim 1, wherein described when terminal enters during playing audio-fequency data After closing screen state, the audio broadcast sound volume of the terminal is detected, comprising:
After entering pass screen state during terminal in a sleep mode playing audio-fequency data, the audio for detecting the terminal is broadcast Playback amount.
3. the method according to claim 1, wherein described ought detect that the audio broadcast sound volume is adjusted to Zero and when being continuously zero duration and reaching the first preset duration, terminate to play the currently playing audio data of the terminal, comprising:
Detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the second preset duration after, if Volume down instruction is received, then is immediately finished and plays the currently playing audio data of the terminal, wherein described second is default Duration is less than first preset duration.
4. the method according to claim 1, wherein described terminate to play the currently playing audio number of the terminal According to later, the method also includes:
The audio broadcast sound volume of the terminal is adjusted to default volume.
5. the method according to claim 1, wherein described ought detect that the audio broadcast sound volume is adjusted to Zero and when being continuously zero duration and reaching the first preset duration, terminate to play the currently playing audio data of the terminal, comprising:
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the first preset duration and described When terminal is continuously in pass screen state, then terminate to play the currently playing audio data of the terminal.
6. a kind of device for terminating playing audio-fequency data, which is characterized in that described device includes:
Detection module, for detecting the sound of the terminal after terminal enters during playing audio-fequency data and closes screen state Frequency broadcast sound volume;
Ending module, for when detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration to reach first pre- If when duration, terminating to play the currently playing audio data of the terminal;
Wherein, described device further include:
Memory module, for storing the audio broadcast sound volume when end plays the currently playing audio data of the terminal It is adjusted to the playback progress point of audio data when zero.
7. device according to claim 6, which is characterized in that the detection module is used for:
After entering pass screen state during terminal in a sleep mode playing audio-fequency data, the audio for detecting the terminal is broadcast Playback amount.
8. device according to claim 6, which is characterized in that the ending module is used for:
Detect the audio broadcast sound volume be adjusted to zero and be continuously zero duration reach the second preset duration after, if Volume down instruction is received, then is immediately finished and plays the currently playing audio data of the terminal, wherein described second is default Duration is less than first preset duration.
9. device according to claim 6, which is characterized in that described device further include:
Adjustment module, for after terminating to play the currently playing audio data of the terminal, the audio of the terminal to be broadcast Playback amount is adjusted to default volume.
10. device according to claim 6, which is characterized in that the ending module is used for:
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration reach the first preset duration and described When terminal is continuously in pass screen state, then terminate to play the currently playing audio data of the terminal.
11. a kind of device for terminating playing audio-fequency data characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
After terminal enters during playing audio-fequency data closes screen state, the audio broadcast sound volume of the terminal is detected;
When detecting that the audio broadcast sound volume is adjusted to zero and is continuously zero duration and reaches the first preset duration, terminate Play the currently playing audio data of the terminal;
Wherein, the processor is also configured to
When end plays the currently playing audio data of the terminal, stores the audio broadcast sound volume and be adjusted to 1 when institute State the playback progress point of audio data.
CN201610425958.4A 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data Active CN106066781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610425958.4A CN106066781B (en) 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610425958.4A CN106066781B (en) 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data

Publications (2)

Publication Number Publication Date
CN106066781A CN106066781A (en) 2016-11-02
CN106066781B true CN106066781B (en) 2019-07-02

Family

ID=57421275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610425958.4A Active CN106066781B (en) 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data

Country Status (1)

Country Link
CN (1) CN106066781B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792163B (en) * 2016-11-25 2021-10-29 上海乐欢软件有限公司 Method and device for detecting video playing state
CN106937162A (en) * 2017-03-03 2017-07-07 北京小米移动软件有限公司 Audio and video playing control method and device
CN111240634A (en) * 2020-01-08 2020-06-05 百度在线网络技术(北京)有限公司 Sound box working mode adjusting method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2684036B2 (en) * 1987-04-30 1997-12-03 パイオニア株式会社 Acoustic vibration device considering physical condition
KR100644437B1 (en) * 2005-03-14 2006-11-10 엘지전자 주식회사 Mobile terminal with music automatic stop function and method for music stop
US8204258B2 (en) * 2008-12-17 2012-06-19 Panasonic Automotive Systems Company Of America, Division Of Panasonic Corporation Of North America Multiband audio dynamics processor
CN102118507A (en) * 2011-03-09 2011-07-06 惠州Tcl移动通信有限公司 Mobile terminal utilizing volume key as music pause key and realization method thereof
CN104134380A (en) * 2013-05-03 2014-11-05 张胜祥 Electronic musical instrument simulation learning tool
CN104318934A (en) * 2014-09-11 2015-01-28 小米科技有限责任公司 Method, terminal, wearable device and play device for closing multimedia file
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN105630354A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Application control method and device

Also Published As

Publication number Publication date
CN106066781A (en) 2016-11-02

Similar Documents

Publication Publication Date Title
CN104618218B (en) Message prompt method and device
CN105162945B (en) Method for information display and device
CN107396177A (en) Video broadcasting method, device and storage medium
CN105933539B (en) audio playing control method and device and terminal
CN105744133B (en) Video light compensation method and device
CN105845124A (en) Audio processing method and device
CN104598130A (en) Mode switching method, terminal, wearable equipment and device
CN105182809A (en) Method for adjusting light transmittance of intelligent curtain, intelligent curtain and device
CN104636110B (en) Control the method and device of volume
CN104394137B (en) A kind of method and device of prompting voice call
CN107147957B (en) Video broadcasting method and device
CN105187725A (en) Shooting method and apparatus
CN105511307B (en) The control method and device of a kind of electronic equipment
CN104112459B (en) Method and apparatus for playing audio data
CN107708187A (en) The control method and device of sleep pattern
CN105187594A (en) Echo canceling method and device
CN107919124A (en) Equipment awakening method and device
CN110349578A (en) Equipment wakes up processing method and processing device
CN106066781B (en) A kind of method and apparatus terminating playing audio-fequency data
CN109087650A (en) voice awakening method and device
CN105141769A (en) Communication message processing method and device as well as terminal
CN108806714A (en) The method and apparatus for adjusting volume
WO2018058815A1 (en) Information reminding method and apparatus
CN106126158B (en) A kind of method and apparatus of playing audio-fequency data
CN107566750A (en) Control method, device and the storage medium of flash lamp

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant