CN107734121B - Volume control method and device, storage medium and electronic equipment - Google Patents

Volume control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107734121B
CN107734121B CN201710883598.7A CN201710883598A CN107734121B CN 107734121 B CN107734121 B CN 107734121B CN 201710883598 A CN201710883598 A CN 201710883598A CN 107734121 B CN107734121 B CN 107734121B
Authority
CN
China
Prior art keywords
volume
adjusting
media
electronic equipment
key
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
CN201710883598.7A
Other languages
Chinese (zh)
Other versions
CN107734121A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710883598.7A priority Critical patent/CN107734121B/en
Publication of CN107734121A publication Critical patent/CN107734121A/en
Application granted granted Critical
Publication of CN107734121B publication Critical patent/CN107734121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The application discloses a volume control method and device, a storage medium and electronic equipment. The volume control method comprises the following steps: the method comprises the steps of monitoring the system volume of the electronic equipment when a volume key is detected to be pressed, detecting whether the volume key is in a continuously pressed state or not if the system volume of the electronic equipment reaches a preset threshold value, determining the media volume in the electronic equipment as a target adjustment object if the volume key is detected to be in the continuously pressed state, and adjusting the volume of the target adjustment object. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, so that the embarrassing situation of a user during media playing is avoided.

Description

Volume control method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a volume control method and apparatus, a storage medium, and an electronic device.
Background
At present, along with the popularization of intelligent electronic equipment, the intelligent electronic equipment becomes an indispensable tool for daily life, and the use scenes that users use the intelligent electronic equipment are more and more. The intelligent electronic device can be used for playing multimedia, but in the actual application process, the situation that the media volume during media playing conflicts with the expected volume in the current use scene easily occurs, for example, in public occasions, the multimedia is expected to be played in a mute mode, but in the actual playing process, the embarrassing situation that a user with large volume hurries to find the media volume adjusting control often occurs.
Disclosure of Invention
The embodiment of the application provides a volume control method, a volume control device, a storage medium and electronic equipment, which can quickly and accurately adjust the volume of a medium.
The embodiment of the application provides a volume control method, which is applied to electronic equipment and comprises the following steps:
monitoring the system volume of the electronic equipment when detecting that a volume key is pressed;
if the system volume of the electronic equipment reaches a preset threshold value, detecting whether the volume key is in a continuously pressed state;
if the volume key is detected to be in a continuously pressed state, determining the media volume in the electronic equipment as a target adjustment object;
and adjusting the volume of the target adjustment object.
An embodiment of the present application further provides a volume control device, the device includes:
the monitoring module is used for monitoring the system volume of the electronic equipment when detecting that the volume key is pressed;
the first detection module is used for detecting whether the volume key is in a continuously pressed state or not if the system volume of the electronic equipment reaches a preset threshold value;
the determining module is used for determining the media volume in the electronic equipment as a target adjusting object if the volume key is detected to be in a continuously pressed state;
and the adjusting module is used for adjusting the volume of the target adjusting object.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the volume control method as described above.
An embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the volume control method described above by calling a computer program stored in the memory.
According to the embodiment of the application, when the volume key is pressed, the system volume of the electronic equipment is monitored, if the system volume of the electronic equipment reaches a preset threshold value, whether the volume key is in a continuous pressed state or not is detected, if the volume key is in the continuous pressed state, the media volume in the electronic equipment is determined to be a target adjustment object, and the volume of the target adjustment object is adjusted. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, so that the embarrassing situation of a user during media playing is avoided.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of a volume control method according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a volume control method according to an embodiment of the present disclosure.
Fig. 3 is another schematic flow chart of a volume control method according to an embodiment of the present disclosure.
Fig. 4 is a schematic flowchart of a volume control method according to an embodiment of the present disclosure.
Fig. 5 is a schematic view of another application scenario of a volume control method according to an embodiment of the present application.
Fig. 6 is a further flowchart of a volume control method according to an embodiment of the present disclosure.
Fig. 7 is a schematic view of another application scenario of a volume control method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a volume control device according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of a volume control device according to an embodiment of the present disclosure.
Fig. 10 is a schematic structural diagram of a second detection module according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a volume control device according to an embodiment of the present application.
Fig. 12 is a schematic view of another structure of a volume control device according to an embodiment of the present disclosure.
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 14 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. 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 application.
The terms "first" and "second", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the volume control method provided by the embodiment of the present application may be a volume control device provided by the embodiment of the present application, or an electronic device (such as a palm computer, a tablet computer, a smart phone, etc.) integrated with the volume control device, where the volume control device may be implemented in a hardware or software manner.
At present, the media volume which can not be used for quickly controlling audio or video playing is easy to appear in the process of using the mobile phone by a user. At present, when the electronic device is currently in a homepage interface, a user can only adjust the system volume when operating a volume key, that is, only adjust the volume of the incoming call information prompt. The adjustment of the media volume can only respond to the media volume adjustment requirement when entering the corresponding application program, but the application program starts playing out the multimedia sound at the moment, which obviously brings great trouble to the user experience. Accordingly, embodiments of the present application provide an electronic device, as shown in fig. 1, when a user presses a volume key of the electronic device, the electronic device starts to adjust the system volume, if the system volume of the electronic device reaches a preset threshold, for example, the user continuously presses the volume "-" button, when the system volume reaches mute, detecting whether the user continuously presses the volume key, if so, determining the media volume as a target adjustment object, the channel of volume adjustment is switched from the system volume channel to the media volume channel, such as an adjustment window for media volume may be displayed on a display screen of the electronic device, the media volume is then adjusted according to the user's needs, such as after switching to the media volume adjustment channel, and if the user continuously presses the volume key, the volume of the media volume is correspondingly reduced. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, so that the embarrassing situation of a user during media playing is avoided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a volume control method according to an embodiment of the present disclosure. The method is applied to the electronic equipment and comprises the following steps:
step 101, when detecting that a volume key is pressed, monitoring the system volume of the electronic equipment.
When the user presses the volume key of the electronic device, the electronic device detects that the volume key is pressed, and at the moment, the electronic device starts to adjust the volume of the system according to the pressing operation of the user. For example, when the user presses a volume "-" key, the electronic device controls the system to gradually reduce the volume, and the system volume of the electronic device is monitored to change in the process of adjusting the system volume by pressing the volume key.
And step 102, if the system volume of the electronic equipment reaches a preset threshold value, detecting whether the volume key is in a continuously pressed state.
For example, the preset threshold is a 30 db value, and when it is detected that the system volume of the electronic device reaches the 30 db value, it is further detected whether the volume key is continuously pressed, that is, whether the user continuously presses the volume key is detected.
For example, the preset threshold is mute, and when it is detected that the system volume of the electronic device reaches mute, it is further detected whether the volume key is in a continuously pressed state, that is, whether the user is continuously pressing the volume key is detected.
Step 103, if it is detected that the volume key is in a continuously pressed state, determining the media volume in the electronic device as a target adjustment object.
If the volume key is detected to be in a continuously pressed state, determining the media volume in the electronic equipment as a target adjustment object, and switching the volume adjustment channel from a system volume channel to a media volume channel.
And 104, adjusting the volume of the target adjustment object.
And adjusting the volume of the media according to the volume adjusting instruction input by the user.
In some embodiments, after the detecting that the volume key is in a continuously pressed state and before the determining the media volume in the electronic device as the target adjustment object, further comprising:
detecting whether media playing is to be performed or not;
and if the fact that the media is to be played is detected, determining the volume of the media in the electronic equipment as a target adjusting object.
In some embodiments, the detecting whether media playing is to be performed includes:
detecting whether a currently running application program meets a media playing condition, wherein the application program comprises a foreground application program and a background application program;
and if the currently running application program is detected to meet the media playing condition, determining that the media playing is to be performed.
In some embodiments, the detecting whether media playing is to be performed includes:
predicting whether an application program for playing media is to be started at the next moment or not according to the historical use record of the electronic equipment;
and if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
In some embodiments, the adjusting the volume of the target adjustment object includes:
and correspondingly adjusting the volume of the target adjustment object according to the operation of pressing the volume key.
In some embodiments, before the performing the volume adjustment on the target adjustment object, the method further includes:
setting the initial adjustment volume of the target adjustment object to be mute;
the adjusting the volume of the target adjustment object includes:
and gradually increasing the volume of the target adjustment object by taking the mute as the initial adjustment volume.
In some embodiments, before the performing the volume adjustment on the target adjustment object, the method further includes:
displaying an adjusting window on a display screen of the electronic equipment, wherein the adjusting window is used for displaying a volume adjusting control corresponding to an application program, and the volume adjusting control is used for adjusting the volume of the corresponding application program;
the adjusting the volume of the target adjustment object includes:
and adjusting the volume of the target adjustment object by controlling a volume adjustment control on the adjustment window.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
According to the embodiment of the application, when the volume key is pressed, the system volume of the electronic equipment is monitored, if the system volume of the electronic equipment reaches a preset threshold value, whether the volume key is in a continuous pressed state or not is detected, if the volume key is in the continuous pressed state, the media volume in the electronic equipment is determined to be a target adjustment object, and the volume of the target adjustment object is adjusted. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, so that the embarrassing situation of a user during media playing is avoided.
Referring to fig. 3, fig. 3 is another flow chart illustrating a volume control method according to an embodiment of the present disclosure. The method comprises the following steps:
step 201, when detecting that a volume key is pressed, monitoring the system volume of the electronic device.
When the user presses the volume key of the electronic device, the electronic device detects that the volume key is pressed, and at the moment, the electronic device starts to adjust the volume of the system according to the pressing operation of the user. For example, when the user presses a volume "-" key, the electronic device controls the system to gradually reduce the volume, and the system volume of the electronic device is monitored to change in the process of adjusting the system volume by pressing the volume key.
Step 202, if the system volume of the electronic device reaches a preset threshold, detecting whether the volume key is in a continuously pressed state.
For example, the preset threshold is a 30 db value, and when it is detected that the system volume of the electronic device reaches the 30 db value, it is further detected whether the volume key is continuously pressed, that is, whether the user continuously presses the volume key is detected.
For example, the preset threshold is mute, and when it is detected that the system volume of the electronic device reaches mute, it is further detected whether the volume key is in a continuously pressed state, that is, whether the user is continuously pressing the volume key is detected.
Step 203, if it is detected that the volume key is in a continuously pressed state, it is detected whether media playing is to be performed.
When the volume key is detected to be in a continuously pressed state, whether media playing is to be performed on the electronic device or not can be detected before the media volume is adjusted for intelligently controlling the media volume in the electronic device.
In some embodiments, the step 203 may be further implemented by:
(1) detecting whether a currently running application program meets a media playing condition, wherein the application program comprises a foreground application program and a background application program;
(2) and if the currently running application program is detected to meet the media playing condition, determining that the media playing is to be performed.
The meeting of the media playing condition may include that the application program contains media data, or the application program has a control related to media.
The application program contains media data, such as audio data or video data. For example, when instant messaging software is used for communication, voice information is carried on a communication interface.
The application program is provided with a control related to media, namely a volume adjusting control is arranged in a setting option bar of the application program. For example, a setting option bar of a certain game software has a volume adjusting control for adjusting the volume of background music.
In some embodiments, the step 203 may be further implemented by:
(1) predicting whether an application program for playing media is to be started at the next moment or not according to the historical use record of the electronic equipment;
(2) and if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
The electronic equipment can record historical use records of each application program in the electronic equipment within a historical time period of a user, analyze and learn the recorded historical use records by using a learning algorithm, analyze the use habits of the user in the same time period through self-analysis and learning processing procedures, and predict whether the application program for playing media is to be started at the next time or not according to the use habits. For example, the user often watches videos during the next shift, and the electronic device records "workday, 19: 00-19: 30, start the video player ", it can be analyzed that the usage habit is 19: 00-19: 30 start the video player so that at the present moment it is near 19 o' clock or at 19: 00-19: and within 30 time periods, predicting that the application program for playing the media is about to be started at the next moment, and determining that the media is about to be played.
Step 204, if it is detected that media playing is to be performed, determining the media volume in the electronic device as a target adjustment object.
If the fact that media playing is to be performed is detected, determining the media volume in the electronic equipment as a target adjusting object, and switching a volume adjusting channel from a system volume channel to a media volume channel.
Step 205, adjusting the volume of the target adjustment object.
And adjusting the volume of the media according to the volume adjusting instruction input by the user.
For example, the volume of the media volume may be adjusted according to the operation of pressing the volume key.
According to the embodiment of the application, when the volume key is pressed, the system volume of the electronic equipment is monitored, if the system volume of the electronic equipment reaches a preset threshold value, whether the volume key is in a continuous pressed state or not is detected, if the volume key is in a continuous pressed state or not is detected, whether media playing is to be performed or not is detected, if media playing is to be performed, the media volume in the electronic equipment is determined to be a target adjusting object, and the volume of the target adjusting object is adjusted. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, and the media volume can be adjusted before media playing is carried out, so that the embarrassing situation of a user during media playing is avoided.
Referring to fig. 4, fig. 4 is a schematic flow chart of a volume control method according to an embodiment of the present disclosure. The method comprises the following steps:
step 301, when detecting that a volume key is pressed, monitoring the system volume of the electronic device.
When the user presses the volume key of the electronic device, the electronic device detects that the volume key is pressed, and at the moment, the electronic device starts to adjust the volume of the system according to the pressing operation of the user. For example, when the user presses a volume "-" key, the electronic device controls the system to gradually reduce the volume, and the system volume of the electronic device is monitored to change in the process of adjusting the system volume by pressing the volume key.
Step 302, if the system volume of the electronic device reaches a preset threshold, detecting whether the volume key is in a continuously pressed state.
For example, the preset threshold is a 30 db value, and when it is detected that the system volume of the electronic device reaches the 30 db value, it is further detected whether the volume key is continuously pressed, that is, whether the user continuously presses the volume key is detected.
For example, the preset threshold is mute, and when it is detected that the system volume of the electronic device reaches mute, it is further detected whether the volume key is in a continuously pressed state, that is, whether the user is continuously pressing the volume key is detected.
Step 303, detecting whether media playing is to be performed or not if it is detected that the volume key is in a continuously pressed state.
When the volume key is detected to be in a continuously pressed state, whether media playing is to be performed on the electronic device or not can be detected before the media volume is adjusted for intelligently controlling the media volume in the electronic device.
In some embodiments, the step 303 may be further implemented by:
(1) detecting whether a currently running application program meets a media playing condition, wherein the application program comprises a foreground application program and a background application program;
(2) and if the currently running application program is detected to meet the media playing condition, determining that the media playing is to be performed.
The meeting of the media playing condition may include that the application program contains media data, or the application program has a control related to media.
The application program contains media data, such as audio data or video data. For example, when instant messaging software is used for communication, voice information is carried on a communication interface.
The application program is provided with a control related to media, namely a volume adjusting control is arranged in a setting option bar of the application program. For example, a setting option bar of a certain game software has a volume adjusting control for adjusting the volume of background music.
In some embodiments, the step 303 may be further implemented by:
(1) predicting whether an application program for playing media is to be started at the next moment or not according to the historical use record of the electronic equipment;
(2) and if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
The electronic equipment can record historical use records of each application program in the electronic equipment within a historical time period of a user, analyze and learn the recorded historical use records by using a learning algorithm, analyze the use habits of the user in the same time period through self-analysis and learning processing procedures, and predict whether the application program for playing media is to be started at the next time or not according to the use habits. For example, the user often watches videos during the next shift, and the electronic device records "workday, 19: 00-19: 30, start the video player ", it can be analyzed that the usage habit is 19: 00-19: 30 start the video player so that at the present moment it is near 19 o' clock or at 19: 00-19: and within 30 time periods, predicting that the application program for playing the media is about to be started at the next moment, and determining that the media is about to be played.
Step 304, if it is detected that media playing is to be performed, determining the media volume in the electronic device as a target adjustment object.
If the fact that media playing is to be performed is detected, determining the media volume in the electronic equipment as a target adjusting object, and switching a volume adjusting channel from a system volume channel to a media volume channel.
Step 305, setting the initial adjusted volume of the target adjustment object to be mute.
In the actual application process, the general volume of the media volume to be adjusted is large, and the final purpose of the user is to adjust the volume to be small so as not to affect the surrounding environment and protect the personal privacy, so that after the channel of volume adjustment is switched from the system volume channel to the media volume channel, the initial adjusted volume of the target adjustment object can be set to be mute, so that the user starts to gradually increase the media volume from mute and can be closer to the expected value of the user on the media volume instead.
Step 306, gradually increasing the volume of the target adjustment object by using the mute as the initial adjustment volume.
For example, the volume of the target adjustment object may be gradually increased by using the mute as the initial adjustment volume according to the operation of pressing the volume "+" key.
For example, as shown in fig. 5, for example, if the user continuously presses the volume "-" key, when the system volume reaches mute, it is detected whether the user continuously presses the volume key, if so, it is detected whether media playing is to be performed, when it is detected that the video player is to perform media playing, the media volume in the electronic device is determined as a target adjustment object, a channel for volume adjustment is switched from the system volume channel to the media volume channel, then the user presses the volume "+" key, and the electronic device gradually increases the volume of the video player by using mute as an initial adjustment according to an operation that the volume "+" key is pressed.
According to the embodiment of the application, when the volume key is pressed, the system volume of the electronic equipment is monitored, if the system volume of the electronic equipment reaches a preset threshold value, whether the volume key is in a continuous pressed state or not is detected, if the volume key is in a continuous pressed state or not is detected, whether media playing is to be carried out or not is detected, if media playing is to be carried out, the media volume in the electronic equipment is determined to be a target adjusting object, the initial adjusting volume of the target adjusting object is set to be mute, and the volume of the target adjusting object is gradually increased by taking the mute as the initial adjusting volume. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, the media volume can be adjusted before media playing is carried out, and the media volume is gradually increased from mute, so that the user can better protect personal privacy.
Referring to fig. 6, fig. 6 is a schematic flow chart of a volume control method according to an embodiment of the present disclosure. The method comprises the following steps:
step 401, when it is detected that the volume key is pressed, monitoring the system volume of the electronic device
When the user presses the volume key of the electronic device, the electronic device detects that the volume key is pressed, and at the moment, the electronic device starts to adjust the volume of the system according to the pressing operation of the user. For example, when the user presses a volume "-" key, the electronic device controls the system to gradually reduce the volume, and the system volume of the electronic device is monitored to change in the process of adjusting the system volume by pressing the volume key.
Step 402, if the system volume of the electronic device reaches a preset threshold, detecting whether the volume key is in a continuously pressed state.
For example, the preset threshold is a 30 db value, and when it is detected that the system volume of the electronic device reaches the 30 db value, it is further detected whether the volume key is continuously pressed, that is, whether the user continuously presses the volume key is detected.
For example, the preset threshold is mute, and when it is detected that the system volume of the electronic device reaches mute, it is further detected whether the volume key is in a continuously pressed state, that is, whether the user is continuously pressing the volume key is detected.
Step 403, if it is detected that the volume key is continuously pressed, detecting whether media playing is to be performed.
When the volume key is detected to be in a continuously pressed state, whether media playing is to be performed on the electronic device or not can be detected before the media volume is adjusted for intelligently controlling the media volume in the electronic device.
In some embodiments, the step 303 may be further implemented by:
(1) detecting whether a currently running application program meets a media playing condition, wherein the application program comprises a foreground application program and a background application program;
(2) and if the currently running application program is detected to meet the media playing condition, determining that the media playing is to be performed.
The meeting of the media playing condition may include that the application program contains media data, or the application program has a control related to media.
The application program contains media data, such as audio data or video data. For example, when instant messaging software is used for communication, voice information is carried on a communication interface.
The application program is provided with a control related to media, namely a volume adjusting control is arranged in a setting option bar of the application program. For example, a setting option bar of a certain game software has a volume adjusting control for adjusting the volume of background music.
In some embodiments, the step 303 may be further implemented by:
(1) predicting whether an application program for playing media is to be started at the next moment or not according to the historical use record of the electronic equipment;
(2) and if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
The electronic equipment can record historical use records of each application program in the electronic equipment within a historical time period of a user, analyze and learn the recorded historical use records by using a learning algorithm, analyze the use habits of the user in the same time period through self-analysis and learning processing procedures, and predict whether the application program for playing media is to be started at the next time or not according to the use habits. And if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
Step 404, if it is detected that media playing is to be performed, determining the media volume in the electronic device as a target adjustment object.
If the fact that media playing is to be performed is detected, determining the media volume in the electronic equipment as a target adjusting object, and switching a volume adjusting channel from a system volume channel to a media volume channel.
Step 405, displaying an adjustment window on a display screen of the electronic device, where the adjustment window is used to display a volume adjustment control corresponding to an application program, and the volume adjustment control is used to adjust the volume of the corresponding application program.
The application programs may include all application programs that satisfy media playing conditions in the electronic device, and the application programs may also include application programs that are to be subjected to media playing in the electronic device. The applications may include foreground and background applications that have already been opened, as well as applications that have not been opened. All of the applications that satisfy the media playing condition may include an application having a control associated with the media.
After the channel for adjusting the volume is switched from the system volume channel to the media volume channel, an adjustment window may be displayed on a display screen of the electronic device, where the adjustment window is used to display a volume adjustment control corresponding to each application program that meets the media playing condition, and when a user needs to adjust the media volume of a certain application program, the corresponding volume adjustment control is correspondingly selected.
And 406, adjusting the volume of the target adjustment object by controlling a volume adjustment control on the adjustment window.
In some embodiments, the media volume may be adjusted for all volume adjustment controls displayed on the adjustment window according to the operation of pressing the volume button.
In some embodiments, after the user selects a target volume adjustment control corresponding to the target application program displayed on the adjustment window, the media volume of the target volume adjustment control may be adjusted according to the operation of pressing the volume button.
In some embodiments, after the user selects the target volume adjustment control corresponding to the target application program displayed on the adjustment window, the media volume of the target volume adjustment control may be adjusted according to the touch operation of the user on the target volume adjustment control.
For example, as shown in fig. 7, for example, if the user continuously presses a volume "-" key, when the system volume is muted, it is detected whether the user continuously presses the volume key, if so, it is detected whether media playing is to be performed, if so, the media volume in the electronic device is determined as a target adjustment object, a channel for adjusting the volume is switched from the system volume channel to a media volume channel, and then an adjustment window is displayed on a display screen of the electronic device, where the adjustment window is used to display a volume adjustment control corresponding to each application program meeting media playing conditions, for example, when the user needs to adjust the media volume of a video player, the user correspondingly selects the volume adjustment control of the video player, and after selecting the volume adjustment control of the video player, the user can reduce the volume of the video player by touching the "-" control of the volume adjustment control, the volume of the video player may also be reduced by physically pressing a volume "-" button.
According to the embodiment of the application, when the volume key is pressed, the system volume of the electronic equipment is monitored, if the system volume of the electronic equipment reaches a preset threshold value, whether the volume key is in a continuous pressed state or not is detected, if the volume key is in a continuous pressed state or not is detected, whether media playing is to be carried out or not is detected, if media playing is to be carried out, the media volume in the electronic equipment is determined to be a target adjustment object, an adjustment window is displayed on a display screen of the electronic equipment, wherein the adjustment window is used for displaying a volume adjustment control corresponding to an application program, the volume adjustment control is used for adjusting the volume of the corresponding application program, and through control, the volume adjustment control on the adjustment window is right volume adjustment is carried out on the target adjustment object. According to the method and the device, the media volume and the system volume can be quickly and accurately controlled through the operation behavior detection of the physical keys, the media volume can be adjusted through the volume adjusting control displayed on the control adjusting window before media playing is carried out, and the media volume is gradually increased from mute, so that the embarrassing situation of a user during media playing is avoided.
An embodiment of the present application further provides a volume control device, as shown in fig. 8, and fig. 8 is a schematic structural diagram of the volume control device provided in the embodiment of the present application. The volume control device 50 includes a monitoring module 51, a first detecting module 52, a determining module 54, and an adjusting module 57.
The monitoring module 51 is configured to monitor a system volume of the electronic device when it is detected that the volume key is pressed.
The first detecting module 52 is configured to detect whether the volume key is in a continuously pressed state if the system volume of the electronic device reaches a preset threshold.
The determining module 54 is configured to determine the media volume in the electronic device as a target adjustment object if it is detected that the volume key is in a continuously pressed state.
The adjusting module 57 is configured to adjust the volume of the target adjustment object.
Referring to fig. 9, fig. 9 is another schematic structural diagram of a volume control device according to an embodiment of the present disclosure. The volume control device 50 includes a monitoring module 51, a first detecting module 52, a second detecting module 53, a determining module 54, and an adjusting module 57.
The monitoring module 51 is configured to monitor a system volume of the electronic device when detecting that the volume key is pressed.
The first detecting module 52 is configured to detect whether the volume key is in a continuously pressed state if the system volume of the electronic device reaches a preset threshold.
The second detecting module 53 is configured to detect whether media playing is to be performed if it is detected that the volume key is in a continuously pressed state.
As shown in fig. 10, in some embodiments, the second detection module 53 includes:
a detecting unit 531, configured to detect whether a currently running application satisfies a media playing condition, where the application includes a foreground application and a background application;
the first determining unit 532 is configured to determine that media playing is to be performed if it is detected that the currently running application satisfies the media playing condition.
In some embodiments, the second detection module 53 includes:
a predicting unit 533, configured to predict whether an application program for playing media will be started at the next time according to the historical usage record of the electronic device;
the second determining unit 534 is configured to determine that media playing is to be performed if it is predicted that an application for performing media playing will be started at the next time.
The determining module 54 is further configured to determine the media volume in the electronic device as a target adjustment object if it is detected that media playing is to be performed.
The adjusting module 57 is configured to adjust the volume of the target adjustment object.
Referring to fig. 11, fig. 11 is a schematic view of another structure of a volume control device according to an embodiment of the present disclosure. The volume control device 50 also includes a setting module 55.
Wherein the setting module 55 is configured to set the initial adjustment volume of the target adjustment object to be mute.
The adjusting module 57 is further configured to gradually increase the volume of the target adjustment object by using silence as an initial adjustment volume.
Referring to fig. 12, fig. 12 is a schematic view of another structure of a volume control device according to an embodiment of the present disclosure. The volume control device 50 also includes a display module 56.
The display module 56 is configured to display an adjustment window on a display screen of the electronic device, where the adjustment window is used to display a volume adjustment control corresponding to an application program, and the volume adjustment control is used to adjust the volume of the corresponding application program.
The adjusting module 57 is further configured to adjust the volume of the target adjustment object by controlling a volume adjustment control on the adjusting window.
The embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, where the processor calls the computer program stored in the memory to execute the volume control method according to any embodiment of the present application.
The electronic equipment can be equipment such as a smart phone, a tablet computer and a palm computer. As shown in fig. 13, the electronic device 600 includes a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, and a computer program stored on the memory and executable on the processor. The processor 601 is electrically connected to the memory 602. Those skilled in the art will appreciate that the electronic device configurations shown in the figures do not constitute limitations of the electronic device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The processor 601 is a control center of the electronic device 600, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 602 and calling the data stored in the memory 602, thereby performing overall monitoring of the electronic device.
In this embodiment of the application, the processor 601 in the electronic device 600 loads instructions corresponding to processes of one or more applications into the memory 602, and the processor 601 executes the applications stored in the memory 602 according to the following steps, so as to implement various functions:
monitoring the system volume of the electronic equipment when detecting that a volume key is pressed;
if the system volume of the electronic equipment reaches a preset threshold value, detecting whether the volume key is in a continuously pressed state;
if the volume key is detected to be in a continuously pressed state, determining the media volume in the electronic equipment as a target adjustment object;
and adjusting the volume of the target adjustment object.
In some embodiments, the processor 601 is configured to, after the detecting that the volume key is in the continuously pressed state and before the determining the media volume in the electronic device as the target adjustment object, further include:
detecting whether media playing is to be performed or not;
and if the fact that the media is to be played is detected, determining the volume of the media in the electronic equipment as a target adjusting object.
In some embodiments, the processor 601 is configured to detect whether media playing is to be performed, including:
detecting whether a currently running application program meets a media playing condition, wherein the application program comprises a foreground application program and a background application program;
and if the currently running application program is detected to meet the media playing condition, determining that the media playing is to be performed.
In some embodiments, the processor 601 is configured to detect whether media playing is to be performed, including:
predicting whether an application program for playing media is to be started at the next moment or not according to the historical use record of the electronic equipment;
and if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
In some embodiments, the processor 601 is configured to perform volume adjustment on the target adjustment object, including:
and correspondingly adjusting the volume of the target adjustment object according to the operation of pressing the volume key.
In some embodiments, the processor 601 is configured to, before the performing the volume adjustment on the target adjustment object, further include:
setting the initial adjustment volume of the target adjustment object to be mute;
the adjusting the volume of the target adjustment object includes:
and gradually increasing the volume of the target adjustment object by taking the mute as the initial adjustment volume.
In some embodiments, the processor 601 is configured to, before the performing the volume adjustment on the target adjustment object, further include:
displaying an adjusting window on a display screen of the electronic equipment, wherein the adjusting window is used for displaying a volume adjusting control corresponding to an application program, and the volume adjusting control is used for adjusting the volume of the corresponding application program;
the adjusting the volume of the target adjustment object includes:
and adjusting the volume of the target adjustment object by controlling a volume adjustment control on the adjustment window.
In some embodiments, as shown in fig. 14, the electronic device 600 further comprises: a display 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the display 603, the rf circuit 604, the audio circuit 605, the input unit 606 and the power supply 607. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 14 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The display screen 603 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. When the display screen 603 is a touch display screen, it can also be used as a part of an input unit to implement an input function.
The rf circuit 604 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 605 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The input unit 606 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 607 is used to power the various components of the electronic device 600. In some embodiments, the power supply 107 may be logically connected to the processor 601 through a power management system, so that functions of managing charging, discharging, and power consumption management are implemented through the power management system.
Although not shown in fig. 14, the electronic device 600 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to related descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
In the embodiment of the present application, the volume control device and the volume control method in the above embodiments belong to the same concept, and any method provided in the embodiment of the volume control method may be operated on the volume control device, and a specific implementation process thereof is described in the embodiment of the volume control method, and is not described herein again.
It should be noted that, for the volume control method described in this application, it can be understood by a person skilled in the art that all or part of the process of implementing the volume control method described in this application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution, the process of implementing the volume control method may include the process of the embodiment of the volume control method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the volume control device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The volume control method, the volume control device, the storage medium and the electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the technical scheme and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (8)

