CN108874143A - A kind of playback method and terminal device - Google Patents
A kind of playback method and terminal device Download PDFInfo
- Publication number
- CN108874143A CN108874143A CN201810672833.0A CN201810672833A CN108874143A CN 108874143 A CN108874143 A CN 108874143A CN 201810672833 A CN201810672833 A CN 201810672833A CN 108874143 A CN108874143 A CN 108874143A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- file
- volume
- sound
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/013—Eye tracking input arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present invention provides a kind of playback method and terminal device, is related to field of terminal technology, for solving the problems, such as that terminal device is put outside sound in being not suitable for occasion.This method includes:The first operation of user's input is received, the first operation is the operation to the first file, and the first file includes audio, and the first operation is used for the first file of triggering terminal device plays;Determine whether environmental volume is greater than or equal to threshold volume, environmental volume is the volume in terminal device local environment;If environmental volume is less than threshold volume, forbid playing the first file.Broadcasting of the embodiment of the present invention to contain the file of audio.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of playback methods and terminal device.
Background technique
With the development of terminal technology, terminal device using more and more extensive, the occasion of user's using terminal equipment
It is more and more extensive, not only can at home, using terminal equipment in the medium preferable occasion of privacy of private car, and can do
It is used in the public arenas such as public room, bus, classroom, meeting room.
User can usually encounter in using terminal device procedures because maloperation makes terminal device start to play comprising sound
The file of frequency, and then terminal device is caused to be put outside sound in being not suitable for occasion, such as:In a meeting since maloperation makes terminal
Equipment starts to play video, then for example:Terminal device is takeed in library and has accessed earphone, so that operating terminal equipment is opened
Begin to play song.At this point, to will use family very awkward for the sound put outside terminal device, or even cause other people to individual subscriber behavior
With the misunderstanding of personality, the experience of user's using terminal equipment is seriously reduced.
Summary of the invention
The embodiment of the present invention provides a kind of playback method and terminal device, for solving terminal device in being not suitable for occasion
The problem of being put outside sound.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, the embodiment of the invention provides a kind of playback methods, including:
The first operation of user's input is received, first operation is used for the first file described in triggering terminal device plays,
First file includes audio;
Determine whether the environmental volume is greater than or equal to threshold volume, the environmental volume is locating for the terminal device
Volume in environment;
If the environmental volume is less than threshold volume, forbid playing first file.
Second aspect, the embodiment of the invention provides a kind of terminal devices, including:
Receiving unit, for receiving the first operation of user's input, first operation is used for triggering terminal device plays
First file, first file includes audio;
Volume detecting unit, for determining whether the environmental volume is greater than or equal to threshold volume, the environmental volume
For the volume in the terminal device local environment;
Processing unit, for forbidding broadcasting when the volume detecting unit determines that the environmental volume is less than threshold volume
Put first file.
The third aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
Now the step of playback method as described in relation to the first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, which is characterized in that the calculating
Computer program is stored on machine readable storage medium storing program for executing, is realized as described in relation to the first aspect when the computer program is executed by processor
Playback method the step of.
Playback method provided in an embodiment of the present invention is determined when receiving the first operation that user inputs the first file
Whether environmental volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, forbids playing first file,
As the embodiment of the present invention receive user input triggering terminal device plays described in the first file operation when, determine ring
Whether border volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, current occasion is possible for being not suitable for
The occasion put outside sound forbids the first file of broadcasting that can put outside to avoid the sound of terminal device at this time, therefore the present invention is implemented
Example can solve the problem of terminal device is put outside sound in being not suitable for occasion.
Detailed description of the invention
Fig. 1 is the architecture diagram of Android operation system provided in an embodiment of the present invention;
Fig. 2 is one of the step flow chart of playback method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the image preview area of terminal device provided in an embodiment of the present invention;
Fig. 4 is the two of the step flow chart of playback method provided in an embodiment of the present invention;
Fig. 5 is the three of the step flow chart of playback method provided in an embodiment of the present invention;
Fig. 6 is one of the application scenarios schematic diagram of playback method provided in an embodiment of the present invention;
Fig. 7 is the two of the application scenarios schematic diagram of playback method provided in an embodiment of the present invention;
Fig. 8 is the three of the application scenarios schematic diagram of playback method provided in an embodiment of the present invention;
Fig. 9 is the four of the application scenarios schematic diagram of playback method provided in an embodiment of the present invention;
Figure 10 is one of the schematic diagram of terminal device provided in an embodiment of the present invention;
Figure 11 is the two of the schematic diagram of terminal device provided in an embodiment of the present invention;
Figure 12 is the hardware structural diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.
Term " first " in description and claims of this specification and " second " etc. are for distinguishing synchronous pair
As, rather than it is used for the particular order of description object.For example, first interface and second interface etc. are for distinguishing different connect
Mouthful, rather than the particular order for describing interface.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This
Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing
Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport
Related notion is being presented in specific ways.In addition, unless otherwise indicated, " multiples' " contains in the description of the embodiment of the present invention
Justice refers to two or more.
User can usually encounter in using terminal device procedures because maloperation makes terminal device start to play comprising sound
The file of frequency, and then terminal device is caused to be put outside sound in being not suitable for occasion, such as:In a meeting since maloperation makes terminal
Equipment starts to play video, then for example:Terminal device is takeed in library and has accessed earphone, so that operating terminal equipment is opened
Begin to play song.At this point, to will use family very awkward for the sound put outside terminal device, or even cause other people to individual subscriber behavior
With the misunderstanding of personality, the experience of user's using terminal equipment is seriously reduced.
In order to solve this problem, the embodiment of the present invention provides a kind of playback method and terminal device, the playback method are connecing
When receiving the first operation that user inputs the first file, determine whether environmental volume is greater than or equal to threshold volume, if environment
Volume is less than threshold volume, then forbids playing first file, since the embodiment of the present invention is in the touching for receiving user's input
When hair terminal device plays the operation of first file, determine whether environmental volume is greater than or equal to threshold volume, if environment
Volume is less than threshold volume, then current occasion is possible for the occasion for being not suitable for putting outside sound, forbids playing the first file at this time
It can be put outside to avoid the sound of terminal device, therefore the embodiment of the present invention can solve terminal device sound in being not suitable for occasion
The problem of putting outside.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be
Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented
Example is not especially limited.
Below by taking Android operation system as an example, software applied by playback method provided in an embodiment of the present invention is introduced
Environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming
In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system Runtime Library layer and
Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system
Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program
In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour
As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system
Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior
Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1
The system architecture of operating system, the software program of playback method provided in an embodiment of the present invention is realized in exploitation, so that this is broadcast
The method of putting can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal can be by operating in Android
The software program is run in system realizes playback method provided in an embodiment of the present invention.
Terminal in the embodiment of the present invention can be terminal device, or non-terminal equipment.Terminal device can be
Mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, Ultra-Mobile PC
(ultra-mobilepersonal computer, UMPC), net book or personal digital assistant (personal digital
Assistant, PDA) etc.;Non-terminal equipment can be personal computer (personal computer, PC), television set
(television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention is not especially limited.
The executing subject of playback method provided in an embodiment of the present invention can be above-mentioned terminal device (including mobile terminal
And immobile terminal), or it can be realized the functional module and/or functional entity of the playback method in the terminal device,
It can specifically be determined according to actual use demand, the embodiment of the present invention is not construed as limiting.
Terminal device provided in an embodiment of the present invention can be mobile phone, tablet computer, laptop, super mobile personal
Computer (ultra-mobile personal computer, UMPC), net book, digital photo frame, personal digital assistant
(personal digitalassistant, PDA), smartwatch, Intelligent bracelet etc. or the terminal device can also be it
The terminal device of his type, the embodiment of the present invention are not construed as limiting.
Embodiment one,
The embodiment of the present invention provides a kind of playback method, specifically, as shown in Fig. 2, provided in an embodiment of the present invention broadcast
The method of putting includes:
S11, the first operation for receiving user's input.
Wherein, for the first file described in triggering terminal device plays, first file includes sound for first operation
Frequently.
Specifically, the first file in the embodiment of the present invention can be audio file, such as:Song, sound novel, recording
Deng, or video file, such as:Film, television set, micro- video, advertisement etc. can also be audio file and video file
Alternative document in addition, such as:Multimedia file comprising audio, in the embodiment of the present invention not to the concrete type of the first file
It limits, being subject to can play and include audio.
In addition, the first operation in the embodiment of the present invention specifically can be user to the clicking operation of the first control, or
It is the phonetic order of user's input or the certain gestures of user's input.In some embodiments of the invention, described specific
Gesture can for click gesture, slip gesture, Pressure identification gesture, long-pressing gesture, area change gesture, it is double by gesture, double-click
Any one in gesture.
S12, determine whether environmental volume is greater than or equal to threshold volume.
Wherein, the environmental volume is the volume in the terminal device local environment.
Specifically, terminal device can obtain environmental volume by microphone (Microphone, MIC).
Specifically, the size of threshold volume can be set according to actual needs, the embodiment of the present invention is to the small of threshold volume
It is not construed as limiting greatly.
In upper step S12, if environmental volume is less than threshold volume, shows that current environment is quieter, generally do
Public room, room for individual study, meeting room etc. are not suitable for the occasion put outside terminal device sound, therefore cannot directly play comprising audio
File, therefore execute step S13.
S13, forbid playing first file.
Playback method provided in an embodiment of the present invention is determined when receiving the first operation that user inputs the first file
Whether environmental volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, forbids playing first file,
As the embodiment of the present invention receive user input triggering terminal device plays described in the first file operation when, determine ring
Whether border volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, current occasion is possible for being not suitable for
The occasion put outside sound forbids the first file of broadcasting that can put outside to avoid the sound of terminal device at this time, therefore the present invention is implemented
Example can solve the problem of terminal device is put outside sound in being not suitable for occasion.
Further, referring to shown in Fig. 3, in above-mentioned steps S12, if environmental volume is greater than or equal to threshold volume,
Execute step S14.
S14, determine the visual focus of user whether on the screen of the terminal device.
Specifically, terminal device can carry out Image Acquisition to shooting preview region, and detect in acquired image
Whether the visual focus of user falls in the screen of the terminal device.It illustratively, can be to by along terminal referring to shown in Fig. 4
The four edges frame (a, b, c, d) of the display screen 31 of equipment to the display surface of shown terminal device extend and with the terminal device
Plane where display screen carries out Image Acquisition in the region that four planes (α, β, γ, δ) of predetermined angle are enclosed.
In above-mentioned steps S14, if the visual focus of user not on the screen of the terminal device, shows that user is existing
The input behaviour generated by maloperation is likely in the first operation of the display screen of not viewing terminal equipment, therefore user's input
Make, therefore, step S15 is executed, if the visual focus of user thens follow the steps S16 on the screen of the terminal device.
S15, forbid playing first file.
S16, first file is played.
Further, referring to Figure 5, in above-mentioned steps S12, if the environmental volume is less than threshold volume,
Current environment is possible for the occasion for being not suitable for putting outside sound, it is therefore desirable to which user is confirmed whether the outer sound reproduction of opening terminal apparatus
Sound, therefore execute step S17.
S17, the first dialog box of display.
Wherein, first dialog box includes putting sound options outside, it is described it is outer put sound options for control open or pass
Close the outer sound reproduction sound of the terminal device.
Illustratively, referring to shown in Fig. 6, the first dialog box 61 includes:Signal language " whether opening outer sound reproduction sound ", for opening
It opens or closes outer sound reproduction the outer of sound and put sound options 62.
S18, the second operation for receiving user's input.
The second operation in the embodiment of the present invention the specific can be that user externally puts the clicking operation of sound options, or
It is the phonetic order of user's input or the certain gestures of user's input.In some embodiments of the invention, described specific
Gesture can for click gesture, slip gesture, Pressure identification gesture, long-pressing gesture, area change gesture, it is double by gesture, double-click
Any one in gesture.
Illustratively, referring to shown in Fig. 7, user can put second behaviour of the input of sound options 62 to the outer of outer sound reproduction sound is opened
Make, to open outer sound of raising one's voice to its utmost.
Illustratively, referring to shown in Fig. 8, user can put second behaviour of the input of sound options 62 to the outer of outer sound reproduction sound is closed
Make, to close outer sound of raising one's voice to its utmost.
S19, it is operated in response to described second, controls the outer sound reproduction sound of the terminal device to open or close state, and
Play first file.
Whether above-described embodiment makes in environmental volume cell threshold volume, further remind user to opening by dialog box
The outer sound reproduction sound of terminal device is selected, therefore can be further avoided end equipment and be put outside sound in being not suitable for occasion.
Optionally, referring to described in Fig. 9, first dialog box further includes the countdown of the first predetermined time period.Wherein,
It with the first predetermined time period is 20 seconds (s) to exemplify in Fig. 9, method provided by the above embodiment further includes:
When the countdown of first predetermined time period terminates and does not receive user to the outer sound options of putting
When operation, the outer sound reproduction sound for controlling the terminal device is open state, and plays first file.
Playback method provided by the above embodiment can not input the first file caused by the second operation to avoid as user
The problem of can not playing.
It is further alternative, it is in the above-described embodiments, described when the outer sound reproduction sound of the terminal device is open state
Playing first file includes:
When playing first file, the outer sound reproduction sound of the terminal device is gradually increased in the second predetermined time period
Target audio broadcast sound volume is arrived greatly.
That is, the audio broadcast sound volume of not direct using terminal equipment is as terminal device when starting to play the first file
Outer playback amount, but the outer playback amount of terminal device is gradually increased to the audio broadcast sound volume of terminal device.Such as:With
The audio broadcast sound volume of family setting is 8, and the second predetermined time period is 10 seconds, then the outer playback amount of terminal device can be made per second
Increase by 0.8, and the outer sound reproduction sound for controlling when increasing to 8 on the 10th second the terminal device is not increasing.
In addition, the second predetermined time period and audio broadcast sound volume in above-described embodiment, can pass through dialog box
Prompt user setting.
In above-described embodiment when starting to play the first file, the outer playback amount of terminal device is made to be gradually increased to target sound
Frequency broadcast sound volume, therefore can be lofty to avoid the sound of terminal device when playing the first file, and then further promote user's
Experience.
Embodiment two,
The embodiment of the present invention also provides a kind of terminal device, specifically, referring to Fig.1 shown in 0, which includes:
Receiving unit 101, for receiving the first operation of user's input, first operation is broadcast for triggering terminal equipment
First file is put, first file includes audio;
Volume detecting unit 102, for determining whether the environmental volume is greater than or equal to threshold volume, the ambient sound
Amount is the volume in the terminal device local environment;
Processing unit 103 is used for when the volume detecting unit 102 determines that the environmental volume is less than threshold volume,
Forbid playing first file.
Optionally, referring to Fig.1 shown in 1, the terminal device 100 further includes:Visual focus detection unit 104;
The visual focus detection unit 104, for determining that the environmental volume is greater than in the volume detecting unit 102
Or when being equal to threshold volume, determine the visual focus of user whether on the screen of the terminal device;
The processing unit 103 is also used to determine that the visual focus of user does not exist in the visual focus detection unit 104
When on the screen of the terminal device, forbid playing first file, and determine in the visual focus detection unit 104
The visual focus of user plays first file when on the screen of the terminal device.
Optionally, referring to Fig.1 shown in 1, the terminal device 100 further includes:Display unit 105;
The display unit 105, for determining that the environmental volume is less than threshold volume in the volume detecting unit 102
When, show that the first dialog box, first dialog box include putting sound options outside, it is described it is outer put sound options for control unlatching
Or close the outer sound reproduction sound of the terminal device;
The receiving unit 101 is also used to receive the second operation of user's input;
The processing unit 103 is also used in response to second operation, and the outer sound reproduction sound for controlling the terminal device is
State is opened or closed, and plays first file.
Optionally, first dialog box further includes the countdown of the first predetermined time period;
The processing unit 103, is also used to terminate in the countdown of first predetermined time period and the reception is single
Member do not receive user to it is described it is outer put the operation of sound options when, the outer sound reproduction sound for controlling the terminal device is opening state
State, and play first file.
Optionally, when the outer sound reproduction sound of the terminal device is open state, the processing unit 103 is also used to
When playing first file, the outer sound reproduction sound of the terminal device is gradually increased to target in the second predetermined time period
Audio broadcast sound volume.
The terminal device that the embodiment of the present invention provides, when receiving the first operation that user inputs the first file,
It determines whether environmental volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, forbids playing described first
File, as the embodiment of the present invention receive user input triggering terminal device plays described in the first file operation when,
Determine whether environmental volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, current occasion is possible for
It is not suitable for the occasion put outside sound, forbids the first file of broadcasting that can put outside to avoid the sound of terminal device at this time, therefore this hair
Bright embodiment can solve the problem of terminal device is put outside sound in being not suitable for occasion.
A kind of hardware structural diagram of Figure 12 terminal device of each embodiment to realize the present invention, as shown in figure 12,
The terminal device 100 includes but is not limited to:Radio frequency unit 101, network module 102, audio output unit 103, receiving unit
104, sensor 105, display unit 106, user's receiving unit 107, interface unit 108, memory 109, processor 110, with
And the equal components of power supply 111.It will be understood by those skilled in the art that the not structure paired terminal of terminal device structure shown in Figure 12
The restriction of equipment, terminal device may include perhaps combining certain components or different than illustrating more or fewer components
Component layout.In embodiments of the present invention, terminal device includes but is not limited to mobile phone, tablet computer, laptop, palm electricity
Brain, car-mounted terminal, wearable device and pedometer etc..
Wherein, user's receiving unit 107, for receiving the first operation of user's input, first operation is to first
The operation of file, first file includes audio, and first operation is for the first file described in triggering terminal device plays;
Receiving unit 104, for determining whether the environmental volume is greater than or equal to threshold volume, the environmental volume is
Volume in the terminal device local environment;
Processor 110, for forbidding broadcasting when the receiving unit 104 determines that the environmental volume is less than threshold volume
Put first file.
The terminal device that the embodiment of the present invention provides, when receiving the first operation that user inputs the first file,
It determines whether environmental volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, forbids playing described first
File, as the embodiment of the present invention receive user input triggering terminal device plays described in the first file operation when,
Determine whether environmental volume is greater than or equal to threshold volume, if environmental volume is less than threshold volume, current occasion is possible for
It is not suitable for the occasion put outside sound, forbids the first file of broadcasting that can put outside to avoid the sound of terminal device at this time, therefore this hair
Bright embodiment can solve the problem of terminal device is put outside sound in being not suitable for occasion.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set
Standby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end equipment executes.Sound
Frequency output unit 103 includes loudspeaker, buzzer and receiver etc..
Receiving unit 104 is for receiving audio or video signal.Receiving unit 104 may include graphics processor
(GraphicsProcessing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike
Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device further includes at least one sensor 105, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment light
The light and shade of line adjusts the brightness of display panel 1061, and proximity sensor can close display when terminal device is moved in one's ear
Panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three in all directions
Axis) acceleration size, can detect that size and the direction of gravity when static, it is (such as horizontal to can be used to identify terminal device posture
Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor
105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity
Meter, thermometer, infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (OrganicLight-Emitting Diode, OLED) configure display panel 1061.
User's receiving unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device
Family setting and the related key signals input of function control.Specifically, user's receiving unit 107 include touch panel 1071 and
Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area
It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 1071.In addition to touch panel 1071, user's receiving unit 107 can also include other input equipments
1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it
On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching
The type for touching event provides corresponding visual output on display panel 1061.Although in Figure 12, touch panel 1071 and aobvious
Show that panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments
In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this
Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device.For example, external device (ED) may include it is wired or
Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port,
For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module
Etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will
The one or more elements or can be used in terminal device and external device (ED) that the input received is transferred in terminal device
Between transmit data.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place
Managing device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device can also include the power supply 111 (such as battery) powered to all parts, and optionally, power supply 111 can
With logically contiguous by power-supply management system and processor 110, thus charged, discharged by power-supply management system realization management,
And the functions such as power managed.
In addition, terminal device includes some unshowned functional modules, details are not described herein.
Embodiment three,
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned playback method embodiment when being executed by processor, and can reach
Identical technical effect, to avoid repeating, which is not described herein again.Wherein, computer readable storage medium, such as read-only memory
(Read-OnlyMemory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disk or
Person's CD etc..
Wherein, terminal device provided in an embodiment of the present invention, computer storage medium are used to execute presented above
Corresponding method, therefore, attainable beneficial effect can refer to the beneficial effect in corresponding method presented above,
Details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (11)
1. a kind of playback method, which is characterized in that including:
The first operation of user's input is received, first operation is the operation to the first file, and first file includes sound
Frequently, first operation is for the first file described in triggering terminal device plays;
Determine whether the environmental volume is greater than or equal to threshold volume, the environmental volume is the terminal device local environment
In volume;
If the environmental volume is less than threshold volume, forbid playing first file.
2. the method according to claim 1, wherein the method also includes:
If the environmental volume is greater than or equal to threshold volume, it is determined that whether the visual focus of user is in the terminal device
On screen;
If the visual focus of the user not on the screen of the terminal device, is forbidden playing first file;
If the visual focus of the user on the screen of the terminal device, plays first file.
3. the method according to claim 1, wherein after forbidding playing first file, the method
Further include:
Show the first dialog box, first dialog box includes putting sound options outside, it is described it is outer put sound options for control open
Open or close the outer sound reproduction sound of the terminal device;
Receive the second operation of user's input;
In response to second operation, the outer sound reproduction sound for controlling the terminal device is the state that opens or closes, and described in broadcasting
First file.
4. according to the method described in claim 3, it is characterized in that, first dialog box further includes the first predetermined time period
Countdown;The method also includes:
When the countdown of first predetermined time period terminates and does not receive user to the outer operation for putting sound options
When, the outer sound reproduction sound for controlling the terminal device is open state, and plays first file.
5. according to the described in any item methods of claim 2-4, which is characterized in that the terminal device outer sound reproduction sound be open
When opening state, broadcasting first file includes:
When playing first file, the outer sound reproduction sound of the terminal device is gradually increased in the second predetermined time period
Target audio broadcast sound volume.
6. a kind of terminal device, which is characterized in that including:
Receiving unit, for receiving the first operation of user's input, first operation is for described in triggering terminal device plays
First file, first file includes audio;
Volume detecting unit, for determining whether the environmental volume is greater than or equal to threshold volume, the environmental volume is institute
State the volume in terminal device local environment;
Processing unit, for when the processing unit determines that the environmental volume is less than threshold volume, forbidding playing described the
One file.
7. terminal device according to claim 6, which is characterized in that the terminal device further includes:Visual focus detection
Unit;
The visual focus detection unit, for determining that the environmental volume is greater than or equal to threshold value in the volume detecting unit
When volume, determine the visual focus of user whether on the screen of the terminal device;
The processing unit is also used to determine that the visual focus of user is not set in the terminal in the visual focus detection unit
When on standby screen, forbid playing first file, and determine that the vision of user is burnt in the visual focus detection unit
Point plays first file when on the screen of the terminal device.
8. terminal device according to claim 6, which is characterized in that the terminal device further includes:Display unit;
The display unit, for when the volume detecting unit determines that the environmental volume is less than threshold volume, display the
One dialog box, first dialog box include putting sound options outside, it is described it is outer put sound options for control open or close institute
State the outer sound reproduction sound of terminal device;
The receiving unit is also used to receive the second operation of user's input;
The processing unit, is also used in response to second operation, control the outer sound reproduction sound of the terminal device to open or
Closed state, and play first file.
9. terminal device according to claim 8, which is characterized in that first dialog box further includes the first preset time
The countdown of length;
The processing unit is also used to terminate in the countdown of first predetermined time period and the receiving unit does not receive
To user to it is described it is outer put the operation of sound options when, the outer sound reproduction sound for controlling the terminal device is open state, and is played
First file.
10. according to the described in any item terminal devices of claim 7-9, when the outer sound reproduction sound of the terminal device is open state
When, the processing unit is also used to when playing first file, by the terminal device in the second predetermined time period
Outer sound reproduction sound be gradually increased to target audio broadcast sound volume.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in playback method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810672833.0A CN108874143A (en) | 2018-06-26 | 2018-06-26 | A kind of playback method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810672833.0A CN108874143A (en) | 2018-06-26 | 2018-06-26 | A kind of playback method and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108874143A true CN108874143A (en) | 2018-11-23 |
Family
ID=64294822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810672833.0A Pending CN108874143A (en) | 2018-06-26 | 2018-06-26 | A kind of playback method and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108874143A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111161456A (en) * | 2020-03-02 | 2020-05-15 | 广东科徕尼智能科技有限公司 | Setting method of intelligent lock, intelligent lock and storage medium |
CN112260982A (en) * | 2019-07-22 | 2021-01-22 | 华为技术有限公司 | Audio processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431638A (en) * | 2007-11-07 | 2009-05-13 | 深圳华为通信技术有限公司 | Sound volume regulating method and apparatus for media playing |
CN103945054A (en) * | 2014-03-14 | 2014-07-23 | 上海天奕达电子科技有限公司 | Short message sending method and mobile terminal |
US20150117676A1 (en) * | 2013-08-19 | 2015-04-30 | Tencenet Technology (Shenzhen) Company Limited | Devices and Methods for Audio Volume Adjustment |
CN105141754A (en) * | 2015-07-27 | 2015-12-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105208198A (en) * | 2015-08-20 | 2015-12-30 | 马海峰 | Method for reducing consumption of data flow of intelligent mobile phone |
CN105338196A (en) * | 2015-11-19 | 2016-02-17 | 广东小天才科技有限公司 | Method for reminding user of ending conversation and communication terminal |
CN105635483A (en) * | 2016-01-26 | 2016-06-01 | 广东欧珀移动通信有限公司 | Processing method and device for operating mobile terminal |
CN105872746A (en) * | 2015-11-26 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Muting method according to use scenes and terminal device |
-
2018
- 2018-06-26 CN CN201810672833.0A patent/CN108874143A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431638A (en) * | 2007-11-07 | 2009-05-13 | 深圳华为通信技术有限公司 | Sound volume regulating method and apparatus for media playing |
US20150117676A1 (en) * | 2013-08-19 | 2015-04-30 | Tencenet Technology (Shenzhen) Company Limited | Devices and Methods for Audio Volume Adjustment |
CN103945054A (en) * | 2014-03-14 | 2014-07-23 | 上海天奕达电子科技有限公司 | Short message sending method and mobile terminal |
CN105141754A (en) * | 2015-07-27 | 2015-12-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105208198A (en) * | 2015-08-20 | 2015-12-30 | 马海峰 | Method for reducing consumption of data flow of intelligent mobile phone |
CN105338196A (en) * | 2015-11-19 | 2016-02-17 | 广东小天才科技有限公司 | Method for reminding user of ending conversation and communication terminal |
CN105872746A (en) * | 2015-11-26 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Muting method according to use scenes and terminal device |
CN105635483A (en) * | 2016-01-26 | 2016-06-01 | 广东欧珀移动通信有限公司 | Processing method and device for operating mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112260982A (en) * | 2019-07-22 | 2021-01-22 | 华为技术有限公司 | Audio processing method and device |
CN112260982B (en) * | 2019-07-22 | 2022-03-11 | 华为技术有限公司 | Audio processing method and device |
CN111161456A (en) * | 2020-03-02 | 2020-05-15 | 广东科徕尼智能科技有限公司 | Setting method of intelligent lock, intelligent lock and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108182019A (en) | A kind of suspension control display processing method and mobile terminal | |
CN110062105A (en) | A kind of interface display method and terminal device | |
CN109407921A (en) | A kind of processing method and terminal device of application program | |
CN109857495A (en) | A kind of display control method and terminal device | |
CN110058836A (en) | A kind of output method and terminal device of audio signal | |
CN109995933A (en) | The method and terminal device of the alarm clock of controlling terminal equipment | |
CN108762471A (en) | A kind of display control method and mobile terminal | |
CN110069180A (en) | A kind of function control method and terminal device | |
CN109085968A (en) | A kind of screenshotss method and terminal device | |
CN109151176A (en) | A kind of information acquisition method and terminal | |
CN110225178A (en) | A kind of information display method and terminal device | |
CN110233933A (en) | A kind of call method and terminal device | |
CN109830248A (en) | A kind of audio recording method and terminal device | |
CN110049187A (en) | A kind of display methods and terminal device | |
CN108171034A (en) | A kind of method and terminal for protecting privacy | |
CN108920054A (en) | A kind of application recommended method and terminal | |
CN108008892A (en) | The method and terminal that a kind of function enables | |
CN110012152A (en) | A kind of interface display method and terminal device | |
CN110012151A (en) | A kind of information display method and terminal device | |
CN109992228A (en) | A kind of interface display parameter method of adjustment and terminal device | |
CN108874143A (en) | A kind of playback method and terminal device | |
CN108196699A (en) | A kind of method and apparatus of page layout switch | |
CN109992941A (en) | A kind of right management method and terminal device | |
CN110045898A (en) | A kind of display methods and terminal device | |
CN109246308A (en) | A kind of method of speech processing and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181123 |
|
WD01 | Invention patent application deemed withdrawn after publication |