Multi-window volume control method, device and computer-readable storage medium
By monitoring the volume button signal, the volume of multiple windows can be adjusted independently, solving the problem of volume interference during multi-window operation and improving the user experience.
Patent Information
- Application Number
- CN202110857088.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-07-28
AI Technical Summary
In the prior art, when multiple windows are running, the volume of each application cannot be adjusted independently, resulting in volume interference and a decrease in user experience.
By monitoring the touch signals of the volume buttons, the output volume of each application is independently adjusted according to the preset time and signal sequence, achieving fine control of the volume of multiple windows.
It enables independent adjustment of multiple independent audio sources within the screen display interface, reducing the user's operating burden and improving the user experience.
Smart Images

Figure CN113535024B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communications, and in particular to a multi-window volume control method, device, and computer-readable storage medium. Background Art
[0002] In the prior art, with the continuous development of smart terminal devices, the functions of electronic terminals such as mobile phones are becoming more and more. Among them, small window projection is a function that can run two applications at the same time. For example, the small window can be used to hang up the King of Glory game, and the full screen can be used to run Douyin or WeChat. Based on this, after the user finishes a game of King of Glory, he can hang up the King of Glory game through the small window, and then use the full screen to brush Douyin for a while, and then click the small window to continue the game directly and quickly. It can be seen that multi-window operation saves the time of starting and loading the game compared to the traditional method. However, this multi-window-based small window hanging up to run the King of Glory does not turn off the sound of the King of Glory game at the same time, which interferes with the sound of Douyin running in full screen, or while running WeChat in full screen for voice chat, it is hoped that the Tencent video in the small window can be muted. However, the traditional volume adjustment method can only increase or decrease the volume of two windows or applications at the same time, and the user experience needs to be improved. Summary of the Invention
[0003] In order to solve the above technical defects in the prior art, the present invention proposes a multi-window volume control method, which includes:
[0004] When a sub-window running a second application exists within a main window running a first application, a first touch signal of a first volume button and a second touch signal of a second volume button are monitored.
[0005] When the first touch signal and the second touch signal are detected within a first preset time, the first output volume of the first application is turned off, or the second output volume of the second application is turned off.
[0006] When the first touch signal is detected twice in succession within the second preset time, the first output volume is increased or decreased according to the first touch signal and the second touch signal within a third preset time.
[0007] When the second touch signal is detected twice in succession within the second preset time, the second output volume is increased or decreased according to the first touch signal and the second touch signal within a fourth preset time.
[0008] Optionally, when a sub-window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button includes:
[0009] When a sub-window running a second application program exists within a main window running a first application program, it is detected whether the first output volume exists and whether the second output volume exists.
[0010] If the first output volume and the second output volume exist at the same time, the first touch signal of the first volume button and the second touch signal of the second volume button are monitored.
[0011] Optionally, when a sub-window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button further includes:
[0012] If the first output volume and the second output volume exist at the same time, it is detected whether there is a first touch screen signal in an area of the main window excluding the sub-window, and whether there is a second touch screen signal in an area of the sub-window.
[0013] If the first touch screen signal and the second touch screen signal are not detected at the same time, the first touch signal of the first volume button and the second touch signal of the second volume button are monitored.
[0014] Optionally, when a sub-window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button further includes:
[0015] If the first touch screen signal and the second touch screen signal are not detected at the same time, it is detected whether the generation time of the previous movement signal of the sub-window exceeds a preset time length.
[0016] If the generation time of the previous movement signal exceeds the preset time length, the first touch signal of the first volume button and the second touch signal of the second volume button are monitored.
[0017] Optionally, when the first touch signal and the second touch signal are detected within a first preset time, turning off the first output volume of the first application, or turning off the second output volume of the second application, includes:
[0018] When the first touch signal and the second touch signal are monitored within the first preset time, a generation order of the first touch signal and the second touch signal is detected, wherein the first preset time is less than one second.
[0019] If the first touch signal is generated before the second touch signal is generated, the first output volume is turned off; if the first touch signal is generated after the second touch signal is generated, the second output volume is turned off.
[0020] Optionally, when the first touch signal and the second touch signal are detected within a first preset time, turning off the first output volume of the first application, or turning off the second output volume of the second application, further includes:
[0021] When the first touch signal and the second touch signal are detected within the first preset time, the magnitude relationship between the first output volume and the second output volume is detected.
[0022] If the first output volume is greater than the second output volume, the first output volume is turned off; if the first output volume is less than the second output volume, the second output volume is turned off.
[0023] Optionally, when the first touch signal is detected twice in succession within the second preset time, increasing or decreasing the first output volume according to the first touch signal and the second touch signal within a third preset time includes:
[0024] When the first touch signal is detected twice in succession within the second preset time, the magnitude relationship between the first output volume and the second output volume is detected.
[0025] If the first output volume is greater than the second output volume, the first output volume is lowered or the second output volume is increased according to the first touch signal or the second touch signal within the third preset time.
[0026] Optionally, when the second touch signal is detected twice in succession within the second preset time, increasing or decreasing the second output volume according to the first touch signal and the second touch signal within a fourth preset time includes:
[0027] When the second touch signal is detected twice in succession within the second preset time, the magnitude relationship between the first output volume and the second output volume is detected.
[0028] If the first output volume is lower than the second output volume, the first output volume is increased or the second output volume is decreased according to the first touch signal or the second touch signal within the fourth preset time.
[0029] The present invention also proposes a multi-window volume control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the multi-window volume control method described in any one of the above items are implemented.
[0030] The present invention also provides a computer-readable storage medium storing a multi-window volume control program. When the multi-window volume control program is executed by a processor, the steps of any of the multi-window volume control methods described above are implemented.
[0031] The multi-window volume control method, device, and computer-readable storage medium of the present invention implement a user-friendly multi-window volume control solution by monitoring a first touch signal of a first volume button and a second touch signal of a second volume button when a secondary window of a second application is running within a main window of a first application; when the first touch signal and the second touch signal are detected within a first preset time, turning off the first output volume of the first application, or turning off the second output volume of the second application; when the first touch signal is detected twice in succession within a second preset time, increasing or decreasing the first output volume according to the first touch signal and the second touch signal within a third preset time; and when the second touch signal is detected twice in succession within the second preset time, increasing or decreasing the second output volume according to the first touch signal and the second touch signal within a fourth preset time. This solution allows users to independently adjust multiple independent sound sources within a screen display interface. The setting logic of the adjustment operation is clear and efficient, which reduces the user's operating burden and initial memory cost, and enhances the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0033] Figure 1 This is a hardware structure diagram of a mobile terminal according to the present invention;
[0034] Figure 2 This is a diagram of a communication network system architecture provided by an embodiment of the present invention;
[0035] Figure 3 is a flowchart of a first embodiment of a multi-window volume control method according to the present invention;
[0036] Figure 4 is a flow chart of a second embodiment of the multi-window volume control method of the present invention;
[0037] Figure 5is a flowchart of a third embodiment of the multi-window volume control method of the present invention;
[0038] Figure 6 is a flowchart of a fourth embodiment of a multi-window volume control method according to the present invention;
[0039] Figure 7 is a flowchart of a fifth embodiment of a multi-window volume control method according to the present invention;
[0040] Figure 8 is a flowchart of a sixth embodiment of a multi-window volume control method according to the present invention;
[0041] Figure 9 is a flow chart of a seventh embodiment of the multi-window volume control method of the present invention;
[0042] Figure 10 4 is a flow chart of an eighth embodiment of the multi-window volume control method of the present invention. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are only used to facilitate the description of the present invention and have no specific meaning. Therefore, "module," "component," or "unit" can be used interchangeably.
[0045] The terminal can be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0046] The following description will be made by taking a mobile terminal as an example. It will be understood by those skilled in the art that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed type terminals.
[0047] See also Figure 1, which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation to the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0048] The following combination Figure 1 A detailed introduction to the various components of the mobile terminal:
[0049] The RF unit 101 can be used to send and receive information or receive signals during calls. Specifically, it receives downlink information from the base station and transmits it to the processor 110 for processing. It also transmits uplink data to the base station. Typically, the RF unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and more. Furthermore, the RF unit 101 can communicate with the network and other devices via wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.
[0050] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0051] The audio output unit 103 can convert audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Furthermore, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, or the like.
[0052] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos captured by an image capture device (e.g., a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the GPU 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the RF unit 101 or the WiFi module 102. The microphone 1042 may receive sound (audio data) in operating modes such as a phone call mode, a recording mode, and a voice recognition mode, and may process such sound into audio data. In the phone call mode, the processed audio (voice) data may be converted into a format that can be transmitted to a mobile communication base station via the RF unit 101. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0053] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0054] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0055] The user input unit 107 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using a finger, stylus, or any other suitable object or accessory on or near the touch panel 1071) and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 110. It can also receive commands sent by the processor 110 and execute them. In addition, the touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, a joystick, etc., and are not specifically limited here.
[0056] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, which is not limited here.
[0057] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0058] Memory 109 can be used to store software programs and various data. Memory 109 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 109 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0059] Processor 110 is the control center of the mobile terminal, connecting all components of the mobile terminal using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 109 and accessing data stored in memory 109, it executes various functions of the mobile terminal and processes data, thereby providing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, processor 110 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 110.
[0060] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0061] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0062] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0063] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an Evolved UMTS Terrestrial Radio Access Network (E-UTRAN) 202, an Evolved Packet Core (EPC) 203, and an operator's IP service 204, which are sequentially connected in communication.
[0064] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.
[0065] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 via a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .
[0066] EPC 203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035, and PCRF (Policy and Charging Rules Function) 2036. MME 2031 is the control node that handles signaling between UE 201 and EPC 203, providing bearer and connection management. HSS 2032 provides registers for managing functions such as the Home Location Register (not shown) and stores user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, and it selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0067] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services.
[0068] Although the above description is based on the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and is not limited here.
[0069] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0070] Example 1
[0071] Figure 3 1 is a flow chart of a first embodiment of a multi-window volume control method according to the present invention. A multi-window volume control method comprises:
[0072] S1. When a sub-window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button.
[0073] S2. When the first touch signal and the second touch signal are detected within a first preset time, turn off the first output volume of the first application, or turn off the second output volume of the second application.
[0074] S3. When the first touch signal is detected twice in succession within the second preset time, increase or decrease the first output volume according to the first touch signal and the second touch signal within a third preset time.
[0075] S4. When the second touch signal is detected twice in succession within the second preset time, the second output volume is increased or decreased according to the first touch signal and the second touch signal within a fourth preset time.
[0076] Alternatively, in this embodiment, for example, in the initial volume adjustment mode, simply pressing the volume up or down button can simultaneously increase or decrease the volume of both small window application A and full-screen application B. For another example, after exiting small window side hang mode and returning to full-screen single application mode, pressing the volume up or down button can also increase or decrease the volume.
[0077] Optionally, in this embodiment, for example, by pressing the volume up and down keys at the same time, the small window hang-up application A becomes silent, and the initial volume adjustment mode is restored after exiting the small window hang-up mode.
[0078] Alternatively, in this embodiment, for example, double-clicking the volume up button enters independent small window volume adjustment mode. Subsequently, pressing the volume up or down button increases or decreases the volume of small window application A, while the volume of full-screen application B remains unaffected. After independent small window volume adjustment mode takes effect, if there is no volume button press event for 5 seconds, the independent small window volume adjustment mode is automatically exited and the initial volume adjustment mode is returned.
[0079] Alternatively, in this embodiment, for example, double-clicking the volume down button enters independent full-screen display volume adjustment mode. Subsequently, pressing the volume up or down button increases or decreases the volume of full-screen application B, while the volume of small window application A remains unaffected. After independent full-screen volume adjustment mode takes effect, if there is no volume button press event for 5 seconds, the full-screen volume adjustment mode is automatically exited and the initial volume adjustment mode is returned.
[0080] Optionally, in this embodiment, pressing the volume up and down keys simultaneously to mute the volume can also be independently effective for full-screen application B;
[0081] Optionally, in this embodiment, double-clicking the volume button may also be three or four consecutive clicks to implement independent volume adjustment modes for third, fourth, or other independent interfaces or applications.
[0082] Optionally, in this embodiment, double-clicking the volume up button can change to enter the independent volume adjustment mode for the full-screen display application. Similarly, double-clicking the volume down button can also make corresponding changes.
[0083] Optionally, in this embodiment, the independent volume adjustment mode returns to the initial volume adjustment mode if there is no volume button event for 5 seconds, and the 5 seconds can be set to 1 second, 10 seconds, 1 hour or other time periods.
[0084] Optionally, in this embodiment, it is also applicable to an application scenario in which independent audio adjustment is performed on two or more applications running simultaneously in a single window.
[0085] The beneficial effect of this embodiment is that, by monitoring the first touch signal of the first volume button and the second touch signal of the second volume button when a secondary window of a second application is running within a main window of a first application; when the first touch signal and the second touch signal are detected within a first preset time, the first output volume of the first application is turned off, or the second output volume of the second application is turned off; when the first touch signal is detected twice in succession within a second preset time, the first output volume is increased or decreased according to the first touch signal and the second touch signal within a third preset time; when the second touch signal is detected twice in succession within the second preset time, the second output volume is increased or decreased according to the first touch signal and the second touch signal within a fourth preset time. A user-friendly multi-window volume control solution is implemented, allowing users to independently adjust multiple independent audio sources within the screen display interface. The setting logic of the adjustment operation is clear and efficient, which reduces the user's operation burden and initial memory cost, and enhances the user experience.
[0086] Example 2
[0087] Figure 4 This is a flow chart of a second embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when a secondary window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button includes:
[0088] S11 . When a sub-window running a second application program exists within a main window running a first application program, detecting whether the first output volume exists and whether the second output volume exists.
[0089] S12: If the first output volume and the second output volume exist at the same time, monitor the first touch signal of the first volume button and the second touch signal of the second volume button.
[0090] Optionally, in this embodiment, the simultaneous presence of the first output volume and the second output volume means that, within a continuous period of time, the first output volume and the second output volume are both output, or are output intermittently or continuously, that is, the outputs of the two may interfere with each other.
[0091] Optionally, in this embodiment, at this time, the first touch signal of the first volume button and the second touch signal of the second volume button are monitored. The first volume button can be a volume up button or a volume down button, and the second volume button can be a volume down button or a volume up button.
[0092] This embodiment has the beneficial effect of detecting the presence of the first output volume and the second output volume when a secondary window running a second application exists within a primary window running a first application; and, if both the first and second output volumes are present, monitoring the first touch signal of the first volume button and the second touch signal of the second volume button. This provides a user-friendly multi-window volume control solution, providing conditions for identifying sound source interference and enabling users to independently adjust multiple independent sound sources within the on-screen interface. The adjustment operation has clear and efficient setting logic, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0093] Example 3
[0094] Figure 5 This is a flow chart of a third embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when a secondary window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button further includes:
[0095] S13: If both the first output volume and the second output volume exist, detecting whether a first touch screen signal exists in an area of the main window excluding the sub-window, and whether a second touch screen signal exists in an area of the sub-window.
[0096] S14: If the first touch screen signal and the second touch screen signal are not detected at the same time, monitor the first touch signal of the first volume button and the second touch signal of the second volume button.
[0097] Optionally, in this embodiment, if the first touch screen signal and the second touch screen signal are not detected at the same time, it is determined that the current user does not have a specific area of focus, and therefore, the first touch signal of the first volume button and the second touch signal of the second volume button continue to be monitored.
[0098] Optionally, in this embodiment, if the first touch screen signal or the second touch screen signal is detected at the current moment, the area of the corresponding touch screen signal is determined to be the attention concentration area. Therefore, the output volume of the application corresponding to the area can be adjusted according to the first volume button and the second volume button subsequently without the need to perform subsequent judgment.
[0099] The beneficial effect of this embodiment is that, by detecting the presence of both the first and second output volumes, it then detects whether a first touch screen signal is present in the area of the main window excluding the secondary window, and whether a second touch screen signal is present in the area of the secondary window; if neither the first nor the second touch screen signal is detected at the same time, it then monitors the first touch signal of the first volume button and the second touch signal of the second volume button. This provides a user-friendly multi-window volume control solution that determines and adjusts volume based on the current operating area, allowing users to independently adjust multiple independent audio sources within the on-screen interface. The setting logic of the adjustment operation is clear and efficient, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0100] Example 4
[0101] Figure 6 This is a flowchart of a fourth embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when a secondary window running a second application exists within a main window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button further includes:
[0102] S15: If the first touch screen signal and the second touch screen signal are not detected at the same time, detect whether the generation time of the previous movement signal of the secondary window exceeds a preset time length.
[0103] S16: If the generation time of the previous movement signal exceeds the preset time length, monitor the first touch signal of the first volume button and the second touch signal of the second volume button.
[0104] Optionally, in this embodiment, it is detected whether the generation time of the previous movement signal of the secondary window exceeds a preset time period. For example, if the generation time of the last movement signal of the secondary window has passed a long time, it means that the user's attention may not be focused on the secondary window or the main window. Therefore, as described above, the first touch signal of the first volume button and the second touch signal of the second volume button continue to be monitored.
[0105] Optionally, in this embodiment, if the generation time of the last movement signal of the sub-window is very short, it means that the user's attention may be focused on the sub-window or the main window. If the movement signal is to adjust the sub-window to the idle area of the main window, the volume of the main window is adjusted by the first volume button and the second volume button. If the movement signal is to adjust the sub-window to the middle area of the main window, the volume of the sub-window is adjusted by the first volume button and the second volume button, and there is no need to perform subsequent judgment.
[0106] The beneficial effect of this embodiment is that, by detecting whether the generation time of the previous movement signal of the secondary window exceeds a preset time period if the first touch screen signal and the second touch screen signal are not detected at the same time, and if the generation time of the previous movement signal exceeds the preset time period, the first touch signal of the first volume button and the second touch signal of the second volume button are monitored. This provides a user-friendly multi-window volume control solution by providing a judgment and control method based on movement operation, allowing users to independently adjust multiple independent audio sources within the on-screen interface. The setting logic of the adjustment operation is clear and efficient, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0107] Example 5
[0108] Figure 7 This is a flow chart of a fifth embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when the first touch signal and the second touch signal are detected within the first preset time, the first output volume of the first application program is turned off, or the second output volume of the second application program is turned off, including:
[0109] S21 . When the first touch signal and the second touch signal are detected within the first preset time, detecting a generation order of the first touch signal and the second touch signal, wherein the first preset time is less than one second.
[0110] S22: If the first touch signal is generated before the second touch signal is generated, turn off the first output volume; if the first touch signal is generated after the second touch signal is generated, turn off the second output volume.
[0111] Optionally, in this embodiment, when the first touch signal and the second touch signal are monitored within the first preset time, the generation order of the first touch signal and the second touch signal is detected, wherein the first preset time is less than one second, that is, it can be considered that the first touch signal and the second touch signal are generated simultaneously.
[0112] Optionally, in this embodiment, in order to provide further refined control, the generation order of the first touch signal and the second touch signal is detected. If the first touch signal is generated before the second touch signal, the first output volume is turned off; if the first touch signal is generated after the second touch signal, the second output volume is turned off.
[0113] The beneficial effect of this embodiment is that, when the first touch signal and the second touch signal are detected within the first preset time, where the first preset time is less than one second, the generation order of the first touch signal and the second touch signal is detected; if the first touch signal is generated before the generation of the second touch signal, the first output volume is turned off; if the first touch signal is generated after the generation of the second touch signal, the second output volume is turned off. To achieve a user-friendly multi-window volume control solution, a method for determining and executing the order of precedence based on the traditional simultaneous double-key triggering is provided, allowing users to independently adjust multiple independent audio sources within the on-screen interface. The setting logic of the adjustment operation is clear and efficient, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0114] Example 6
[0115] Figure 8 This is a flowchart of a sixth embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when the first touch signal and the second touch signal are detected within the first preset time, the first output volume of the first application is turned off, or the second output volume of the second application is turned off, further comprising:
[0116] S23: When the first touch signal and the second touch signal are detected within the first preset time, detect a magnitude relationship between the first output volume and the second output volume.
[0117] S24: If the first output volume is greater than the second output volume, turn off the first output volume; if the first output volume is less than the second output volume, turn off the second output volume.
[0118] Optionally, in this embodiment, if the first output volume is greater than the second output volume, it is predicted that the user intends to process the sound source with a higher volume, that is, to turn off the first output volume.
[0119] Optionally, in this embodiment, similarly, if the first output volume is smaller than the second output volume, it is also predicted that the user intends to process the sound source with a louder volume, that is, the second output volume is turned off.
[0120] The beneficial effect of this embodiment is that, when the first touch signal and the second touch signal are detected within the first preset time, the relationship between the first output volume and the second output volume is detected; if the first output volume is greater than the second output volume, the first output volume is turned off; if the first output volume is less than the second output volume, the second output volume is turned off. This provides a user-friendly multi-window volume control solution that provides a volume-based predictive mute condition determination, allowing users to independently adjust multiple independent audio sources within the on-screen display interface. The adjustment operation has clear and efficient setting logic, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0121] Example 7
[0122] Figure 9 This is a flow chart of a seventh embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when the first touch signal is detected twice in succession within the second preset time, the first output volume is increased or decreased according to the first touch signal and the second touch signal within a third preset time, including:
[0123] S31 : When the first touch signal is detected twice in succession within the second preset time, detecting a magnitude relationship between the first output volume and the second output volume.
[0124] S32: If the first output volume is greater than the second output volume, lower the first output volume or increase the second output volume according to the first touch signal or the second touch signal within the third preset time.
[0125] Optionally, in this embodiment, if the first output volume is greater than the second output volume, it is predicted that the user intends to process the sound source with a higher volume, that is, the first output volume is lowered or the second output volume is increased according to the first touch signal or the second touch signal within the third preset time.
[0126] Optionally, in this embodiment, the first output volume is lowered according to the first touch signal within the third preset time, and the second output volume is increased according to the second touch signal, wherein the first touch signal is a volume-down signal and the second touch signal is a volume-up signal.
[0127] The beneficial effect of this embodiment is that, by detecting the relationship between the first output volume and the second output volume when the first touch signal is detected twice in succession within the second preset time, and if the first output volume is greater than the second output volume, the first output volume is lowered or the second output volume is raised according to the first touch signal or the second touch signal within the third preset time, a user-friendly multi-window volume control solution is provided with predictive control conditions, allowing users to independently adjust multiple independent audio sources within the on-screen interface. The setting logic of the adjustment operation is clear and efficient, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0128] Example 8
[0129] Figure 10 3 is a flowchart of an eighth embodiment of the multi-window volume control method of the present invention. Based on the above embodiment, when the second touch signal is detected twice in succession within the second preset time, the second output volume is increased or decreased according to the first touch signal and the second touch signal within a fourth preset time, including:
[0130] S41 : When the second touch signal is detected twice in succession within the second preset time, detecting a magnitude relationship between the first output volume and the second output volume.
[0131] S42: If the first output volume is less than the second output volume, increase the first output volume or decrease the second output volume according to the first touch signal or the second touch signal within the fourth preset time.
[0132] Optionally, in this embodiment, if the first output volume is smaller than the second output volume, it is predicted that the user intends to process a sound source with a higher volume, that is, the first output volume is increased or the second output volume is decreased according to the first touch signal or the second touch signal within the fourth preset time.
[0133] Optionally, in this embodiment, the first output volume is increased according to the second touch signal and the second output volume is decreased according to the first touch signal within the fourth preset time, wherein the first touch signal is a volume-down signal and the second touch signal is a volume-up signal.
[0134] The beneficial effect of this embodiment is that, by detecting the magnitude relationship between the first output volume and the second output volume when the second touch signal is detected twice in succession within the second preset time, and if the first output volume is less than the second output volume, the first output volume is increased or the second output volume is decreased according to the first touch signal or the second touch signal within the fourth preset time, a user-friendly multi-window volume control solution is provided, allowing users to independently adjust multiple independent audio sources within the on-screen interface. The setting logic of the adjustment operation is clear and efficient, reducing the user's operational burden and initial memory cost, and enhancing the user experience.
[0135] Example 9
[0136] Based on the above embodiments, the present invention also proposes a multi-window volume control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the multi-window volume control method described in any one of the above items are implemented.
[0137] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the device embodiment, which will not be repeated here.
[0138] Example 10
[0139] Based on the above embodiments, the present invention further proposes a computer-readable storage medium, which stores a multi-window volume control program. When the multi-window volume control program is executed by a processor, the steps of the multi-window volume control method as described in any one of the above are implemented.
[0140] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the medium embodiment, which will not be repeated here.
[0141] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0142] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0143] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0144] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
Claims
1. A multi-window volume control method, characterized in that: The method comprises: When a secondary window running a second application exists within a primary window running a first application, monitoring a first touch signal of a first volume button and a second touch signal of a second volume button; When the first touch signal and the second touch signal are detected within a first preset time, turning off the first output volume of the first application, or turning off the second output volume of the second application; When the first touch signal is detected twice in succession within the second preset time, the first output volume is increased or decreased according to the first touch signal and the second touch signal within a third preset time; When the second touch signal is detected twice in succession within the second preset time, the second output volume is increased or decreased according to the first touch signal and the second touch signal within a fourth preset time; The method of monitoring a first touch signal of a first volume button and a second touch signal of a second volume button when a sub-window running a second application program exists within a main window running a first application program includes: When a secondary window running a second application exists within a primary window running a first application, detecting whether the first output volume exists and whether the second output volume exists; If both the first output volume and the second output volume exist, detecting whether a first touch screen signal exists in an area of the main window excluding the sub-window, and whether a second touch screen signal exists in an area of the sub-window; If the first touch screen signal and the second touch screen signal are not detected at the same time, detecting whether the generation time of the previous movement signal of the secondary window exceeds a preset time length; If the generation time of the previous movement signal exceeds the preset time length, monitoring the first touch signal of the first volume button and the second touch signal of the second volume button; When the first touch signal and the second touch signal are detected within a first preset time, turning off the first output volume of the first application, or turning off the second output volume of the second application, includes: When the first touch signal and the second touch signal are detected within a first preset time, detecting a generation order of the first touch signal and the second touch signal, wherein the first preset time is less than one second; if the first touch signal is generated before the second touch signal is generated, turning off the first output volume; and if the first touch signal is generated after the second touch signal is generated, turning off the second output volume; further comprising: When the first touch signal and the second touch signal are detected within the first preset time, detecting the relationship between the first output volume and the second output volume; if the first output volume is greater than the second output volume, turning off the first output volume; if the first output volume is less than the second output volume, turning off the second output volume; When the first touch signal is detected twice in succession within the second preset time, the first output volume is increased or decreased according to the first touch signal and the second touch signal within a third preset time, including: When the first touch signal is detected twice in succession within the second preset time, detecting the relationship between the first output volume and the second output volume; if the first output volume is greater than the second output volume, lowering the first output volume or increasing the second output volume according to the first touch signal or the second touch signal within the third preset time; When the second touch signal is detected twice in succession within the second preset time, increasing or decreasing the second output volume according to the first touch signal and the second touch signal within a fourth preset time includes: When the second touch signal is detected twice in succession within the second preset time, the relationship between the first output volume and the second output volume is detected; if the first output volume is lower than the second output volume, the first output volume is increased or the second output volume is decreased according to the first touch signal or the second touch signal within the fourth preset time.
2. A multi-window volume control device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the multi-window volume control method according to claim 1 are implemented.
3. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a multi-window volume control program, which, when executed by a processor, implements the steps of the multi-window volume control method according to claim 1.
Citation Information
Patent Citations
Audio playing method and computing device
CN102033776A
Method for adjusting sound volume and electronic equipment
CN106201430A
A volume adjusting method and a terminal
CN109683847A