CN113365010B - Volume adjusting method, device, equipment and storage medium - Google Patents

Volume adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN113365010B
CN113365010B CN202110633298.XA CN202110633298A CN113365010B CN 113365010 B CN113365010 B CN 113365010B CN 202110633298 A CN202110633298 A CN 202110633298A CN 113365010 B CN113365010 B CN 113365010B
Authority
CN
China
Prior art keywords
volume
application
adjusting
adjustment
playing
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
CN202110633298.XA
Other languages
Chinese (zh)
Other versions
CN113365010A (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110633298.XA priority Critical patent/CN113365010B/en
Publication of CN113365010A publication Critical patent/CN113365010A/en
Application granted granted Critical
Publication of CN113365010B publication Critical patent/CN113365010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/60Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4852End-user interface for client configuration for modifying audio parameters, e.g. switching between mono and stereo

Abstract

The volume adjusting method, apparatus, device, and storage medium provided in this embodiment relate to a volume control technology, and simultaneously display screens of multiple applications in an interface, where the scheme includes: responding to volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface; responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; and adjusting the volume of the target application in response to the adjustment operation of the selected volume adjusting component. According to the volume adjusting scheme provided by the disclosure, the pre-generated volumes of the applications can be respectively adjusted, so that when the electronic equipment plays the audio of the application with the adjusted volume, the audio of the application can be played according to the adjusted volume, and the purpose of adjusting the volume of the specific application is achieved.

Description

Volume adjusting method, device, equipment and storage medium
Technical Field
The present disclosure relates to volume control technologies, and in particular, to a volume adjusting method, apparatus, device, and storage medium.
Background
Currently, a plurality of applications may be installed in an electronic device, and the electronic device may run the applications simultaneously. For example, a video application and a game application may be installed in the electronic device, and the two applications may be simultaneously run in the electronic device.
When the electronic equipment runs a plurality of applications simultaneously, if the user adjusts the application volume, the system volume can only be adjusted, and the volume of each application can be changed along with the change of the system volume.
In some specific application scenarios, if the user wishes to adjust the volume of a specific application without adjusting the volume of other applications, this cannot be achieved.
Disclosure of Invention
The embodiment of the disclosure provides a volume adjustment method, a volume adjustment device, volume adjustment equipment and a storage medium, so as to solve the problem that the volume of a specific application cannot be adjusted in the prior art.
In a first aspect, an embodiment of the present disclosure provides a volume adjustment method, where screens of multiple applications are simultaneously displayed in an interface, and the method includes:
responding to volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface;
responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
adjusting the volume of the target application in response to the adjustment operation of the selected volume adjustment component.
In a second aspect, an embodiment of the present disclosure provides a volume adjustment apparatus, in an application and an electronic device, for simultaneously displaying screens of multiple applications in an interface of the electronic device, the apparatus including:
the display unit is used for responding to volume adjustment operation and displaying each volume adjustment component corresponding to each application in the interface;
the display unit is also used for responding to the selection operation of any one volume adjusting component and displaying the volume adjusting component in a selected state;
the acquisition unit is used for responding to the selection operation of any volume adjusting component and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
and the application volume adjusting unit is used for responding to the adjusting operation of the selected volume adjusting component and adjusting the volume of the target application.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and memory;
the memory stores computer execution instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the volume adjustment method as set forth above in the first aspect and in various possible designs of the first aspect.
In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the volume adjusting method according to the first aspect and various possible designs of the first aspect are implemented.
In a fifth aspect, embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the volume adjustment method as set forth above in the first aspect and in various possible designs of the first aspect.
The method, the apparatus, the device and the storage medium for volume adjustment provided by this embodiment simultaneously display multiple application screens in an interface, and the scheme includes: responding to volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface; responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance; and adjusting the volume of the target application in response to the adjustment operation of the selected volume adjusting component. According to the volume adjusting scheme provided by the disclosure, the pre-generated volume of each application can be respectively adjusted, so that when the electronic equipment plays the audio of the application with the adjusted volume, the audio of the application can be played according to the adjusted volume, and the purpose of adjusting the volume of a specific application is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and those skilled in the art can obtain other drawings without inventive labor.
FIG. 1 is a schematic diagram of a first interface shown in an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a volume adjustment method according to a first exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a second interface shown in an exemplary embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a volume adjustment method according to a second exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a third interface shown in an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a fourth interface according to an exemplary embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating a fifth interface in accordance with an exemplary embodiment of the present disclosure;
fig. 8 is a flowchart illustrating a volume adjustment method according to a third exemplary embodiment of the present disclosure;
fig. 9 is a schematic structural view illustrating a volume adjusting apparatus according to an exemplary embodiment of the present disclosure;
fig. 10 is a schematic structural view of a volume adjusting apparatus according to another exemplary embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without inventive step, are intended to be within the scope of the present disclosure.
When the electronic equipment runs the application, the audio can be played according to the function of the application. When a plurality of applications are operated in the electronic device, for example, a first application for playing music and a second application for playing a fitness password are operated, when a user adjusts the playing volume of the first application, only the system volume can be adjusted, so that the application volume changes along with the system volume.
However, in some specific scenarios, there is a need to adjust the volume for a specific application. For example, a user may wish to turn down the volume of a first application playing music and turn up a second application playing a workout password. At this time, since the volume of each application is changed along with the change of the system volume, the user's requirement for adjusting the volume of a specific application cannot be satisfied.
In order to solve the technical problem, in the solution provided by the present disclosure, an application volume is generated in advance for each application, and the application volume is used for playing audio of the application. When the user adjusts the application volume, the application with the adjusted volume can be determined according to the operation of the user, and then the target volume of the application is adjusted, so that the electronic equipment can play the audio of the application according to the adjusted target volume. In this process, since the application volume of the other application is not changed, the volume is not changed when the audio of the other application is played.
The method provided by the disclosure can be applied to electronic equipment with computing capability, the electronic equipment is provided with a display interface, and the screens of a plurality of applications can be displayed simultaneously in the interface. For example, the electronic device may be operated to run a first application and a second application installed therein, and the electronic device may be controlled to display interfaces of the two applications at the same time.
For each displayed application, the volume of the application can be adjusted through the operation of the user.
Fig. 1 is a schematic diagram of a first interface shown in an exemplary embodiment of the present disclosure.
As shown in fig. 1, the electronic device may be, for example, a television, and a first interface 11 of a first application and a second interface 12 of a second application may be displayed in an interface of the television.
The first interface 11 and the second interface 12 may be displayed in parallel, the first interface 11 may also be displayed in an enlarged manner, and the second interface 12 is displayed on an upper layer of the first interface 11 in a picture-in-picture manner.
Fig. 2 is a flowchart illustrating a volume adjustment method according to a first exemplary embodiment of the present disclosure.
As shown in fig. 2, the volume adjusting method provided by the present disclosure includes:
step 201, responding to the volume adjustment operation, displaying each volume adjustment component corresponding to each application in the interface.
The user can operate the electronic device to perform volume adjustment operation.
In one embodiment, if the screen of the electronic device has a touch function, the user may perform the volume adjustment operation by touch. For example, a volume adjustment button displayed in the interface may be clicked.
In another embodiment, if the electronic device has a matching remote controller or mouse, the user may perform a volume adjustment operation on the electronic device through the remote controller or mouse, for example, may press a volume adjustment button in the remote controller.
Specifically, when a user performs a volume adjustment operation on the electronic device, the electronic device may respond to the operation and display each volume adjustment component corresponding to each application displayed in the current interface. For example, if the screen of the first application and the screen of the second application are currently displayed in the interface, the electronic device may display the volume adjustment component of the first application and the volume adjustment component of the second application based on the volume adjustment operation of the user.
In an alternative embodiment, the electronic device may display the volume adjustment components of the system in addition to the displayed volume adjustment components for each application.
Fig. 3 is a schematic diagram of a second interface shown in an exemplary embodiment of the present disclosure.
As shown in fig. 3, four screens 31, 32, 33, and 34 of the application are displayed on the interface of the electronic device. When the user performs a volume adjustment operation on the electronic device, the electronic device may display the volume adjustment components 35, 36, 37, and 38 for the four applications, respectively.
When the volume adjustment components are displayed, application pictures displayed in the interface of the electronic interface can also be blurred or dimmed to enable the volume adjustment components to be highlighted.
In an alternative embodiment, a volume adjustment component 39 of the system may also be displayed in the interface.
Step 202, responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; each volume used when playing audio for each application is generated in advance.
Further, the user may operate the volume adjustment component of any one of the displayed applications, thereby adjusting the volume of the corresponding application.
When the volume adjusting component is actually applied, the user can select the volume adjusting component of any application.
In an optional implementation manner, if the screen of the electronic device has a touch function, the user may select the volume adjustment component in a touch manner, for example, the user may press a position of any volume adjustment component in the screen with a hand, and then select the corresponding volume adjustment component.
In another alternative embodiment, if the electronic device has a matching remote controller, the user may select a volume adjustment component displayed in the interface by operating the remote controller. For example, a user may operate up, down, left, and right buttons in the remote control to adjust the position of the focus, and when the focus is located at the volume adjustment component, the volume adjustment component is in a selected state.
In another alternative embodiment, if the electronic device has a matching mouse, the user may select a volume adjustment component displayed in the interface by operating the mouse. For example, the user may move the position of the mouse, and when the mouse is at the position of the volume adjustment component, the volume adjustment component is in the selected state.
When the volume adjusting component is in the selected state, the electronic equipment can display the volume adjusting component in the selected state, so that the user is prompted about the currently selected volume adjusting component. For example, the selected volume adjustment component may be highlighted, and for example, the display color of the selected volume adjustment component may be changed.
Specifically, the electronic device may generate, in advance, each volume used when audio for each application is played. For example, when the electronic device runs an application with a playing function, the volume may be generated for the application.
Further, when the volume adjustment component of one application is in the selected state, the electronic device may use the application to which the volume adjustment component belongs as a target application, and further obtain the volume of the target application.
For example, the electronic device generates application volumes for the applications 1 to 7, respectively, and the current interface displays screens of the applications 1, 2, 3, and 4, so that when the electronic device responds to a volume adjustment operation, volume adjustment components of the applications 1, 2, 3, and 4 may be displayed. When the volume adjustment component of the application 3 is in the selected state, the electronic device may acquire the application volume of the application 3 and use the application volume as the target application volume.
And step 203, responding to the adjustment operation of the selected volume adjustment component, and adjusting the volume of the target application.
In actual application, after a user selects one volume adjusting component, the user can further adjust the selected volume adjusting component, so that the electronic device can adjust the volume of the acquired target application.
For example, after the user presses the position of any volume adjustment component in the screen, the user can also move the finger left or right, and then adjust the volume of the target application to which the volume adjustment component belongs.
For another example, after the user selects any volume adjustment component through the remote controller, the user can press a volume adjustment key in the remote controller to further adjust the volume of the target application to which the volume adjustment component belongs.
When the electronic device plays the audio of the application, the volume of the application can be acquired, and the audio of the application is played based on the acquired volume. Therefore, after the volume of the target application is adjusted, when the audio of the target application is played, the electronic device can acquire the adjusted volume of the target application, and therefore the purpose of adjusting the volume of a specific application can be achieved.
For example, there are a first application, a second application, and a third application, which have respective volumes. After the user adjusts the volume of the first application, when the electronic device plays the audio of the first application, the volume adjusted by the first application is obtained. When the electronic equipment plays the audio of the second application, the original volume of the second application is obtained, so that the volume of other applications cannot be influenced after the user adjusts the volume of the first application.
In an alternative embodiment, for applications displaying pictures in the interface of the electronic device, the electronic device may play or output audio of the applications to different audio playing devices at the same time, so that the user can hear the audio of multiple applications. And the volume of the applications can be independently adjusted to meet the requirement of users for independently controlling the volume of the applications.
In an optional embodiment, the maximum value of the volume of the target application is the current volume of the system.
The volume adjusting method provided by the disclosure displays a plurality of application pictures in an interface at the same time, and comprises the following steps: responding to the volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface; responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance; and adjusting the volume of the target application in response to the adjustment operation of the selected volume adjustment component. According to the volume adjusting method provided by the disclosure, the pre-generated volume of each application can be respectively adjusted, so that when the electronic equipment plays the audio of the application with the adjusted volume, the audio of the application can be played according to the adjusted volume, and the purpose of adjusting the volume of a specific application is achieved.
Fig. 4 is a flowchart illustrating a volume adjustment method according to a second exemplary embodiment of the present disclosure.
The method provided by the disclosure can be applied to electronic equipment with computing capability, the electronic equipment is provided with a display interface, and the screens of a plurality of applications can be simultaneously displayed in the interface. For example, the electronic device may be operated to run a first application and a second application installed therein, and the electronic device may be controlled to simultaneously display interfaces of the two applications.
The electronic device may also play audio for multiple applications simultaneously. The electronic device may manage all applications that have applied for audio focus using two lists, one List for holding a List of applications that hold audio focus and another List for holding a List of applications that have lost audio focus.
As shown in fig. 4, the volume adjusting method provided by the present disclosure includes:
step 401, generating corresponding application volume for each application with a playing function, wherein the application volume is provided with a label generated according to application information; the applications with the playing function comprise a multimedia application and a screen projection application.
For example, if the electronic device runs a first application, and the first application is an application with a playing function, the electronic device may generate an application volume for the first application. When the second application with the playing function is run in the electronic device, the electronic device may generate the application volume for the second application.
Specifically, in order to distinguish the applications to which the application volumes belong, a tag may be generated according to the information of the application, and the application volumes and the corresponding tags may be associated, so that the application volumes have tags generated according to the information of the application.
For example, the electronic device may generate an application volume for the first application, and may further generate a tag according to information of the first application, and associate the tag of the first application and the application volume thereof, so that the application volume of the first application has the tag of the first application.
Further, the applications with the playing function include a multimedia application and a screen projection application.
The multimedia application refers to an application capable of directly playing audio, which is set in the electronic device, for example, if a first application having a playing function is installed in the electronic device, the first application is a multimedia application when the first application is run.
The screen projection application refers to an application in which the electronic device can play audio when the electronic device is projected with a screen through a device such as a mobile phone. For example, a screen projection application is provided in the electronic device, and when other devices project screens to the electronic device, the screen projection application is operated. In an alternative embodiment, the screen projection application set in the electronic device can be called no matter what function of the application the other device projects the screen to the electronic device.
And 402, responding to the volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface.
Step 402 is similar to step 201 in implementation and effect, and is not described again.
And 403, responding to the selection operation of any volume adjusting component, and acquiring the volume of the target application according to the information of the target application to which the selected volume adjusting component belongs and the label of each volume.
Specifically, the user may operate any of the displayed volume adjustment assemblies, so as to select one volume adjustment assembly, and the focus of the electronic device may be moved to the selected volume adjustment assembly.
Further, the electronic device may determine information of a target application to which the selected volume adjustment component belongs. For example, volume adjustment components of application a, application B, and application C are displayed in an interface of the electronic device, and when a user selects one of the volume adjustment components, the electronic device may determine a target application to which the volume adjustment component belongs, for example, if the selected volume adjustment component is the volume adjustment component of application a, the application a is the target application.
In practical application, the electronic device may further obtain information of a target application to which the selected volume adjustment component belongs, and then may generate a tag according to the information of the target application, and compare the tag with tags of respective volumes to determine a volume corresponding to the target application to which the selected volume adjustment component belongs. For example, the electronic device generates volumes a, B, and C for application a, application B, and application C, respectively, and when the selected volume adjustment component is application a, the electronic device may generate a tag according to information of application a, and compare the tag with the volumes a, B, and C, respectively, to determine the volume a as the volume of the target application.
Step 404, replacing the application identifier in the volume adjustment component of the target application with the volume value of the target application for display; the displayed volume adjusting component comprises an application identifier.
For example, the volume adjustment component of the first application may include an identifier of the first application, and the volume adjustment component of the second application may include an identifier of the second application.
Specifically, when the volume adjustment component is in the selected state, the application identifier in the volume adjustment component may be replaced with the volume value of the target application for display.
Fig. 5 is a schematic diagram of a third interface shown in an exemplary embodiment of the present disclosure.
As shown in fig. 5, a plurality of volume adjustment components of an application may be displayed in the interface, where after any volume adjustment component 51 is selected, the electronic device may obtain the volume of a target application to which the volume adjustment component 51 belongs, and may replace an application identifier 52 in the volume adjustment component 51 of the target application with a volume value 53 of the target application.
By the embodiment, when the volume adjusting component is in the selected state, the electronic equipment can display the volume of the target application to which the volume adjusting component belongs, so that a user can visually see the current volume of the target application.
Wherein, when the volume of the application is adjusted, the volume value displayed in the volume adjusting component can also follow the change.
Step 405, displaying the volume identifiers in the selected volume adjusting components and amplifying the animation along a second direction in a unified mode; the volume adjusting component comprises a plurality of volume identifiers arranged at intervals along a first direction, and the first direction is perpendicular to a second direction.
Further, a plurality of volume identifiers arranged at intervals along the first direction can be further included in the volume adjusting assembly. The first direction may be set as required, and the first direction may be, for example, a horizontal direction.
Fig. 6 is a schematic diagram illustrating a fourth interface according to an exemplary embodiment of the present disclosure.
As shown in fig. 6, a plurality of volume identifiers 61 arranged at intervals in the first direction may be included in each volume adjustment assembly.
When the volume adjusting component is in a selected state, a magnified animation of the volume identifier in the selected volume adjusting component along the second direction in a unified manner can be displayed.
In practical application, when one volume adjusting assembly is selected, the electronic equipment can display the animation that all volume identifiers in the selected volume adjusting assembly are uniformly amplified along the second direction, so that a user can visually see the difference between the selected volume adjusting assembly and other volume adjusting assemblies.
Fig. 7 is a schematic diagram of a fifth interface shown in an exemplary embodiment of the present disclosure.
As shown in FIG. 7, each volume identifier in the selected volume adjustment component 71 may be animated to zoom in a second direction, switching from state 72 to state 73.
In one embodiment, the electronic device may display an animation of the volume indicator being enlarged in the second direction and display the enlarged volume indicator, as shown at 73, while the volume adjustment assembly 71 remains in the selected state.
In another embodiment, the electronic device may display an animation of the volume indicator being enlarged in a second direction a plurality of times while volume adjustment assembly 71 is in the selected state.
Step 406 may also be included after step 405.
And 406, when the operation of the selection of the volume adjustment component is released, displaying the zooming-out animation of the volume identification uniform in the volume adjustment component of the target application along the second direction.
The electronic device may be further operable by a user, and when the user makes an operation to release the selection of the volume adjustment component, the electronic device may release the volume adjustment component, for example, the user may move the focus to another component by the operation.
Specifically, the electronic device may display a reduced animation of the volume identification uniform in the volume adjustment component of the target application in the second direction. The electronic device may display a reduced animation of the volume identification uniform in the volume adjustment component in the second direction once when the operation of the selection of the volume adjustment component is released.
Step 407, adjusting the volume of the target application in response to the adjusting operation of the selected volume adjusting component.
Step 407 is similar to the implementation manner of step 103, and is not described again.
And step 408, acquiring the volume of the system and/or the volume of other applications, and adjusting the volume of the system and/or the volume of other applications according to the adjusted volume of the target application.
In an optional implementation manner, a linkage relationship between the system volume and the volume of the target application of which the volume is currently adjusted may be set, and then the system volume is adjusted in a linkage manner according to the adjustment condition of the volume of the target application.
In another optional implementation, a linkage relationship between the volume of the other applications and the volume of the target application with the volume currently adjusted may also be set, and then the volumes of the other applications are adjusted in a linkage manner according to the adjustment condition of the volume of the target application.
In this embodiment, the system volume or the volumes of other applications may be adjusted according to the volume adjustment condition of the target application, instead of unifying the volumes of each application and the system to the same volume value, so that the system volume or the volumes of each application may be adjusted according to the actual operation of the user through this embodiment, so as to improve the efficiency of volume adjustment.
In an alternative embodiment, if the system volume is less than the adjusted volume of the target application, the system volume is adjusted to the volume of the target application. For example, the system volume is 35, and the user adjusts the volume of the target application from 25 to 50. The electronic device may adjust the system volume to 50 as well.
In this embodiment, if the adjusted volume of the target application is greater than the system volume, the system volume may be adjusted according to the adjusted volume of the target application in order to avoid the volume of the target application being limited by the system volume.
In another embodiment, if the volume of the target application after the adjustment is greater than the volume of the target application before the adjustment, the electronic device may determine an adjustment difference of the volume of the target application. For example, increasing the volume of the target application from 35 to 60, an adjustment difference 25 may be determined.
The electronic equipment can also acquire the volume of each other application, and if the volume of each other application is larger than the first preset value, the volume of each other application is increased by an adjustment difference value. The first preset value may be set according to requirements, and may be 10, for example. If the volume of one other application is less than 10, it indicates that the user wishes to set the volume of the application to be smaller, and therefore, the volume of the application may not be adjusted.
Specifically, if the volume of the other application is greater than the first preset value, the electronic device may increase the adjustment difference value based on the volume of the other application. Therefore, the volume of other applications is correspondingly adjusted according to the volume adjustment operation on the target application, and the volume of each application can be adjusted in a linkage manner, so that the volume adjustment efficiency is improved.
In an alternative embodiment, the method provided by the present disclosure may further include:
step 409, acquiring the playing instance of the application, and adding a label generated according to the information of the application to the playing instance.
For each application having the playing function, the electronic device may obtain a playing instance AudioTrack of the corresponding application. AudioTrack is a class that manages and plays a single audio resource, and when an electronic device plays audio, a corresponding play instance is generated.
Specifically, when the electronic device runs an application installed therein, a playing instance may be generated according to the installed application, for example, when the application is a video application, a playing instance may be generated, and further, for example, when the application is a game application, an instance for playing background music may be generated, and an instance for playing special-effect music may be regenerated, which may be specifically adjusted according to an implementation manner of the application.
Further, when the screen projection function of the electronic device is used, the electronic device runs a screen projection application therein. The electronic device may generate a playing instance for each screen projection, for example, when the terminal is used to perform a first screen projection on the electronic device, the playing instance may be generated for the screen projection on the path, and when the terminal is used to perform a second screen projection on the electronic device, a playing instance may be generated for the screen projection on the path.
In actual application, a label can be generated for the playing instance of the application according to the information of each application.
Step 401 is the same way as the tag is produced according to the information applied in step 409.
And if the application is the multimedia application, the label generated according to the application information is a hash value generated according to the packet name of the multimedia application. For example, the packet name of the application may be subjected to hash operation to obtain an integer hash result, and then the hash result is added as a tag of the playing instance of the application.
And if the application is the screen-projecting application, the label generated according to the application information is a hash value generated according to a preset screen-projecting package name and the identifier of the playing instance corresponding to the screen-projecting application. Because the package names of the screen projection applications in the electronic equipment are the same, in order to distinguish the playing examples of each path of screen projection, the labels of the playing examples can be generated together according to the package names of the screen projection applications and the identifiers of the playing examples of each path of screen projection, specifically, the preset screen projection package names of the screen projection applications and the identifiers of the playing examples can be spliced, and then the spliced character strings are subjected to hash operation to obtain the labels of the playing examples.
The execution timing of step 409 and any of the above steps is not limited.
In step 410, when the audio of the application is played, if the playing mode is a mode in which the applications used for representing the display frame are all sound-producing playing, acquiring the volume of the application according to the label of the playing instance of the application, and playing the audio of the application according to the acquired volume.
In an alternative embodiment, the play mode of the electronic device may be adjusted, for example, a user may operate the electronic device to set the play mode, for example, a mode for representing that all applications of the display screen are vocalization play, or a mode for representing that applications of the focus screen are vocalization play.
When the audio is played, if the playing mode is a mode in which the applications used for representing the display frame are all sound playing, the volume of the application can be acquired according to the label of the playing instance of the currently played application and the labels of all the volumes, and then the audio of the application is played by using the volume.
Specifically, the tag of the playing instance of the application and the tags of the volumes of the applications can be compared to obtain a comparison result; and then obtaining the volume which is the same as the label of the playing example of the application according to the comparison result, and sending the obtained application volume to the playing example of the application.
When multiple screen projection paths exist in the electronic equipment, a label of each screen projection path can be generated according to the screen projection application and the playing instance identification of each screen projection path. And generating the volume of each screen projection, adding the label to the volume of each screen projection, and adding a label to the playing instance of each screen projection. And then, when the screen projection video is played, the screen projection volume of each path can be obtained according to the label.
Specifically, when the volume of the application is obtained, the electronic device may compare the tag of the play instance of the application with the tags of the volumes of the applications to obtain a comparison result. And then obtaining the volume same as the label of the application playing example according to the comparison result, and sending the obtained application volume to the application playing example.
For example, the generated volume includes a first volume, a tag of the first volume is tag1, a tag of the second volume is tag2, a tag of the third volume is tag3, and the generated volume further includes a second volume.
When the electronic device plays audio, if the application playing the audio is a multimedia application, the electronic device may obtain a package name of the application, generate a tag according to the package name, and compare the tag with tags of various volumes to obtain the tag of the application. For example, if the generated tag is tag1, the electronic device may play the audio according to the first volume.
When the electronic equipment plays audio, if the application playing the audio is a screen-casting application, the electronic equipment can acquire a packet name of the screen-casting application and an identifier of a playing instance used by the playing audio, generate a label according to the packet name and the identifier of the playing instance, and compare the label with labels of various volumes to acquire the label of the screen-casting application. For example, if the generated tag is tag2, the electronic device may play the road projection screen audio according to the second volume.
In step 411, when the audio of the application is played, if the playing mode is the application sounding playing mode for representing the focus picture, the focus application where the focus is located is obtained.
Step 412, obtaining the volume of the focus application according to the label of the play instance of the focus application, and sending the obtained volume to the play instance of the focus application; sending parameters for representing silence to play instances of other applications except the focus application in the application so as to enable the other applications to play in a silent mode; among the applications displaying the screen, the other applications are applications other than the application in focus.
If the playing mode is a mode for representing application sounding playing of the focus picture, the electronic device may acquire the focus application where the focus is located, and may further obtain a label of a playing instance of the focus application.
The electronic device may further obtain the volume of the focus application according to the tag of the play instance of the focus application, and send the obtained volume to the play instance of the focus application.
It should be noted that, if multiple screen shots exist in the electronic device, the multiple screen shots are all screen shot applications, and at this time, the focus volume of the picture where the focus is located may be obtained according to the tag of the playing instance corresponding to the picture where the focus is located and the packet name of the screen shot application.
Meanwhile, the electronic equipment can also acquire parameters for representing the mute, and sends the parameters for representing the mute to the playing instances of other applications except the focus application in the application so as to enable the other applications to play in a mute manner; among the applications displaying the screen, the other applications are applications other than the application in focus. In this way, mute play of other applications may be controlled.
Fig. 8 is a flowchart illustrating a volume adjustment method according to a third exemplary embodiment of the present disclosure.
The method provided by the disclosure can be applied to electronic equipment with computing capability, the electronic equipment is provided with a display interface, and the screens of a plurality of applications can be displayed simultaneously in the interface. For example, the electronic device may be operated to run a first application and a second application installed therein, and the electronic device may be controlled to display interfaces of the two applications at the same time.
As shown in fig. 8, the volume adjusting method provided by the present disclosure includes:
step 801, responding to volume adjustment operation, and displaying each volume adjustment component and system volume component corresponding to each application in an interface.
When the user performs volume adjustment operation on the electronic equipment, the volume adjustment components corresponding to the applications can be displayed in the interface of the electronic equipment, and system volume components can also be displayed.
Step 802, adjusting the system volume in response to an adjustment operation on the system volume component.
Specifically, the user may perform an adjustment operation on the system volume component, for example, the user may select the system volume component by using a remote controller, and then adjust the system volume. For example, a user may select a system volume component and then operate a volume adjustment button to adjust the system volume.
Furthermore, the electronic device can increase or decrease the volume according to the adjustment operation of the system volume by the user.
And step 803, acquiring the volume of each application, and adjusting the volume of each application according to the volume of each application, the linkage relation between the application and the system volume and the adjustment result of the system volume.
In practical application, the electronic device can also preset the linkage relationship between the system volume and the application volume, so that the volume of each application can be correspondingly adjusted according to the adjustment operation of the user on the system volume, and the volume adjustment efficiency is improved.
In this way, instead of directly adjusting the volume of each of the other applications to a volume that matches the system volume, the volume of each application needs to be adjusted according to the linkage relationship between the application and the system volume, the adjustment result of the system volume, and the current volume of each application.
If the applied volume is greater than the second preset value and less than or equal to a third preset value, increasing the applied volume according to the increased value of the system volume when the system volume is increased; and the second preset value is smaller than the third preset value.
For example, the second preset value is 0, and the third preset value is 10. When the user turns up the system volume, if the volume of the application is between 0 and 10, the electronic device may synchronously adjust the volume of the application. If the user turns down the system volume, then no adjustment is made to the application with a volume between 0 and 10.
In this embodiment, if the application is in the non-mute mode and the volume of the application is small, the volume of the application may be turned up when the system volume is increased. Meanwhile, because the application is not muted, when the user turns the system volume down, the volume of the application may not be turned down, so as to prevent the volume of the application from being too small to be adjusted.
And if the application volume is larger than the third preset value, adjusting the application volume according to the adjustment size of the system volume. For example, when the volume of the application is greater than 10, the electronic device may adjust the volume of the application according to the adjustment of the system volume.
Specifically, when the application volume is adjusted according to the system volume, an adjustment value of the system volume may be determined, and the application volume may be adjusted according to the adjustment value, for example, if the system volume is increased by 15, the application volume may also be increased by 15.
Further, if the application volume is greater than the third preset value, the system volume is reduced, and then the application volume is reduced according to the reduced value of the system volume when the application volume is adjusted according to the adjustment of the system volume until the application volume is adjusted to the second preset value.
For example, if the system volume is reduced from 50 to 40 and the application volume is 30, the electronic device may reduce the application volume to 20 by reducing the system volume. Thereafter, if the user continues to turn down the system volume, such as turning the system volume down from 40 to 20, the electronic device may turn down the volume of the application, which no longer follows the decrease in the system volume when the volume of the application is turned to 10.
In an optional embodiment, if the adjusted system volume is smaller than a third preset value, the volume of the application is decreased according to a value of the decrease of the system volume.
When the system volume is adjusted to be smaller than the third preset value, if the user continues to turn down the system volume, the electronic device may adjust the applications with the volume smaller than the third preset value, for example, if the system volume is reduced by 5, the volume of each application is also turned down by 5.
In the scheme provided by the disclosure, when the system volume is changed, the same volume adjustment value is increased or decreased simultaneously. Specifically, when the volume of the application is 0, the volume of the application does not change along with the system volume. If the applied volume is smaller than the third preset value, the volume is not reduced along with the system volume, and the volume is increased along with the system volume. If the applied volume is larger than the third preset value, the difference value of the volume of the following system is increased or decreased, in the process, when the applied volume is decreased to the third preset value, the volume of the following system is not decreased, and when the volume of the system is adjusted to be lower than the third preset value, the applied volume smaller than the third preset value changes along with the decrease/increase of the volume of the system again.
Fig. 9 is a schematic structural diagram of a volume adjusting device according to an exemplary embodiment of the present disclosure.
As shown in fig. 9, a volume adjustment apparatus provided by the present disclosure, in an application and an electronic device, displays screens of a plurality of applications simultaneously on an interface of the electronic device, where the apparatus 900 includes:
a display unit 910, configured to display, in response to a volume adjustment operation, each volume adjustment component corresponding to each application in the interface;
the display unit 910 is further configured to display a volume adjustment component in a selected state in response to a selection operation of any volume adjustment component;
an obtaining unit 920, configured to obtain, in response to the selection operation on any volume adjustment component, a volume of a target application to which the selected volume adjustment component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
an application volume adjusting unit 930 configured to adjust the volume of the target application in response to an adjusting operation of the selected volume adjusting member.
The volume adjusting device provided by the disclosure can respectively adjust the pre-generated volume of each application, so that when the electronic equipment plays the audio of the application with the adjusted volume, the audio of the application can be played according to the adjusted volume, and the purpose of adjusting the volume of a specific application is achieved.
The implementation and effect of the volume adjustment device provided by the present disclosure are similar to those of the embodiment shown in fig. 2, and are not described again.
Fig. 10 is a schematic structural view of a volume adjustment device according to another exemplary embodiment of the present disclosure.
As shown in fig. 10, a volume adjustment device 1000 provided by the present disclosure is based on the foregoing embodiments, and according to one or more embodiments of the present disclosure, an application identifier is included in the displayed volume adjustment component;
the display unit 910 includes a volume value display module 911, configured to:
and replacing the application identification in the volume adjusting component of the target application with the volume value of the target application for displaying.
According to one or more embodiments of the disclosure, the volume adjusting component is displayed, wherein a plurality of volume identifiers are arranged at intervals along a first direction;
the display unit 910 includes an animation module 912 for:
when the volume adjusting component is in a selected state, displaying a volume identifier in the selected volume adjusting component along a second direction amplification cartoon;
when the operation of selecting the volume adjustment component is released, displaying a zoom-out animation of the volume identification uniform symbol in the volume adjustment component of the target application along a second direction;
wherein the first direction and the second direction are perpendicular to each other.
According to one or more embodiments of the present disclosure, the apparatus further includes a first linkage unit 940, configured to obtain a system volume and/or a volume of another application after the application volume adjusting unit 930 adjusts the target application volume, and adjust the system volume and/or the volume of another application according to the adjusted target application volume.
According to one or more embodiments of the present disclosure, the first linkage unit 940 is specifically configured to:
if the system volume is smaller than the adjusted volume of the target application, adjusting the system volume to the volume of the target application;
if the volume of the adjusted target application is larger than that of the target application before adjustment, determining an adjustment difference value of the volume of the target application; and acquiring the volume of each other application, and if the volume of each other application is greater than a first preset value, increasing the volume of each other application by the adjustment difference.
According to one or more embodiments of the present disclosure, a volume adjustment component is shown including a system volume component;
the device further comprises:
a system volume adjusting unit 950 for adjusting the system volume in response to an adjusting operation of the system volume component;
the second linkage unit 960 is configured to obtain the volume of each application, and adjust the volume of each application according to the volume of each application, the linkage relationship between the application and the system volume, and the adjustment result of the system volume.
According to one or more embodiments of the present disclosure, the second linkage unit 960 includes:
a first adjusting module 961, configured to increase the volume of the application according to the increased system volume when the system volume is increased if the volume of the application is greater than a second preset value and less than or equal to a third preset value; wherein the second preset value is smaller than the third preset value;
and a second adjusting module 962, configured to adjust the application volume according to the adjustment size of the system volume if the application volume is greater than a third preset value.
According to one or more embodiments of the present disclosure, the second adjusting module 962 is specifically configured to:
if the system volume is adjusted to be small, reducing the applied volume according to the numerical value of the system volume reduction until the applied volume is adjusted to the third preset value;
and/or if the adjusted system volume is smaller than the third preset value, reducing the volume of the application according to the reduced value of the system volume.
According to one or more embodiments of the present disclosure, the apparatus further includes a volume generation unit 970 for, before the display unit responds to the volume adjustment operation:
generating corresponding volume for each application with a playing function, wherein the volume is provided with a label generated according to the information of the application; the application with the playing function comprises a multimedia application and a screen projection application;
the obtaining unit 920 is specifically configured to:
and acquiring the volume of the target application according to the information of the target application to which the selected volume adjusting component belongs and the label of each volume.
According to one or more embodiments of the present disclosure, the apparatus further comprises:
a tag adding unit 980, configured to acquire a play instance of an application before the display unit responds to a volume adjustment operation, and add a tag generated according to the information of the application to the play instance;
a playing unit 990, configured to, when playing the audio of the application, obtain a volume of the application according to a tag of a playing instance of the application, and play the audio of the application according to the obtained volume.
According to one or more embodiments of the present disclosure, if the playback mode is a mode in which all applications representing the display screen are played back as vocalization, the playback unit 990 includes:
a comparison module 991, configured to compare the tag of the playing instance of the application with the tags of the volume of each application to obtain a comparison result;
the first processing module 992 is configured to obtain, according to the comparison result, a volume that is the same as the volume of the tag of the play instance of the application, and send the obtained volume to the play instance of the application;
if the playback mode is a mode for characterizing application sound playback of a focus screen, the playback unit 990 includes:
an obtaining module 993, configured to obtain a focus application where a focus is located;
the second processing module 994 is configured to obtain a volume of the focus application according to the tag of the play instance of the focus application, and send the obtained volume to the play instance of the focus application.
According to one or more embodiments of the present disclosure, the playing unit 990 further includes a mute module 995, configured to send a parameter for characterizing muting to a playing instance of another application in the application other than the application in focus, so as to mute the other application to play; wherein the other application is an application other than a focus application among the applications displaying the screen.
The implementation and effect of the volume adjustment device provided by the present disclosure are similar to any one of the embodiments shown in fig. 4 and fig. 8, and are not described again.
In an alternative embodiment, the present disclosure also provides a computer program which, when executed by a processor, implements any of the volume adjustment methods described above.
The device provided in this embodiment may be configured to implement the technical solutions of the method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Referring to fig. 11, which shows a schematic structural diagram of an electronic device 1100 suitable for implementing the embodiment of the present disclosure, the electronic device 1100 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
As shown in fig. 11, the electronic device 1100 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1101, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1102 or a program loaded from a storage means 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
Generally, the following devices may be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 1107 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, or the like; storage devices 1108, including, for example, magnetic tape, hard disk, etc.; and a communication device 1109. The communication means 1109 may allow the electronic device 1100 to communicate wirelessly or by wire with other devices to exchange data. While fig. 11 illustrates an electronic device 1100 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. The computer program, when executed by the processing device 1101, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first obtaining unit may also be described as a "unit obtaining at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In a first aspect, according to one or more embodiments of the present disclosure, there is provided a volume adjustment method including:
responding to volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface;
responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
adjusting the volume of the target application in response to the adjustment operation of the selected volume adjustment component.
According to one or more embodiments of the disclosure, the displayed volume adjusting component comprises an application identifier;
the displaying the volume adjustment component in a selected state comprises:
and replacing the application identification in the volume adjusting component of the target application with the volume value of the target application for displaying.
According to one or more embodiments of the disclosure, the volume adjusting component is displayed, wherein a plurality of volume identifiers are arranged at intervals along a first direction;
when the volume adjusting component is in a selected state, displaying the amplified animation of the volume identifier in the selected volume adjusting component along a second direction in a unified manner;
when the operation of the selection of the volume adjustment component is released, displaying a zooming-out animation of the volume identification uniform symbol in the volume adjustment component of the target application along a second direction;
wherein the first direction and the second direction are perpendicular to each other.
According to one or more embodiments of the present disclosure, after adjusting the target application volume, the method further includes:
and acquiring the volume of the system and/or the volume of other applications, and adjusting the volume of the system and/or the volume of other applications according to the adjusted volume of the target application.
According to one or more embodiments of the present disclosure, if a system volume is less than an adjusted volume of a target application, the system volume is adjusted to the volume of the target application;
if the volume of the adjusted target application is larger than that of the target application before adjustment, determining an adjustment difference value of the volume of the target application; and acquiring the volume of each other application, and if the volume of each other application is greater than a first preset value, increasing the volume of each other application by the adjustment difference.
In accordance with one or more embodiments of the present disclosure, a volume adjustment assembly is shown including a system volume assembly therein
The method further comprises the following steps:
responding to the adjustment operation of the system volume component, and adjusting the system volume;
and acquiring the volume of each application, and adjusting the volume of each application according to the volume of each application, the linkage relation between the application and the system volume and the adjustment result of the system volume.
According to one or more embodiments of the present disclosure, the obtaining the volume of each application, and adjusting the volume of each application according to the volume of each application, the linkage relationship between the application and the system volume, and the adjustment result of the system volume includes:
if the volume of the application is larger than a second preset value and smaller than or equal to a third preset value, increasing the volume of the application according to the numerical value of the increased volume of the system when the volume of the system is increased; wherein the second preset value is smaller than the third preset value;
and if the application volume is larger than a third preset value, adjusting the application volume according to the adjustment size of the system volume.
According to one or more embodiments of the present disclosure, the adjusting the application volume according to the resizing of the system volume includes:
if the system volume is adjusted to be small, reducing the volume of the application according to the numerical value of the system volume reduction until the volume of the application is adjusted to the third preset value;
and/or if the adjusted system volume is smaller than the third preset value, reducing the volume of the application according to the reduced value of the system volume.
According to one or more embodiments of the present disclosure, before the responding to the volume adjustment operation, the method further includes:
generating corresponding volume for each application with a playing function, wherein the volume is provided with a label generated according to the information of the application; the applications with the playing function comprise a multimedia application and a screen projection application;
the acquiring the volume of the target application to which the selected volume adjusting component belongs includes:
and acquiring the volume of the target application according to the information of the target application to which the selected volume adjusting component belongs and the label of each volume.
According to one or more embodiments of the present disclosure, before the responding to the volume adjustment operation, the method further includes:
acquiring a playing example of an application, and adding a label generated according to the information of the application to the playing example;
and when the audio of the application is played, acquiring the volume of the application according to the label of the playing instance of the application, and playing the audio of the application according to the acquired volume.
According to one or more embodiments of the present disclosure, if the playback mode is a mode in which all applications representing a display screen are played back by generating sound, the acquiring, according to the tag of the playback instance of the application, the volume of the application includes:
comparing the label of the playing instance of the application with the labels of the volume of each application to obtain a comparison result;
acquiring the volume which is the same as the label of the playing example of the application according to the comparison result, and sending the acquired volume to the playing example of the application;
if the playing mode is a mode for representing application sounding playing of the focus picture, the obtaining the application volume of the application according to the tag of the playing instance of the application includes:
acquiring a focus application where a focus is located;
and acquiring the volume of the focus application according to the label of the playing instance of the focus application, and sending the acquired volume to the playing instance of the focus application.
According to one or more embodiments of the present disclosure, the obtaining the application volume of the application according to the tag of the play instance of the application further includes:
sending parameters for representing silence to play instances of other applications except the focus application in the applications so as to enable the other applications to play in a silent mode; wherein the other application is an application other than a focus application among the applications displaying a screen.
In a second aspect, according to one or more embodiments of the present disclosure, there is provided a volume adjustment apparatus, in an application and an electronic device, for simultaneously displaying screens of a plurality of applications in an interface of the electronic device, the apparatus including:
the display unit is used for responding to volume adjustment operation and displaying each volume adjustment component corresponding to each application in the interface;
the display unit is also used for responding to the selection operation of any one volume adjusting component and displaying the volume adjusting component in a selected state;
the acquisition unit is used for responding to the selection operation of any volume adjusting component and acquiring the volume of the target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
and the application volume adjusting unit is used for responding to the adjusting operation of the selected volume adjusting component and adjusting the volume of the target application.
According to one or more embodiments of the disclosure, the displayed volume adjusting component comprises an application identifier;
the display unit comprises a volume value display module and is used for:
and replacing the application identification in the volume adjusting component of the target application with the volume value of the target application for displaying.
According to one or more embodiments of the disclosure, the volume adjusting component is displayed, wherein a plurality of volume identifiers are arranged at intervals along a first direction;
the display unit includes an animation module to:
when the volume adjusting component is in a selected state, displaying a volume identifier in the selected volume adjusting component along a second direction amplification cartoon;
when the operation of selecting the volume adjustment component is released, displaying a zoom-out animation of the volume identification uniform symbol in the volume adjustment component of the target application along a second direction;
wherein the first direction and the second direction are perpendicular to each other.
According to one or more embodiments of the present disclosure, the device further includes a first linkage unit, configured to obtain a system volume and/or a volume of another application after the application volume adjustment unit adjusts the target application volume, and adjust the system volume and/or the volume of another application according to the adjusted target application volume.
According to one or more embodiments of the present disclosure, the first linkage unit is specifically configured to:
if the system volume is smaller than the adjusted volume of the target application, adjusting the system volume to the volume of the target application;
if the volume of the adjusted target application is larger than that of the target application before adjustment, determining an adjustment difference value of the volume of the target application; and acquiring the volume of each other application, and if the volume of each other application is greater than a first preset value, increasing the volume of each other application by the adjustment difference.
In accordance with one or more embodiments of the present disclosure, a volume adjustment assembly is shown including a system volume assembly therein
The device further comprises:
the system volume adjusting unit is used for responding to the adjustment operation of the system volume component and adjusting the system volume;
and the second linkage unit is used for acquiring the volume of each application and adjusting the volume of each application according to the volume of each application, the linkage relation between the application and the system volume and the adjustment result of the system volume.
According to one or more embodiments of the present disclosure, the second linkage unit includes:
the first adjusting module is used for increasing the volume of the application according to the numerical value of the increased system volume when the system volume is increased if the volume of the application is larger than a second preset value and is smaller than or equal to a third preset value; wherein the second preset value is smaller than the third preset value;
and the second adjusting module is used for adjusting the application volume according to the adjustment size of the system volume if the application volume is larger than a third preset value.
According to one or more embodiments of the present disclosure, the second adjusting module is specifically configured to:
if the system volume is adjusted to be small, reducing the volume of the application according to the numerical value of the system volume reduction until the volume of the application is adjusted to the third preset value;
and/or if the adjusted system volume is smaller than the third preset value, reducing the volume of the application according to the reduced value of the system volume.
According to one or more embodiments of the present disclosure, the apparatus further includes a volume generation unit for, before the display unit responds to the volume adjustment operation:
generating corresponding volume for each application with a playing function, wherein the volume is provided with a label generated according to the information of the application; the application with the playing function comprises a multimedia application and a screen projection application;
the obtaining unit is specifically configured to:
and acquiring the volume of the target application according to the information of the target application to which the selected volume adjusting component belongs and the label of each volume.
According to one or more embodiments of the present disclosure, the apparatus further comprises:
the label adding unit is used for acquiring a playing example of the application before the display unit responds to the volume adjustment operation and adding a label generated according to the information of the application to the playing example;
and the playing unit is used for acquiring the volume of the application according to the label of the playing instance of the application when the audio of the application is played, and playing the audio of the application according to the acquired volume.
According to one or more embodiments of the present disclosure, if the playback mode is a mode in which all applications representing the display screen are played back as vocalization, the playback unit includes:
the comparison module is used for comparing the label of the playing example of the application with the labels of the volume of each application to obtain a comparison result;
the first processing module is used for acquiring the volume which is the same as the label of the playing example of the application according to the comparison result and sending the acquired volume to the playing example of the application;
if the playing mode is a mode for representing the application sounding playing of the focus picture, the playing unit includes:
the acquisition module is used for acquiring the focus application of the focus;
and the second processing module is used for acquiring the volume of the focus application according to the label of the playing instance of the focus application and sending the acquired volume to the playing instance of the focus application.
According to one or more embodiments of the present disclosure, the playing unit further includes a mute module, configured to send a parameter for representing muting to a playing instance of another application in the application other than the focus application, so as to enable the other application to play in a muted manner; wherein the other application is an application other than a focus application among the applications displaying a screen.
In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the volume adjustment method as set forth above in the first aspect and in various possible designs of the first aspect.
In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the volume adjusting method according to the first aspect and various possible designs of the first aspect is implemented.
In a fifth aspect, the embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the volume adjustment method as described above in the first aspect and various possible designs of the first aspect.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. A method for adjusting volume, wherein screens of a plurality of applications are simultaneously displayed in an interface, the method comprising:
responding to volume adjustment operation, and displaying each volume adjustment component corresponding to each application in the interface;
responding to the selection operation of any volume adjusting component, displaying the volume adjusting component in a selected state, and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
adjusting the volume of the target application in response to the adjustment operation of the selected volume adjustment component;
the displayed volume adjusting component comprises a system volume component, and the method further comprises the following steps:
adjusting the system volume in response to an adjustment operation on the system volume component;
acquiring the volume of each application, and adjusting the volume of each application according to the volume of each application, the linkage relation between the application and the system volume and the adjustment result of the system volume;
the acquiring the volume of each application, and adjusting the volume of each application according to the volume of each application, the linkage relationship between the application and the system volume, and the adjustment result of the system volume includes:
if the applied volume is larger than a second preset value and smaller than or equal to a third preset value, increasing the applied volume according to the increased value of the system volume when the system volume is increased; wherein the second preset value is smaller than the third preset value;
if the application volume is larger than a third preset value, adjusting the application volume according to the adjustment size of the system volume;
if the system volume is adjusted to be small, reducing the applied volume according to the numerical value of the system volume reduction until the applied volume is adjusted to the third preset value;
and/or if the adjusted system volume is smaller than the third preset value, reducing the volume of the application according to the reduced value of the system volume.
2. The method of claim 1, wherein the displayed volume adjustment component comprises an application identifier;
the displaying the volume adjustment component in a selected state comprises:
and replacing the application identification in the volume adjusting component of the target application with the volume value of the target application for displaying.
3. The method of claim 1, wherein the volume adjustment components are displayed including a plurality of volume identifiers spaced along a first direction;
when the volume adjusting component is in a selected state, displaying the amplified animation of the volume identifier in the selected volume adjusting component along a second direction in a unified manner;
when the operation of the selection of the volume adjustment component is released, displaying a zooming-out animation of the volume identification uniform symbol in the volume adjustment component of the target application along a second direction;
wherein the first direction and the second direction are perpendicular to each other.
4. The method of any of claims 1-3, wherein adjusting the target application volume further comprises:
and acquiring the volume of the system and/or the volume of other applications, and adjusting the volume of the system and/or the volume of other applications according to the adjusted volume of the target application.
5. The method of claim 4,
if the system volume is smaller than the adjusted volume of the target application, adjusting the system volume to the volume of the target application;
if the volume of the adjusted target application is larger than that of the target application before adjustment, determining an adjustment difference value of the volume of the target application; and acquiring the volume of each other application, and increasing the volume of each other application by the adjustment difference value if the volume of each other application is greater than the first preset value.
6. The method of any of claims 1-3, wherein prior to the responding to the volume adjustment operation, further comprising:
generating corresponding volume for each application with a playing function, wherein the volume is provided with a label generated according to the information of the application; the applications with the playing function comprise a multimedia application and a screen projection application;
the acquiring the volume of the target application to which the selected volume adjustment component belongs includes:
and acquiring the volume of the target application according to the information of the target application to which the selected volume adjusting component belongs and the label of each volume.
7. The method of claim 6, wherein prior to the responsive volume adjustment operation, further comprising:
acquiring a playing example of an application, and adding a label generated according to the information of the application to the playing example;
and when the audio of the application is played, acquiring the volume of the application according to the label of the playing instance of the application, and playing the audio of the application according to the acquired volume.
8. The method of claim 7,
if the playing mode is a mode in which all applications for representing the display picture are played by sounding, the obtaining of the volume of the application according to the tag of the playing instance of the application includes:
comparing the label of the playing example of the application with the labels of the volume of each application to obtain a comparison result;
acquiring the volume which is the same as the label of the playing example of the application according to the comparison result, and sending the acquired volume to the playing example of the application;
if the playing mode is a mode for representing application sounding playing of the focus picture, the obtaining the application volume of the application according to the tag of the playing instance of the application includes:
acquiring a focus application where a focus is located;
and acquiring the volume of the focus application according to the label of the playing instance of the focus application, and sending the acquired volume to the playing instance of the focus application.
9. The method of claim 8, wherein obtaining the application volume of the application according to the tag of the play instance of the application further comprises:
sending parameters for representing silence to play instances of other applications except the focus application in the applications so as to enable the other applications to play in a silent mode; wherein the other application is an application other than a focus application among the applications displaying a screen.
10. A volume adjustment apparatus, in an application and an electronic device, for simultaneously displaying screens of a plurality of applications in an interface of the electronic device, the apparatus comprising:
the display unit is used for responding to volume adjustment operation and displaying each volume adjustment component corresponding to each application in the interface;
the display unit is also used for responding to the selection operation of any one volume adjusting component and displaying the volume adjusting component in a selected state;
the acquisition unit is used for responding to the selection operation of any volume adjusting component and acquiring the volume of a target application to which the selected volume adjusting component belongs; wherein, each volume used when playing the audio of each application is generated in advance;
an application volume adjusting unit for adjusting the volume of the target application in response to an adjusting operation of the selected volume adjusting component;
the system volume adjusting unit is used for responding to the adjustment operation of the system volume component and adjusting the system volume;
the second linkage unit is used for acquiring the volume of each application and adjusting the volume of each application according to the volume of each application, the linkage relation between the application and the system volume and the adjustment result of the system volume;
the first adjusting module is used for increasing the volume of the application according to the numerical value of the increased system volume when the system volume is increased if the volume of the application is larger than a second preset value and is smaller than or equal to a third preset value; wherein the second preset value is smaller than the third preset value;
the second adjusting module is used for adjusting the application volume according to the adjustment size of the system volume if the application volume is larger than a third preset value;
the second adjusting module is further configured to decrease the volume of the application according to the decreased value of the system volume until the volume of the application is adjusted to the third preset value if the system volume is decreased; and/or if the adjusted system volume is smaller than the third preset value, reducing the volume of the application according to the reduced value of the system volume.
11. An electronic device, comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
execution of the computer-executable instructions stored by the memory by the at least one processor causes the at least one processor to perform the volume adjustment method of any one of claims 1 to 9.
12. A computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the volume adjusting method according to any one of claims 1 to 9.
CN202110633298.XA 2021-06-07 2021-06-07 Volume adjusting method, device, equipment and storage medium Active CN113365010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110633298.XA CN113365010B (en) 2021-06-07 2021-06-07 Volume adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110633298.XA CN113365010B (en) 2021-06-07 2021-06-07 Volume adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113365010A CN113365010A (en) 2021-09-07
CN113365010B true CN113365010B (en) 2022-11-22

Family

ID=77532890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110633298.XA Active CN113365010B (en) 2021-06-07 2021-06-07 Volume adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113365010B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546327A (en) * 2022-02-24 2022-05-27 深圳创维-Rgb电子有限公司 Method and device for obtaining sound of multimedia file, electronic equipment and storage medium
CN115794024A (en) * 2022-12-20 2023-03-14 小米汽车科技有限公司 Volume adjusting method, device, medium, chip and vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201430A (en) * 2016-08-31 2016-12-07 维沃移动通信有限公司 A kind of method of volume adjusting and electronic equipment
CN106502619A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of method for controlling volume and device
CN109683847A (en) * 2018-12-20 2019-04-26 维沃移动通信有限公司 A kind of volume adjusting method and terminal
CN112256231A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Volume control method, device, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11347470B2 (en) * 2018-11-16 2022-05-31 Roku, Inc. Detection of media playback loudness level and corresponding adjustment to audio during media replacement event

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201430A (en) * 2016-08-31 2016-12-07 维沃移动通信有限公司 A kind of method of volume adjusting and electronic equipment
CN106502619A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of method for controlling volume and device
CN109683847A (en) * 2018-12-20 2019-04-26 维沃移动通信有限公司 A kind of volume adjusting method and terminal
CN112256231A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Volume control method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN113365010A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US10514885B2 (en) Apparatus and method for controlling audio mixing in virtual reality environments
US10200634B2 (en) Video generation method, apparatus and terminal
CN112738623B (en) Video file generation method, device, terminal and storage medium
KR20220103110A (en) Video generating apparatus and method, electronic device, and computer readable medium
CN113190314B (en) Interactive content generation method and device, storage medium and electronic equipment
CN113365010B (en) Volume adjusting method, device, equipment and storage medium
US20230300403A1 (en) Video processing method and apparatus, device, and storage medium
CN111970571B (en) Video production method, device, equipment and storage medium
CN112653920B (en) Video processing method, device, equipment and storage medium
US20240127856A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
US20240119082A1 (en) Method, apparatus, device, readable storage medium and product for media content processing
JP2023540753A (en) Video processing methods, terminal equipment and storage media
CN112165652B (en) Video processing method, device, equipment and computer readable storage medium
CN112000267A (en) Information display method, device, equipment and storage medium
CN113094135A (en) Page display control method, device, equipment and storage medium
JP2023525091A (en) Image special effect setting method, image identification method, device and electronic equipment
CN110381356B (en) Audio and video generation method and device, electronic equipment and readable medium
CN110650376B (en) Method and device for realizing transition animation during video playing, mobile terminal and storage medium
WO2023088484A1 (en) Method and apparatus for editing multimedia resource scene, device, and storage medium
WO2023029806A1 (en) Music playing method and device
CN113946251A (en) Media content sending method, device, equipment, readable storage medium and product
US11582514B2 (en) Source apparatus and control method therefor
CN112153439A (en) Interactive video processing method, device and equipment and readable storage medium
CN112017261A (en) Sticker generation method and device, electronic equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

CP01 Change in the name or title of a patent holder