CN118034948A - Key event monitoring method and system and electronic equipment - Google Patents

Key event monitoring method and system and electronic equipment Download PDF

Info

Publication number
CN118034948A
CN118034948A CN202211368957.2A CN202211368957A CN118034948A CN 118034948 A CN118034948 A CN 118034948A CN 202211368957 A CN202211368957 A CN 202211368957A CN 118034948 A CN118034948 A CN 118034948A
Authority
CN
China
Prior art keywords
application
key event
key
electronic device
event information
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
CN202211368957.2A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211368957.2A priority Critical patent/CN118034948A/en
Priority to PCT/CN2023/127564 priority patent/WO2024093871A1/en
Publication of CN118034948A publication Critical patent/CN118034948A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a key event monitoring method, a key event monitoring system and a technical scheme of electronic equipment, wherein first electronic equipment comprises a first application, the first electronic equipment responds to the operation of a user on the first application and generates first registration information, the first registration information comprises an equipment ID, and the first registration information is used for registering and monitoring key events of the first application to the first electronic equipment; when the equipment corresponding to the equipment ID is first electronic equipment, monitoring a key event of a first application according to first registration information and a management strategy of a local monitoring object stack; when the equipment corresponding to the equipment ID is the second electronic equipment, the key event of the first application is monitored according to the first registration information and the management strategy of the remote monitoring object stack, the second electronic equipment is used for playing the multimedia stream of the first application, and the key event monitoring of the local application and the projection application is separately and independently managed, so that the requirement of independent response to the key event in a distributed multi-equipment scene can be met, and the user experience is improved.

Description

