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

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

Info

Publication number
CN117615205A
CN117615205A CN202311603185.0A CN202311603185A CN117615205A CN 117615205 A CN117615205 A CN 117615205A CN 202311603185 A CN202311603185 A CN 202311603185A CN 117615205 A CN117615205 A CN 117615205A
Authority
CN
China
Prior art keywords
volume adjustment
prohibition
volume
instruction
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311603185.0A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202311603185.0A priority Critical patent/CN117615205A/en
Publication of CN117615205A publication Critical patent/CN117615205A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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

Abstract

The application discloses a volume adjustment control method, a volume adjustment control device, a storage medium and electronic equipment, and relates to the technical field of Internet of things, wherein the volume adjustment control method comprises the following steps: receiving a volume adjustment prohibition instruction, wherein the volume adjustment prohibition instruction is used for instructing prohibition of locally adjusting the volume; setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; if the volume adjustment interface is called to adjust the volume, detecting an adjustment state through the volume adjustment interface; and in response to detecting the volume adjustment prohibition state, intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class. According to the method and the device, comprehensive volume adjustment control can be achieved, the situation that failure occurs when volume adjustment is forbidden is avoided, and user experience is improved.

Description

Volume adjustment control method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of internet of things, in particular to a volume adjustment control method, a volume adjustment control device, a storage medium and electronic equipment.
Background
In a terminal, for example, it is generally necessary to perform volume adjustment, and there is a case where volume adjustment is prohibited in the terminal. At present, in a scheme for prohibiting volume adjustment in a terminal, volume adjustment is usually prohibited according to a setting state under a setStreamVolume or adjustStreamVolume interface of an audio management class (AudioManager), so that only volume adjustment modes regulated and controlled by an application can be prohibited, other volume adjustment modes cannot be effectively prohibited, volume adjustment control is not comprehensive enough, failure is easy to occur when volume adjustment is prohibited, and user experience is poor.
Disclosure of Invention
The embodiment of the application provides a scheme, which can realize comprehensive volume adjustment control, avoid failure when volume adjustment is forbidden, and promote user experience.
The embodiment of the application provides the following technical scheme:
according to one embodiment of the present application, a volume adjustment control method includes: receiving a volume adjustment prohibition instruction, wherein the volume adjustment prohibition instruction is used for instructing prohibition of locally adjusting the volume; setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; if the volume adjustment interface is called to adjust the volume, detecting an adjustment state through the volume adjustment interface; and in response to detecting the volume adjustment prohibition state, intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class.
In some embodiments of the present application, the setting, according to the volume adjustment prohibition instruction, a volume adjustment prohibition state in a volume adjustment interface of an audio service class includes: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is full prohibition, setting a full regulation prohibition state in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the full regulation prohibition state.
In some embodiments of the present application, the intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state includes: and responding to the detection of the comprehensive regulation prohibition state, and intercepting a volume regulation instruction corresponding to any regulation mode through a volume regulation interface of the audio service class.
In some embodiments of the present application, the setting, according to the volume adjustment prohibition instruction, a volume adjustment prohibition state in a volume adjustment interface of an audio service class includes: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is a prohibition of a specified regulation mode, setting a preset regulation prohibition state corresponding to the specified regulation mode in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the preset regulation prohibition state.
In some embodiments of the present application, the intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state includes: and if the volume adjustment interface is called to perform volume adjustment of the appointed adjustment mode, responding to the detection of the preset adjustment prohibition state, and intercepting a volume adjustment instruction corresponding to the appointed adjustment mode through the volume adjustment interface of the audio service class.
In some embodiments of the present application, the volume adjustment prohibition instruction further includes a state validity period; after the volume adjustment prohibition state is set in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further includes: and removing the volume adjustment prohibition state from the volume adjustment interface of the audio service class after the state validity period is reached.
In some embodiments of the present application, after the setting of the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further includes: receiving a volume adjustment allowing instruction, wherein the volume adjustment allowing instruction is used for indicating that local adjustment is allowed for volume; and modifying the volume adjustment prohibition state to the volume adjustment permission state in the volume adjustment interface of the audio service class according to the volume adjustment permission instruction.
According to one embodiment of the present application, a volume adjustment control device, the device includes: the receiving module is used for receiving a volume adjustment prohibition instruction, and the volume adjustment prohibition instruction is used for instructing prohibition of local volume adjustment; the setting module is used for setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; the detection module is used for detecting the adjustment state through the volume adjustment interface if the volume adjustment interface is called to adjust the volume; and the control module is used for intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class in response to detecting the volume adjustment prohibition state.
In some embodiments of the present application, the setting module includes a first setting unit configured to: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is full prohibition, setting a full regulation prohibition state in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the full regulation prohibition state.
In some embodiments of the present application, the control module includes a first control unit for: and responding to the detection of the comprehensive regulation prohibition state, and intercepting a volume regulation instruction corresponding to any regulation mode through a volume regulation interface of the audio service class.
In some embodiments of the present application, the setting module includes a second setting unit for: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is a prohibition of a specified regulation mode, setting a preset regulation prohibition state corresponding to the specified regulation mode in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the preset regulation prohibition state.
In some embodiments of the present application, the control module includes a second control unit for: and if the volume adjustment interface is called to perform volume adjustment of the appointed adjustment mode, responding to the detection of the preset adjustment prohibition state, and intercepting a volume adjustment instruction corresponding to the appointed adjustment mode through the volume adjustment interface of the audio service class.
In some embodiments of the present application, the volume adjustment prohibition instruction further includes a state validity period; after setting the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the apparatus further includes a state removal module configured to: and removing the volume adjustment prohibition state from the volume adjustment interface of the audio service class after the state validity period is reached.
In some embodiments of the present application, after the setting of the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the apparatus further includes an permission setting module for: receiving a volume adjustment allowing instruction, wherein the volume adjustment allowing instruction is used for indicating that local adjustment is allowed for volume; and modifying the volume adjustment prohibition state to the volume adjustment permission state in the volume adjustment interface of the audio service class according to the volume adjustment permission instruction.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method described in the embodiments of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described in the embodiments of the present application.
In the embodiment of the application, a volume adjustment prohibition instruction is received, and the volume adjustment prohibition instruction is used for instructing prohibition of locally adjusting volume; setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; if the volume adjustment interface is called to adjust the volume, detecting an adjustment state through the volume adjustment interface; and in response to detecting the volume adjustment prohibition state, intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class.
In this way, after receiving the volume adjustment prohibition instruction, setting a volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, intercepting the volume adjustment instruction according to the volume adjustment prohibition state by the volume adjustment interface of the audio service class, according to the state instruction, not only intercepting the volume adjustment instruction of the volume adjustment mode by the application, but also intercepting the volume adjustment instruction of the volume adjustment mode by the remote controller, CEC (consumer electronics control channel) equipment and the like, thereby realizing comprehensive volume adjustment control, avoiding failure when volume adjustment is prohibited, and improving user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flow chart of a volume adjustment control method according to one embodiment of the present application.
Fig. 2 shows a block diagram of a volume adjustment control device according to one embodiment of the present application.
Fig. 3 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Fig. 1 schematically shows a flow chart of a volume adjustment control method according to one embodiment of the present application. The execution main body of the volume adjustment control method can be any device with volume adjustment function, such as a television, a computer, a mobile phone, a smart watch, a household appliance and the like. In one embodiment of the present application, the apparatus as an execution subject is specifically a Television (TV).
As shown in fig. 1, the volume adjustment control method may include steps S110 to S140.
Step S110, receiving a volume adjustment prohibition instruction, wherein the volume adjustment prohibition instruction is used for instructing prohibition of local volume adjustment; step S120, setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; step S130, if the volume adjustment interface is called to adjust the volume, detecting the adjustment state through the volume adjustment interface; and step S140, in response to detecting the volume adjustment prohibition state, intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class.
The related user can trigger a volume adjustment prohibition instruction in a mode of clicking a related control, inputting voice, pressing a key and the like in an interface and can trigger the volume adjustment prohibition instruction, wherein the volume adjustment prohibition instruction is used for instructing to prohibit local adjustment of the volume, the volume adjustment prohibition instruction can be used for instructing to comprehensively prohibit local adjustment of the volume, and the volume adjustment prohibition instruction can also be used for instructing to prohibit local adjustment of the volume according to a specified adjustment mode.
After receiving the volume adjustment prohibition instruction in the device serving as the execution main body, setting a volume adjustment prohibition state in a volume adjustment interface of an audio service class according to the volume adjustment prohibition instruction, wherein the volume adjustment interface of the audio service class is AudioService, the audio service class can be a setStreamVolume or an adjustStreamVolume interface, and the volume adjustment prohibition state can be a character string, a numerical value or other form of state information.
If the volume adjustment interface is called to adjust the volume, the volume adjustment interface is used for detecting the adjustment state, and the volume adjustment instruction received by the volume adjustment interface is intercepted by the volume adjustment interface of the audio service class in response to detecting the set volume adjustment prohibition state.
In general, the volume adjustment interface of the audio service class may receive a volume adjustment instruction of multiple adjustment modes (for example, a mode of performing volume control through an application, a remote controller, or CEC (consumer electronics control channel) device), and further, the volume adjustment interface of the audio service class may intercept a volume adjustment instruction corresponding to an arbitrary adjustment mode received by the volume adjustment interface, and further, may prohibit the arbitrary adjustment mode from adjusting the volume.
In this way, based on step S110 to step S140, after receiving the volume adjustment prohibition instruction, the volume adjustment prohibition state is set in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the volume adjustment instruction is intercepted according to the volume adjustment prohibition state by the volume adjustment interface of the audio service class, and according to the state instruction, not only the volume adjustment instruction of the volume adjustment mode by the application but also the volume adjustment instruction of the volume adjustment mode by the remote controller, the CEC (consumer electronics control channel) device, etc. can be intercepted, the overall volume adjustment control can be realized, the failure occurrence when the volume adjustment is prohibited is avoided, and the user experience is improved.
Further alternative embodiments of the steps performed when volume adjustment control is performed under the embodiment of fig. 1 are described below.
In one embodiment, the setting, according to the volume adjustment prohibition instruction, a volume adjustment prohibition state in a volume adjustment interface of an audio service class includes: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is full prohibition, setting a full regulation prohibition state in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the full regulation prohibition state.
According to the indication information (such as full prohibition or prohibition of specifying an adjustment manner) carried in the volume adjustment prohibition instruction, the prohibition type indicated by the volume adjustment prohibition instruction can be detected.
If the prohibition type is a full prohibition, it indicates that any type of adjustment mode is completely prohibited, for example, a mode of simultaneously prohibiting volume control by various means such as an application, a remote control, and a CEC (consumer electronics control channel) device.
If the prohibition type is full prohibition, a full-adjustment prohibition state is set in the volume adjustment interface of the audio service class, and the full-adjustment prohibition state can be a character string, a numerical value or other form of state information. Through setting the overall regulation prohibition state, the volume regulation instruction in any regulation mode can be directly intercepted according to the overall regulation prohibition state through the volume regulation interface of the audio service class.
Further, the intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state may include: and responding to the detection of the comprehensive regulation prohibition state, and intercepting a volume regulation instruction corresponding to any regulation mode through a volume regulation interface of the audio service class.
Through setting the overall regulation prohibition state, the volume regulation instruction in any regulation mode can be directly intercepted according to the overall regulation prohibition state through the volume regulation interface of the audio service class.
For example, in the first adjustment mode performed by the application, the upper layer application invokes the setStreamVolume or adjustStreamVolume interface of AudioService (audio service class) through the setStreamVolume or adjustStreamVolume interface of AudioManager (audio management class) to perform volume adjustment, so that a volume adjustment instruction in the adjustment mode can be intercepted according to the set overall adjustment prohibition state. In the second adjusting mode performed by the remote controller, the PhoneWindowManager can distribute volume button events such as add-subtract of the remote controller, further call an adjustSuggestedStreamVolume method of a handleVolumekey interface of AudioService, and further call an adjustStreamVolume interface to perform volume adjustment, so that volume adjustment instructions in the adjusting mode can be intercepted according to the set overall adjustment prohibition state. In the third adjustment mode performed by a CEC (consumer electronics control channel) device, the CEC device and the device as an execution subject may be connected through HDMI, and the CEC device may adjust the volume through a setSystemAudioVolume method in a setStreamVolume or an adjustStreamVolume interface of AudioService (audio service class), so that a volume adjustment instruction in the adjustment mode may be intercepted according to a set overall adjustment prohibition state.
In one embodiment, the setting, according to the volume adjustment prohibition instruction, a volume adjustment prohibition state in a volume adjustment interface of an audio service class includes: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is a prohibition of a specified regulation mode, setting a preset regulation prohibition state corresponding to the specified regulation mode in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the preset regulation prohibition state.
According to the indication information (such as full prohibition or prohibition of specifying an adjustment manner) carried in the volume adjustment prohibition instruction, the prohibition type indicated by the volume adjustment prohibition instruction can be detected.
If the prohibition type is prohibition of designating an adjustment mode, the prohibition of designating an adjustment mode is instructed, and the designated adjustment mode is one or more of volume control modes by various means such as an application, a remote control, and a CEC (consumer electronics control channel) device.
If the prohibition type is prohibition of the designated adjustment mode, a preset adjustment prohibition state corresponding to the designated adjustment mode is set in the volume adjustment interface of the audio service class, and the preset adjustment prohibition state can be a character string, a numerical value or other forms of state information. By setting the preset regulation prohibition state, the volume regulation instruction in the appointed regulation mode can be intercepted according to the preset regulation prohibition state through the volume regulation interface of the audio service class.
Further, the intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state may include: and if the volume adjustment interface is called to perform volume adjustment of the appointed adjustment mode, responding to the detection of the preset adjustment prohibition state, and intercepting a volume adjustment instruction corresponding to the appointed adjustment mode through the volume adjustment interface of the audio service class.
By setting the preset regulation prohibition state, the volume regulation instruction in the appointed regulation mode can be intercepted according to the preset regulation prohibition state through the volume regulation interface of the audio service class.
For example, the designated adjustment manner includes a first adjustment manner performed by an application, and the upper layer application calls the setStreamVolume or adjustStreamVolume interface of AudioService (audio service class) to perform volume adjustment through setStreamVolume or adjustStreamVolume interface of AudioManager (audio management class), so that a volume adjustment instruction in the adjustment manner can be intercepted according to a preset adjustment prohibition state set.
For another example, the designated adjustment mode includes a second adjustment mode performed by a remote controller, where a PhoneWindowManager (system manager) may distribute volume button events such as add-subtract of the remote controller, further call an adjustSuggestedStreamVolume method of a handleVolumeKey interface of AudioService (audio service class), and further call an adjustStreamVolume interface to perform volume adjustment, so that a volume adjustment instruction in the adjustment mode can be intercepted according to a preset adjustment prohibition state set.
For another example, in the case where the specified adjustment mode includes a third adjustment mode by a CEC (consumer electronics control channel) device, the CEC device and the device as an execution subject can be connected through HDMI, and the CEC device can adjust the volume by a setStreamVolume or setsystemoaudiovolume method within an AudioService (audio service class) interface, so that a volume adjustment instruction in the adjustment mode can be intercepted according to a set predetermined adjustment prohibition state.
In one embodiment, the volume adjustment prohibiting instruction further includes a state validity period; after the volume adjustment prohibition state is set in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further includes: and removing the volume adjustment prohibition state from the volume adjustment interface of the audio service class after the state validity period is reached.
The volume adjustment disable instruction also includes a status validity period, which may be a specific duration, for example, 2 hours or 5 hours, etc. After the validity period of the state is reached, the volume adjustment prohibition state is automatically removed from the volume adjustment interface of the audio service class, so that the volume adjustment can be ensured to be successfully performed when the volume adjustment is needed later.
In one embodiment, after the setting of the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further includes: receiving a volume adjustment allowing instruction, wherein the volume adjustment allowing instruction is used for indicating that local adjustment is allowed for volume; and modifying the volume adjustment prohibition state to the volume adjustment permission state in the volume adjustment interface of the audio service class according to the volume adjustment permission instruction.
The related user can trigger a volume adjustment allowing instruction by clicking a related control, inputting voice, pressing a key and the like in any mode capable of triggering an instruction, wherein the volume adjustment allowing instruction is used for indicating that the local volume adjustment is allowed.
After receiving the volume adjustment permission instruction in the device serving as the execution main body, modifying the volume adjustment prohibition state into the volume adjustment permission state in a volume adjustment interface of the audio service class according to the volume adjustment permission instruction, wherein the volume adjustment interface of the audio service class is an AudioService, the volume adjustment interface of the audio service class can be a setStreamVolume or an adjustStreamVolume interface, and the volume adjustment permission state can be a character string, a numerical value or other form of state information.
Furthermore, when the volume adjustment is required, the prohibition state can be timely adjusted to the permission state by triggering the volume adjustment permission command, and the volume adjustment is ensured to be successfully performed when the volume adjustment is required.
In order to facilitate better implementation of the volume adjustment control method provided by the embodiment of the application, the embodiment of the application also provides a volume adjustment control device based on the volume adjustment control method. Where the meaning of the terms is the same as in the above-described volume adjustment control method, specific implementation details may be referred to in the description of the method embodiment. Fig. 2 shows a block diagram of a volume adjustment control device according to one embodiment of the present application.
As shown in fig. 2, the volume adjustment control device 200 may include: the receiving module 210 may be configured to receive a volume adjustment prohibition instruction, where the volume adjustment prohibition instruction is configured to instruct prohibition of local adjustment of volume; the setting module 220 may be configured to set a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; the detection module 230 may be configured to detect an adjustment state through the volume adjustment interface if the volume adjustment interface is called for volume adjustment; the control module 240 may be configured to intercept a volume adjustment instruction through a volume adjustment interface of the audio service class in response to detecting the volume adjustment disabled state.
In some embodiments of the present application, the setting module includes a first setting unit configured to: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is full prohibition, setting a full regulation prohibition state in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the full regulation prohibition state.
In some embodiments of the present application, the control module includes a first control unit for: and responding to the detection of the comprehensive regulation prohibition state, and intercepting a volume regulation instruction corresponding to any regulation mode through a volume regulation interface of the audio service class.
In some embodiments of the present application, the setting module includes a second setting unit for: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is a prohibition of a specified regulation mode, setting a preset regulation prohibition state corresponding to the specified regulation mode in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the preset regulation prohibition state.
In some embodiments of the present application, the control module includes a second control unit for: and if the volume adjustment interface is called to perform volume adjustment of the appointed adjustment mode, responding to the detection of the preset adjustment prohibition state, and intercepting a volume adjustment instruction corresponding to the appointed adjustment mode through the volume adjustment interface of the audio service class.
In some embodiments of the present application, the volume adjustment prohibition instruction further includes a state validity period; after setting the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the apparatus further includes a state removal module configured to: and removing the volume adjustment prohibition state from the volume adjustment interface of the audio service class after the state validity period is reached.
In some embodiments of the present application, after the setting of the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the apparatus further includes an permission setting module for: receiving a volume adjustment allowing instruction, wherein the volume adjustment allowing instruction is used for indicating that local adjustment is allowed for volume; and modifying the volume adjustment prohibition state to the volume adjustment permission state in the volume adjustment interface of the audio service class according to the volume adjustment permission instruction.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the application further provides an electronic device, which may be a terminal or a server, as shown in fig. 3, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, power supply 303, and input unit 304, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 3 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
Wherein:
the processor 301 is the control center of the electronic device, connects the various parts of the overall computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 302, and invoking data stored in the memory 302, thereby performing overall monitoring of the electronic device. Optionally, processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user pages, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by executing the software programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The electronic device further comprises a power supply 303 for powering the various components, preferably the power supply 303 is logically connected to the processor 301 by a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 304, which input unit 304 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 302 according to the following instructions, and the processor 301 executes the computer programs stored in the memory 302, so as to implement the functions in the foregoing embodiments of the present application, where the processor 301 may perform the following steps:
receiving a volume adjustment prohibition instruction, wherein the volume adjustment prohibition instruction is used for instructing prohibition of locally adjusting the volume; setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction; if the volume adjustment interface is called to adjust the volume, detecting an adjustment state through the volume adjustment interface; and in response to detecting the volume adjustment prohibition state, intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class.
In some embodiments of the present application, the setting, according to the volume adjustment prohibition instruction, a volume adjustment prohibition state in a volume adjustment interface of an audio service class includes: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is full prohibition, setting a full regulation prohibition state in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the full regulation prohibition state.
In some embodiments of the present application, the intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state includes: and responding to the detection of the comprehensive regulation prohibition state, and intercepting a volume regulation instruction corresponding to any regulation mode through a volume regulation interface of the audio service class.
In some embodiments of the present application, the setting, according to the volume adjustment prohibition instruction, a volume adjustment prohibition state in a volume adjustment interface of an audio service class includes: detecting a prohibition type indicated by the volume adjustment prohibition instruction; and if the prohibition type is a prohibition of a specified regulation mode, setting a preset regulation prohibition state corresponding to the specified regulation mode in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the preset regulation prohibition state.
In some embodiments of the present application, the intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state includes: and if the volume adjustment interface is called to perform volume adjustment of the appointed adjustment mode, responding to the detection of the preset adjustment prohibition state, and intercepting a volume adjustment instruction corresponding to the appointed adjustment mode through the volume adjustment interface of the audio service class.
In some embodiments of the present application, the volume adjustment prohibition instruction further includes a state validity period; after the volume adjustment prohibition state is set in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further comprises: and removing the volume adjustment prohibition state from the volume adjustment interface of the audio service class after the state validity period is reached.
In some embodiments of the present application, after the setting of the volume adjustment prohibition state in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further includes: receiving a volume adjustment allowing instruction, wherein the volume adjustment allowing instruction is used for indicating that local adjustment is allowed for volume; and modifying the volume adjustment prohibition state to the volume adjustment permission state in the volume adjustment interface of the audio service class according to the volume adjustment permission instruction.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present embodiments also provide a storage medium having stored therein a computer program that can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the storage medium may perform any of the steps in the method provided in the embodiment of the present application, the beneficial effects that can be achieved by the method provided in the embodiment of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. A volume adjustment control method, characterized by comprising:
receiving a volume adjustment prohibition instruction, wherein the volume adjustment prohibition instruction is used for instructing prohibition of locally adjusting the volume;
setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction;
if the volume adjustment interface is called to adjust the volume, detecting an adjustment state through the volume adjustment interface;
and in response to detecting the volume adjustment prohibition state, intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class.
2. The method of claim 1, wherein setting a volume adjustment disable state in a volume adjustment interface of an audio service class according to the volume adjustment disable instruction comprises:
detecting a prohibition type indicated by the volume adjustment prohibition instruction;
and if the prohibition type is full prohibition, setting a full regulation prohibition state in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the full regulation prohibition state.
3. The method of claim 2, wherein intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state comprises:
and responding to the detection of the comprehensive regulation prohibition state, and intercepting a volume regulation instruction corresponding to any regulation mode through a volume regulation interface of the audio service class.
4. The method of claim 1, wherein setting a volume adjustment disable state in a volume adjustment interface of an audio service class according to the volume adjustment disable instruction comprises:
detecting a prohibition type indicated by the volume adjustment prohibition instruction;
and if the prohibition type is a prohibition of a specified regulation mode, setting a preset regulation prohibition state corresponding to the specified regulation mode in a volume regulation interface of the audio service class, wherein the volume regulation prohibition state comprises the preset regulation prohibition state.
5. The method of claim 4, wherein intercepting, by the volume adjustment interface of the audio service class, a volume adjustment instruction in response to detecting the volume adjustment disabled state comprises:
and if the volume adjustment interface is called to perform volume adjustment of the appointed adjustment mode, responding to the detection of the preset adjustment prohibition state, and intercepting a volume adjustment instruction corresponding to the appointed adjustment mode through the volume adjustment interface of the audio service class.
6. The method of claim 1, wherein the volume adjustment disable instruction further comprises a status validity period; after the volume adjustment prohibition state is set in the volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction, the method further includes:
and removing the volume adjustment prohibition state from the volume adjustment interface of the audio service class after the state validity period is reached.
7. The method according to any one of claims 1 to 6, wherein after the setting of the volume adjustment disabled state in the volume adjustment interface of the audio service class according to the volume adjustment disabled instruction, the method further comprises:
receiving a volume adjustment allowing instruction, wherein the volume adjustment allowing instruction is used for indicating that local adjustment is allowed for volume;
and modifying the volume adjustment prohibition state to the volume adjustment permission state in the volume adjustment interface of the audio service class according to the volume adjustment permission instruction.
8. A volume adjustment control device, characterized by comprising:
the receiving module is used for receiving a volume adjustment prohibition instruction, and the volume adjustment prohibition instruction is used for instructing prohibition of local volume adjustment;
the setting module is used for setting a volume adjustment prohibition state in a volume adjustment interface of the audio service class according to the volume adjustment prohibition instruction;
the detection module is used for detecting the adjustment state through the volume adjustment interface if the volume adjustment interface is called to adjust the volume;
and the control module is used for intercepting a volume adjustment instruction through a volume adjustment interface of the audio service class in response to detecting the volume adjustment prohibition state.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in a memory to perform the method of any one of claims 1 to 7.
CN202311603185.0A 2023-11-27 2023-11-27 Volume adjustment control method and device, storage medium and electronic equipment Pending CN117615205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311603185.0A CN117615205A (en) 2023-11-27 2023-11-27 Volume adjustment control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311603185.0A CN117615205A (en) 2023-11-27 2023-11-27 Volume adjustment control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117615205A true CN117615205A (en) 2024-02-27