1. A volume control method is applied to an electronic device, and is characterized by comprising the following steps:
monitoring the system volume of the electronic equipment when detecting that a volume key is pressed;
if the system volume of the electronic equipment reaches a preset threshold value, detecting whether the volume key is in a continuously pressed state;
if the volume key is detected to be in a continuously pressed state, determining the media volume in the electronic equipment as a target adjustment object;
carrying out volume adjustment on the target adjustment object;
after the detecting that the volume key is in a continuously pressed state and before the determining the media volume in the electronic device as a target adjustment object, further comprising:
detecting whether media playing is to be performed or not;
if the fact that media playing is to be carried out is detected, determining the volume of the media in the electronic equipment as a target adjusting object;
before the volume adjustment of the target adjustment object, the method further includes:
setting the initial adjustment volume of the target adjustment object to be mute;
the adjusting the volume of the target adjustment object includes:
gradually increasing the volume of the target adjustment object by taking silence as initial adjustment volume;
the detecting whether media playing is to be performed includes:
predicting whether an application program for playing media is to be started at the next moment or not according to the historical use record of the electronic equipment;
and if the application program for playing the media is predicted to be started at the next moment, determining that the media playing is to be performed.
2. The volume control method of claim 1, wherein the volume adjusting the target adjustment object comprises:
and correspondingly adjusting the volume of the target adjustment object according to the operation of pressing the volume key.
3. The volume control method as claimed in claim 1, further comprising, before said volume adjusting said target adjustment object,:
displaying an adjusting window on a display screen of the electronic equipment, wherein the adjusting window is used for displaying a volume adjusting control corresponding to an application program, and the volume adjusting control is used for adjusting the volume of the corresponding application program;
the adjusting the volume of the target adjustment object includes:
and adjusting the volume of the target adjustment object by controlling a volume adjustment control on the adjustment window.
4. A volume control device, the device comprising:
the monitoring module is used for monitoring the system volume of the electronic equipment when detecting that the volume key is pressed;
the first detection module is used for detecting whether the volume key is in a continuously pressed state or not if the system volume of the electronic equipment reaches a preset threshold value;
the determining module is used for determining the media volume in the electronic equipment as a target adjusting object if the volume key is detected to be in a continuously pressed state;
the adjusting module is used for adjusting the volume of the target adjusting object;
the device further comprises:
the second detection module is used for detecting whether media playing is to be carried out or not if the volume key is detected to be in a continuously pressed state;
the determining module is further configured to determine a media volume in the electronic device as a target adjustment object if it is detected that media playing is to be performed;
the setting module is used for setting the initial adjustment volume of the target adjustment object to be mute;
the adjusting module is further configured to gradually increase the volume of the target adjustment object by using silence as an initial adjustment volume;
the second detection module includes:
the prediction unit is used for predicting whether an application program for playing media is about to be started at the next moment according to the historical use record of the electronic equipment;
a second determining unit, configured to determine that media playing is to be performed if it is predicted that an application program for performing media playing will be started at the next time.
5. The volume control device as claimed in claim 4, wherein the adjusting module is configured to correspondingly adjust the volume of the target adjustment object according to the operation of pressing the volume button.
6. The volume control device of claim 4, wherein the device further comprises:
the display module is used for displaying an adjusting window on a display screen of the electronic equipment, wherein the adjusting window is used for displaying a volume adjusting control corresponding to an application program, and the volume adjusting control is used for adjusting the volume of the corresponding application program;
the adjusting module is further configured to adjust the volume of the target adjusting object by controlling a volume adjusting control on the adjusting window.
7. A computer-readable storage medium on which a computer program is stored, which, when run on a computer, causes the computer to execute a volume control method according to any one of claims 1 to 3.
8. An electronic device comprising a memory and a processor, wherein the processor is configured to perform the volume control method of any one of claims 1 to 3 by invoking a computer program stored in the memory.
CN201710883598.7A 2017-09-26 2017-09-26 Volume control method and device, storage medium and electronic equipment Active CN107734121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710883598.7A CN107734121B (en) 2017-09-26 2017-09-26 Volume control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710883598.7A CN107734121B (en) 2017-09-26 2017-09-26 Volume control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107734121A CN107734121A (en) 2018-02-23
CN107734121B true CN107734121B (en) 2020-08-18