Key event monitoring method and system and electronic equipment
[ Field of technology ]
The present invention relates to the field of man-machine interaction, and in particular, to a key event monitoring method, system and electronic device.
[ Background Art ]
In the distributed operating system, a plurality of electronic devices can form a super terminal, and different applications of the electronic device can select different remote electronic devices to play multimedia (such as music media and video media) streams simultaneously. However, the current management strategy for the media key event is limited to single-device event management, and cannot meet the independent response management requirement for the media key event in a distributed multi-device scene, so that bad use experience is brought to users.
[ Invention ]
In view of this, the embodiments of the present invention provide a key event monitoring method, a system, and an electronic device, which separately and independently manage key event monitoring of a local application and a projection application, so as to meet the requirement of independent response to a media key event in a distributed multi-device scenario, and improve user experience.
In a first aspect, an embodiment of the present invention provides a key event monitoring method, which is applied to a first electronic device, where the first electronic device includes a first application, and the method includes:
generating first registration information in response to an operation of a user on the first application, wherein the first registration information comprises a device ID (identity), and is used for registering a key event for monitoring the first application with the first electronic device;
When the equipment corresponding to the equipment ID is the first electronic equipment, monitoring a key event of the first application according to the first registration information and a management strategy of a local monitoring object stack;
And when the equipment corresponding to the equipment ID is second electronic equipment, monitoring a key event of the first application according to the first registration information and a management strategy of a remote monitoring object stack, wherein the second electronic equipment is used for playing the multimedia stream of the first application. According to the embodiment of the invention, the key event monitoring of the local application is separated from the key event monitoring of the distributed application, so that the requirement of independent response to the media key event in a distributed multi-device scene can be met, and the user experience is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, the monitoring, according to the first registration information and a management policy of a remote monitoring object stack, a key event of the first application includes:
Pushing a key receiver of the first application into a remote monitoring object stack corresponding to the second electronic equipment according to the first registration information;
Receiving key event information sent by the second electronic equipment;
And when the key receiver of the first application is positioned at the stack top of the remote monitoring object stack of the second electronic equipment, the key event information is notified to the first application through the key receiver of the first application, so that the first application responds to the key event of the key event information. The embodiment of the invention realizes the simultaneous management of the distribution of a plurality of distributed application key events projected onto a plurality of devices by a distributed key monitoring object stack technology, and the devices are not mutually affected; the key event applications respond independently on which device the key event occurred and the corresponding audio application projected on that device responds to the key event.
With reference to the first aspect, in some implementation manners of the first aspect, after the receiving key event information sent by the second electronic device, the method further includes:
And when the key event receiver of the first application is not positioned at the stack top of the remote monitoring object stack of the second electronic equipment, the key event information is not notified to the first application.
With reference to the first aspect, in certain implementation manners of the first aspect, the key event includes: next, last, pause, stop, volume up or volume down.
With reference to the first aspect, in some implementations of the first aspect, the receiving key event information sent by the second electronic device includes:
receiving at least one key event message sent by at least one electronic device through a key event feedback module;
And distinguishing the at least one key event information according to the equipment ID of the at least one electronic equipment to obtain the key event information of the second electronic equipment. The key event feedback device provided by the embodiment of the invention can monitor the key event information of a plurality of remote devices at the same time and distinguish the key events through the device ID.
With reference to the first aspect, in certain implementation manners of the first aspect, before the notifying, by the key receiver of the first application, the key event information to the first application, the method further includes:
Notifying the key event information to a first multimode input system through the key event feedback module;
Classifying the key event information through a first multimode input system, packaging the classified key event information and the device ID of the corresponding second electronic device, and then sending the packaged key event information to a remote key management device;
And determining a remote monitoring object stack of the second electronic equipment corresponding to the key event information through the remote key management device. The key event feedback module of the embodiment of the invention packages the key event information of the remote equipment and the corresponding equipment ID thereof through the first multimode input system and then uploads the packaged key event information to the remote key management device so as to enable the remote key management device to process the key event information.
With reference to the first aspect, in certain implementation manners of the first aspect, before the notifying, by the key receiver of the first application, the key event information to the first application, the method further includes:
Notifying, by the key event feedback module, the key event information to a virtual audio device driver corresponding to a device ID of the second electronic device;
reporting the key event information to the remote key management device through the virtual audio device driver;
And determining a remote monitoring object stack of the second electronic equipment corresponding to the key event information through the remote key management device. The key event feedback module in the embodiment of the invention is driven by the virtual audio equipment registered by the remote equipment in the local equipment, and uploads the key event information of the remote equipment to the remote key management device so that the remote key management device processes the key event information and the decoupling between the local audio frame and the distributed audio equipment is realized.
In a second aspect, an embodiment of the present invention provides a key event monitoring method, which is applied to a second electronic device, where the second electronic device is configured to play a multimedia stream of a first application, and the first application is installed in the first electronic device; the method comprises the following steps:
Generating key event information in response to the operation of a user on a media key;
And sending the key event information to the first electronic equipment so that the first application of the first electronic equipment responds to the key event of the key event information. According to the embodiment of the invention, the key event occurring on the remote equipment is captured through the distributed key monitoring device of the remote equipment, and the key event is returned to the local equipment, so that a feedback mechanism of the distributed media key event is realized, the multi-equipment audio media key event is synchronously fed back, and the state is notified to the corresponding registration application.
In a third aspect, an embodiment of the present invention provides a key event monitoring system, where the system includes the first electronic device in the above method and the second electronic device in the above method.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory is configured to store a computer program, where the computer program includes program instructions that, when executed by the processor, cause the electronic device to perform the steps of the method as described above.
In a fifth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform a method as described above.
In a sixth aspect, embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer or any of the at least one processor, cause the computer to perform the functions/steps as in the method described above.
In the technical scheme of the key event monitoring method, the key event monitoring system and the electronic equipment provided by the embodiment of the invention, the first electronic equipment comprises a first application, the first electronic equipment responds to the operation of a user on the first application to generate first registration information, the first registration information comprises an equipment ID, and the first registration information is used for registering and monitoring the key event of the first application to the first electronic equipment; when the equipment corresponding to the equipment ID is first electronic equipment, monitoring a key event of a first application according to first registration information and a management strategy of a local monitoring object stack; when the equipment corresponding to the equipment ID is the second electronic equipment, the key event of the first application is monitored according to the first registration information and the management strategy of the remote monitoring object stack, the second electronic equipment is used for playing the audio of the first application, and the key event monitoring of the local application and the projection application is separately and independently managed, so that the requirement of independent response to the key event in a distributed multi-equipment scene can be met, and the user experience is improved.
[ Description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present 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 schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 2 is a block diagram of the software architecture of an electronic device 100 according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a media key event handling scheme in the Android operating system;
FIG. 4 is a schematic diagram illustrating a projection application of a local device failing to accurately respond to a remote device key event in a conventional media key notification mechanism;
fig. 5 is a block diagram of a key event monitoring system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a remote key management device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a key event feedback device reporting key event information to a remote key management device through a first multimode input system;
FIG. 8 is a schematic diagram of a key event feedback device reporting key event information to a remote key management device through a virtual audio device registered by a second electronic device in a first electronic device;
fig. 9 is a flowchart of a key event monitoring method according to an embodiment of the present invention;
fig. 10 is a flowchart of another key event monitoring method according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a first electronic device in FIG. 10 monitoring a key event of a first application according to first registration information and a management policy of a remote monitor stack;
fig. 12 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a second electronic device according to an embodiment of the present invention.
[ Detailed description ] of the invention
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. 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.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one way of describing an association of associated objects, meaning that there may be three relationships, e.g., a and/or b, which may represent: the first and second cases exist separately, and the first and second cases exist separately. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1 shows a schematic configuration of an electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SERIAL DATA LINE, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (CAMERA SERIAL INTERFACE, CSI), display serial interfaces (DISPLAY SERIAL INTERFACE, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
Physical keys are an important component of electronic devices, and particularly for many electronic devices without touch screens, key operation is very convenient. Most intelligent mobile electronic devices such as mobile phones and tablets comprise a power key, a volume up key, a volume down key and the like, and some electronic devices also comprise an mute key. Products such as sound box, bluetooth headset, except volume control button, still include first, next, broadcast, pause etc. button. And the equipment such as the car machine is provided with an air conditioner adjusting key, a seat adjusting key and the like. Thus, the visible physical entity key is important to the man-machine interaction experience of the electronic product.
Among them, a key for controlling a Media function such as an audio/video is called a Media Button (Media Button). The media key mainly controls play suspension of multimedia (e.g., music media, video media) streams on the electronic device, etc. Taking a music playing scene as an example, when a user presses a play key of the electronic device, the electronic device starts playing music; when a user presses a next key, the electronic equipment switches the music to be played next; when the user presses the device pause button, the electronic device pauses the music playing, and then when the user presses the play button, the electronic device continues playing from the last tentative position. The media key controls the media playing state of the terminal electronic product and is an important entrance of man-machine interaction.
In a software system, when a user presses a physical key, a key event notification system will be triggered. The key event notification system responds differently according to different key events, thereby realizing different service functions. Currently, in some operating systems, input events such as a media key event and a keyboard key event are uniformly received by an input system according to an event type, the input system is responsible for receiving, standardizing, processing, distributing and other capabilities of key events around an electronic device, and the key events are notified to a corresponding service module.
Taking the Android system as an example for processing the media key event, after receiving the media key event, the multimode input system notifies the audio framework of the media key event through broadcasting, then makes a decision and distributes the media key event through the audio framework, notifies the foreground active or related applications to respond to the key event, and achieves functions of pause, play, head-to-head switching and the like.
The current Android, harmonyOS and other operating systems are mainly used for processing the media key event, and the kernel key is used for driving and capturing the media key event; reporting the media key event to a multimode input system through a kernel driver, and classifying, processing and distributing the event through the multimode input system; and notifying the processed media key event to an audio framework, and responding by the audio framework according to notification of a notification strategy (such as notifying a foreground active application) of the media key event and the like to related applications to form a complete key event processing flow. FIG. 3 is a schematic diagram of a media key event processing scheme in the Android operating system at present, as shown in FIG. 3, media applications such as music applications in the Android system register media key event monitoring with an audio framework (AudioServer) through a register media button event receiver (RegisterMediaButtonEventReceiver); audioServer passes the registered information to an audio management center (AudioManager); audioManager maintains a key notification management stack for managing all objects registered for key interception with AudioManager, which remain at the top of the key notification management stack after a new object registers for key interception.
When the user presses the media key, the kernel recognizes the key event, and encapsulates the key event into a unified event format and sends the unified event format to the multimode input system. The multimode input system informs an event belonging to a MEDIA BUTTON (MEDIA_BUTTON) to an audio framework through broadcasting according to the BUTTON type; after receiving the media key event, the media button broadcast receiver (MediaButtonBroadcastReceiver) of the audio framework finds the receiving object at the stack top in AuidoManager, notifies the corresponding application of the media key event, and makes different responses according to the event category after the application receives the media key event. The main media key events are: next, last, pause, stop, volume up, volume down, etc. For example, when an application at the top of the stack receives the next event, the application switches the music to the next one for playing.
In the distributed operating system, a plurality of electronic devices can form a super terminal, and different applications of the electronic device can select different remote electronic devices to play audio simultaneously. At present, the management strategy for the audio key event is limited to single-device event management, and key events are distinguished only by input event types, so that the situation that the key events cannot be notified or the key event notification is wrong can occur, and bad actual use experience is brought to users.
Fig. 4 is a schematic diagram showing that in the current media key notification mechanism, a projection application of a local device cannot accurately respond to a remote device key event, as shown in fig. 4, the projection application has projected a media stream from the local device to the remote device to play, but still receives the media key event control on the local device, and meanwhile, the projection application is located at the stack top, so that the local application of the local device cannot respond to the media key event on the local device.
For example, a user combines five sound boxes into a 4.1 stereo sound box group, and music application on a mobile phone is projected onto the sound box group to play, so that the effect of surround sound is formed; at this time, the music application on the mobile phone only responds to the media key event of the main sound box, but cannot respond to the media key event of other sound boxes.
For example, when a user projects two different projection applications onto two different speaker devices for simultaneous playing, because the multimode input system can only identify according to the event type, no matter on which speaker the user presses the pause button, only the pause event can be received on the mobile phone, and the projection to the speaker device and the corresponding media application cannot be identified, and experience differences occur.
In summary, the current management strategy for the audio key event is limited to single-device event management, and cannot meet the independent response management requirement for the audio key event in a distributed multi-device scene, so that bad use experience is brought to users.
Based on the above technical problems, an embodiment of the present invention provides a key event monitoring system, and fig. 5 is a schematic diagram of the key event monitoring system provided by the embodiment of the present invention.
The key event listening system includes a first electronic device 20 and a second electronic device 30, and the first electronic device 20 and the second electronic device 30 are wirelessly connected. As shown in fig. 1, the first electronic device 20 comprises a first application 21, a first audio framework 22, first distributed hardware 23 and a first multimodal input system 24. The first audio frame 22 comprises application recognition means 221, local key management means 222 and remote key management means 223. The first distributed hardware 23 comprises a key event feedback means 231. The second electronic device 30 includes a second audio framework 32, second distributed hardware 33, and a second multi-mode input system 34. The second distributed hardware 33 comprises a distributed key listening device 331. The data transmission is performed between the key event feedback device 231 of the first electronic device 20 and the distributed key monitoring device 331 of the second electronic device 30 through a wireless communication module. The first electronic device 20 comprises a local device in a distributed multi-device scenario and the second electronic device 30 comprises a remote device in the distributed multi-device scenario. The hardware structure and the software structure of the first electronic device 20 and the second electronic device 30 provided in the embodiments of the present invention may be referred to in fig. 1 and fig. 2 for the description related to the electronic device 100.
Wherein the first application 21 comprises an application of a multimedia stream. In the embodiment of the present invention, when the first electronic device 20 plays the multimedia stream of the first application 21 locally, the first application 21 is referred to as a local application; the first electronic device 20 plays the multimedia stream of the first application 21 when the other electronic devices (such as the second electronic device 30) play the multimedia stream, the first application 21 is called a distributed application, which may also be called a projection application. The multimedia stream includes an audio stream or a video stream.
The first application 21 is configured to generate first registration information including a device ID in response to an operation of a user, the first registration information being configured to register a key event listening to the first application 21 with the first electronic device 20, and transmit the first registration information to the first audio frame 22.
Exemplary key events include: next, last, pause, stop, volume up or volume down.
For example, the first electronic device 20 is a smart phone, the first application 21 is a music application, and when the user operates the mobile phone to make the music application run in the foreground, the music application generates first registration information in response to the user's operation and sends the first registration information to the first audio frame 22 to register a key event of monitoring the music application with the mobile phone.
The first audio framework 22 is configured to receive first registration information sent by the first application 21, determine whether the first application 21 is a distributed application according to an equipment ID in the first registration information, and if it is determined that an equipment corresponding to the equipment ID is the first electronic equipment 20, monitor a key event of the first application 21 according to the first registration information and a management policy of a local monitoring object stack, where the first application 21 is not the distributed application; if it is determined that the device corresponding to the device ID is the second electronic device 30, the first application 21 is a distributed application, and the key event of the first application 21 is monitored according to the first registration information and the management policy of the remote monitoring object stack, where the second electronic device 30 is used for playing the multimedia stream of the first application 21.
The first registration information also includes a key receiver. When an application registers a key event listener with the system, a key receiver is created and registered with the first audio frame 22 via the first registration information. The first audio framework 22 distinguishes according to the device ID issued by the application, and identifies whether the application is played locally or on other devices, thereby completing the task of media key listening separation. Specifically, if the application is played locally, the system monitors and registers to the local audio service, and the management of the local key event is consistent with the prior art scheme; if the application is a distributed application, i.e. its playback is done by the remote device, the interception enters the remote interception object stack. The system distinguishes whether the application is a local application or not through the device ID issued by the application, and if the device ID is the local device ID, the system is the local application; if the device ID is a remote device ID, then it is a distributed application.
As shown in fig. 5, specifically, the application identifying device 221 is configured to receive the first registration information sent by the first application 21, determine whether the first application 21 is a distributed application according to the device ID in the first registration information, and if it is determined that the device corresponding to the device ID is the first electronic device 20, send the first registration information to the local key management device 222 without the first application 21 being the distributed application;
The local key management device 222 is configured to monitor a key event of the first application 21 according to the first registration information and a management policy of the local monitor object stack. The management policy of the local monitor object stack in the local key management device 222 is the same as the current single device event management policy, and only the key events are distinguished depending on the input event type.
As shown in fig. 5, the first electronic device 20 further includes a first multi-mode input system 24. The first multimode input system 24 is configured to generate key event information in response to a user operation of a media key of the first electronic device 20 and transmit the key event information to the local key management device 222. The local key management device 222 is configured to notify the first application 21 of key event information according to a management policy of the local listening object stack, so that the first application 21 responds to the key event information by performing a key event.
The application identifying device 221 is further configured to send the first registration information to the remote key management device 223 if it is determined that the device corresponding to the device ID is the second electronic device 30 and the first application 21 is a distributed application. The remote key management device 223 is configured to monitor a key event of the first application 21 according to the first registration information and a management policy of the remote monitor object stack. The remote key management device 223 includes at least one remote monitor stack, each remote monitor stack corresponding to one remote device; the at least one remote listening object stack comprises a remote listening object stack corresponding to the second electronic device 30. The remote key management device 223 is specifically configured to push the key receiver of the first application 21 to the remote listening object stack corresponding to the second electronic device 30 according to the first registration information. In the remote key management device 223, each application corresponds to a key receiver, and the first electronic device 20 can only respond to the key event of the application corresponding to the key receiver located at the stack top of the remote monitor object stack. Therefore, when the key receiver of the first application 21 is located at the stack top of the remote monitoring object stack of the second electronic device 30, the first electronic device 20 can monitor the key event of the first application 21; when the key receiver of the first application 21 is not located at the top of the remote listening object stack of the second electronic device 30, the first electronic device 20 cannot listen for key events of the first application 21.
With respect to the principle of globally maintaining a monitor stack in the management of key events in a local system, in the embodiment of the present invention, first, the application identification device 221 performs monitor separation, a remote monitor stack is created for each remote device in the remote key management device 223, and for an application projected onto a remote device, the key receiver corresponding to the application is pressed into the same remote monitor stack.
For example, as shown in fig. 6, when application 1 creates an audio play stream track1 and plays it to the remote Device 1. The first registration information of the application 1 enters the remote key management Device 223 after the interception object is separated, and the remote key management Device 223 presses the key receiver 1 of the application 1 into the remote interception object stack 1, wherein the remote interception object stack 1 is used for key notification management of the remote Device1 locally. If the key receiver 1 is located at the stack top of the remote monitoring object stack 1, the application 1 can respond to the key event on the remote Device1, otherwise, cannot respond to the key event on the remote Device 1.
For example, as shown in fig. 6, when the application 3, the application 4, and the application 5 create audio play streams track3, track4, and track5, respectively, and the three applications simultaneously point to the remote Device3 for play. The first registration information of the three applications is separated by the monitor object and then enters the remote key management device 223, the remote key management device 223 simultaneously monitors the key receivers 1,2 and 3 corresponding to the three applications in the remote monitor object stack 3, and the remote monitor object stack 3 manages the key events of the three applications. An application with a key receiver at the top of the remote listening object stack 3 may respond to a key event that occurs on the remote Device 3.
In the embodiment of the present invention, the first audio frame of the first electronic device 20 includes an application recognition device 221 and a remote key management device 223, where the application recognition device 221 is used to separate the listening key monitoring and manage the listening key separately; the remote key management device 223 is configured to obtain a media key event of a controlled remote device.
The second multi-mode input system 34 of the second electronic device 30 is configured to generate key event information in response to a user operation of a media key of the second electronic device 30 and transmit the key event information to the second audio frame 32. The distributed key listening device 331 is configured to capture key event information of the second audio frame 32, and send the key event information to the key event feedback device 231 of the first electronic device 20, so that the first application 21 responds to the key event information of the second electronic device 30 by performing a key event. The distributed key listening device 331 is specifically configured to capture key event information of the media key in the second audio frame 32.
When an application of the local device is projected onto the remote device, the user triggers a media key event through a media key on the remote device, and the distributed key listening device 331 transmits captured key event information from the remote device to the local device.
The key event feedback device 231 of the first electronic device 20 is configured to receive at least one key event information sent by at least one electronic device, and distinguish the at least one key event information according to a device ID of the at least one electronic device, so as to obtain key event information of the second electronic device.
The key event feedback means 231 may monitor key event information of a plurality of remote devices at the same time and distinguish the key events by device IDs.
The key event feedback device 231 is further configured to report key event information of the second electronic device 30 to the remote key management device 223 of the first audio frame 22. The key event feedback device 231 is specifically configured to report key event information of the second electronic device 30 to the remote key management device 223 through the first multimode input system 24 or the virtual audio device 25 registered by the second electronic device 30 in the first electronic device 20.
Fig. 7 is a schematic diagram of the key event feedback device reporting key event information to the remote key management device through the first multimode input system, and as shown in fig. 7, the key event feedback device 231 is specifically configured to report key event information of the second electronic device 30 to the first multimode input system 24. The first multimode input system 24 is configured to classify the key event information, and package the classified key event information and the device ID of the corresponding second electronic device and send the packaged key event information to the distributed key management device 223. The remote key management device 223 is configured to determine a remote monitoring object stack of the second electronic device 30 corresponding to the key event information according to the key event information. Specifically, the remote key management device 223 is configured to match the key event information to the remote listening object stack of the second electronic device 20 corresponding to the device ID and the key receiver of the first application 21 according to the device ID.
When the first electronic device 20 is connected to a plurality of second electronic devices at the same time, the key event feedback device 231 binds the key event with the corresponding device ID, and sends the data carrying the event type and the device ID after binding to the first multimode input system 24.
The first multimode input system 24 classifies the received key event information, packages the key event information of the media key type event and the device ID of the corresponding remote device, and notifies the remote key management device 223 of the first audio frame 22. The remote key management device 223 matches the corresponding remote monitoring object stack and key receiver with the device ID according to the key event information fed back by different devices.
The current management strategy for audio media key event is limited to single device event management, and the system maintains a monitoring object stack; when the electronic equipment generates a key event, whether the application is a projection application or a local application cannot be distinguished; and when multiple electronic devices make up a combined stereo, it is not possible to respond independently to key events on each electronic device. The scheme of globally using the unified key monitoring stack management can only support the audio key event response management of independent equipment, and cannot meet the requirement of the independent response management of the audio key event in a distributed multi-equipment scene. In the embodiment of the invention, the key event monitoring of the local application is separated from the key event monitoring of the distributed application by the application identification device 221, so that the mutual influence between the local application and the projection application is avoided, and the independent response is realized; the distributed key monitoring object stack technology of the remote key management device 223 realizes the simultaneous management of the distribution of a plurality of distributed application key events projected onto a plurality of devices, and the devices are not mutually affected.
Fig. 8 is a schematic diagram of the key event feedback device reporting key event information to the remote key management device through the virtual audio device registered by the second electronic device in the first electronic device, and as shown in fig. 8, the key event feedback device 231 is specifically configured to notify the second electronic device 30 of the key event information to the virtual audio device 25 registered by the second electronic device 30 in the first electronic device 20. The virtual audio device 25 is configured to report key event information of the second electronic device 30 to the remote key management apparatus 223. The remote key management device 223 is configured to determine a remote monitoring object stack of the second electronic device 30 corresponding to the key event information according to the key event information. Specifically, the remote key management device 223 is configured to determine, according to key event information fed back by the virtual audio devices 25 of different remote devices, a remote listening object stack of the second electronic device 30 and a key receiver of the first application 21 corresponding to the key event information. In contrast to the scheme shown in fig. 7, decoupling between the first audio frame 22 and the distributed audio devices is achieved by feeding back key event information through the virtual audio device 25.
As shown in fig. 5 and fig. 7-fig. 8, the remote key management device 223 is further configured to notify, when the key receiver of the first application 21 is located at the top of the stack of the remote listening object stack of the second electronic device 30, key event information to the first application 21 through the key receiver of the first application 21, so that the first application 21 responds to the key event information by using the key event information; when the key event receiver of the first application 21 is not located at the top of the stack of the remote listening object stack of the second electronic device 30, the key event information is not notified to the first application.
The first application 21 is further configured to receive key event information, and make a response corresponding to the key event according to the key event information, so as to implement actions such as play, pause, and top-bottom switching.
The key event monitoring system provided by the embodiment of the invention is applied to a distributed scene used by cross-equipment audio capability. For example, the mobile phone projects music to equipment such as a sound box, a tablet, a computer and the like, or a plurality of sound boxes form a stereo play array and the like, so that a distributed media key event independent response management scheme is provided. For example, in a distributed pitch scene, device a projects two music applications simultaneously to device B and device C, which may respond to key events on device B and device C, respectively.
The key event monitoring system provided by the embodiment of the invention consists of a first electronic device 20 and a second electronic device 30, wherein a remote key management device 223 is arranged in the first electronic device 20, and a distributed key monitoring device 331 is arranged in the second electronic device 30; the remote key management device 223 of the first electronic device 20 is configured to manage key event notifications of the application; the distributed key monitor 331 of the second electronic device 30 is configured to obtain a key event on the second electronic device 30, and synchronize the key event to the remote key management 223 of the first electronic device 20; the remote key management device 223 manages key event notifications of the projection application through a distributed key management stack technique. Therefore, the key event monitoring system provided by the embodiment of the invention can realize independent response of the media key event when the distributed application is played on different devices, and the media key event is not interfered with each other, so that the user experience of the distributed audio application is improved; by adding the application identification device 221, the remote key management device 223 and the distributed key monitoring device 331, the effective management of the multi-device media key event response in the distributed scene is realized. The key event interception of the local application is separated from the key event interception of the distributed application by the application recognition means 221. The distributed key monitoring object stack technology of the remote key management device 223 realizes the simultaneous management of the distribution of a plurality of distributed application key events projected onto a plurality of devices, and the devices are not mutually affected; the key event applications respond independently on which device the key event occurred and the corresponding audio application projected on that device responds to the key event. The remote device distributed key monitoring device 331 captures the key event occurring on the remote device and returns the key event to the local device, so as to realize the feedback mechanism of the distributed media key event, synchronously feed back the multi-device audio media key event and notify the state to the corresponding registration application.
Based on the key event monitoring system, the embodiment of the invention provides a key event monitoring method. Fig. 9 is a flowchart of a key event monitoring method according to an embodiment of the present invention. As shown in fig. 9, the method includes:
Step 402, the first application generates first registration information in response to an operation of the user.
As shown in fig. 5 and fig. 7-8, the first application is installed with the first electronic device, and the first application includes an application of a multimedia stream. In the embodiment of the invention, when the first electronic device plays the multimedia stream of the first application locally, the first application is called a local application; the first electronic device plays the multimedia stream of the first application when the other electronic device (such as the second electronic device) plays the multimedia stream, and the first application is called a distributed application and may also be called a projection application. The first application generates first registration information in response to an operation of the user.
For example, the first electronic device is a smart phone, the first application is a music application, and when a user operates the mobile phone to enable the music application to run in the foreground, the music application responds to the operation of the user to generate first registration information.
Step 404, the first application sends the first registration information to the application identification device.
In this step, as shown in fig. 5, 7-8, the first audio frame includes application recognition means; the first application sends the first registration information to the application identification means of the first audio frame.
In step 406, the application identifying device determines whether the first application is a distributed application according to the device ID in the first registration information.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, the application identifying apparatus 221 is configured to receive the first registration information sent by the first application, and determine whether the first application is a distributed application according to the device ID in the first registration information. If the device ID is the first electronic device ID, the device ID is a local application; if the device ID is a second electronic device ID, then the device ID is a distributed application.
And if the application identification device determines that the equipment corresponding to the equipment ID is the first electronic equipment, the first application is not the distributed application, and the first registration information is sent to the local key management device. The local key management device monitors key events of the first application according to the first registration information and the management policy of the local monitoring object stack. The management strategy of the local monitoring object stack in the local key management device is the same as the current single-device event management strategy, and key events are distinguished only by the input event type. The first electronic device further includes a first multimode input system. The first multimode input system responds to the operation of a user on a media key of the first electronic device to generate key event information, and sends the key event information to the local key management device. The local key management device informs the key event information to the first application according to the management strategy of the local monitoring object stack so as to enable the first application to respond to the key event information.
In step 408, if the application identification device determines that the device corresponding to the device ID is the first electronic device, the first application is a distributed application, and the first registration information is sent to the remote key management device.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, if the application recognition device determines that the device corresponding to the device ID is the second electronic device, the first application is a distributed application, and the first registration information is sent to the remote key management device.
In step 410, the remote key management device presses the key receiver of the first application into the remote monitoring object stack corresponding to the second electronic device according to the first registration information.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, the remote key management device monitors a key event of the first application according to the first registration information and the management policy of the remote monitor object stack. The remote key management device comprises at least one remote monitoring object stack, and each remote monitoring object stack corresponds to one remote device; the at least one remote listening object stack comprises a remote listening object stack corresponding to the second electronic device 30. And the remote key management device presses a key receiver of the first application into a remote monitoring object stack corresponding to the second electronic equipment according to the first registration information. In the remote key management device, each application corresponds to one key receiver, and the first electronic device can only respond to the key event of the application corresponding to the key receiver positioned at the stack top of the remote monitoring object stack. Therefore, when the key receiver of the first application is positioned at the stack top of the remote monitoring object stack of the second electronic device, the first electronic device can monitor the key event of the first application; when the key receiver of the first application is not located at the stack top of the remote monitoring object stack of the second electronic device, the first electronic device cannot monitor the key event of the first application.
In step 412, the second multimode input system generates key event information in response to a user operation of a media key of the second electronic device.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, the second multimode input system of the second electronic device generates key event information in response to the user's operation of the media key of the second electronic device.
Step 414, the second multimode input system sends the key event information to the second audio frame.
In this step, as shown in fig. 5 and fig. 7 to 8, the second multimode input system of the second electronic device transmits the key event information to the second audio frame.
Step 416, the second audio framework sends the key event information to the distributed key listening device.
In this step, as shown in fig. 5 and fig. 7 to 8, the distributed key listening device captures key event information of the second audio frame.
Step 418, the distributed key monitoring device sends the key event information to the key event feedback device.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, the distributed key monitor device sends key event information to the key event feedback device of the first electronic device. When the application of the local device is projected onto the remote device, the user triggers a media key event through a media key on the remote device, and the distributed key monitoring device sends the captured key event information from the remote device to the local device.
Step 420, the key event feedback device reports the key event information of the second electronic device to the remote key management device.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, the key event feedback device of the first electronic device receives at least one key event information sent by at least one electronic device, and distinguishes the at least one key event information according to the device ID of the at least one electronic device, so as to obtain key event information of the second electronic device.
The key event feedback device can monitor key event information of a plurality of remote devices at the same time and distinguish the key events through the device ID.
And the key event feedback device reports the key event information of the second electronic equipment to the remote key management device of the first audio frame. The key event feedback device is specifically configured to report key event information of the second electronic device to the remote key management device through the first multimode input system or the virtual audio device registered by the second electronic device in the first electronic device.
As an alternative, as shown in fig. 7, step 402 specifically includes: the key event feedback device informs the key event information to the first multimode input system; the first multimode input system classifies the key event information, packages the classified key event information and the device ID of the corresponding second electronic device, and sends the classified key event information and the device ID of the corresponding second electronic device to the distributed key management device.
As another alternative, as shown in fig. 8, step 402 specifically includes: the key event feedback device informs the key event information to a virtual audio device driver corresponding to the device ID of the second electronic device; the virtual audio device driver reports the key event information to the remote key management device.
Step 422, the remote key management device determines, according to the key event information, a remote monitoring object stack of the second electronic device corresponding to the key event information.
In this step, as shown in fig. 7, the remote key management apparatus matches key event information to the remote listening object stack of the second electronic device corresponding to the device ID and the key receiver of the first application according to the device ID.
In this step, as shown in fig. 8, the remote key management device determines, according to key event information fed back by virtual audio devices of different remote devices, a remote monitoring object stack of the second electronic device and a key receiver of the first application, where the remote monitoring object stack corresponds to the key event information.
In step 424, when the key receiver of the first application is located at the top of the remote monitoring object stack of the second electronic device, the remote key management device notifies the key event information to the first application through the key receiver of the first application.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, when the key receiver of the first application is located at the stack top of the remote monitoring object stack of the second electronic device, the remote key management device notifies the first application of the key event information through the key receiver of the first application, so that the first application responds to the key event information by using the key event.
When the key event receiver of the first application is not positioned at the stack top of the remote monitoring object stack of the second electronic device, the remote key management device does not inform the key event information to the first application.
Step 426, the first application makes a response corresponding to the key event according to the key event information.
In this step, as shown in fig. 5 and fig. 7 to fig. 8, the first application receives the key event information, and makes a response corresponding to the key event according to the key event information, so as to implement actions such as play, pause, and top-bottom switching.
Based on the key event monitoring system, the embodiment of the invention provides a key event monitoring method. Fig. 10 is a flowchart of another key event monitoring method according to an embodiment of the present invention. As shown in fig. 10, the method includes:
Step 502, the first electronic device responds to the operation of the user on the first application, and generates first registration information, wherein the first registration information comprises a device ID, and the first registration information is used for registering a key event for monitoring the first application with the first electronic device.
In an embodiment of the invention, the first electronic device comprises a local device in a distributed multi-device scenario. The first application comprises an application of a multimedia stream. The multimedia stream includes an audio stream or a video stream.
The first registration information also includes a key receiver. When an application registers key event interception with the system, a key receiver is created and registered with the first audio framework through first registration information.
Exemplary key events include: next, last, pause, stop, volume up or volume down.
Step 504, the first electronic device determines whether the device corresponding to the device ID is the first electronic device, if yes, step 506 is executed; if not, go to step 508.
In the embodiment of the invention, when the first electronic device plays the multimedia stream of the first application locally, the device ID is the device ID of the first electronic device, and the first application is called as a local application; when the first electronic device plays the multimedia stream of the first application in other electronic devices (such as the second electronic device), the device ID is the device ID of the second electronic device, and the first application is called a distributed application and may also be called a projection application. The second electronic device includes a remote device in a distributed multi-device scenario.
Step 506, the first electronic device monitors the key event of the first application according to the first registration information and the management policy of the local monitor object stack.
When the equipment corresponding to the equipment ID is the first electronic equipment, the first electronic equipment monitors the key event of the first application according to the first registration information and the management strategy of the local monitoring object stack. If the application is playing locally, the system will monitor for registration to the local audio service, and the management of local key events is consistent with the prior art solution.
And step 508, the first electronic device monitors the key event of the first application according to the first registration information and the management policy of the remote monitoring object stack, and the second electronic device is used for playing the multimedia stream of the first application.
When the equipment corresponding to the equipment ID is the second electronic equipment, the first electronic equipment monitors the key event of the first application according to the first registration information and the management strategy of the remote monitoring object stack. If the application is a distributed application, i.e. its playback is done by the remote device, the interception enters the remote interception object stack.
In the embodiment of the present invention, as shown in fig. 11, step 508 specifically includes:
in step 508a, the first electronic device presses the key receiver of the first application into the remote monitoring object stack corresponding to the second electronic device according to the first registration information.
Step 508b, the second electronic device plays the multimedia stream of the first application.
Step 508c, the second electronic device generates key event information in response to the user's operation on the media key.
And step 508d, the second electronic device sends the key event information to the first electronic device.
The first electronic device receives key event information sent by the second electronic device, and the key event information comprises: the first electronic equipment receives at least one key event message sent by at least one electronic equipment through a key event feedback module; and distinguishing the at least one key event information according to the equipment ID of the at least one electronic equipment to obtain the key event information of the second electronic equipment.
Step 508e, the first electronic device determines a remote monitoring object stack of the second electronic device corresponding to the key event information.
Step 508f, the first electronic device judges whether the key receiver of the first application is positioned at the stack top of the remote monitoring object stack of the second electronic device, if yes, step 508g is executed; if not, go to step 508h.
In step 508g, the first electronic device notifies the first application of the key event information through the key receiver of the first application, so that the first application responds to the key event of the key event information.
When the key receiver of the first application is positioned at the stack top of the remote monitoring object stack of the second electronic device, the first electronic device informs the key event information to the first application through the key receiver of the first application so as to enable the first application to respond to the key event information.
Step 508h, the first electronic device does not notify the first application of the key event information.
When the key event receiver of the first application is not positioned at the stack top of the remote monitoring object stack of the second electronic device, the first electronic device does not inform the key event information to the first application.
In the technical scheme of the key event monitoring method provided by the embodiment of the invention, the first electronic equipment comprises a first application, the first electronic equipment responds to the operation of a user on the first application and generates first registration information, the first registration information comprises equipment ID, and the first registration information is used for registering and monitoring the key event of the first application to the first electronic equipment; when the equipment corresponding to the equipment ID is first electronic equipment, monitoring a key event of a first application according to first registration information and a management strategy of a local monitoring object stack; when the equipment corresponding to the equipment ID is the second electronic equipment, the key event of the first application is monitored according to the first registration information and the management strategy of the remote monitoring object stack, the second electronic equipment is used for playing the audio of the first application, and the key event monitoring of the local application and the projection application is separately and independently managed, so that the requirement of independent response to the key event in a distributed multi-equipment scene can be met, and the user experience is improved.
Fig. 12 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention, and it should be understood that the first electronic device 600 can execute each step of the first electronic device in the above-mentioned key event monitoring method, and in order to avoid repetition, details are not described herein. The first electronic device 600 includes: a first processing unit 601 and a first transceiving unit 602.
The first processing unit 601 is configured to generate first registration information in response to an operation of the first application by a user, where the first registration information includes a device ID, and the first registration information is used to register, with the first electronic device, a key event that listens for the first application; when the equipment corresponding to the equipment ID is the first electronic equipment, monitoring a key event of the first application according to the first registration information and a management strategy of a local monitoring object stack; and when the equipment corresponding to the equipment ID is second electronic equipment, monitoring a key event of the first application according to the first registration information and a management strategy of a remote monitoring object stack, wherein the second electronic equipment is used for playing the multimedia stream of the first application.
Optionally, the first processing unit 601 is specifically configured to push, according to the first registration information, a key receiver of the first application to a remote monitoring object stack corresponding to the second electronic device;
the first transceiver 602 is configured to receive key event information sent by the second electronic device;
The first processing unit 601 is specifically configured to notify, when the key receiver of the first application is located at the stack top of the remote monitoring object stack of the second electronic device, the key event information to the first application through the key receiver of the first application, so that the first application responds to the key event information by using the key event.
Optionally, the first processing unit 601 is specifically configured to not notify the first application of the key event information when the key event receiver of the first application is not located at the top of the remote monitor object stack of the second electronic device.
Optionally, the key event includes: next, last, pause, stop, volume up or volume down.
Optionally, the first transceiver 602 is specifically configured to receive, through the key event feedback module, at least one key event information sent by at least one electronic device;
The first processing unit 601 is specifically configured to distinguish the at least one key event information according to the device ID of the at least one electronic device, so as to obtain the key event information of the second electronic device.
Optionally, the first processing unit 601 is specifically configured to notify, through the key event feedback module, the key event information to the first multimode input system; classifying the key event information through a first multimode input system, packaging the classified key event information and the device ID of the corresponding second electronic device, and then sending the packaged key event information to a remote key management device; and determining a remote monitoring object stack of the second electronic equipment corresponding to the key event information through the remote key management device.
Optionally, the first processing unit 601 is specifically configured to notify, through the key event feedback module, the key event information to a virtual audio device driver corresponding to a device ID of the second electronic device;
reporting the key event information to the remote key management device through the virtual audio device driver;
And determining a remote monitoring object stack of the second electronic equipment corresponding to the key event information through the remote key management device.
Fig. 13 is a schematic structural diagram of a second electronic device according to an embodiment of the present invention, and it should be understood that the second electronic device 700 is capable of executing each step of the second electronic device in the above-mentioned key event monitoring method, and in order to avoid repetition, details are not described herein. The second electronic device 700 includes: a second processing unit 701 and a second transceiving unit 702.
The second processing unit 701 is configured to generate key event information in response to a user operation on a media key.
The second transceiver unit 702 is configured to send the key event information to the first electronic device, so that the first application of the first electronic device responds to the key event information by performing a key event.
It should be understood that the first electronic device 600 and the second electronic device 700 herein are embodied in the form of functional units. The term "unit" herein may be implemented in software and/or hardware, without specific limitation. For example, a "unit" may be a software program, a hardware circuit or a combination of both that implements the functions described above. The hardware circuitry may include Application Specific Integrated Circuits (ASICs), electronic circuits, processors (e.g., shared, proprietary, or group processors, etc.) and memory for executing one or more software or firmware programs, merged logic circuits, and/or other suitable components that support the described functions.
Thus, the elements of the examples described in the embodiments of the present invention can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the application provides electronic equipment which can be terminal equipment or circuit equipment built in the terminal equipment. The electronic device may be adapted to perform the functions/steps of the method embodiments described above.
Embodiments of the present application provide a computer readable storage medium having instructions stored therein which, when executed on a terminal device, cause the terminal device to perform the functions/steps as in the method embodiments described above.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer or any of the at least one processor, cause the computer to perform the functions/steps as in the method embodiments described above.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided by the present application, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing an electronic device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which should be covered by the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A key event listening method, characterized by being applied to a first electronic device, the first electronic device including a first application, the method comprising:
generating first registration information in response to an operation of a user on the first application, wherein the first registration information comprises a device ID (identity), and is used for registering a key event for monitoring the first application with the first electronic device;
When the equipment corresponding to the equipment ID is the first electronic equipment, monitoring a key event of the first application according to the first registration information and a management strategy of a local monitoring object stack;
And when the equipment corresponding to the equipment ID is second electronic equipment, monitoring a key event of the first application according to the first registration information and a management strategy of a remote monitoring object stack, wherein the second electronic equipment is used for playing the multimedia stream of the first application.
2. The method of claim 1, wherein the listening for key events of the first application according to the first registration information and a management policy of a remote listening object stack comprises:
Pushing a key receiver of the first application into a remote monitoring object stack corresponding to the second electronic equipment according to the first registration information;
Receiving key event information sent by the second electronic equipment;
and when the key receiver of the first application is positioned at the stack top of the remote monitoring object stack of the second electronic equipment, the key event information is notified to the first application through the key receiver of the first application, so that the first application responds to the key event of the key event information.
3. The method of claim 2, wherein after receiving the key event information sent by the second electronic device, the method further comprises:
And when the key event receiver of the first application is not positioned at the stack top of the remote monitoring object stack of the second electronic equipment, the key event information is not notified to the first application.
4. A method according to any one of claims 1-3, wherein the key event comprises: next, last, pause, stop, volume up or volume down.
5. The method of claim 1, wherein the receiving key event information sent by the second electronic device comprises:
receiving at least one key event message sent by at least one electronic device through a key event feedback module;
And distinguishing the at least one key event information according to the equipment ID of the at least one electronic equipment to obtain the key event information of the second electronic equipment.
6. The method of claim 5, wherein the notifying the first application of the key event information by the key receiver of the first application is preceded by the method further comprising:
Notifying the key event information to a first multimode input system through the key event feedback module;
Classifying the key event information through a first multimode input system, packaging the classified key event information and the device ID of the corresponding second electronic device, and then sending the packaged key event information to a remote key management device;
And determining a remote monitoring object stack of the second electronic equipment corresponding to the key event information through the remote key management device.
7. The method of claim 5, wherein the notifying the first application of the key event information by the key receiver of the first application is preceded by the method further comprising:
Notifying, by the key event feedback module, the key event information to a virtual audio device driver corresponding to a device ID of the second electronic device;
Reporting the key event information to a remote key management device through the virtual audio equipment driver;
And determining a remote monitoring object stack of the second electronic equipment corresponding to the key event information through the remote key management device.
8. The key event monitoring method is characterized by being applied to second electronic equipment, wherein the second electronic equipment is used for playing a multimedia stream of a first application, and the first application is installed on the first electronic equipment; the method comprises the following steps:
Generating key event information in response to the operation of a user on a media key;
And sending the key event information to the first electronic equipment so that the first application of the first electronic equipment responds to the key event of the key event information.
9. A key event listening system, characterized in that the system comprises a first electronic device as claimed in any one of claims 1-7 and a second electronic device as claimed in claim 8.
10. An electronic device comprising a processor and a memory, wherein the memory is configured to store a computer program comprising program instructions that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-8.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method according to any of claims 1-8.
CN202211368957.2A 2022-11-03 2022-11-03 Key event monitoring method and system and electronic equipment Pending CN118034948A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211368957.2A CN118034948A (en) 2022-11-03 2022-11-03 Key event monitoring method and system and electronic equipment
PCT/CN2023/127564 WO2024093871A1 (en) 2022-11-03 2023-10-30 Keypress event monitoring method and system, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211368957.2A CN118034948A (en) 2022-11-03 2022-11-03 Key event monitoring method and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN118034948A true CN118034948A (en) 2024-05-14

Family

ID=90929720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211368957.2A Pending CN118034948A (en) 2022-11-03 2022-11-03 Key event monitoring method and system and electronic equipment

Country Status (2)

Country Link
CN (1) CN118034948A (en)
WO (1) WO2024093871A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10033818B2 (en) * 2014-05-30 2018-07-24 Apple Inc. Using listen ranges to deliver content to electronic devices from local caching servers
CN111061549A (en) * 2019-12-03 2020-04-24 西安闻泰电子科技有限公司 Multitask management method based on android, intelligent terminal and storage medium
CN111736785B (en) * 2020-05-29 2023-12-22 阿波罗智联(北京)科技有限公司 Method, device, equipment and computer storage medium for controlling screen throwing playing
CN115033295A (en) * 2022-04-28 2022-09-09 华为技术有限公司 Peripheral control method, electronic equipment and system

Also Published As

Publication number Publication date
WO2024093871A1 (en) 2024-05-10

Similar Documents

Publication Publication Date Title
US20220247857A1 (en) Full-screen display method for mobile terminal and device
CN113885759B (en) Notification message processing method, device, system and computer readable storage medium
CN111095723B (en) Wireless charging method and electronic equipment
US11683850B2 (en) Bluetooth reconnection method and related apparatus
CN114710640B (en) Video call method, device and terminal based on virtual image
US20230189366A1 (en) Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium
US11973895B2 (en) Call method and apparatus
CN115016869A (en) Frame rate adjusting method, terminal equipment and frame rate adjusting system
CN114579389A (en) Application management method, device, equipment and storage medium
CN116048358B (en) Method and related device for controlling suspension ball
US20240098354A1 (en) Connection establishment method and electronic device
CN113596919B (en) Data downloading method and device and terminal equipment
CN115914461B (en) Position relation identification method and electronic equipment
CN116389884B (en) Thumbnail display method and terminal equipment
CN114911400A (en) Method for sharing pictures and electronic equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN114915747B (en) Video call method, electronic device and readable storage medium
CN113645595B (en) Equipment interaction method and device
CN113678481B (en) Wireless audio system, audio communication method and equipment
CN118034948A (en) Key event monitoring method and system and electronic equipment
CN115460445B (en) Screen projection method of electronic equipment and electronic equipment
CN114115770B (en) Display control method and related device
CN116233599B (en) Video mode recommendation method and electronic equipment
CN114205318B (en) Head portrait display method and electronic equipment
CN115792431B (en) Abnormal position detection method 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