Family

ID=89955742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311603185.0A Pending CN117615205A (en) 2023-11-27 2023-11-27 Volume adjustment control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117615205A (en)

Similar Documents

Publication Publication Date Title
EP3825852B1 (en) Occupation control method and apparatus for camera application
CN109522147A (en) A kind of method, apparatus, storage medium and the terminal of record booting exception information
US8090966B2 (en) Power management method for a multi-microprocessor system
CN103154853A (en) A mobile device and method for exposing and managing a set of performance scaling algorithms
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN102402454A (en) Method for regulating memory operation frequency and electronic device
CN115016885B (en) Virtual machine garbage recycling operation method and electronic equipment
CN111767012A (en) Screen projection method and device
CN109271253A (en) A kind of resource allocation method, apparatus and system
CN115220912A (en) Method and device for configuring system resources, electronic equipment and storage medium
CN114647550A (en) Process control method, device, storage medium and electronic equipment
CN103544039A (en) Plug-in loading processing method and device
CN117615205A (en) Volume adjustment control method and device, storage medium and electronic equipment
CN114880042A (en) Application starting method and device, electronic equipment and computer readable storage medium
CN109542521B (en) Method for optimizing television starting speed
CN112199149A (en) Interface rendering method and device and electronic equipment
CN117255332B (en) Bluetooth connection control method and device, storage medium and electronic equipment
CN117119546A (en) Terminal control method and device, storage medium and electronic equipment
CN116915717B (en) Throughput distribution method and device, storage medium and electronic equipment
CN117407055A (en) Graph efficiency switching method and device, storage medium and electronic equipment
CN114968551B (en) Process management method and device, electronic equipment and storage medium
CN117412088A (en) Terminal control method and device, storage medium and electronic equipment
CN117411967A (en) Specific absorption rate adjusting method and device, storage medium and electronic equipment
CN117559596A (en) Charging management and control method and device, storage medium and electronic equipment
CN116634059B (en) Terminal communication regulation and control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination