CN114666447B - Remote volume control method and device for physical keys, storage medium and intelligent terminal - Google Patents

Remote volume control method and device for physical keys, storage medium and intelligent terminal Download PDF

Info

Publication number
CN114666447B
CN114666447B CN202210250333.4A CN202210250333A CN114666447B CN 114666447 B CN114666447 B CN 114666447B CN 202210250333 A CN202210250333 A CN 202210250333A CN 114666447 B CN114666447 B CN 114666447B
Authority
CN
China
Prior art keywords
android
instruction
screen
intelligent terminal
physical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210250333.4A
Other languages
Chinese (zh)
Other versions
CN114666447A (en
Inventor
方荣福
蔡文生
张健新
吴声浩
钟伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Baoze Technology Co ltd
Original Assignee
Shenzhen Baoze 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 Baoze Technology Co ltd filed Critical Shenzhen Baoze Technology Co ltd
Priority to CN202210250333.4A priority Critical patent/CN114666447B/en
Publication of CN114666447A publication Critical patent/CN114666447A/en
Application granted granted Critical
Publication of CN114666447B publication Critical patent/CN114666447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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

Abstract

The invention discloses a physical key remote control volume method and device based on Android intelligent terminal screen projection, a storage medium and an intelligent terminal; wherein the method comprises the following steps: the intelligent terminal monitors the events of the physical keys after respectively projecting the video data and the audio data to the large screen receiving end for playing; packaging a physical key instruction generated by physical key operation to form a packaged key instruction; transmitting the encapsulated key instruction to a screen-throwing activity based on a broadcasting mode, analyzing the received encapsulated key instruction by the screen-throwing activity, and encapsulating the encapsulated key instruction into a volume control instruction; and the screen-throwing activity sends the volume control instruction to a large screen receiving end based on a screen-throwing channel to carry out volume control processing. In the embodiment of the invention, the same data transmission and remote control functions as those of the Bluetooth connection are realized, and unstable and tedious connection experience of the Bluetooth connection is not required.

Description

Remote volume control method and device for physical keys, storage medium and intelligent terminal
Technical Field
The invention relates to the technical field of screen projection remote control, in particular to a physical key remote control volume method and device based on screen projection of an Android intelligent terminal, a storage medium and the intelligent terminal.
Background
Prior to Android10, bluetooth connection technology was used. After the mobile phone is connected with the receiving end through Bluetooth, the volume of the receiving end can be automatically controlled remotely through physical keys. The bluetooth connection technology is convenient, but requires that the mobile phone and the receiving end have bluetooth modules at the same time, and has limitation on hardware. Moreover, unstable conditions exist in the search and connection of the Bluetooth equipment, and the connection and the use are complicated. After the Android10, audioPlaybackCapture API newly introduced by the Android10 allows the application to acquire audio in other applications and transmit the audio to a receiving end for playing in a network transmission mode. But the problem that the volume of the receiving end cannot be controlled remotely through a physical key in the screen throwing process of the mobile phone can occur. The specific reason is that: in the screen throwing process of the Android mobile phone, a screen throwing program can be rolled back to the background, and at the moment, the screen throwing program interface Activity is invisible. In a state that the Activity of the screen throwing program interface is invisible, the screen throwing program cannot monitor the events of the physical buttons of the mobile phone through the Activity of the screen throwing program. Meanwhile, the screen-throwing Service of the screen-throwing program running in the background is limited by the Android system to monitor the events of the physical buttons of the mobile phone. Up to this point, the volume of the receiving end cannot be controlled remotely by physical keys because of some mechanisms of the Android system.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a physical key remote control volume method and device based on Android intelligent terminal screen projection, a storage medium and an intelligent terminal, which realize the same data transmission and remote control functions as Bluetooth connection and do not need unstable and tedious connection experience of Bluetooth connection.
In order to solve the technical problems, the embodiment of the invention provides a physical key remote volume control method based on screen projection of an Android intelligent terminal, which comprises the following steps:
the Android intelligent terminal monitors events of physical keys after respectively projecting video data and audio data to a large screen receiving end for playing;
when the physical key is monitored to perform key operation, packaging a physical key instruction generated by the physical key operation to form a packaged key instruction;
the encapsulated key instruction is sent to a screen-throwing activity based on the form of Android broadcasting, and the screen-throwing activity analyzes the received encapsulated key instruction and encapsulates the encapsulated key instruction into a volume control instruction;
and the screen-throwing activity sends the volume control instruction to the large screen receiving end based on the screen-throwing channel to carry out volume control processing.
Optionally, the Android intelligent terminal respectively projects video data and audio data to a large screen receiving end for playing, which includes:
the Android intelligent terminal intercepts screen data based on a media project module to obtain video data, and projects the video data to a large screen receiving end for playing processing;
and the Android intelligent terminal obtains audio data based on AudioPlaybackCapture API, and projects the audio data to a large screen receiving end for playing.
Optionally, the Android intelligent terminal monitors an event of a physical key, including:
and the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function Access ibilityService.
Optionally, the Android intelligent terminal monitors the event of the physical key based on an Android auxiliary function accessibilitiyservice, including:
and the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyService, and monitors the event of the physical key based on the Android auxiliary function, namely the accessibilitiyService.
Optionally, the encapsulating the physical key instruction generated by the physical key operation to form an encapsulated key instruction includes:
and judging whether the volume of the physical key instruction generated by the physical key operation is increased or decreased, and packaging the physical key instruction based on a judging result to form a packaged key instruction.
Optionally, the sending the encapsulated key instruction to the screen-throwing activity based on the form of Android broadcast includes:
the Android auxiliary function accessibilitiyservice broadcasts and sends the encapsulated key instruction to a screen-throwing activity based on an Android broadcast mode;
and a broadcast receiver is defined in the screen-throwing activity and is used for receiving data information broadcast and sent by the Android auxiliary function Access ibilityService based on the form of Android broadcast.
Optionally, the screen-throwing activity analyzes the received encapsulated key instruction and encapsulates the encapsulated key instruction into a volume control instruction, including:
the screen throwing activity analyzes the received encapsulated key instruction to obtain the encapsulated key instruction as a control volume increasing instruction or a control volume decreasing instruction;
and carrying out instruction packaging processing on the control volume increasing instruction or the control volume decreasing instruction obtained through analysis to form a volume control instruction.
In addition, the embodiment of the invention also provides a physical key remote control volume device based on the Android intelligent terminal screen throwing, which comprises:
monitoring module: the Android intelligent terminal is used for monitoring events of physical keys after the Android intelligent terminal respectively projects video data and audio data to a large screen receiving end for playing;
a first instruction encapsulation module: when the physical key is monitored to perform key operation, packaging a physical key instruction generated by the physical key operation to form a packaged key instruction;
and the second instruction packaging module: the method comprises the steps that the packaging key instruction is sent to a screen-throwing activity based on an Android broadcast mode, and the screen-throwing activity is analyzed and packaged into a volume control instruction;
the instruction sending module: and the screen-throwing activity is used for sending the volume control instruction to the large screen receiving end based on the screen-throwing channel to carry out volume control processing.
In addition, the embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, the program when executed by a processor realizes the method for remotely controlling volume by using the physical key according to any one of the above.
In addition, the embodiment of the invention also provides an intelligent terminal, which comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a method of remotely controlling volume by physical keys according to any one of the above.
According to the embodiment of the invention, the AudioPlaybackCapture API and the Android auxiliary function Access ibilitityService newly introduced by the Android10 on the Android intelligent terminal are utilized to realize the same data transmission and remote control functions as the Bluetooth connection technology, and in experience, unstable and tedious connection experience of Bluetooth connection is not needed any more; the equipment cost is saved, and the receiving end does not need a Bluetooth module, so that the mobile phone can realize a remote control function in the screen throwing process.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a physical key remote control volume method based on Android intelligent terminal screen projection in an embodiment of the invention;
fig. 2 is a schematic structural diagram of a physical key remote control volume device based on Android intelligent terminal screen projection in an embodiment of the invention;
fig. 3 is a schematic structural diagram of an intelligent terminal in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a method for remotely controlling volume by physical keys based on screen projection of an Android intelligent terminal in an embodiment of the invention.
As shown in fig. 1, a method for remotely controlling volume by physical keys based on screen projection of an Android intelligent terminal includes:
s11: the Android intelligent terminal monitors events of physical keys after respectively projecting video data and audio data to a large screen receiving end for playing;
in the implementation process of the invention, the Android intelligent terminal respectively projects video data and audio data to a large screen receiving end for playing processing, and the method comprises the following steps: the Android intelligent terminal intercepts screen data based on a media project module to obtain video data, and projects the video data to a large screen receiving end for playing processing; and the Android intelligent terminal obtains audio data based on AudioPlaybackCapture API, and projects the audio data to a large screen receiving end for playing.
Further, the Android intelligent terminal monitors events of physical keys, including: and the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function Access ibilityService.
Further, the Android intelligent terminal monitors the event of the physical key based on an Android auxiliary function accessibilitiyservice, which comprises the following steps: and the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyService, and monitors the event of the physical key based on the Android auxiliary function, namely the accessibilitiyService.
Specifically, the method comprises the steps that the method comprises an Android intelligent terminal and a large screen receiving end, wherein a system running on the Android intelligent terminal is an Android10 or more version system, when the Android intelligent terminal performs screen projection on the large screen receiving end, the Android intelligent terminal intercepts screen data through a media project module to obtain video data, and the video data is projected to the large screen receiving end for playing; meanwhile, the Android intelligent terminal obtains audio data through AudioPlaybackCapture API, and projects the audio data to a large screen receiving end for playing.
After screen throwing, the Android intelligent terminal monitors the events of the physical keys, namely the Android intelligent terminal monitors the events of the physical keys through an Android auxiliary function accessibilitiyService; the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyservice, and then monitors an event of a physical key through the Android auxiliary function, namely the accessibilitiyservice.
In the application, a related part used by the Android auxiliary function accessibilitiyservice is extracted from a program code and is elaborated, and specific operations are as follows:
(1) Preparation: A. inheriting an accessibilitiyservice class and creating an auxiliary function service; B. the auxiliary function service just created is declared in android management. C. Newly creating accessibility.xml, and setting auxiliary function service attributes according to own requirements; (2) And the remote control volume function of the physical keys of the mobile phone is realized through an Android auxiliary function Access ibilityService.
S12: when the physical key is monitored to perform key operation, packaging a physical key instruction generated by the physical key operation to form a packaged key instruction;
in the implementation process of the present invention, the encapsulating the physical key instruction generated by the physical key operation to form an encapsulated key instruction includes: and judging whether the volume of the physical key instruction generated by the physical key operation is increased or decreased, and packaging the physical key instruction based on a judging result to form a packaged key instruction.
Specifically, when the physical key is monitored to operate, the physical key instruction generated by the physical key operation is judged to be increased in volume control or decreased in volume control, and then the packaging processing of the physical key instruction is performed according to the judging result to form a packaged key instruction.
S13: the encapsulated key instruction is sent to a screen-throwing activity based on the form of Android broadcasting, and the screen-throwing activity analyzes the received encapsulated key instruction and encapsulates the encapsulated key instruction into a volume control instruction;
in the implementation process of the invention, the sending the encapsulated key instruction to the screen-throwing activity based on the Android broadcast mode includes: the Android auxiliary function accessibilitiyservice broadcasts and sends the encapsulated key instruction to a screen-throwing activity based on an Android broadcast mode; and a broadcast receiver is defined in the screen-throwing activity and is used for receiving data information broadcast and sent by the Android auxiliary function Access ibilityService based on the form of Android broadcast.
Further, the screen-throwing activity analyzes the received encapsulated key instruction and encapsulates the encapsulated key instruction into a volume control instruction, including: the screen throwing activity analyzes the received encapsulated key instruction to obtain the encapsulated key instruction as a control volume increasing instruction or a control volume decreasing instruction; and carrying out instruction packaging processing on the control volume increasing instruction or the control volume decreasing instruction obtained through analysis to form a volume control instruction.
Specifically, a broadcast receiver is defined in the screen-throwing activity, and is used for receiving data information broadcast and sent by the Android auxiliary function Access business according to the form of Android broadcast; therefore, the package key instruction is broadcast and sent to the screen-throwing activity in an Android broadcast mode through the Android auxiliary function accessibilitiyservice.
After receiving the encapsulated key instruction, the screen-throwing activity analyzes the encapsulated key instruction to obtain whether the encapsulated key instruction is a control volume increasing instruction or a control volume decreasing instruction; and then, carrying out instruction packaging processing on the control volume increasing instruction or the control volume decreasing instruction obtained through analysis to form a volume control instruction.
S14: and the screen-throwing activity sends the volume control instruction to the large screen receiving end based on the screen-throwing channel to carry out volume control processing.
In the implementation process of the invention, the screen-throwing activity sends a volume control instruction to a large screen receiving end for volume control processing in a network transmission mode (screen-throwing channel); the remote control of the volume of the large screen receiving end can be realized through physical keys on the Android intelligent terminal in the process of inputting the screen-transmitted sound.
In the embodiment of the invention, the AudioPlaybackCaptureAPI and the Android auxiliary function accessibilitiyservice newly introduced by the Android10 on the Android intelligent terminal are utilized to realize the same data transmission and remote control functions as the Bluetooth connection technology, and in experience, unstable and complicated connection experience of Bluetooth connection is not needed any more; the equipment cost is saved, and the receiving end does not need a Bluetooth module, so that the mobile phone can realize a remote control function in the screen throwing process.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a physical key remote control volume device based on Android intelligent terminal screen projection in an embodiment of the invention.
As shown in fig. 2, a physical key remote control volume device based on Android intelligent terminal screen projection, the device includes:
the monitor module 21: the Android intelligent terminal is used for monitoring events of physical keys after the Android intelligent terminal respectively projects video data and audio data to a large screen receiving end for playing;
in the implementation process of the invention, the Android intelligent terminal respectively projects video data and audio data to a large screen receiving end for playing processing, and the method comprises the following steps: the Android intelligent terminal intercepts screen data based on a media project module to obtain video data, and projects the video data to a large screen receiving end for playing processing; and the Android intelligent terminal obtains audio data based on AudioPlaybackCapture API, and projects the audio data to a large screen receiving end for playing.
Further, the Android intelligent terminal monitors events of physical keys, including: and the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function Access ibilityService.
Further, the Android intelligent terminal monitors the event of the physical key based on an Android auxiliary function accessibilitiyservice, which comprises the following steps: and the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyService, and monitors the event of the physical key based on the Android auxiliary function, namely the accessibilitiyService.
Specifically, the method comprises the steps that the method comprises an Android intelligent terminal and a large screen receiving end, wherein a system running on the Android intelligent terminal is an Android10 or more version system, when the Android intelligent terminal performs screen projection on the large screen receiving end, the Android intelligent terminal intercepts screen data through a media project module to obtain video data, and the video data is projected to the large screen receiving end for playing; meanwhile, the Android intelligent terminal obtains audio data through AudioPlaybackCapture API, and projects the audio data to a large screen receiving end for playing.
After screen throwing, the Android intelligent terminal monitors the events of the physical keys, namely the Android intelligent terminal monitors the events of the physical keys through an Android auxiliary function accessibilitiyService; the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyservice, and then monitors an event of a physical key through the Android auxiliary function, namely the accessibilitiyservice.
In the application, a related part used by the Android auxiliary function accessibilitiyservice is extracted from a program code and is elaborated, and specific operations are as follows:
(1) Preparation: A. inheriting an accessibilitiyservice class and creating an auxiliary function service; B. the auxiliary function service just created is declared in android management. C. Newly creating accessibility.xml, and setting auxiliary function service attributes according to own requirements; (2) And the remote control volume function of the physical keys of the mobile phone is realized through an Android auxiliary function Access ibilityService.
The first instruction encapsulation module 22: when the physical key is monitored to perform key operation, packaging a physical key instruction generated by the physical key operation to form a packaged key instruction;
in the implementation process of the present invention, the encapsulating the physical key instruction generated by the physical key operation to form an encapsulated key instruction includes: and judging whether the volume of the physical key instruction generated by the physical key operation is increased or decreased, and packaging the physical key instruction based on a judging result to form a packaged key instruction.
Specifically, when the physical key is monitored to operate, the physical key instruction generated by the physical key operation is judged to be increased in volume control or decreased in volume control, and then the packaging processing of the physical key instruction is performed according to the judging result to form a packaged key instruction.
The second instruction encapsulation module 23: the method comprises the steps that the packaging key instruction is sent to a screen-throwing activity based on an Android broadcast mode, and the screen-throwing activity is analyzed and packaged into a volume control instruction;
in the implementation process of the invention, the sending the encapsulated key instruction to the screen-throwing activity based on the Android broadcast mode includes: the Android auxiliary function accessibilitiyservice broadcasts and sends the encapsulated key instruction to a screen-throwing activity based on an Android broadcast mode; and a broadcast receiver is defined in the screen-throwing activity and is used for receiving data information broadcast and sent by the Android auxiliary function Access ibilityService based on the form of Android broadcast.
Further, the screen-throwing activity analyzes the received encapsulated key instruction and encapsulates the encapsulated key instruction into a volume control instruction, including: the screen throwing activity analyzes the received encapsulated key instruction to obtain the encapsulated key instruction as a control volume increasing instruction or a control volume decreasing instruction; and carrying out instruction packaging processing on the control volume increasing instruction or the control volume decreasing instruction obtained through analysis to form a volume control instruction.
Specifically, a broadcast receiver is defined in the screen-throwing activity, and is used for receiving data information broadcast and sent by the Android auxiliary function Access business according to the form of Android broadcast; therefore, the package key instruction is broadcast and sent to the screen-throwing activity in an Android broadcast mode through the Android auxiliary function accessibilitiyservice.
After receiving the encapsulated key instruction, the screen-throwing activity analyzes the encapsulated key instruction to obtain whether the encapsulated key instruction is a control volume increasing instruction or a control volume decreasing instruction; and then, carrying out instruction packaging processing on the control volume increasing instruction or the control volume decreasing instruction obtained through analysis to form a volume control instruction.
Instruction sending module 24: and the screen-throwing activity is used for sending the volume control instruction to the large screen receiving end based on the screen-throwing channel to carry out volume control processing.
In the implementation process of the invention, the screen-throwing activity sends a volume control instruction to a large screen receiving end for volume control processing in a network transmission mode (screen-throwing channel); the remote control of the volume of the large screen receiving end can be realized through physical keys on the Android intelligent terminal in the process of inputting the screen-transmitted sound.
According to the embodiment of the invention, the AudioPlaybackCapture API and the Android auxiliary function Access ibilitityService newly introduced by the Android10 on the Android intelligent terminal are utilized to realize the same data transmission and remote control functions as the Bluetooth connection technology, and in experience, unstable and tedious connection experience of Bluetooth connection is not needed any more; the equipment cost is saved, and the receiving end does not need a Bluetooth module, so that the mobile phone can realize a remote control function in the screen throwing process.
Example III
The embodiment of the invention provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the program is executed by a processor, the method for remotely controlling the volume by using the physical key in any one of the above embodiments is realized. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSableProgrammableRead-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., computer, cell phone), and may be read-only memory, magnetic or optical disk, etc.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the physical key remote control volume method of any one of the embodiments.
In addition, fig. 3 is a schematic structural diagram of an intelligent terminal in an embodiment of the present invention.
The embodiment of the invention also provides an intelligent terminal, as shown in fig. 3. The intelligent terminal comprises a processor 302, a memory 303, an input unit 304, a display unit 305 and the like. It will be appreciated by those skilled in the art that the device architecture shown in fig. 3 does not constitute a limitation of all devices, and may include more or fewer components than shown, or may combine certain components. The memory 303 may be used to store an application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal memory or external memory, or include both internal memory and external memory. The internal memory may include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory disclosed herein is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of a signal and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel may collect touch operations on or near the user (e.g., the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, performs various functions and processes data by running or executing software programs and/or modules stored in the memory 302, and invoking data stored in the memory.
As an embodiment, the intelligent terminal includes: the system comprises one or more processors 302, a memory 303, one or more application programs 301, wherein the one or more application programs 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and the one or more application programs 301 are configured to perform the physical key remote volume control method for any of the above embodiments.
According to the embodiment of the invention, the AudioPlaybackCapture API and the Android auxiliary function Access ibilitityService newly introduced by the Android10 on the Android intelligent terminal are utilized to realize the same data transmission and remote control functions as the Bluetooth connection technology, and in experience, unstable and tedious connection experience of Bluetooth connection is not needed any more; the equipment cost is saved, and the receiving end does not need a Bluetooth module, so that the mobile phone can realize a remote control function in the screen throwing process.
In addition, the method, the device, the storage medium and the intelligent terminal for remotely controlling the volume based on the physical key of the Android intelligent terminal are described in detail, and specific examples are adopted to illustrate the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. The method for remotely controlling the volume by using physical keys based on screen projection of the Android intelligent terminal is characterized by comprising the following steps:
the Android intelligent terminal monitors events of physical keys after respectively projecting video data and audio data to a large screen receiving end for playing;
when the physical key is monitored to perform key operation, packaging a physical key instruction generated by the physical key operation to form a packaged key instruction;
the encapsulated key instruction is sent to a screen-throwing activity based on the form of Android broadcasting, and the screen-throwing activity analyzes the received encapsulated key instruction and encapsulates the encapsulated key instruction into a volume control instruction;
the screen-throwing activity sends the volume control instruction to the large screen receiving end based on a screen-throwing channel to carry out volume control processing;
the sending the encapsulated key instruction to the screen-throwing activity based on the Android broadcast mode comprises the following steps:
the Android auxiliary function accessibilitiyservice broadcasts and sends the encapsulated key instruction to a screen-throwing activity based on an Android broadcast mode;
a broadcast receiver is defined in the screen-throwing activity and is used for receiving data information broadcast and sent by the Android auxiliary function Access ibilityService based on the form of Android broadcast;
the Android intelligent terminal monitors events of physical keys, and the Android intelligent terminal comprises:
the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function accessibilitiyService;
the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function, and the method comprises the following steps:
the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyService, and monitors the event of the physical key based on the Android auxiliary function, namely the accessibilitiyService;
the method comprises the following steps of extracting operation steps used by an Android auxiliary function Access business from program codes: inheriting an accessibilitiyservice class and creating an auxiliary function service; the auxiliary function service just created is declared in android management. Newly creating accessibility.xml, and setting auxiliary function service attributes according to own requirements; and the remote control volume function of the physical keys of the mobile phone is realized through an Android auxiliary function Access ibilityService.
2. The method for remotely controlling volume by using physical keys according to claim 1, wherein the Android intelligent terminal projects video data and audio data to a large screen receiving end for playing, respectively, and the method comprises the following steps:
the Android intelligent terminal intercepts screen data based on a media project module to obtain video data, and projects the video data to a large screen receiving end for playing processing;
and the Android intelligent terminal obtains audio data based on AudioPlaybackCapture API, and projects the audio data to a large screen receiving end for playing.
3. The method for remotely controlling volume by using physical keys according to claim 1, wherein said encapsulating the physical key command generated by the physical key operation to form an encapsulated key command includes:
and judging whether the volume of the physical key instruction generated by the physical key operation is increased or decreased, and packaging the physical key instruction based on a judging result to form a packaged key instruction.
4. The method for remotely controlling volume by using physical keys according to claim 1, wherein the step of analyzing and packaging the received packaged key command into a volume control command includes:
the screen throwing activity analyzes the received encapsulated key instruction to obtain the encapsulated key instruction as a control volume increasing instruction or a control volume decreasing instruction;
and carrying out instruction packaging processing on the control volume increasing instruction or the control volume decreasing instruction obtained through analysis to form a volume control instruction.
5. Physical button remote control volume device based on Android intelligent terminal throws screen, its characterized in that, the device includes:
monitoring module: the Android intelligent terminal is used for monitoring events of physical keys after the Android intelligent terminal respectively projects video data and audio data to a large screen receiving end for playing;
a first instruction encapsulation module: when the physical key is monitored to perform key operation, packaging a physical key instruction generated by the physical key operation to form a packaged key instruction;
and the second instruction packaging module: the method comprises the steps that the packaging key instruction is sent to a screen-throwing activity based on an Android broadcast mode, and the screen-throwing activity is analyzed and packaged into a volume control instruction;
the instruction sending module: the screen-throwing activity is used for sending the volume control instruction to the large screen receiving end based on a screen-throwing channel to carry out volume control processing;
the sending the encapsulated key instruction to the screen-throwing activity based on the Android broadcast mode comprises the following steps:
the Android auxiliary function accessibilitiyservice broadcasts and sends the encapsulated key instruction to a screen-throwing activity based on an Android broadcast mode;
a broadcast receiver is defined in the screen-throwing activity and is used for receiving data information broadcast and sent by the Android auxiliary function Access ibilityService based on the form of Android broadcast;
the Android intelligent terminal monitors events of physical keys, and the Android intelligent terminal comprises:
the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function accessibilitiyService;
the Android intelligent terminal monitors the events of the physical keys based on an Android auxiliary function, and the method comprises the following steps:
the Android intelligent terminal starts an Android auxiliary function, namely an accessibilitiyService, and monitors the event of the physical key based on the Android auxiliary function, namely the accessibilitiyService;
the method comprises the following steps of extracting operation steps used by an Android auxiliary function Access business from program codes: inheriting an accessibilitiyservice class and creating an auxiliary function service; the auxiliary function service just created is declared in android management. Newly creating accessibility.xml, and setting auxiliary function service attributes according to own requirements; and the remote control volume function of the physical keys of the mobile phone is realized through an Android auxiliary function Access ibilityService.
6. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a physical key remote control volume method as claimed in any one of claims 1 to 4.
7. An intelligent terminal, characterized in that it includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a physical key remote control volume method according to any one of claims 1 to 4 is performed.
CN202210250333.4A 2022-03-11 2022-03-11 Remote volume control method and device for physical keys, storage medium and intelligent terminal Active CN114666447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210250333.4A CN114666447B (en) 2022-03-11 2022-03-11 Remote volume control method and device for physical keys, storage medium and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210250333.4A CN114666447B (en) 2022-03-11 2022-03-11 Remote volume control method and device for physical keys, storage medium and intelligent terminal

Publications (2)

Publication Number Publication Date
CN114666447A CN114666447A (en) 2022-06-24
CN114666447B true CN114666447B (en) 2024-03-01

Family

ID=82028919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210250333.4A Active CN114666447B (en) 2022-03-11 2022-03-11 Remote volume control method and device for physical keys, storage medium and intelligent terminal

Country Status (1)

Country Link
CN (1) CN114666447B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581725A (en) * 2013-09-27 2014-02-12 深圳市同洲电子股份有限公司 Method for controlling smart TV terminal through mobile terminal and relevant terminals
CN108616764A (en) * 2016-12-09 2018-10-02 中兴通讯股份有限公司 A kind of control method and equipment
CN109819493A (en) * 2019-03-06 2019-05-28 深圳前海达闼云端智能科技有限公司 Control method and throwing screen method and device, storage medium, electronic equipment
CN112492359A (en) * 2020-11-19 2021-03-12 四川长虹电器股份有限公司 Screen projection method for smart phone
CN112866767A (en) * 2021-01-25 2021-05-28 北京奇艺世纪科技有限公司 Screen projection control method and device, electronic equipment and storage medium
CN113225592A (en) * 2020-01-21 2021-08-06 华为技术有限公司 Screen projection method and device based on Wi-Fi P2P
CN113485663A (en) * 2021-07-08 2021-10-08 努比亚技术有限公司 Screen projection method, equipment, system and storage medium
CN113515245A (en) * 2021-04-14 2021-10-19 包荷雅 Wireless communication screen projection method and system and screen projection terminal
CN114007125A (en) * 2021-10-15 2022-02-01 杭州逗酷软件科技有限公司 Volume control method, mobile terminal, target device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170171270A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for controlling video playing
CN109862404B (en) * 2019-02-21 2021-02-02 深圳创维-Rgb电子有限公司 Interaction method of smart television, storage medium and smart television

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581725A (en) * 2013-09-27 2014-02-12 深圳市同洲电子股份有限公司 Method for controlling smart TV terminal through mobile terminal and relevant terminals
CN108616764A (en) * 2016-12-09 2018-10-02 中兴通讯股份有限公司 A kind of control method and equipment
CN109819493A (en) * 2019-03-06 2019-05-28 深圳前海达闼云端智能科技有限公司 Control method and throwing screen method and device, storage medium, electronic equipment
CN113225592A (en) * 2020-01-21 2021-08-06 华为技术有限公司 Screen projection method and device based on Wi-Fi P2P
CN112492359A (en) * 2020-11-19 2021-03-12 四川长虹电器股份有限公司 Screen projection method for smart phone
CN112866767A (en) * 2021-01-25 2021-05-28 北京奇艺世纪科技有限公司 Screen projection control method and device, electronic equipment and storage medium
CN113515245A (en) * 2021-04-14 2021-10-19 包荷雅 Wireless communication screen projection method and system and screen projection terminal
CN113485663A (en) * 2021-07-08 2021-10-08 努比亚技术有限公司 Screen projection method, equipment, system and storage medium
CN114007125A (en) * 2021-10-15 2022-02-01 杭州逗酷软件科技有限公司 Volume control method, mobile terminal, target device and storage medium

Also Published As

Publication number Publication date
CN114666447A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN111443971B (en) Operation guiding method, electronic device and medium
CN108153647B (en) Log processing method and device, terminal equipment and storage medium
EP2998899A1 (en) Method and apparatus for running application program
US9870239B2 (en) Method and device for running application program
WO2018077041A1 (en) Method and apparatus for running application
EP3343352B1 (en) Method, apparatus and device for instructing operations on terminal device
CN111330280B (en) Method and device for processing data in game, storage medium and electronic equipment
CN112148579B (en) User interface testing method and device
CN104066009A (en) Method, device, terminal, server and system for program identification
CN105354039A (en) Application program management method and device
CN109800030B (en) Application program running method and device and terminal
CN113613064B (en) Video processing method, device, storage medium and terminal
CN111557097B (en) Control method of power key in virtual remote controller and terminal
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN114666447B (en) Remote volume control method and device for physical keys, storage medium and intelligent terminal
CN108170576B (en) Log processing method and device, terminal equipment and storage medium
CN106708501A (en) Activity monitoring method and device
CN114489354A (en) Key event processing method and device, storage medium and terminal
CN106528188B (en) It is a kind of to apply accelerating method and device
CN112911359A (en) Resource display method, display equipment and remote controller
CN108536540B (en) Method and device for acquiring mouse message of desktop icon
CN111552537A (en) Theme switching method and device, computer equipment and storage medium
CN103414931A (en) Method and device for play control over media files
CN113360341B (en) Front-end application maintenance and loading method and device
CN113407368B (en) Process management method and device 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
GR01 Patent grant
GR01 Patent grant