Family

ID=61206986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710883598.7A Active CN107734121B (en) 2017-09-26 2017-09-26 Volume control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107734121B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271120A (en) * 2018-08-21 2019-01-25 维沃移动通信有限公司 A kind of display methods and terminal
CN111897508A (en) * 2019-05-06 2020-11-06 上海擎感智能科技有限公司 Audio control method, system, storage medium and device
CN114079822A (en) * 2020-08-21 2022-02-22 聚好看科技股份有限公司 Display device
CN112181352A (en) * 2020-10-10 2021-01-05 展讯通信(深圳)有限公司 Electronic device, volume control method thereof and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359900A (en) * 2008-08-11 2009-02-04 深圳华为通信技术有限公司 Volume regulating method, apparatus and mobile terminal thereof
CN102932595A (en) * 2012-10-22 2013-02-13 北京小米科技有限责任公司 Method and device for sound-control photographing and terminal
EP3048779B1 (en) * 2013-09-17 2019-02-27 ZTE Corporation Sound volume adjusting method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392066B2 (en) * 2004-06-17 2008-06-24 Ixi Mobile (R&D), Ltd. Volume control system and method for a mobile communication device
JP4904393B2 (en) * 2006-05-22 2012-03-28 ナイキ インターナショナル リミテッド User interface to remotely control a digital music player
CN103019529B (en) * 2012-12-19 2016-02-03 广东欧珀移动通信有限公司 A kind of volume adjusting method and system
CN106161776B (en) * 2016-06-15 2020-02-07 维沃移动通信有限公司 Volume adjusting method and mobile terminal
CN105915729B (en) * 2016-06-28 2020-05-08 惠州Tcl移动通信有限公司 Method and system for quickly adjusting volume of mobile terminal and mobile terminal
CN106454507B (en) * 2016-11-30 2019-07-26 广州三星通信技术研究有限公司 Adjust the method and apparatus of the volume of electric terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359900A (en) * 2008-08-11 2009-02-04 深圳华为通信技术有限公司 Volume regulating method, apparatus and mobile terminal thereof
CN102932595A (en) * 2012-10-22 2013-02-13 北京小米科技有限责任公司 Method and device for sound-control photographing and terminal
EP3048779B1 (en) * 2013-09-17 2019-02-27 ZTE Corporation Sound volume adjusting method and device

Also Published As

Publication number Publication date
CN107734121A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107734121B (en) Volume control method and device, storage medium and electronic equipment
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
WO2014201863A1 (en) Volume adjusting method, volume adjusting apparatus and electronic device using the same
CN107797841B (en) Window control method and device, terminal equipment and storage medium
KR20100081575A (en) Apparatus and method for controlling on/off of liquid crystal display in a portable terminal
WO2017215629A1 (en) Sound effect configuration method and related device
CN107613146B (en) Volume adjustment method and device and mobile terminal
CN108536415B (en) Application volume control method and device, mobile terminal and computer readable medium
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
CN110175015B (en) Method and device for controlling volume of terminal equipment and terminal equipment
WO2020052307A1 (en) Permission configuration method and related product
CN108668018B (en) Mobile terminal, volume control method and related product
CN106775624A (en) Using the determination method and device of display order
CN103677624A (en) Method of processing touch input for mobile device
US9820258B2 (en) Electronic apparatus
CN110989816B (en) Application processing method and device and storage medium
CN112199005A (en) Content display method, content display device, storage medium and mobile terminal
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN109660657B (en) Application program control method and device
CN108900942B (en) Play control method and electronic equipment
CN110851106A (en) Audio output method and electronic equipment
CN110730946B (en) Volume control method and device of mobile terminal, storage medium and mobile terminal
CN111026456B (en) Application management method and device, storage medium and electronic equipment
CN106060274A (en) Method and device for reporting ambient light sensor data and mobile terminal
CN108024016B (en) Volume adjusting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant