Detailed Description
Embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the embodiments set forth below in connection with the accompanying drawings are illustrative descriptions for explaining technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the terms "comprises" and/or "comprising," when used in this specification in connection with embodiments of the present application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, as embodied in the art. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g., "a and/or B" may be implemented as "a", or as "B", or as "a and B".
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application provides a screen projection processing method, optionally, the method is applied to an electronic device, where the electronic device may be a screen projection receiving end, and the screen projection receiving end performs screen projection interaction with at least two screen projection transmitting ends, as a first example, referring to fig. 2, fig. 2 shows an application scenario of the embodiment of the present application, where a device indicated by T is a screen projection receiving end; the P1 to P4 are screen-casting sending terminals respectively, and the content of the display interface of at least one screen-casting sending terminal in the screen-casting interaction process, namely P1 to P4, is cast to the display interface of a screen-casting receiving terminal; Q1-Q3 are external input devices of the screen projection receiving end, such as an external keyboard, a wired mouse, a wireless mouse, a remote controller and the like; furthermore, the input device may also be a built-in device of T, such as a touch screen or the like.
The method may comprise the steps of:
step 101, receiving a first input, and acquiring an event code corresponding to the first input and a target screen-casting sending end; the target screen projection sending end is the screen projection sending end corresponding to the display area acted by the first input at the screen projection receiving end.
The first input can be from an external input device, such as the external input devices Q1 to Q3 in fig. 2, to input a command to the screen projection receiving end; the first input may also be applied to a display interface of the screen projection receiving end, for example, a touch input of a user on the display interface.
And after receiving the first input, the screen-casting receiving end acquires an event code corresponding to the first input and a target screen-casting sending end corresponding to the first input. The event code is the event code corresponding to the first input, and the event code is in a code form recognized by the screen-casting receiving end. Optionally, an embodiment of the present application provides a screen-projection reverse control method, that is, a screen-projection receiving end is used to control a screen-projection sending end, and a target screen-projection sending end is used to project a controlled device in a screen-projection reverse control scene. Referring to fig. 2, for example, if a user touches a screen projection receiving terminal, the screen projection receiving terminal transmits the touch operation to the screen projection transmitting terminal.
The target screen projection sending end is the screen projection sending end corresponding to the display area acted by the first input at the screen projection receiving end; as shown in fig. 2 from T1 to T4, for example, the display area of the screen projection receiving end is allocated to each screen projection transmitting end during the screen projection process, and the corresponding screen projection content is displayed in each display area. On the screen projection receiving end side, a user can select a controlled screen projection sending end by selecting different display areas. For example, if the user needs to operate P3, the user can input an operation or command in the display area T3 corresponding to P3 to implement reverse control P3.
And step 102, converting the event code into an initial key value corresponding to the target screen-casting sending end.
For example, according to a preset mapping relationship, the event code is mapped to obtain an input event corresponding to the first input, and an initial key value corresponding to the target screen-casting sending end side.
Step 103, converting the initial key value into a target key value according to a data protocol of the target screen-casting sending terminal, and sending the target key value to the target screen-casting sending terminal.
Different screen-casting sending ends may adopt different data protocols or data formats, and in order to enable the target screen-casting sending end to respond to the first input, the event code needs to be converted into a target key value which can be identified by the target screen-casting sending end.
As a second example, a User Input Back Channel (UIBC) protocol is adopted at a screen projection receiving end, and a target screen projection transmitting end is an android system as an example; the UIBC protocol adopts ASCII codes, and event codes at a screen projection receiving end need to be converted into key values which can be identified according to a system; for example, the following conversion relationship conversion is adopted:
uint8_t keyHash[84]={
00,00,00,00,00,//0~4;
00,00,48,49,50,//5~9;
51,52,53,54,55,//10~14;
56,57,42,35,00,//15~19;
00,00,00,00,00,//20~24;
00,00,00,00,65,//25~29;
66,67,68,69,70,//30~34;
71,72,73,74,75,//35~39;
76,77,78,79,80,//40~44;
81,82,83,84,85,//45~49;
86,87,88,89,90,//50~54;
44,46,18,18,10,//55~59;
10,9,32,00,00,//60~64;
00,13,8,96,45,//65~69;
61,91,93,92,59,//70~74;
39,47,64,00,00,//75~79;
00,43//80~81};
uint8_t keyHash_Num[20]={
48,49,50,51,52,//144~148;
53,54,55,56,57,//149~153;
47,42,45,43,46,//154~158;
44,13,61,40,41//159~163}。
if the event code is a key, the key is equal to or larger than 144, and the key is equal to or smaller than 163, the key is an input received by a small keyboard of the screen projection receiving end, and at this time, the target key value key' is key hash _ Num [ key-144], that is, the key value of the small keyboard minus 144 is converted into the target key value of the android system.
Otherwise, the target key value key' is keyHash [ key ].
By adopting the conversion relation, the event code at the screen projection receiving end can be converted into a target key value which can be identified by the android system.
Sending a target key value to a target screen-throwing sending end, enabling the target screen-throwing sending end to respond to the target key value, and realizing reverse control on the screen-throwing sending end side at a screen-throwing receiving end side; therefore, in the screen projection interaction process, a user can directly operate at a screen projection receiving end, such as editing characters, browsing webpages and the like, operation at a screen projection sending end is not needed, and the degree of dependence of the screen projection interaction process on the screen projection sending end is reduced.
In the embodiment of the application, a screen-casting receiving end receives a first input, acquires an event code corresponding to the first input and a target screen-casting sending end, and converts the event code into an initial key value corresponding to the target screen-casting sending end; and converting the initial key value into a target key value according to a data protocol of the target screen projection sending end, and sending the target key value to the target screen projection sending end, so that the screen projection sending end responds to the target key value, reverse control of the screen projection sending end at a screen projection receiving end is realized, and the dependence degree of a screen projection interaction process on the screen projection sending end is reduced. The embodiment of the application solves the problem that in the prior art, the dependence degree on a screen projection sending end is high in the screen projection application process.
As a third example, a reverse control of drawing at the screen projection receiving end, and a screen projection interaction process of the screen projection receiving end with only one screen projection transmitting end piece is taken as an example; referring to fig. 3, first, the screen projection transmitting terminal P1 and the screen projection receiving terminal T are connected; and selecting T as a screen projection device in the device list of the P1 display interface, so that the content in the P1 screen is displayed in the display interface of the T. Alternatively, the process of the screen projection process may communicate using the Miracast protocol. After the connection is successful, as shown in fig. 4, the user may reversely control the screen-casting sending terminal P1 at the screen-casting receiving terminal T, for example, the user selects a drawing application program (APP) through the touch screen, the screen-casting receiving terminal T receives the touch operation of the user, determines an event code corresponding to the touch operation, converts the event code into a target key value that can be identified by the screen-casting sending terminal P1, and further realizes drawing at the screen-casting receiving terminal T, with the effect shown in fig. 5.
In an optional embodiment, before the receiving the first input, the method comprises:
receiving a screen-casting interaction request of the screen-casting sending terminal;
responding to the screen-casting interaction request, determining a data protocol adopted by the screen-casting sending terminal, establishing a data transmission link with the screen-casting sending terminal, and distributing a display area for the screen-casting sending terminal in a display interface of the screen-casting receiving terminal.
In the process of screen-casting interactive connection, a screen-casting sending end can send a screen-casting interactive request to a screen-casting receiving end; and the screen projection receiving end responds to the screen projection interaction request, firstly determines a data protocol applicable to the screen projection sending end, and then establishes a data transmission link between the screen projection receiving end and the screen projection sending end according to the data protocol to form a multi-path screen projection interaction channel. In addition, the screen projection receiving end also allocates a display area for the screen projection sending end in a display interface, as shown in fig. 2, allocates a display area for each screen projection sending end, and forms an effect of displaying different screen projection contents in a split screen manner; as a fourth example, referring to fig. 6, the multi-cast screen is as shown in fig. 6, wherein the display area corresponding to each voting sender displays the same content as the display interface of the casting sender, for example, the display content may be games, news, movies, web pages, and the like.
In an optional embodiment, the sending the target key value to the target screen projection sending end includes:
and sending the target key value to the target screen-casting sending end through a data transmission link between the target screen-casting sending end and the target screen-casting sending end.
And respectively sending the target key values of the screen-casting sending ends through the data transmission link between the target screen-casting sending ends, namely the data transmission link between each screen-casting sending end, so as to be compatible with the data interfaces of different screen-casting sending ends.
As a fifth example, referring to fig. 7, the first electronic device is a screen projection receiving end, and the second electronic device, the third electronic device, and the fourth electronic device are screen projection transmitting ends; the process of allocating the display area for the screen-casting sending terminal is as follows:
step 701, a first electronic device starts a wireless direct connection broadcast.
And starting wireless direct connection broadcast, and allowing a screen projection sending end to connect.
Step 702, a first content screen projection request sent by a second electronic device is received.
Step 703, in response to the first content screen-casting request, full-screen playing the first screen-casting content, interacting to obtain an interactive data interface through the first session, and establishing a first data transmission channel, where the first data transmission channel is used for screen-casting interaction between the second electronic device and the first electronic device.
Step 704, a second content screen projection request sent by the third electronic device is received.
Step 705, responding to a second content screen projection request, and distributing screens to play the first screen projection content and the second screen projection content; interacting to obtain an interactive data interface through a second session, and establishing a second data transmission channel; the distributed screen is that a display area is redistributed to the third electronic device, and the second data transmission channel is used for screen projection interaction between the third electronic device and the first electronic device.
Step 706, receiving a third content screen projection request and a fourth content screen projection request sent by the fourth electronic device and the fifth electronic device, respectively.
And 707, responding to the third content screen-casting request and the fourth content screen-casting request respectively, playing the first screen-casting content, the second screen-casting content, the third screen-casting content and the fourth screen-casting content by the four distribution screens, obtaining an interactive data interface through the third session interaction and the fourth session interaction respectively, and establishing a third data transmission channel and a fourth data transmission channel respectively.
The fourth distribution screen is a display area respectively distributed to the fourth electronic device and the fifth electronic device, the third data transmission channel is used for screen projection interaction between the fourth electronic device and the first electronic device, and the fourth data transmission channel is used for screen projection interaction between the fifth electronic device and the first electronic device.
In an optional embodiment, the converting the event code into an initial key value corresponding to the target screen-casting sending end includes:
and converting the event code into an initial key value of the target screen-casting sending end according to a preset corresponding relation, namely converting the event code into a target key value which can be identified by the screen-casting sending end so as to respond to the event code. The preset corresponding relationship can be recorded with a key value corresponding to the event code of the input event at each screen projection sending end side.
In an alternative embodiment, the data protocol comprises the UIBC protocol; alternatively, the generic data format of the UIBC protocol may be used, and since the generic data format ignores hardware information, a device compatible with various interfaces (USB, bluetooth, etc.) may be implemented.
As a sixth example, a multi-channel interactive system is provided, where the multi-channel interactive system uses a first electronic device as a screen-projecting receiving end, is configured to receive an input device connected to the first electronic device, converts the input device into a format recognizable by a second electronic device, and finally sends the format recognizable by the second electronic device to a screen-projecting sending end through a transmission channel established between the first electronic device and the screen-projecting sending end.
The second electronic device, the third electronic device and the fourth electronic device are screen projection sending terminals, and the screen projection sending terminals are used for providing network interfaces for establishing interactive data transmission channels, receiving interactive data and informing a system of relevant actions. A multi-path screen projection interaction method can be realized based on a Miracast protocol.
As shown in fig. 8, the first electronic device includes:
an operating system 801, comprising: a wireless module driving module 8011 and an input device driving module 8012, which are respectively used for a wireless module and driving an input device; the input device comprises an infrared remote controller, a mouse, a keyboard, a single-point touch pad and a multi-point touch pad.
An input event monitoring module 802, configured to monitor an input event;
an event conversion module 803, configured to convert an input event into an event code;
a data format conversion module 804, configured to convert the event code into a target key value;
the multi-channel interaction module 805 includes: the system comprises a data transmission module 1, a data transmission module 2, a data transmission module 3 and a channel selection switch 4.
In the process of screen projection interaction with the second electronic device, the first electronic device interacts with the first session interaction module (through Miracast protocol interaction) of the second electronic device to obtain an interactive data transmission interface (such as a TCP port number) of the second electronic device; then the first electronic device establishes a first transmission channel of interactive data (the interactive data channel of the second electronic device is connected in a TCP Client mode through a TCP port number) with the second electronic device through the interface; after the first transmission channel is established, the first electronic device obtains the input event, format conversion is performed through the data conversion module 1 to obtain a target key value which can be identified by the second electronic device, the target key value is sent to the second electronic device through the first transmission channel, and the second electronic device receives the interactive data and executes corresponding action.
The first session interaction module is used for the first electronic equipment to acquire an interaction data channel interface of the second electronic equipment, and the second electronic equipment is equipment supporting counter control.
The data conversion module 1 is used for the first electronic device to convert data of an input device connected with the first electronic device into a data format supported by the second electronic device, and simultaneously, the data is converted into a hidden key value according to some combined key rules. The input device connected with the first device is a device capable of sending a control command to the first electronic device.
And the first transmission channel is used for the first electronic equipment to send the converted data to the second electronic equipment.
In a similar way, after the first electronic device obtains the input event for the third electronic device, format conversion is performed through the data conversion module 2, and then the interactive data transmission interface of the third electronic device is obtained through the second session interaction module of the third electronic device; then the first electronic equipment establishes a second transmission channel of the interactive data with the third electronic equipment through the interface; after the transmission channel is established, the first electronic device sends the target key value corresponding to the input event to the third electronic device through the second transmission channel, and the third electronic device receives the interactive data and executes the corresponding action.
The fourth electronic device is similar to the first electronic device, and is not described herein again.
Under the condition that the first transmission channel and the second transmission channel are successfully established, different transmission channels are selected according to different windows (display areas) of the first electronic equipment selected by a user, and the purpose of controlling different screen projection sending ends is achieved.
As shown in fig. 9, the main process of the first electronic device converting the event code corresponding to the input event into the target key value is as follows:
in step 901, a first electronic device receives an input event.
Taking FIG. 10 as an example, the first electronic device T receives input events, which may come from input devices Q1-Q3.
Step 902, the first electronic device converts an event code of an input event into an initial key value identified by a screen-casting sending end through an event conversion module.
I.e., to the corresponding initial key value of P1.
In step 903, the first electronic device converts the data into a format recognized by the protocol through the data format conversion module, that is, into a target key value recognized by P1.
And 904, the first electronic device sends the selected channel to the corresponding screen projection sending end device. As shown in fig. 10, text in the T-side edit P1 can be implemented.
In the embodiment of the application, a screen-casting receiving end receives a first input, acquires an event code corresponding to the first input and a target screen-casting sending end, and converts the event code into an initial key value corresponding to the target screen-casting sending end; and converting the initial key value into a target key value according to a data protocol of the target screen projection sending end, and sending the target key value to the target screen projection sending end, so that the screen projection sending end responds to the target key value, reverse control of the screen projection sending end at a screen projection receiving end is realized, and the dependence degree of a screen projection interaction process on the screen projection sending end is reduced.
Referring to fig. 11, an embodiment of the present application further provides a screen projection processing method, which is applied to a screen projection sending end, and the method includes:
step 1101, receiving a target key value sent by a screen projection receiving end; the target key value is obtained by converting an event code corresponding to a first input into an initial key value corresponding to the target screen-casting sending end and converting the initial key value according to a data protocol of the target screen-casting sending end after the screen-casting receiving end receives the first input.
The first input can be from an external input device, such as the external input devices Q1 to Q3 in fig. 2, to input a command to the screen projection receiving end; the first input may also be applied to a display interface of the screen projection receiving end, for example, a touch input of a user on the display interface.
After receiving the first input, the screen-casting receiving end acquires an event code corresponding to the first input and a (target) screen-casting sending end corresponding to the first input, converts the event code corresponding to the first input into an initial key value corresponding to the target screen-casting sending end, and converts the initial key value into a target key value according to a data protocol of the target screen-casting sending end.
The event code is the event code corresponding to the first input, and the event code is in a code form recognized by the screen-casting receiving end. Optionally, an embodiment of the present application provides a screen-projection reverse control method, that is, a screen-projection receiving end is used to control a screen-projection sending end, and a target screen-projection sending end is used to project a controlled device in a screen-projection reverse control scene. Referring to fig. 2, for example, if a user touches a screen projection receiving terminal, the screen projection receiving terminal transmits the touch operation to the screen projection transmitting terminal.
The target screen projection sending end is the screen projection sending end corresponding to the display area acted by the first input at the screen projection receiving end; as shown in fig. 2 from T1 to T4, for example, the display area of the screen projection receiving end is allocated to each screen projection transmitting end during the screen projection process, and the corresponding screen projection content is displayed in each display area. On the screen projection receiving end side, a user can select a controlled screen projection sending end by selecting different display areas. For example, if the user needs to operate P3, the user can input an operation or command in the display area T3 corresponding to P3 to implement reverse control P3.
Different screen-casting sending ends may adopt different data protocols or data formats, and in order to enable the target screen-casting sending end to respond to the first input, the event code needs to be converted into a target key value which can be identified by the target screen-casting sending end.
Step 1102, executing a processing operation corresponding to the target key value.
The screen projection sending end responds to the target key value, executes processing operation corresponding to the target key value, and realizes reverse control on the screen projection sending end side at the screen projection receiving end side; therefore, in the screen-casting interaction process, a user can directly operate at the screen-casting receiving end, such as editing characters, browsing webpages and the like, operation at the screen-casting sending end is not needed, and the dependence degree of the screen-casting interaction process on the screen-casting sending end is reduced.
In an optional embodiment, before receiving the target key value sent by the screen-casting receiving end, the method includes:
sending a screen projection interaction request to the screen projection receiving terminal, and indicating the screen projection receiving terminal: determining a data protocol adopted by the screen projection sending end, establishing a data transmission link with the screen projection sending end, and distributing a display area for the screen projection sending end in a display interface of the screen projection receiving end.
In the process of screen-casting interactive connection, a screen-casting sending terminal can send a screen-casting interactive request to a screen-casting receiving terminal; and the screen projection receiving end responds to the screen projection interaction request, firstly determines a data protocol applicable to the screen projection sending end, and then establishes a data transmission link with the screen projection sending end according to the data protocol to form a multi-path screen projection interaction channel. In addition, the screen projection receiving end also allocates a display area for the screen projection sending end in a display interface, as shown in fig. 2, allocates a display area for each screen projection sending end, and forms an effect of displaying different screen projection contents in a split screen manner; as a third example, referring to fig. 6, the multi-cast screen is as shown in fig. 6, wherein the display area corresponding to each voting sender displays the same content as the display interface of the casting sender, for example, the display content may be games, news, movies, web pages, and the like.
In an optional embodiment, the receiving a target key value sent by a screen projection receiving end includes:
and receiving the target key sent by the screen projection receiving end through the data transmission link, namely, the screen projection receiving end respectively sends the target key values of the screen projection sending ends through the data transmission link between the screen projection receiving end and each screen projection sending end so as to be compatible with the data interfaces of different screen projection sending ends.
In an optional embodiment, the data protocol comprises UIBC protocol, optionally, the generic data format of UIBC protocol can be used, and since the generic data format ignores hardware information, a device compatible with various interfaces (USB, bluetooth, etc.) can be realized.
In the embodiment of the application, a target key value sent by a screen projection receiving end is received; the target key value is obtained by converting an event code corresponding to a first input into an initial key value corresponding to the target screen-casting sending end and converting the initial key value according to a data protocol of the target screen-casting sending end after the screen-casting receiving end receives the first input; and executing the processing operation corresponding to the target key value, realizing the reverse control of the screen projection sending end at the screen projection receiving end, and reducing the dependence degree of the screen projection interaction process on the screen projection sending end.
Based on the same principle as the method provided by the embodiment of the present application, the embodiment of the present application further provides a screen projection processing apparatus, which is applied to a screen projection receiving end, where the screen projection receiving end performs screen projection interaction with at least two screen projection transmitting ends, and as shown in fig. 12, the apparatus includes:
the receiving module 1201 is configured to receive a first input, obtain an event code corresponding to the first input, and obtain a target screen-casting sending end; the target screen projection sending end is the screen projection sending end corresponding to the display area acted by the first input at the screen projection receiving end;
a conversion module 1202, configured to convert the event code into an initial key value corresponding to the target screen-casting sending end;
a sending module 1203, configured to convert the initial key value into a target key value according to a data protocol of the target screen-casting sending end, and send the target key value to the target screen-casting sending end.
Optionally, in an embodiment of the present application, the apparatus includes:
the request receiving module is used for receiving a screen-casting interaction request of the screen-casting sending terminal;
and the request response module is used for responding to the screen projection interaction request, determining a data protocol adopted by the screen projection sending end, establishing a data transmission link with the screen projection sending end, and distributing a display area for the screen projection sending end in a display interface of the screen projection receiving end.
Optionally, in this embodiment of the application, the sending module 1203 is configured to:
and sending the target key value to the target screen-casting sending end through a data transmission link between the target screen-casting sending end and the target screen-casting sending end.
Optionally, in this embodiment of the present application, the conversion module 1202 is configured to:
and converting the event code into an initial key value of the target screen-casting sending end according to a preset corresponding relation.
Optionally, in this embodiment of the present application, the data protocol includes a UIBC protocol.
The screen projection processing apparatus provided in this embodiment of the application can implement each process implemented by the screen projection receiving end in the method embodiments of fig. 1 to fig. 10, and is not described here again to avoid repetition.
In the screen-casting processing device provided by the application, a receiving module 1201 receives a first input, acquires an event code corresponding to the first input and a target screen-casting sending terminal, and a converting module 1202 converts the event code into an initial key value corresponding to the target screen-casting sending terminal; the sending module 1203 converts the initial key value into a target key value according to a data protocol of the target screen projecting sending end, and sends the target key value to the target screen projecting sending end, so that the screen projecting sending end responds to the target key value, reverse control of the screen projecting sending end at a screen projecting receiving end is realized, and the dependence degree of a screen projecting interaction process on the screen projecting sending end is reduced.
Based on the same principle as the method provided in the embodiment of the present application, an embodiment of the present application further provides a screen projection processing apparatus, which is applied to a screen projection transmitting end, and as shown in fig. 13, the apparatus includes:
a key value receiving module 1301, configured to receive a target key value sent by a screen projection receiving end; the target key value is obtained by converting an event code corresponding to a first input into an initial key value corresponding to the target screen-casting sending end and converting the initial key value according to a data protocol of the target screen-casting sending end after the screen-casting receiving end receives the first input;
an operation executing module 1302, configured to execute a processing operation corresponding to the target key value.
Optionally, in an embodiment of the present application, the apparatus includes:
a request sending module, configured to send a screen-casting interaction request to the screen-casting receiving terminal, to instruct the screen-casting receiving terminal to: determining a data protocol adopted by the screen projection sending end, establishing a data transmission link between the screen projection sending end and the data transmission link, and distributing a display area for the screen projection sending end in a display interface of the screen projection receiving end.
Optionally, in this embodiment of the present application, the key value receiving module 1301 is configured to:
and receiving the target key value sent by the screen projection receiving end through the data transmission link.
Optionally, in this embodiment of the present application, the data protocol includes a UIBC protocol.
In the embodiment of the application, the key value receiving module 1301 receives a target key value sent by a screen projection receiving end; the target key value is obtained by converting an event code corresponding to a first input into an initial key value corresponding to the target screen-casting sending end and converting the initial key value according to a data protocol of the target screen-casting sending end after the screen-casting receiving end receives the first input; the operation execution module 1302 executes the processing operation corresponding to the target key value, so that the reverse control of the screen projection sending end at the screen projection receiving end is realized, and the dependence degree of the screen projection interaction process on the screen projection sending end is reduced.
The screen projection processing device of the embodiment of the present application can execute the screen projection processing method provided in the embodiment of the present application, and the implementation principle is similar, the actions executed by each module and unit in the screen projection processing device in the embodiments of the present application correspond to the steps in the screen projection processing method in the embodiments of the present application, and for the detailed functional description of each module of the screen projection processing device, reference may be specifically made to the description in the corresponding screen projection processing method shown in the foregoing, and details are not repeated here.
Based on the same principle as the method shown in the embodiments of the present application, the embodiments of the present application also provide an electronic device, which may include but is not limited to: a processor and a memory; a memory for storing a computer program; and the processor is used for executing the screen projection processing method shown in any optional embodiment by calling the computer program. Compared with the prior art, the screen-casting processing method provided by the application has the advantages that the screen-casting receiving end receives the first input, obtains the event code corresponding to the first input and the target screen-casting sending end, and converts the event code into the initial key value corresponding to the target screen-casting sending end; and converting the initial key value into a target key value according to a data protocol of the target screen projection sending end, and sending the target key value to the target screen projection sending end, so that the screen projection sending end responds to the target key value, reverse control of the screen projection sending end at a screen projection receiving end is realized, and the dependence degree of a screen projection interaction process on the screen projection sending end is reduced.
In an alternative embodiment, there is also provided an electronic device, as shown in fig. 14, the electronic device 14000 shown in fig. 14 including: a processor 14001, and a memory 14003. Among other things, processor 14001 is coupled to memory 14003, such as via bus 14002. Optionally, the electronic device 14000 may further include a transceiver 14004, and the transceiver 14004 may be used for data interaction between the electronic device and other electronic devices, such as data transmission and/or data reception. It should be noted that the transceiver 14004 is not limited to one in practical application, and the structure of the electronic device 14000 does not constitute a limitation to the embodiment of the present application.
The Processor 14001 may be a CPU (Central Processing Unit), a general purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein. Processor 14001 may also be a combination of computing functions, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 14002 may include a path that carries information between the above components. The bus 14002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 14002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 14, but this is not intended to represent only one bus or type of bus.
The Memory 14003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be Read by a computer, without limitation.
The memory 14003 is used for storing computer programs for executing the embodiments of the present application, and the processor 14001 controls the execution. The processor 14001 is configured to execute computer programs stored in the memory 14003 to implement the steps shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 14 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when being executed by a processor, can implement the steps of the foregoing method embodiments and corresponding content.
Embodiments of the present application further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be implemented.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than illustrated or otherwise described herein.
It should be understood that, although each operation step is indicated by an arrow in the flowchart of the embodiment of the present application, the implementation order of the steps is not limited to the order indicated by the arrow. In some implementation scenarios of the embodiments of the present application, the implementation steps in the flowcharts may be performed in other sequences as desired, unless explicitly stated otherwise herein. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on an actual implementation scenario. Some or all of these sub-steps or stages may be performed at the same time, or each of these sub-steps or stages may be performed at different times. In a scenario where execution times are different, an execution sequence of the sub-steps or the phases may be flexibly configured according to requirements, which is not limited in the embodiment of the present application.
The foregoing is only an optional implementation manner of a part of implementation scenarios in this application, and it should be noted that, for those skilled in the art, other similar implementation means based on the technical idea of this application are also within the protection scope of the embodiments of this application without departing from the technical idea of this application.