[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106126179B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN106126179B
CN106126179B CN201610475122.5A CN201610475122A CN106126179B CN 106126179 B CN106126179 B CN 106126179B CN 201610475122 A CN201610475122 A CN 201610475122A CN 106126179 B CN106126179 B CN 106126179B
Authority
CN
China
Prior art keywords
application
preset
electronic equipment
electronic device
numerical value
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
CN201610475122.5A
Other languages
Chinese (zh)
Other versions
CN106126179A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610475122.5A priority Critical patent/CN106126179B/en
Publication of CN106126179A publication Critical patent/CN106126179A/en
Application granted granted Critical
Publication of CN106126179B publication Critical patent/CN106126179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)
  • Television Receiver Circuits (AREA)
  • Circuits Of Receivers In General (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides an information processing method, which is applied to an electronic device provided with a first application, wherein the first application is used for playing audio and/or video, and the information processing method comprises the following steps: status information; and controlling the playing volume of the first application to be adjusted from a smaller first numerical value to a larger second numerical value within a preset time length based on the fact that the detected state information of the electronic equipment meets a preset condition, wherein the value of the preset time length is a non-zero positive number. By adopting the method, whether the playing volume of the first application is adjusted or not is determined by judging whether the state information of the electronic equipment meets the preset condition, and when the state information meets the preset condition, the playing volume of the first application is adjusted from a lower first numerical value to a higher second numerical value within the preset time length which is greater than zero, and the playing volume of the first application is adjusted to the preset time length which is greater than zero, so that the problem that the playing volume is suddenly large when the application is started cannot occur in the process, and the user experience is improved.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to an information processing method and an electronic device.
Background
With the development of electronic technology, electronic devices are generally provided with applications with audio/video playing functions.
In the process that a user uses the electronic equipment to play audio/video, other situations can cause the audio/video playing process to be interrupted, and after other situations are finished, the audio/video playing is continued. For example, when there is an incoming call, the user can connect the incoming call to carry out a call, and when the call is ended, the audio/video playing process interrupted by the call automatically continues.
However, since the volume of the audio/video to be played is generally large, the audio/video sound that is automatically continuously played changes from silence to large suddenly, which may cause ear discomfort to the user and lead to poor user experience.
Disclosure of Invention
In view of the above, the present invention provides an information processing method, which solves the problem in the prior art that the audio/video sound that is automatically continuously played suddenly changes from silence to very large, which may cause discomfort to the ears of the user.
In order to achieve the purpose, the invention provides the following technical scheme:
an information processing method is applied to an electronic device, wherein a first application is arranged in the electronic device, and the first application is used for playing audio and/or video, and the method comprises the following steps:
detecting state information of the electronic equipment;
and controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is greater than the first numerical value, and the value of the preset time length is a non-zero positive number.
Preferably, the method for detecting the state information of the electronic device includes:
receiving environment detection information of the electronic equipment;
and analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information.
Preferably, the method for judging whether the state information satisfies the preset condition includes:
judging whether the relative position relation meets a preset far condition or not to obtain a first judgment result;
and representing that the relative position relation meets a preset far condition based on a first judgment result, and judging that the state information meets the preset condition.
Preferably, the method described above, before detecting the status information of the electronic device, includes:
acquiring environment detection information and a first flow, wherein the first flow is used for starting a first application;
and establishing a corresponding relation between the environment detection information and the first flow, wherein the corresponding relation is used for executing the first flow based on the environment detection information to realize starting of the first application.
Preferably, the method for detecting the state information of the electronic device and determining whether the state information meets a preset condition includes:
detecting a flow of a second application in the electronic equipment, wherein the priority of the second application is higher than that of the first application;
when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result;
and representing that a first application in the electronic equipment is in a state to be started based on a second judgment result, and judging that the state information meets a preset condition.
In the above method, preferably, the controlling the playing volume of the first application to be adjusted from the first value to the second value in the preset time duration includes:
and controlling the playing volume of the first application to be gradually adjusted from a first numerical value to a second numerical value in a preset time length according to a preset change rate.
In the above method, preferably, the controlling the playing volume of the first application to be adjusted from the first value to the second value in the preset time duration includes:
controlling the first application to be started after a preset delay time according to the preset delay time;
and when the first application is started, the playing volume adopts a second numerical value.
An electronic device, wherein a first application is provided in the electronic device, and the first application is used for playing audio and/or video, and comprises:
a detector for detecting status information of the electronic device;
and the controller is used for controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is greater than the first numerical value, and the value of the preset time length is a non-zero positive number.
The electronic device described above, preferably, the detector is configured to:
receiving environment detection information of the electronic equipment;
and analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information.
In the electronic device, preferably, the detector is further configured to:
judging whether the relative position relation meets a preset far condition or not to obtain a first judgment result;
and representing that the relative position relation meets a preset far condition based on a first judgment result, and judging that the state information meets the preset condition.
The electronic device described above preferably further includes:
the system comprises a starter, a first application and a second application, wherein the starter is used for acquiring environment detection information and a first process, and the first process is used for starting the first application; and establishing a corresponding relation between the environment detection information and the first flow, wherein the corresponding relation is used for executing the first flow based on the environment detection information to realize starting of the first application.
In the electronic device, preferably, the detector is configured to:
detecting a flow of a second application in the electronic equipment, wherein the priority of the second application is higher than that of the first application;
when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result;
and representing that a first application in the electronic equipment is in a state to be started based on a second judgment result, and judging that the state information meets a preset condition.
In the electronic device, preferably, the controller is configured to:
and controlling the playing volume of the first application to be gradually adjusted from a first numerical value to a second numerical value in a preset time length according to a preset change rate.
In the electronic device, preferably, the controller is configured to:
controlling the first application to be started after a preset delay time according to the preset delay time;
and when the first application is started, the playing volume adopts a second numerical value.
An electronic device, wherein a first application is provided in the electronic device, and the first application is used for playing audio and/or video, and comprises:
the detection module is used for detecting the state information of the electronic equipment;
and the control module is used for controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is greater than the first numerical value, and the value of the preset time length is a non-zero positive number.
As can be seen from the foregoing technical solutions, compared with the prior art, the present invention provides an information processing method applied to an electronic device, where a first application is provided in the electronic device, and the first application is used for playing audio and/or video, and the method includes: detecting state information of the electronic equipment; and controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is greater than the first numerical value, and the value of the preset time length is a non-zero positive number. By adopting the method, whether the playing volume of the first application is adjusted or not is determined by judging whether the state information of the electronic equipment meets the preset condition, and when the state information meets the preset condition, the playing volume of the first application is adjusted from a lower first numerical value to a higher second numerical value within the preset time length greater than zero.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method according to embodiment 1 of the present invention;
fig. 2 is a flowchart of an information processing method according to embodiment 2 of the present invention;
fig. 3 is a flowchart of an information processing method according to embodiment 3 of the present invention;
fig. 4 is a flowchart of an information processing method according to embodiment 4 of the present invention;
fig. 5 is a flowchart of an embodiment 5 of an information processing method according to the present invention;
fig. 6 is a flowchart of an embodiment 6 of an information processing method according to the present invention;
fig. 7 is a schematic structural diagram of an electronic device in embodiment 1 of the present invention;
fig. 8 is a schematic structural diagram of an electronic device in embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an embodiment 1 of an information processing method according to the present invention is shown, where the method is applied to an electronic device, where the electronic device is provided with a first application, the first application is used to play audio and/or video, and the electronic device may specifically adopt an electronic device in the form of a desktop, a notebook, a tablet computer, a mobile phone, a smart watch, a wearable device, or the like.
Wherein, the method comprises the following steps:
step S101: detecting state information of the electronic equipment;
the state information of the electronic device represents a current state of the electronic device, and the state of the electronic device may specifically be an environment and an operating state of a set application.
Specifically, based on the current operating state of the electronic device, it may be determined whether the volume of the electronic device needs to be turned up.
In the following embodiments, the process of detecting the status information of the electronic device will be explained in detail, and details are not described in this embodiment.
Step S102: and controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition.
The second value is larger than the first value, and the value of the preset time length is a non-zero positive number.
In one embodiment, the first value may be zero or based on a positive value that is non-zero.
And when the condition that the state information of the electronic equipment meets the preset condition is determined, the playing volume of a first application running in the electronic equipment is increased.
Specifically, the first application may be any application capable of playing audio, such as a video player, an audio player, a social application (e.g., WeChat, QQ, and sing bar), and the like.
In a specific implementation, before the volume of the first application is adjusted, two modes or two applications may be switched for the electronic device.
When the electronic device is in the first mode, the volume of the first application is small, and after the electronic device is switched to the second mode, the volume of the first application needs to be increased to match the hearing of the user; or when the electronic device switches the application playing the audio from other applications to the first application, the volume of the first application is smaller or even zero before, and after the application playing the audio is switched to the first application, the volume of the first application is adjusted to be higher, so as to realize the matching with the hearing of the user.
It should be noted that, the playing volume of the first application is turned up only after a period of time, and in the process, the user has already kept away from the electronic device, so that the problem that the playing volume is suddenly large when the user starts the application when the user is close to the electronic device does not occur, and the user experience is good.
As an example, when the user hangs up the phone, the audio player that was running before continues to run, and at this time, the volume of the audio player is increased from 0, which is the lowest, to the volume before the interruption of the playing after 5 seconds, so as to prevent the problem that the playing volume is suddenly large.
In summary, an information processing method applied to an electronic device provided in this embodiment is provided, where a first application is provided in the electronic device, and the first application is used for playing audio and/or video, then the method includes: detecting state information of the electronic equipment; and controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is greater than the first numerical value, and the value of the preset time length is a non-zero positive number. By adopting the method, whether the playing volume of the first application is adjusted or not is determined by judging whether the state information of the electronic equipment meets the preset condition, and when the state information meets the preset condition, the playing volume of the first application is adjusted from a lower first numerical value to a higher second numerical value within the preset time length greater than zero.
Referring to fig. 2, a flowchart of an embodiment 2 of an information processing method according to the present invention is shown, where the method includes the following steps:
step S201: receiving environment detection information of the electronic equipment;
wherein the environment detection information characterizes an environment state of the electronic device.
Specifically, in this embodiment, the environmental status of the electronic device may represent a position relationship between the electronic device and the user.
In specific implementation, the environment detection information may be acquired by an infrared sensor or a distance sensor.
Step S202: analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information;
wherein the environment detection information characterizes a positional relationship between the electronic device and the user.
Then, the relative position relationship between the electronic device and the user can be obtained by analyzing the environment detection information.
As a specific example, the electronic device is a mobile phone, when a user holds the mobile phone to make a call, the relative position relationship between the electronic device and the mobile phone indicates that the two are closer, and when the user finishes the call and puts down the mobile phone, the relative position relationship between the electronic device and the mobile phone indicates that the two are farther.
As a specific example, the electronic device is a Pad (tablet computer), and when the user holds the Pad close to the ear to listen to the voice in WeChat, the relative position relationship between the Pad and the electronic device is closer to the two representations, and when the user finishes listening to the voice and puts down the Pad, the relative position relationship between the Pad and the electronic device is farther from the two representations.
It should be noted that, when the electronic device is located closer to the user, the playback volume of the first application in the electronic device is directly turned up, so that the user may feel that the volume at the ear is suddenly increased, which may cause discomfort to the ear of the user. Therefore, it is necessary to determine whether the state information of the electronic device satisfies a preset condition based on the relative positional relationship between the user and the electronic device, and perform step S204 when determining that the state information of the electronic device satisfies the preset condition.
Step S203: judging whether the relative position relation meets a preset far condition or not to obtain a second judgment result;
specifically, the preset distant condition includes that the relative position value between the user and the electronic device is larger and larger.
It should be noted that, in step S201, the environment detection information received from the electronic device is real-time detection, and the collected environment detection information is a combination of a plurality of pieces of information in a period of time.
Based on the plurality of pieces of environment detection information, the change of the relative position relationship between the electronic equipment and the user along with the time can be analyzed and obtained.
Then, based on the change in the relative positional relationship, it is determined whether the relative positional relationship satisfies a distant condition.
Representing that the relative position relation meets a preset far condition based on a second judgment result, and judging that the state information meets the preset condition; otherwise, the state information does not meet the preset condition.
Step S204: and representing that the relative position relation meets a preset far-away condition based on a second judgment result, judging that the state information meets the preset condition, and controlling the playing volume of the first application to be adjusted from a first value to a second value within a preset time length.
Step S204 is the same as step S102 in embodiment 1, and details are not described in this embodiment.
In summary, in an information processing method provided in this embodiment, the detecting the status information of the electronic device includes: receiving environment detection information of the electronic equipment; and analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information. By adopting the method, the environment of the electronic equipment is detected to obtain the environment detection information, the relative position relationship between the electronic equipment and the user is further analyzed to obtain, whether the electronic equipment is gradually far away from the user or not is determined based on the relative position relationship, the state of the electronic equipment is determined, and the process is simple.
Referring to fig. 3, a flowchart of an embodiment 3 of an information processing method according to the present invention is shown, where the method includes the following steps:
step S301: acquiring environment detection information and a first process;
wherein the first flow is used to launch a first application.
The environment detection information is acquired based on a detection unit preset in the electronic device, such as an infrared sensor or a distance sensor, and represents an environment state of the electronic device.
Step S302: establishing a corresponding relation between the environment detection information and the first flow;
wherein the corresponding relation is used for executing the first process based on the environment detection information to realize starting the first application.
In specific implementation, the detection unit may be registered in an Audio (Audio) module of a Framework (Framework) layer corresponding to a start (start) process of the first application process, so as to establish a corresponding relationship between the environment detection information and the first process, and when information detected by the detection unit satisfies a condition, the start process is executed.
In this embodiment, the information detected by the detecting unit satisfies the condition indicating that the electronic device is far away from the user, and at this time, the audio module starts to adjust the volume of the electronic device.
Step S303: receiving environment detection information of the electronic equipment;
step S304: analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information;
step S305: judging whether the relative position relation meets a preset far condition or not to obtain a first judgment result;
step S306: and characterizing that the relative position relation meets a preset far-away condition based on a first judgment result, judging that the state information meets the preset condition, and controlling the playing volume of the first application to be adjusted from a first value to a second value within a preset time length.
Steps S303 to 306 are the same as steps S201 to 204 in embodiment 2, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: acquiring environment detection information and a first flow, wherein the first flow is used for starting a first application; and establishing a corresponding relation between the environment detection information and the first flow, wherein the corresponding relation is used for executing the first flow based on the environment detection information to realize starting of the first application. In the scheme, the volume adjustment of the first application is controlled based on the environment detection information based on establishing the corresponding relation between the environment detection information and the first flow for starting the first application.
Referring to fig. 4, a flowchart of an embodiment 4 of an information processing method according to the present invention is shown, where the method includes the following steps:
step S401: detecting a flow of a second application in the electronic equipment;
wherein the second application is higher in priority than the first application.
Specifically, the flow of the second application is detected in the framework layer.
In a specific implementation, when the second application is started, a special thread in the framework layer monitors the thread of the second application.
Step S402: when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result;
and analyzing the state of the first application to be started, wherein the process progress of the first application can be detected.
Specifically, when the process of the first application is in the Play () or pause () state, it is determined that the first application is in the state to be started.
When the flow of the second application is finished, judging that a first application in the electronic equipment is in a state to be started, and judging that the state information of the electronic equipment meets a preset condition; otherwise, the electronic equipment state information does not meet the preset condition.
Step S403: and characterizing that a first application is in a state to be started in the electronic equipment based on a second judgment result, judging that the state information meets a preset condition, and controlling the playing volume of the first application to be adjusted from a first value to a second value within a preset time length.
Step S403 is the same as step S102 in embodiment 1, and details are not described in this embodiment.
In summary, in an information processing method provided in this embodiment, the detecting state information of an electronic device and determining whether the state information satisfies a preset condition includes: detecting a flow of a second application in the electronic equipment, wherein the priority of the second application is higher than that of the first application; when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result; and representing that a first application in the electronic equipment is in a state to be started based on a second judgment result, and judging that the state information meets a preset condition. By adopting the method, when the second application with higher priority is determined to be finished, the first application is in a state to be started, and the state information of the electronic equipment is determined to meet the preset condition.
Referring to fig. 5, a flowchart of an embodiment 5 of an information processing method according to the present invention is shown, where the method includes the following steps:
step S501: detecting state information of the electronic equipment;
step S501 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S502: and controlling the playing volume of the first application to be gradually adjusted from a first value to a second value within a preset time length according to a preset change rate based on the condition that the state information meets a preset condition.
When the state information of the electronic device meets the preset condition, the playing volume of the first application in the electronic device can be increased.
Specifically, the playing volume of the first application is increased from a first value to a second value in a preset time span in a step-type adjustment mode.
In specific implementation, a flow in an Audio module of a Framework layer may be provided with a port to control the step adjustment of the volume.
For example, if the preset time duration is 5 seconds, the fixed volume may be increased every second within the 5 seconds, and finally the volume is increased to the second value.
In specific implementation, the volume on time in the Audio module of the Framework layer can be set; or setting the volume to 0 by a start flow of a Framework layer, and after a preset time period, setting the volume to an original value, where the original value is a volume value played or preset when the first application is interrupted, last closed.
In summary, in the information processing method provided in this embodiment, the controlling the playback volume of the first application to be adjusted from the first value to the second value in the preset time duration includes: and controlling the playing volume of the first application to be gradually adjusted from a first numerical value to a second numerical value in a preset time length according to a preset change rate. By adopting the method, the playing volume of the first application is increased in a step-type adjustment mode within the preset time length, and in the process, the electronic equipment is gradually far away from the user, so that the problem that the playing volume is suddenly large when the electronic equipment is positioned at a position close to the user when the application is started is avoided, and the user experience is improved.
Referring to fig. 6, a flowchart of an embodiment 6 of an information processing method according to the present invention is shown, where the method includes the following steps:
step S601: detecting state information of the electronic equipment;
step S601 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S602: and controlling the first application to be started after the delay time according to the preset delay time based on the condition that the state information meets the preset condition.
And when the first application is started, the playing volume adopts a second numerical value.
The delay time may be a preset value, such as 3 seconds, 5 seconds, or even longer 10 seconds.
It should be noted that, in the specific implementation, to ensure the user experience, the delay time is not set to be very long, and generally is within 10 seconds.
As a specific example, when the second application having a higher priority than the first application is ended when the preset condition is satisfied, the time for starting the first application is suspended, so that the user has time to move the electronic device away from the user.
In a specific implementation, the start flow of the first application in the Framework layer may be started after a preset time period is set.
In summary, in the information processing method provided in this embodiment, the controlling the playback volume of the first application to be adjusted from the first value to the second value in the preset time duration includes: controlling the first application to be started after a preset delay time according to the preset delay time; and when the first application is started, the playing volume adopts a second numerical value. By adopting the method, the starting time of the first application is delayed, the electronic equipment is far away from the user at the moment, the problem that the playing volume of the electronic equipment is suddenly large when the electronic equipment is positioned at a position close to the user when the application is started is solved, and the user experience is improved.
The above embodiments provided by the present invention describe an information processing method in detail, and the information processing method of the present invention can be implemented by various types of devices, so the present invention also provides an electronic device using the information processing method, and the following specific embodiments are described in detail.
Referring to fig. 7, a schematic structural diagram of an embodiment 1 of an electronic device provided in the present invention is shown, where the electronic device is provided with a first application, the first application is used to play audio and/or video, and the electronic device may specifically adopt electronic devices in the forms of a desktop, a notebook, a tablet computer, a mobile phone, a smart watch, a wearable device, and the like.
Wherein, this electronic equipment includes: a detector 701 and a controller 702;
the detector 701 is used for detecting state information of the electronic equipment;
the controller 702 is configured to control, based on that the state information satisfies a preset condition, a playing volume of the first application to be adjusted from a first value to a second value within a preset time duration, where the second value is greater than the first value, and a value of the preset time duration is a non-zero positive number.
In specific implementation, the detector can adopt a structure capable of collecting environment detection information of the electronic equipment, such as an infrared sensor or a distance sensor; or a monitoring flow preset in the frame layer.
In a specific implementation, the controller may be a structure having a data processing capability in an electronic device, such as a Central Processing Unit (CPU).
Preferably, the detector is configured to:
receiving environment detection information of the electronic equipment;
and analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information.
Preferably, the detector is further configured to:
judging whether the relative position relation meets a preset far condition or not to obtain a first judgment result;
and representing that the relative position relation meets a preset far condition based on a first judgment result, and judging that the state information meets the preset condition.
Preferably, the method further comprises the following steps:
the system comprises a starter, a first application and a second application, wherein the starter is used for acquiring environment detection information and a first process, and the first process is used for starting the first application; and establishing a corresponding relation between the environment detection information and the first flow, wherein the corresponding relation is used for executing the first flow based on the environment detection information to realize starting of the first application.
Preferably, the detector is configured to:
detecting a flow of a second application in the electronic equipment, wherein the priority of the second application is higher than that of the first application;
when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result;
and representing that a first application in the electronic equipment is in a state to be started based on a second judgment result, and judging that the state information meets a preset condition.
Preferably, the controller is configured to:
and controlling the playing volume of the first application to be gradually adjusted from a first numerical value to a second numerical value in a preset time length according to a preset change rate.
Preferably, the controller is configured to:
controlling the first application to be started after a preset delay time according to the preset delay time;
and when the first application is started, the playing volume adopts a second numerical value.
In summary, in the electronic device provided in this embodiment, it is determined whether to adjust the playback volume of the first application by determining whether the state information of the electronic device satisfies the preset condition, and when it is determined that the state information satisfies the preset condition, the playback volume of the first application is adjusted from a lower first value to a higher second value within a preset time length that is greater than zero, and the time for adjusting the playback volume of the first application is the preset time length that is greater than zero.
Referring to fig. 8, a schematic structural diagram of an embodiment 2 of an electronic device according to the present invention is shown, where the electronic device is provided with a first application, the first application is used to play audio and/or video, and the electronic device may specifically adopt electronic devices in the forms of a desktop, a notebook, a tablet computer, a mobile phone, a smart watch, a wearable device, and the like.
Wherein, this electronic equipment includes: a detection module 801 and a control module 802;
the detecting module 801 is configured to detect status information of an electronic device;
the control module 802 is configured to control, based on that the state information satisfies a preset condition, a playing volume of the first application to be adjusted from a first value to a second value within a preset time duration, where the second value is greater than the first value, and a value of the preset time duration is a non-zero positive number.
In summary, in the electronic device provided in this embodiment, it is determined whether to adjust the playback volume of the first application by determining whether the state information of the electronic device satisfies the preset condition, and when it is determined that the state information satisfies the preset condition, the playback volume of the first application is adjusted from a lower first value to a higher second value within a preset time length that is greater than zero, and the time for adjusting the playback volume of the first application is the preset time length that is greater than zero.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (11)

1. An information processing method applied to an electronic device, wherein a first application is set in the electronic device, and the first application is used for playing audio and/or video, and the method comprises the following steps:
detecting state information of electronic equipment when a second application occupying an audio module is ended and the first application is continuously operated, wherein the priority of the second application is higher than that of the first application;
based on the condition that the state information meets a preset condition, controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length, wherein the second numerical value is larger than the first numerical value, and the value of the preset time length is a non-zero positive number;
wherein, the detecting the state information of the electronic device comprises:
receiving environment detection information of the electronic equipment;
analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information;
wherein, judge whether state information satisfies the preset condition, include:
judging whether the relative position relation of the electronic equipment and the user meets a preset far condition or not based on the fact that the relative position relation of the electronic equipment and the user is smaller than a preset threshold value when the second application is finished, and obtaining a first judgment result;
and representing that the relative position relation meets a preset far condition based on a first judgment result, and judging that the state information meets the preset condition.
2. The method of claim 1, wherein prior to detecting the status information of the electronic device, comprising:
acquiring environment detection information and a first flow, wherein the first flow is used for starting a first application;
and establishing a corresponding relation between the environment detection information and the first flow, wherein the corresponding relation is used for executing the first flow based on the environment detection information to realize starting of the first application.
3. The method of claim 1, wherein detecting status information of the electronic device and determining whether the status information satisfies a preset condition comprises:
detecting a flow of a second application in the electronic equipment, wherein the priority of the second application is higher than that of the first application;
when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result;
and representing that a first application in the electronic equipment is in a state to be started based on a second judgment result, and judging that the state information meets a preset condition.
4. The method of any one of claims 1-3, wherein controlling the playback volume of the first application to adjust from a first value to a second value for a preset length of time comprises:
and controlling the playing volume of the first application to be gradually adjusted from a first numerical value to a second numerical value in a preset time length according to a preset change rate.
5. The method of any one of claims 1-3, wherein controlling the playback volume of the first application to adjust from a first value to a second value for a preset length of time comprises:
controlling the first application to be started after a preset delay time according to the preset delay time;
and when the first application is started, the playing volume adopts a second numerical value.
6. An electronic device, wherein a first application is provided in the electronic device, and the first application is used for playing audio and/or video, and the electronic device comprises:
the detector is used for detecting the state information of the electronic equipment when the first application is continuously operated based on the end of a second application occupying the audio module, wherein the priority of the second application is higher than that of the first application;
the controller is used for controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is larger than the first numerical value, and the value of the preset time length is a non-zero positive number;
wherein the detector is configured to:
receiving environment detection information of the electronic equipment;
analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information;
judging whether the relative position relation of the electronic equipment and the user meets a preset far condition or not based on the fact that the relative position relation of the electronic equipment and the user is smaller than a preset threshold value when the second application is finished, and obtaining a first judgment result;
and representing that the relative position relation meets a preset far condition based on a first judgment result, and judging that the state information meets the preset condition.
7. The electronic device of claim 6, further comprising:
the system comprises a starter, a first application and a second application, wherein the starter is used for acquiring environment detection information and a first process, and the first process is used for starting the first application; and establishing a corresponding relation between the environment detection information and the first flow, wherein the corresponding relation is used for executing the first flow based on the environment detection information to realize starting of the first application.
8. The electronic device of claim 6, wherein the detector is to:
detecting a flow of a second application in the electronic equipment, wherein the priority of the second application is higher than that of the first application;
when the flow of the second application is finished, judging whether a first application is in a state to be started in the electronic equipment or not to obtain a second judgment result;
and representing that a first application in the electronic equipment is in a state to be started based on a second judgment result, and judging that the state information meets a preset condition.
9. The electronic device of any of claims 6-8, wherein the controller is configured to:
and controlling the playing volume of the first application to be gradually adjusted from a first numerical value to a second numerical value in a preset time length according to a preset change rate.
10. The electronic device of any of claims 6-8, wherein the controller is configured to:
controlling the first application to be started after a preset delay time according to the preset delay time;
and when the first application is started, the playing volume adopts a second numerical value.
11. An electronic device, wherein a first application is provided in the electronic device, and the first application is used for playing audio and/or video, and the electronic device comprises:
the detection module is used for detecting the state information of the electronic equipment when the first application is continuously operated based on the end of a second application occupying the audio module, wherein the priority of the second application is higher than that of the first application;
the control module is used for controlling the playing volume of the first application to be adjusted from a first numerical value to a second numerical value within a preset time length based on the condition that the state information meets a preset condition, wherein the second numerical value is larger than the first numerical value, and the value of the preset time length is a non-zero positive number;
wherein the control module is configured to:
receiving environment detection information of the electronic equipment;
analyzing to obtain the relative position relation between the electronic equipment and the user based on the environment detection information;
judging whether the relative position relation of the electronic equipment and the user meets a preset far condition or not based on the fact that the relative position relation of the electronic equipment and the user is smaller than a preset threshold value when the second application is finished, and obtaining a first judgment result;
and representing that the relative position relation meets a preset far condition based on a first judgment result, and judging that the state information meets the preset condition.
CN201610475122.5A 2016-06-24 2016-06-24 Information processing method and electronic equipment Active CN106126179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610475122.5A CN106126179B (en) 2016-06-24 2016-06-24 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610475122.5A CN106126179B (en) 2016-06-24 2016-06-24 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106126179A CN106126179A (en) 2016-11-16
CN106126179B true CN106126179B (en) 2020-11-20

Family

ID=57267143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610475122.5A Active CN106126179B (en) 2016-06-24 2016-06-24 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106126179B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033442A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Mobile terminal volume control method and apparatus, storage medium, and mobile terminal
CN108958695B (en) * 2018-06-28 2023-10-20 努比亚技术有限公司 Audio output method, device and computer readable storage medium
CN113039516B (en) * 2018-11-22 2024-07-02 深圳市欢太科技有限公司 Method and device for processing application program and electronic equipment
CN110062276A (en) * 2019-03-12 2019-07-26 北京达佳互联信息技术有限公司 Processing method, device and the electronic equipment and storage medium of audio, video data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023305A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Audio mixing control method and apparatus for Wince vehicle-mounted multimedia
CN104866078A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Electronic equipment control method and control device as well as electronic equipment
CN104869218A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Information processing method and device and electronic equipment
CN105302302A (en) * 2015-10-15 2016-02-03 广东欧珀移动通信有限公司 Application control method and device
CN105653236A (en) * 2016-01-29 2016-06-08 北京小米移动软件有限公司 Sound volume control method and device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120347B2 (en) * 2004-01-27 2006-10-10 Corning Cable Systems Llc Multi-port optical connection terminal
CN101030763A (en) * 2006-03-01 2007-09-05 华硕电脑股份有限公司 Moving device and method for dynamically adjusting volume
US9024781B2 (en) * 2011-07-14 2015-05-05 Jinjing Zhang Cardiac electricity and impedance monitoring mobile network terminal device having function of micro current release
CN103873980B (en) * 2012-12-10 2017-11-28 联想(北京)有限公司 Audio-frequency processing method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866078A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Electronic equipment control method and control device as well as electronic equipment
CN104869218A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Information processing method and device and electronic equipment
CN104023305A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Audio mixing control method and apparatus for Wince vehicle-mounted multimedia
CN105302302A (en) * 2015-10-15 2016-02-03 广东欧珀移动通信有限公司 Application control method and device
CN105653236A (en) * 2016-01-29 2016-06-08 北京小米移动软件有限公司 Sound volume control method and device and mobile terminal

Also Published As

Publication number Publication date
CN106126179A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US10425768B2 (en) Adjusting audio output volume based on a detected presence of another device
US9953643B2 (en) Selective transmission of voice data
CN103257873B (en) The control method of a kind of intelligent terminal and system
JP6489563B2 (en) Volume control method, system, device and program
US9402124B2 (en) Method for controlling terminal device and the smart terminal device thereof
KR101907406B1 (en) Operation Method And System For communication Service
EP3142389B1 (en) Audio system with multi-screen application
US20210327436A1 (en) Voice Interaction Method, Device, and System
EP3535754B1 (en) Improved reception of audio commands
US10609196B2 (en) Method and apparatus for controlling application program, and electronic device
CN106488335B (en) Live-broadcast control method and device
CN108024128B (en) Control method and device for Bluetooth music playing, terminal equipment and storage medium
CN106126179B (en) Information processing method and electronic equipment
WO2017032030A1 (en) Volume adjusting method and user terminal
KR20140141916A (en) Apparatus and Method for operating a receiving notification function of a user device
WO2018201944A1 (en) Apparatus control method and device
US11425519B2 (en) Method for detecting blocking of microphone and related products
WO2014183529A1 (en) Mobile terminal talk mode switching method, device and storage medium
WO2024103926A1 (en) Voice control methods and apparatuses, storage medium, and electronic device
WO2016201767A1 (en) Voice control method and device, and computer storage medium
CN104703255B (en) Method of adjustment in net and device, electronic equipment
WO2017032031A1 (en) Volume adjustment method and user terminal
CN110225213B (en) Recognition method of voice call scene and audio policy server
CN109168098B (en) System for automatically controlling to suspend and open Bluetooth headset when mobile phone is away from ear and control method thereof
CN105812972B (en) System and method for controlling handheld device by utilizing earphone

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