CN111078168B - Information processing method, first electronic equipment and storage medium - Google Patents
Information processing method, first electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111078168B CN111078168B CN201911108666.8A CN201911108666A CN111078168B CN 111078168 B CN111078168 B CN 111078168B CN 201911108666 A CN201911108666 A CN 201911108666A CN 111078168 B CN111078168 B CN 111078168B
- Authority
- CN
- China
- Prior art keywords
- display
- electronic device
- screen
- display data
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses an information processing method, which comprises the steps of obtaining a trigger event, wherein the trigger event is used for creating a virtual screen; creating a virtual screen based on a triggering event; obtaining display data from a cache region corresponding to the virtual screen; the display data of the virtual screen are sent to the second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen presented in the display output area of the display screen of the second electronic device. The embodiment of the application also discloses a first electronic device and a storage medium.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method, a first electronic device, and a storage medium.
Background
At present, in a scene that a mobile terminal is projected to a Personal Computer (PC), only the content on the display screen of the mobile terminal can be directly projected to the PC end; therefore, the problem that the user experience is poor due to the fact that the projection mode is single exists in the related technology.
Content of application
The embodiment of the application is expected to provide an information processing method, a first electronic device and a storage medium, and solves the problem of poor user experience caused by single projection mode in the related technology.
The technical scheme of the application is realized as follows:
an information processing method, the method comprising:
obtaining a trigger event, wherein the trigger event is used for creating a virtual screen;
creating a virtual screen based on the triggering event;
obtaining display data from a cache region corresponding to the virtual screen;
sending the display data of the virtual screen to a second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device.
Optionally, the method further includes:
establishing a wireless connection with a second electronic device;
creating a first data channel with the second electronic device based on the wireless connection;
obtaining display data of a cache region of a display screen of the first electronic device, wherein the display data is used for the display screen of the first electronic device to present display content corresponding to the display data;
sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents display content corresponding to the display data of the display screen of the first electronic device in a display output area of the display screen of the second electronic device based on the display data of the display screen of the first electronic device; the display content of the display screen of the first electronic device is the same as the display content corresponding to the display data of the display screen of the first electronic device in the display output area of the display screen of the second electronic device.
Optionally, the obtaining a trigger event includes:
obtaining operation information sent by the second electronic device and aiming at the display content corresponding to the display data of the display screen of the first electronic device and presented in the display output area of the display screen of the second electronic device
If the operation information represents the starting of an application program, generating the trigger event;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
starting an application program corresponding to the operation information;
assigning a process of the application to the virtual screen;
displaying the display content of the application program to generate display data;
and storing the display data based on the cache region corresponding to the virtual screen.
Optionally, the obtaining a trigger event includes:
obtaining a calling instruction of a specific application program;
obtaining a trigger event based on the call instruction;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
assigning an application program corresponding to display data of a cache region of a display screen of the first electronic device to the virtual screen;
storing display data generated after the display content of the application program is processed based on the cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store display data of the specific application program in a cache region of a display screen of the first electronic device so as to display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic equipment continuously displays the display content of the application program;
the sending the display data of the virtual screen to the second electronic device includes:
and transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
Optionally, the method further includes:
establishing a wireless connection with a second electronic device;
creating a second data channel with the second electronic device based on the wireless connection;
the obtaining a trigger event comprises:
obtaining operation information aiming at a first icon identifier sent by the second electronic equipment, wherein the operation information is used for indicating the first electronic equipment to call a first application program corresponding to the first icon identifier;
generating the trigger event based on the first icon identification;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
starting the first application program;
appointing the process of the first application program to the virtual screen;
displaying the display content of the first application program to generate display data;
storing the display data of the first application program based on the cache region corresponding to the virtual screen, so that the display content of the first application program is displayed on the display screen of the second electronic device and the display content of the first application program is not displayed on the display screen of the first electronic device.
A first electronic device, the first electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program stored in the memory so as to realize the following steps:
obtaining a trigger event, wherein the trigger event is used for creating a virtual screen;
creating a virtual screen based on the triggering event;
obtaining display data from a cache region corresponding to the virtual screen;
sending the display data of the virtual screen to a second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device.
Optionally, the processor is further configured to execute an information processing program stored in the memory, so as to implement the following steps:
establishing a wireless connection with a second electronic device;
creating a first data channel with the second electronic device based on the wireless connection;
obtaining display data of a cache region of a display screen of the first electronic device, wherein the display data is used for the display screen of the first electronic device to present display content corresponding to the display data;
sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents display content corresponding to the display data of the display screen of the first electronic device in a display output area of the display screen of the second electronic device based on the display data of the display screen of the first electronic device; the display content of the display screen of the first electronic device is the same as the display content corresponding to the display data of the display screen of the first electronic device in the display output area of the display screen of the second electronic device.
Optionally, the obtaining a trigger event includes:
obtaining operation information sent by the second electronic device and aiming at the display content corresponding to the display data of the display screen of the first electronic device and presented in the display output area of the display screen of the second electronic device
If the operation information represents the starting of an application program, generating the trigger event;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
starting an application program corresponding to the operation information;
assigning a process of the application to the virtual screen;
displaying the display content of the application program to generate display data;
and storing the display data based on the cache region corresponding to the virtual screen.
Optionally, the obtaining a trigger event includes:
obtaining a calling instruction of a specific application program;
obtaining a trigger event based on the call instruction;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
assigning an application program corresponding to display data of a cache region of a display screen of the first electronic device to the virtual screen;
storing display data generated after the display content of the application program is processed based on the cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store display data of the specific application program in a cache region of a display screen of the first electronic device so as to display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic equipment continuously displays the display content of the application program;
the sending the display data of the virtual screen to the second electronic device includes:
and transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the method of information processing as described above.
According to the information processing method, the first electronic device and the storage medium, a trigger event is obtained, and the trigger event is used for creating a virtual screen; creating a virtual screen based on a triggering event; obtaining display data from a cache region corresponding to the virtual screen; sending the display data of the virtual screen to a second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen presented in the display output area of the display screen of the second electronic device; therefore, the screen projection process is ensured, the display content presented by the display output area of the display screen of the second electronic device is different from the display content of the display screen of the first electronic device, the problem that the projection mode is single due to the fact that the display screen of the second electronic device and the display screen of the first electronic device can only display the same content in the related technology is solved, the user experience is poor, the diversity of the display content of the display screen of the first electronic device and the display screen of the second electronic device in the screen projection process is enriched, the screen projection effect of the first electronic device is improved, the intelligent degree of the first electronic device is improved, and brand-new user experience is brought.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 2 is a first interface schematic diagram of a display screen of a second electronic device according to an embodiment of the present application;
fig. 3 is a second interface schematic diagram of a display screen of a second electronic device according to an embodiment of the present application;
fig. 4 is a third interface schematic diagram of a display screen of a second electronic device according to an embodiment of the present application;
FIG. 5 is a schematic flow chart diagram illustrating another information processing method according to an embodiment of the present application;
fig. 6 is a first schematic diagram of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 7 is a second schematic diagram of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 8 is a third schematic diagram of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 9 is a fourth schematic diagram of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
FIG. 10 is a flowchart illustrating another information processing method according to an embodiment of the present application;
fig. 11 is a fifth schematic diagram of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 12 is a sixth schematic view of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 13 is a seventh schematic view of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 14 is an eighth schematic view of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 15 is a ninth schematic view of an interface of a display screen of a first electronic device and an interface of a display screen of a second electronic device according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides an information processing method, which is applied to a first electronic device and is shown in fig. 1, and the method includes the following steps:
Wherein the triggering event is used to create a virtual screen.
In the embodiment of the application, the first electronic device is a source device, the second electronic device is a destination device, and the first electronic device sends the display data to the second electronic device, so that the second electronic device presents the display content corresponding to the display data sent by the first electronic device in the display output area of the display screen of the second electronic device, and screen projection is achieved.
Here, the trigger event may be output by the first electronic device, or the trigger event may be output by the second electronic device.
In an embodiment of the application, a first electronic device creates a virtual screen based on a trigger event when obtaining the trigger event associated with the first electronic device or the trigger event associated with a second electronic device.
And 103, obtaining display data from a cache region corresponding to the virtual screen.
In this embodiment of the application, the display data stored in the cache region corresponding to the virtual screen is data corresponding to display content to be presented in the display output region of the second electronic device.
And 104, sending the display data of the virtual screen to the second electronic equipment, so that the second electronic equipment presents the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic equipment based on the display data of the virtual screen.
The first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen displayed in the display output area of the display screen of the second electronic device.
Here, the first electronic device sends the display data of the virtual screen to the second electronic device, and the presentation mode in which the second electronic device presents the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device based on the display data of the virtual screen includes full screen projection or split screen projection.
Here, when the second electronic device receives the display data of the virtual screen transmitted by the first electronic device, a brief description is given of a presentation manner in which the display output area of the display screen of the second electronic device presents corresponding display content; for example, in an implementation scenario, the first electronic device may be a smartphone, the second electronic device may be a PC, and a display output area of a display screen of the second electronic device presents display content corresponding to display data of the virtual screen in a full-screen display manner; when the smart phone sends first display data of the virtual screen to the PC, wherein the display content corresponding to the first display data is a main screen Launcher interface of the first electronic device; referring to fig. 2, after receiving the first display data, the PC presents a Launcher interface of the first electronic device on a display screen of the PC in a full-screen display manner based on the first display data, where the Launcher interface includes a plurality of application icons, and in this scenario, display content of the display screen of the smartphone is different from the Launcher interface of the first electronic device displayed by the display screen of the PC.
In another implementation scenario, for example, still using the first electronic device as a smart phone, the second electronic device as a PC, and a mode in which a display output area of a display screen of the second electronic device presents display content corresponding to display data of a virtual screen is a full-screen display mode; when the smart phone sends the second display data of the virtual screen to the PC, wherein the display content corresponding to the second display data is a chat interface of the instant messaging application of the first electronic equipment; referring to fig. 3, after receiving the second display data, the PC presents a chat interface of the instant messaging application of the first electronic device on the display screen of the PC in a full-screen display manner based on the second display data, where the chat interface includes a chat object and communication content associated with the chat object, and in this scenario, the display content of the display screen of the smartphone is different from the chat interface of the instant messaging application of the first electronic device displayed on the display screen of the PC.
For example, in another implementation scenario, the first electrical device is still used as a smart phone, the second electronic device is a PC for example, at this time, a mode in which a display output area of a display screen of the second electronic device presents display content corresponding to display data of a virtual screen may be a split-screen display mode, and when the smart phone sends third display data of the virtual screen to the PC, the display content corresponding to the third display data is a split-screen interface of the first electronic device; referring to fig. 4, after receiving the third display data, the PC presents a split screen interface of the first electronic device in a split screen display manner in an output area of a display screen of the PC based on the third display data, where the split screen interface includes a video interface and a chat interface of an instant messaging application, and in this scenario, a display content of the display screen of the smartphone is different from the split screen interface displayed on the display screen of the PC.
According to the information processing method provided by the embodiment of the application, a trigger event is obtained, and the trigger event is used for creating a virtual screen; creating a virtual screen based on a triggering event; obtaining display data from a cache region corresponding to the virtual screen; sending the display data of the virtual screen to a second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen presented in the display output area of the display screen of the second electronic device; therefore, the screen projection process is ensured, the display content presented by the display output area of the display screen of the second electronic device is different from the display content of the display screen of the first electronic device, the problem that the projection mode is single due to the fact that the display screen of the second electronic device and the display screen of the first electronic device can only display the same content in the related technology is solved, the user experience is poor, the diversity of the display content of the display screen of the first electronic device and the display screen of the second electronic device in the screen projection process is enriched, the screen projection effect of the first electronic device is improved, the intelligent degree of the first electronic device is improved, and brand-new user experience is brought.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method applied to a first electronic device, and as shown in fig. 5, the method includes the following steps:
Here, the Wireless connection includes a Wireless Fidelity (Wi-Fi) connection; of course, the embodiment of the present application does not specifically limit the wireless connection, so as to implement the wireless connection between the first electronic device and the second electronic device.
In the embodiment of the application, the first data channel is used for realizing data transmission between the display screen of the first electronic device and the display screen of the second electronic device.
And 203, obtaining display data of a cache region of a display screen of the first electronic device, wherein the display data is used for displaying display contents corresponding to the display data on the display screen of the first electronic device.
The display content of the display screen of the first electronic equipment is the same as the display content corresponding to the display data of the display screen of the first electronic equipment in the display output area of the display screen of the second electronic equipment; that is, the display content of the display screen of the first electronic device has a mirror relationship with the display content presented within the display output area of the display screen of the second electronic device.
In some embodiments of the present application, a first electronic device sends display data of a buffer area of a display screen of the first electronic device to a second electronic device through a first data channel, and the second electronic device presents display content of the display screen of the first electronic device in a display output area of the display screen of the second electronic device after receiving the display data of the buffer area of the display screen of the first electronic device; at this time, the content displayed on the display screen of the second electronic device is the same as the content displayed on the display screen of the first electronic device. Illustratively, referring to fig. 6, the first electronic device may be a smart phone, and the second electronic device may be a notebook computer, in this case, a Launcher interface of the smart phone is displayed on a display screen of the smart phone, and a Launcher interface of the smart phone is also displayed in a display output area of a display screen of the notebook computer, where the display output area of the display screen of the notebook computer includes the first window with black and bold in fig. 5.
Wherein the triggering event is used to create a virtual screen.
In this embodiment of the present application, the obtaining of the trigger event in step 205 may be implemented by:
and step 205a1, obtaining operation information which is sent by the second electronic device and aims at displaying the display content corresponding to the display data of the display screen of the first electronic device in the display output area of the display screen of the second electronic device.
Here, the operation information for presenting the display content corresponding to the display data of the display screen of the first electronic device within the display output area of the display screen of the second electronic device includes the operation event and the operation position.
Exemplarily, as shown in fig. 7, on the notebook computer side, the notebook computer obtains operation information for presenting display content corresponding to the display data of the display screen of the first electronic device, such as a Launcher interface of a smartphone, in the display output area of the display screen of the notebook computer, where the operation information includes a click operation on an application icon, i.e., a mail, and an operation position of the click operation, i.e., a position where the application icon is located. Then, the notebook computer sends the obtained operation information to a first electronic device such as a smart phone, and the smart phone receives the operation information which is sent by the notebook computer and is used for displaying the display content corresponding to the display data of the display screen of the first electronic device aiming at a first window in the display output area of the display screen of the notebook computer.
Step 205a2, if the operational information characterizes the launching of the application, generates a trigger event.
In the embodiment of the application, after obtaining operation information, sent by a second electronic device, of display content corresponding to display data of a display screen of the first electronic device, and presented in a display output area of the display screen of the second electronic device, the first electronic device determines that the operation information represents a start application, and then generates a trigger event.
For example, referring to fig. 7, after the smart phone receives a click operation of an application icon of a Launcher interface of the smart phone, which is sent by a notebook computer and presented for a first window in a display output area of a display screen of the notebook computer, and an operation position of the click operation, that is, a position where the application icon of the mail is located, based on the click operation and the operation position, it is determined that operation information at this time represents an application program for starting the mail, and a trigger event is generated.
And step 207, obtaining display data from the cache region corresponding to the virtual screen.
In this embodiment of the present application, the step 207 of obtaining the display data from the buffer corresponding to the virtual screen may be implemented by the following steps:
step 207a1, the application program corresponding to the operation information is started.
In the embodiment of the application, after the virtual screen is created by the first electronic device, the application program corresponding to the operation event and the operation position is started.
Step 207a2, assign the process of the application to a virtual screen.
In the embodiment of the application, the first electronic device designates the virtual screen created based on the trigger event for the process of the started application program.
Step 207a3 is to perform display processing on the display content of the application program to generate display data.
Here, the first electronic device captures display content of an application program, such as interface data of the application program, processed by its own video card, and compresses the interface data to obtain display data.
Step 207a4, storing the display data based on the corresponding buffer of the virtual screen.
In the embodiment of the application, the first electronic device stores display data based on the cache region corresponding to the created virtual screen.
For example, in a case where the operation information represents an application program for starting a mail and a trigger event is generated to create a virtual screen, the display data stored by the first electronic device based on the buffer corresponding to the virtual screen includes data related to a process of the application program for starting the mail, such as data related to a process of starting an application for starting the mail and opening an inbox of the mail.
And step 208, sending the display data of the virtual screen to the second electronic device, so that the second electronic device presents the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device based on the display data of the virtual screen.
The first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen displayed in the display output area of the display screen of the second electronic device.
Illustratively, referring to fig. 7, a Launcher interface of the smartphone is displayed on the display screen of the smartphone, a virtual screen created on the smartphone side in fig. 7 is a screen corresponding to a dashed-line border in the figure, the Launcher interface of the smartphone is displayed in a first window (a window with black and bold in fig. 7) in the display output area of the display screen of the notebook computer, and an inbox interface of the email is displayed in a second window (a window with a dashed-line border in fig. 7) in the display output area of the display screen of the notebook computer. In this way, the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen presented in the display output area of the display screen of the second electronic device; that is, the display output area of the display screen of the second electronic device may include a plurality of windows, and one of the windows is different from and the same as the display content of the display screen of the first electronic device.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method applied to an electronic device, including the following steps:
step 301, establishing a wireless connection with a second electronic device.
Step 302, a first data channel is created with a second electronic device based on the wireless connection.
And 303, obtaining display data of a cache region of a display screen of the first electronic device, wherein the display data is used for displaying display contents corresponding to the display data on the display screen of the first electronic device.
Step 304, sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents the display content corresponding to the display data of the display screen of the first electronic device in the display output region of the display screen of the second electronic device based on the display data of the display screen of the first electronic device.
The display content of the display screen of the first electronic device is the same as the display content corresponding to the display data of the display screen of the first electronic device in the display output area of the display screen of the second electronic device.
For example, referring to fig. 8, the first electronic device may be a smart phone, and the second electronic device may be a notebook computer, where a video interface of a video playing application is displayed on a display screen of the smart phone, and a video interface of the video playing application is also displayed in a display output area of a display screen of the notebook computer, where the display output area of the display screen of the notebook computer includes a full-screen interface of the notebook computer in fig. 8; of course, the display output area of the display screen of the notebook computer may also be a partial area of the display screen (not shown in fig. 8), and in this case, it may be regarded as playing a video interface in the small window on the notebook computer side.
Step 305, obtaining a trigger event.
Wherein the triggering event is used to create a virtual screen.
In the embodiment of the present application, the step 305 of obtaining the trigger event may be implemented by the following steps:
step 305a1, obtaining a call instruction of a specific application program.
Here, the specific application may be a voice call type application installed on the first electronic device such as a telephone; of course, the specific application may also be other applications of the first electronic device, such as a payment-type application; the specific application program is not specifically limited in the embodiments of the present application.
Illustratively, in the process that the smart phone projects a video interface of a video playing application displayed on a display screen of the smart phone into a display area of the display screen of the notebook computer, the smart phone receives an incoming call message, and at the moment, the smart phone obtains a call instruction for a phone.
For another example, in the process that the smart phone projects a video interface of a video playing application displayed on the display screen of the smart phone into the display area of the display screen of the notebook computer, the smart phone receives a payment link sent by other equipment, and at this time, the smart phone obtains a call instruction for a payment application program corresponding to the payment link.
Step 305a2, obtaining a trigger event based on the call instruction.
Step 306, creating a virtual screen based on the triggering event.
And 307, obtaining display data from a cache region corresponding to the virtual screen.
In this embodiment of the present application, the step 307 of obtaining the display data from the buffer corresponding to the virtual screen may be implemented by the following steps:
step 307a1, assigning the application program corresponding to the display data in the buffer of the display screen of the first electronic device to the virtual screen.
In the embodiment of the application, the first electronic device assigns an application program corresponding to display data of a cache region of a display screen of the first electronic device to the created virtual screen; for example, a video playback application is assigned to the created virtual screen. In this way, the source of the display data corresponding to the virtual screen is clearly specified, so as to ensure that the source of the display data corresponding to the virtual screen is unchanged even if the display content of the display screen of the first electronic device is changed.
Step 307a2, storing display data generated after processing the display content of the application program based on the cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store the display data of the specific application program in a cache region of a display screen of the first electronic device so as to display the display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic device continuously displays the display content of the application program.
Illustratively, the smart phone receives an incoming call message, at this time, the smart phone obtains a call instruction for the phone, and then the smart phone obtains a trigger event based on the call instruction for the phone, creates a virtual screen based on the trigger event, and then designates a video playing application program corresponding to more display data in a cache region of a display screen of the smart phone to the virtual screen, and stores display data generated after processing the display content of the video playing application program based on the cache region corresponding to the virtual screen; at this time, the smartphone responds to the call instruction for the phone, starts the phone and stores display data of a specific application program in a cache region of a display screen of the smartphone, so that a call interface of display contents of the phone is displayed on the display screen of the smartphone as shown in fig. 9, and at this time, a virtual screen created on the smartphone side is a screen corresponding to a dotted line frame in the drawing; meanwhile, the display content of the video playing application program is continuously displayed on the display screen of the notebook computer.
Referring to fig. 8, when a certain episode of television play is played on the display screen of the smart phone, the scene in the television play is that a person is walking outdoors, and the display content of the smart phone corresponds to the first video data at time t1-t 2; here, the output area of the display screen of the notebook computer also synchronously displays the scene of the episode of the television series. Further, as shown in fig. 9, the smart phone receives the incoming call message, obtains a call instruction for the phone, obtains a trigger event based on the call instruction, and creates a virtual screen based on the trigger event; then, the smart phone designates a playing application program playing the television play in the smart phone to the created virtual screen, and stores display data generated after processing the display content of the playing application program, such as second video data at the time of t3-t4, based on a cache region corresponding to the virtual screen; the smartphone responds to the call instruction for the phone, starts the phone application program and stores the display data of the phone application program in the cache area of the display screen of the smartphone, so that the incoming call interface of the phone application program is displayed on the display screen of the smartphone, at this time, the display screen of the notebook computer continuously displays the display content of the play application program, such as the display content corresponding to the second video data at the time t3-t4, and the display content presented on the notebook computer in fig. 9 is a scene in which the person walks back to home after walking.
And 308, sending the display data of the virtual screen to the second electronic device, so that the second electronic device presents the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device based on the display data of the virtual screen.
In this embodiment of the application, the sending of the display data of the virtual screen to the second electronic device in step 308 may be implemented by the following steps:
and 308, transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method applied to a first electronic device, and as shown in fig. 10, the method includes the following steps:
In the embodiment of the application, the first electronic device determines that the distance between the first electronic device and the second electronic device meets the target distance, and establishes wireless connection with the second electronic device. Of course, the first electronic device may also establish an unlimited connection with the second electronic device when other conditions are met, for example, when the first electronic device acquires a wireless connection request sent by the second electronic device and successfully authenticates the unlimited connection request, the first electronic device establishes a wireless connection with the second electronic device.
And step 403, obtaining operation information aiming at the first icon identifier and sent by the second electronic device, where the operation information is used for instructing the first electronic device to call the first application program corresponding to the first icon identifier.
In the embodiment of the application, after the first electronic device establishes the infinite connection with the second electronic device and creates the first data channel with the second electronic device based on the infinite connection, the target application icon on the first electronic device, such as an icon with a use frequency greater than a preset frequency, can be sent to the second electronic device through the first data channel, and then the second electronic device receives the target application icon and displays the target application icons on a display screen of the second electronic device. Here, the target application icon includes a first icon. The operation information identified for the first icon includes an operation object and an operation event. Further, after the second electronic device receives the operation information for the first icon identification, the operation information is sent to the first electronic device, and then the first electronic device obtains the operation information sent by the second electronic device for the first icon identification.
And step 404, generating a trigger event based on the first icon identification.
Wherein the triggering event is used to create a virtual screen.
In the embodiment of the application, after the first electronic device obtains the operation information aiming at the first icon identification and sent by the second electronic device, the trigger event is generated based on the first icon identification.
In the embodiment of the application, the first electronic device calls a first application program corresponding to the first icon identifier based on the operation information for the first icon identifier, and starts the first application program.
In the embodiment of the application, the first electronic device starts a first application program, and appoints a virtual screen to the process of the first application program; that is, after the first electronic device designates the process of the first application as the virtual screen, the display screen of the first electronic device no longer displays the display content of the first application.
And step 408, performing display processing on the display content of the first application program to generate display data.
And step 410, sending the display data of the virtual screen to the second electronic device, so that the second electronic device presents the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device based on the display data of the virtual screen.
The first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen displayed in the display output area of the display screen of the second electronic device.
For example, as shown in fig. 11, the first electronic device may be a smartphone, the second electronic device may be a PC, the smartphone determines that a distance between the smartphone and the PC satisfies a target distance, establishes a wireless connection with the PC device, creates a first data channel with the PC based on the wireless connection, and sends target application icons, such as a dialing application icon, a mail application icon, and a browser application icon, on the smartphone to the PC through the first data channel, where the dialing application icon, the mail application icon, and the browser application icon are displayed in a display output area of a display screen of the PC. Further, the PC acquires a click operation for the mail application icon, and sends operation information including an operation object such as the mail application icon and an operation event such as the click operation to the smart phone; the method comprises the steps that the smart phone obtains operation information aiming at a mail application icon, generates a trigger event based on the mail application icon, further creates a virtual screen based on the trigger event, starts a mail application program, and appoints the created virtual screen to the mail application program, the smart phone displays the display content of the mail application program, such as captures interface data of the virtual screen, compresses the interface data, generates display data, further stores the display data of the mail application program based on a cache region corresponding to the virtual screen, and sends the display data to a PC; as shown in fig. 12, the PC decodes the received display data, and presents an interface of the email application program in a display output area of a display screen of the PC, where the virtual screen created on the smartphone side is a screen corresponding to a dotted-line frame in the figure. Certainly, in this scenario, the display screen on the smartphone side may be in a black screen state to save power consumption.
As can be seen from the above, the first electronic device may receive operation information, which is reversely transmitted by the second electronic device and is specific to the first icon identifier, and then the first electronic device performs display processing on the display content of the first application program to generate display data, and stores the display data of the first application program in the cache region corresponding to the virtual screen, so as to provide updated display content for the display screen of the second electronic device. Here, when the second electronic device presents the display content processed by the first electronic device, parameters of the presented display output area may be set, for example, the size of the display output area, that is, the size of the display window, and the background color of the display output area may be set.
In other embodiments of the present application, in a case that content displayed in a display output area of a display screen of a second electronic device is the same as display content of a virtual screen of a first electronic device, the second electronic device obtains operation information for the first identifier and sends the operation information to the first electronic device; after the first electronic equipment obtains operation information aiming at the first identifier sent by the second electronic equipment, a trigger event is generated based on the first identifier, and a first application program is started; appointing a virtual screen for the process of the first application program, and displaying the display content of the first application program to generate display data; the display data of the first application program are stored based on the cache region corresponding to the virtual screen, so that the display screen of the second electronic device displays the display content of the first application program and the display screen of the first electronic device does not display the display content of the first application program. It should be noted that the first identifier includes a first icon identifier, and an information identifier such as a mailbox number or a telephone number.
Illustratively, as shown in conjunction with fig. 13 and 14, the first electrical device may be a smartphone, the second electrical device may be a PC, and the content displayed in the first target window of the display output area of the display screen of the PC in fig. 13 is the same as the display content of the first virtual screen of the smartphone (the first virtual screen created on the smartphone side is a screen corresponding to the dashed line frame in fig. 13), and is different from the display content of the display screen of the smartphone; for example, a first target window of a display screen of the PC displays a chat interface of an instant messaging application, and a video interface of a video playing application is displayed on a display screen of the smart phone; here, the first target window of the PC corresponds to a first virtual screen of the smartphone. Then, the PC obtains a first mark such as a mailbox number 137 × com in a chat interface for the instant messaging application, at the moment, the PC sends the click operation for the mailbox number 137 × com to the smart phone, and the smart phone generates a trigger event and starts an email-writing interface of the mailbox after obtaining the click operation for the mailbox number 137 × com sent by the PC; designating a virtual screen such as a second virtual screen (the second virtual screen created on the smartphone side is a screen corresponding to a dashed line border in the lower part in fig. 14) by the process of the mailbox application program, and displaying a mail writing interface of the mailbox application program to generate display data; and storing the display data of the mailbox application program based on the cache region corresponding to the second virtual screen, so that the display screen of the PC displays the mail writing interface of the mailbox application program in the second target window after receiving the display data, and the display screen of the smart phone still displays the real-time display content of the video playing application. It should be noted that the content displayed in the first target window changes correspondingly with the data update of the first virtual screen. If a new message "what file you send to Zhang-san? And selecting a target identifier from the display content of the virtual screen of the second electronic device, starting the application corresponding to the target identifier by the first electronic device, sending the display data of the newly started application to the second electronic device by the first electronic device, and opening the target interface of the application in a new display window by the second electronic device.
In the embodiment of the application, when the first electronic device creates a plurality of virtual screens, the second electronic device displays display contents corresponding to display data of the plurality of virtual screens in a plurality of windows. Here, as shown in fig. 15, in the second electronic device, the display window corresponding to the virtual screen newly created by the first electronic device may be displayed in a full screen, and the display windows corresponding to the other virtual screens are hidden, the window identifiers of all the display windows are displayed in the toolbar, and the second electronic device may quickly switch to the corresponding windows based on the window identifiers, so that the second electronic device operates multiple windows corresponding to multiple virtual screens as if operating its own window; of course, the presentation form of the different windows in the embodiment of the present application is not particularly limited.
It should be noted here that, in a scene where the first electronic device is projected to the second electronic device in the related art, the content of different applications on the display screen of the first electronic device is projected in a fixed window in a fixed form on the display screen of the second electronic device, so that there is always a concept of the first electronic device on the second electronic device side; however, based on the information processing method provided in the embodiment of the present application, the first electronic device designates different virtual screens for the multiple applications in the first electronic device, for example, one application corresponds to one specific virtual screen, and thus, the display screen of the second electronic device displays the display contents of the different applications in different windows, it can be understood that the virtual screen created by the first electronic device has a one-to-one correspondence relationship with the display windows in the display screen of the second electronic device, so that, when the multiple windows are presented on the display screen at the second electronic device side, the different windows display the display contents corresponding to different applications of the first electronic device, thereby ensuring that the viewer cannot feel the existence of the first electronic device at the second electronic device side, as the second electronic device displays the contents of different applications in the first electronic device in different windows, bringing a brand new user experience.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present application provides a first electronic device, which may be applied to an information processing method provided in embodiments corresponding to fig. 1, 5, and 10, and referring to fig. 16, the first electronic device 5 includes: a processor 51, a memory 52, and a communication bus 53, wherein:
the communication bus 53 is used to realize a communication connection between the processor 51 and the memory 52.
The processor 51 is configured to execute the information processing program stored in the memory 52 to implement the following steps:
acquiring a trigger event, wherein the trigger event is used for creating a virtual screen;
creating a virtual screen based on a triggering event;
obtaining display data from a cache region corresponding to the virtual screen;
the display data of the virtual screen are sent to the second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen presented in the display output area of the display screen of the second electronic device.
In other embodiments of the present application, the processor 51 is configured to execute an information processing program stored in the memory 52 to implement the following steps:
establishing a wireless connection with a second electronic device;
creating a first data channel with a second electronic device based on the wireless connection;
the method comprises the steps of obtaining display data of a cache region of a display screen of first electronic equipment, wherein the display data are used for displaying display contents corresponding to the display data on the display screen of the first electronic equipment;
sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents display content corresponding to the display data of the display screen of the first electronic device in a display output region of the display screen of the second electronic device based on the display data of the display screen of the first electronic device; the display content of the display screen of the first electronic device is the same as the display content corresponding to the display data of the display screen of the first electronic device in the display output area of the display screen of the second electronic device.
In other embodiments of the present application, obtaining the trigger event comprises:
obtaining operation information sent by the second electronic equipment and aiming at displaying content corresponding to the display data of the display screen of the first electronic equipment in the display output area of the display screen of the second electronic equipment
If the operation information represents the starting application program, generating a trigger event;
obtaining display data from a buffer corresponding to the virtual screen includes:
starting an application program corresponding to the operation information;
appointing a process of an application program to a virtual screen;
displaying the display content of the application program to generate display data;
and storing the display data based on the cache region corresponding to the virtual screen.
In other embodiments of the present application, obtaining the trigger event comprises:
obtaining a calling instruction of a specific application program;
obtaining a trigger event based on the call instruction;
obtaining display data from a buffer corresponding to the virtual screen includes:
appointing an application program corresponding to display data of a cache region of a display screen of first electronic equipment to a virtual screen;
storing display data generated after processing display content of the application program based on a cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store the display data of the specific application program in a cache region of a display screen of the first electronic device so as to display the display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic device continuously displays the display content of the application program;
the transmitting of the display data of the virtual screen to the second electronic device includes:
and transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
In other embodiments of the present application, the processor 51 is configured to execute an information processing program stored in the memory 52 to implement the following steps:
establishing a wireless connection with a second electronic device;
creating a second data channel with a second electronic device based on the wireless connection;
obtaining the trigger event includes:
obtaining operation information aiming at the first icon identification and sent by second electronic equipment, wherein the operation information is used for indicating the first electronic equipment to call a first application program corresponding to the first icon identification;
generating a trigger event based on the first icon identification;
obtaining display data from a buffer corresponding to the virtual screen includes:
starting a first application program;
appointing a process of a first application program to a virtual screen;
displaying the display content of the first application program to generate display data;
the display data of the first application program are stored based on the cache region corresponding to the virtual screen, so that the display screen of the second electronic device displays the display content of the first application program and the display screen of the first electronic device does not display the display content of the first application program.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiments corresponding to fig. 1, 5, and 10, and details are not described here again.
Based on the foregoing embodiments, embodiments of the application provide a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
acquiring a trigger event, wherein the trigger event is used for creating a virtual screen;
creating a virtual screen based on a triggering event;
obtaining display data from a cache region corresponding to the virtual screen;
the display data of the virtual screen are sent to the second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen presented in the display output area of the display screen of the second electronic device.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
establishing a wireless connection with a second electronic device;
creating a first data channel with a second electronic device based on the wireless connection;
the method comprises the steps of obtaining display data of a cache region of a display screen of first electronic equipment, wherein the display data are used for displaying display contents corresponding to the display data on the display screen of the first electronic equipment;
sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents display content corresponding to the display data of the display screen of the first electronic device in a display output region of the display screen of the second electronic device based on the display data of the display screen of the first electronic device; the display content of the display screen of the first electronic device is the same as the display content corresponding to the display data of the display screen of the first electronic device in the display output area of the display screen of the second electronic device.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
obtaining the trigger event includes:
obtaining operation information sent by the second electronic equipment and aiming at displaying content corresponding to the display data of the display screen of the first electronic equipment in the display output area of the display screen of the second electronic equipment
If the operation information represents the starting application program, generating a trigger event;
obtaining display data from a buffer corresponding to the virtual screen includes:
starting an application program corresponding to the operation information;
appointing a process of an application program to a virtual screen;
displaying the display content of the application program to generate display data;
and storing the display data based on the cache region corresponding to the virtual screen.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
obtaining the trigger event includes:
obtaining a calling instruction of a specific application program;
obtaining a trigger event based on the call instruction;
obtaining display data from a buffer corresponding to the virtual screen includes:
appointing an application program corresponding to display data of a cache region of a display screen of first electronic equipment to a virtual screen;
storing display data generated after processing display content of the application program based on a cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store the display data of the specific application program in a cache region of a display screen of the first electronic device so as to display the display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic device continuously displays the display content of the application program;
the transmitting of the display data of the virtual screen to the second electronic device includes:
and transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
establishing a wireless connection with a second electronic device;
creating a second data channel with a second electronic device based on the wireless connection;
obtaining the trigger event includes:
obtaining operation information aiming at the first icon identification and sent by second electronic equipment, wherein the operation information is used for indicating the first electronic equipment to call a first application program corresponding to the first icon identification;
generating a trigger event based on the first icon identification;
obtaining display data from a buffer corresponding to the virtual screen includes:
starting a first application program;
appointing a process of a first application program to a virtual screen;
displaying the display content of the first application program to generate display data;
the display data of the first application program are stored based on the cache region corresponding to the virtual screen, so that the display screen of the second electronic device displays the display content of the first application program and the display screen of the first electronic device does not display the display content of the first application program.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiments corresponding to fig. 1, 5, and 10, and details are not described here again. In other embodiments of the present application, the first electronic device may further generate the trigger event by:
obtaining a first sensing parameter through a gyroscope of first electronic equipment, wherein the first sensing parameter is used for representing spatial motion of the first electronic equipment;
obtaining a second sensing parameter by an accelerometer of the first electronic device, wherein the second sensing parameter is used for representing the acceleration of the spatial motion of the first electronic device;
if the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, generating a trigger event;
wherein,
the first sensing parameter satisfies a first condition and the second sensing parameter satisfies a second condition, which characterize a process of the first electronic device performing a spatial movement under an external force and stop the spatial movement when encountering an obstacle during the spatial movement.
In other embodiments of the present application, stopping the spatial movement when an obstacle is encountered during the spatial movement at least includes:
stopping the spatial movement once when encountering an obstacle in the spatial movement process of the first electronic device;
the process of the spatial movement of the first electronic device encounters an obstacle to stop the reverse movement of the spatial movement.
In other embodiments of the present application, the first condition is a threshold value used for characterizing a motion manner of the first electronic device in the space;
the second condition is a variation process value for characterizing the movement of the first electronic device in the space according to the movement mode.
In other embodiments of the present application, a final variation value of the variation process values approaches zero.
Illustratively, the first electronic device has a gyroscope and an accelerometer, and the first electronic device may be a portable electronic device such as a mobile phone. Here, a further description is made of an implementation process in which the first electronic device generates the trigger event;
the method comprises the following steps that first electronic equipment obtains first induction parameters through a gyroscope of the first electronic equipment, and the first induction parameters are used for representing the space motion of the first electronic equipment; and obtaining a second sensing parameter through the accelerometer of the first electronic device, wherein the second sensing parameter is used for representing the acceleration of the space motion of the first electronic device.
In the embodiment of the present application, the spatial motion of the first electronic device may be a yaw motion or a tilt motion of the first electronic device. The first sensing parameter may be a rotational angular velocity of the first electronic device when the first electronic device performs a yaw motion or a pitch motion. The corresponding second sensed parameter may be a linear acceleration of the above-mentioned spatial movement of the first electronic device.
And secondly, the first electronic equipment determines that the first induction parameter meets the first condition and the second induction parameter meets the second condition, and generates a trigger event.
The first sensing parameter meets a first condition, and the second sensing parameter meets a second condition, so that the process that the first electronic device performs space motion under the action of external force is represented, and the space motion is stopped when the first electronic device meets an obstacle in the process of the space motion.
That is to say, the first electronic device completes the somatosensory gesture by using the obstacle encountered in the motion process of the first electronic device, and then the trigger event can be generated.
According to the above, the first electronic device obtains the sensing parameters through the gyroscope and the accelerometer, determines the process of the first electronic device performing the spatial movement under the action of the external force according to the obtained sensing parameters, and generates the trigger event when the spatial movement process encounters the obstacle to stop the spatial movement. It is easy to understand, that is, the user only needs to control the first electronic device to make the above-mentioned spatial movement in a certain direction (which may be a direction toward an obstacle), and directly stops the movement after encountering the obstacle (i.e., the obstacle is stationary relative to the obstacle) so as to generate a trigger event to create the virtual screen.
Furthermore, in the embodiment of the present application, the first electronic device generates the trigger event through the sensors (i.e., the gyroscope and the accelerometer), and the input gesture of one beat can be determined through the sensors in any state of the first electronic device.
In the embodiment of the application, when the user holds the first electronic device to move towards the direction of the obstacle, the orientation of the first electronic device does not need to be particularly concerned, for example, when the user holds the mobile phone to move towards the direction of the other hand, the display screen can face the other hand, and the mobile phone rear shell can also face the other hand. Of course, the obstacle may be another part of the user's body, other than the other hand of the user, for example, by putting a mobile phone on the user's thigh, etc
In an alternative embodiment, the stopping of the spatial movement when the obstacle is encountered during the spatial movement may include at least:
the process of the spatial movement of the first electronic device meets an obstacle and stops the spatial movement once, that is, the first electronic device directly stops at the obstacle if meeting the obstacle during the spatial movement.
The process of the spatial movement of the first electronic device meets an obstacle to stop the reverse movement of the spatial movement, namely, if the first electronic device meets the obstacle in the process of the spatial movement, the first electronic device directly stops the spatial movement without reciprocating movement or other movements.
For example, a user holds a mobile phone, shoots a certain part of his body, and stops at the part after shooting the part, and does not move away from the part any more. For example, a user holds a mobile phone, shoots his or her leg, and stops at the leg after shooting the leg. Or the user holds the mobile phone with the right hand, shoots the mobile phone towards the left hand, and stops in the left hand after shooting the left hand. Or the user holds the mobile phone by the left hand, shoots the right arm of the user, and stops on the right arm after shooting the right arm.
In an alternative embodiment, the first condition is a threshold value for characterizing a movement pattern of the first electronic device in the space.
The second condition is a variation process value for characterizing the movement of the first electronic device in the space according to the movement mode.
That is, the first condition may be one value and the second condition may be a plurality of values. The final variation of the above-described variation values is zero or approaches zero.
Optionally, in the above change process value, a difference between a final change value and a previous change value is greater than a difference between two adjacent change values before the previous change value. That is, the previous change value to the final change value is a sudden process, i.e., the first electronic device is suddenly stopped.
Here, a process of generating a trigger event based on a determined operation gesture of one beat by the first electronic device and further controlling the first electronic device to implement the information processing method provided by the embodiment of the present application is briefly described; for example, the first electronic device may be a smartphone, and the second electronic device may be a laptop;
in one implementation scenario, in the process of taking a picture by a camera, the smart phone detects an operation gesture of taking one picture, generates a trigger event based on the operation gesture, and creates a virtual screen based on the trigger event; in this embodiment, the smartphone may establish an association relationship between a target application, such as an album, and the created virtual screen, that is, the smartphone binds the created virtual screen and the target application; then, the smart phone obtains the display data from the cache region corresponding to the virtual screen and sends the display data of the virtual screen to the notebook computer, at this time, the notebook computer presents the display content corresponding to the display data of the virtual screen in the display output region of the display screen of the notebook computer based on the display data of the virtual screen, for example, the display content is a photo in an album.
For example, in the process of taking part in a fashion show, a user shoots a garment in which the user is interested through a camera of a smart phone, at the moment, the user triggers the smart phone to create a virtual screen through an operation gesture of shooting, the smart phone binds an album application associated with the camera with the virtual screen and sends display data of a cache region corresponding to the virtual screen to a notebook computer of the user, and the notebook computer presents photos shot by the user in a display output region of the display screen of the notebook computer; therefore, the enlarged display of the photo is realized, and the user can conveniently observe the details of the garment.
In another implementation scenario, a view interface of an album is displayed by a smart phone, and when the smart phone detects a selection operation for a plurality of pictures in the view interface, a user performs a one-beat operation for the smart phone, the smart phone detects a one-beat operation gesture, generates a trigger event based on the operation gesture, and creates a virtual screen based on the trigger event; in this embodiment, the smart phone may only create the virtual screen without binding other applications, and at this time, the cache region corresponding to the virtual screen stores display data of a plurality of pictures selected in the current application, i.e., the album; furthermore, the smart phone obtains display data from the cache region corresponding to the virtual screen and sends the display data of the virtual screen to the notebook computer, at this time, the notebook computer displays display content corresponding to the display data of the virtual screen in the display output region of the display screen of the notebook computer based on the display data of the virtual screen, for example, a plurality of selected photos, at this time, one photo can be displayed on the display screen of the notebook computer at a time, and identification information of other non-displayed photos is displayed in the display screen, so that a user can control the display process of the photo at the side of the notebook computer, for example, the next to-be-displayed picture is selected.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
Claims (8)
1. An information processing method, characterized in that the method comprises:
establishing a wireless connection with a second electronic device;
creating a first data channel with the second electronic device based on the wireless connection;
the method comprises the steps of obtaining display data of a cache region of a display screen of first electronic equipment, wherein the display data are used for displaying display contents corresponding to the display data on the display screen of the first electronic equipment;
sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents display content corresponding to the display data of the display screen of the first electronic device in a display output area of the display screen of the second electronic device based on the display data of the display screen of the first electronic device; displaying the same display content corresponding to the display data of the display screen of the first electronic device in a display output area of the display screen of the second electronic device;
obtaining a trigger event, wherein the trigger event is used for creating a virtual screen;
creating a virtual screen based on the triggering event;
obtaining display data from a cache region corresponding to the virtual screen;
sending the display data of the virtual screen to the second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device.
2. The method of claim 1, wherein obtaining a trigger event comprises:
obtaining operation information which is sent by the second electronic equipment and aims at displaying display content corresponding to the display data of the display screen of the first electronic equipment in a display output area of the display screen of the second electronic equipment;
if the operation information represents the starting of an application program, generating the trigger event;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
starting an application program corresponding to the operation information;
assigning a process of the application to the virtual screen;
displaying the display content of the application program to generate display data;
and storing the display data based on the cache region corresponding to the virtual screen.
3. The method of claim 1, wherein obtaining a trigger event comprises:
obtaining a calling instruction of a specific application program;
obtaining a trigger event based on the call instruction;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
assigning an application program corresponding to display data of a cache region of a display screen of the first electronic device to the virtual screen;
storing display data generated after the display content of the application program is processed based on the cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store display data of the specific application program in a cache region of a display screen of the first electronic device so as to display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic equipment continuously displays the display content of the application program;
the sending the display data of the virtual screen to the second electronic device includes:
and transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
4. The method of claim 1, further comprising:
establishing a wireless connection with a second electronic device;
creating a second data channel with the second electronic device based on the wireless connection;
the obtaining a trigger event comprises:
obtaining operation information aiming at a first icon identifier sent by the second electronic equipment, wherein the operation information is used for indicating the first electronic equipment to call a first application program corresponding to the first icon identifier;
generating the trigger event based on the first icon identification;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
starting the first application program;
appointing the process of the first application program to the virtual screen;
displaying the display content of the first application program to generate display data;
storing the display data of the first application program based on the cache region corresponding to the virtual screen, so that the display content of the first application program is displayed on the display screen of the second electronic device and the display content of the first application program is not displayed on the display screen of the first electronic device.
5. A first electronic device, wherein the first electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program stored in the memory so as to realize the following steps:
establishing a wireless connection with a second electronic device;
creating a first data channel with the second electronic device based on the wireless connection;
obtaining display data of a cache region of a display screen of the first electronic device, wherein the display data is used for the display screen of the first electronic device to present display content corresponding to the display data;
sending the display data of the cache region of the display screen of the first electronic device to the second electronic device through the first data channel, so that the second electronic device presents display content corresponding to the display data of the display screen of the first electronic device in a display output area of the display screen of the second electronic device based on the display data of the display screen of the first electronic device; displaying the same display content corresponding to the display data of the display screen of the first electronic device in a display output area of the display screen of the second electronic device;
obtaining a trigger event, wherein the trigger event is used for creating a virtual screen;
creating a virtual screen based on the triggering event;
obtaining display data from a cache region corresponding to the virtual screen;
sending the display data of the virtual screen to the second electronic device, so that the second electronic device presents display content corresponding to the display data of the virtual screen in a display output area of a display screen of the second electronic device based on the display data of the virtual screen, wherein the first electronic device is connected with the second electronic device, and the display content of the display screen of the first electronic device is different from the display content corresponding to the display data of the virtual screen in the display output area of the display screen of the second electronic device.
6. The first electronic device of claim 5, wherein the obtaining a trigger event comprises:
obtaining operation information sent by the second electronic device and aiming at the display content corresponding to the display data of the display screen of the first electronic device and presented in the display output area of the display screen of the second electronic device
If the operation information represents the starting of an application program, generating the trigger event;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
starting an application program corresponding to the operation information;
assigning a process of the application to the virtual screen;
displaying the display content of the application program to generate display data;
and storing the display data based on the cache region corresponding to the virtual screen.
7. The first electronic device of claim 5, wherein the obtaining a trigger event comprises:
obtaining a calling instruction of a specific application program;
obtaining a trigger event based on the call instruction;
the obtaining of the display data from the cache region corresponding to the virtual screen includes:
assigning an application program corresponding to display data of a cache region of a display screen of the first electronic device to the virtual screen;
storing display data generated after the display content of the application program is processed based on the cache region corresponding to the virtual screen; enabling the first electronic device to respond to the calling instruction to start the specific application program and store display data of the specific application program in a cache region of a display screen of the first electronic device so as to display content of the specific application program on the display screen of the first electronic device; and the display screen of the second electronic equipment continuously displays the display content of the application program;
the sending the display data of the virtual screen to the second electronic device includes:
and transmitting the display data of the cache region corresponding to the virtual screen based on the first data channel.
8. A storage medium characterized by storing one or more programs, which are executable by one or more processors to implement the steps of the method of information processing according to any one of claims 1 to 4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911108666.8A CN111078168B (en) | 2019-11-13 | 2019-11-13 | Information processing method, first electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911108666.8A CN111078168B (en) | 2019-11-13 | 2019-11-13 | Information processing method, first electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111078168A CN111078168A (en) | 2020-04-28 |
| CN111078168B true CN111078168B (en) | 2021-10-22 |
Family
ID=70310918
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911108666.8A Active CN111078168B (en) | 2019-11-13 | 2019-11-13 | Information processing method, first electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111078168B (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111634188B (en) * | 2020-05-29 | 2023-03-24 | 阿波罗智联(北京)科技有限公司 | Method and device for projecting screen |
| CN120669941A (en) * | 2020-09-10 | 2025-09-19 | 华为技术有限公司 | Display method and electronic equipment |
| CN112286612B (en) * | 2020-10-29 | 2024-08-02 | 维沃移动通信有限公司 | Information display method and device and electronic equipment |
| CN112486386B (en) * | 2020-11-30 | 2022-06-24 | 维沃移动通信有限公司 | Screen projection method, screen projection device, electronic equipment and readable storage medium |
| CN114679511B (en) * | 2020-12-24 | 2024-12-10 | 荣耀终端有限公司 | Operation control method, device and electronic equipment |
| CN115048067A (en) * | 2021-02-26 | 2022-09-13 | 华为技术有限公司 | Screen projection display method and electronic equipment |
| CN113992966B (en) * | 2021-10-26 | 2024-09-24 | Oppo广东移动通信有限公司 | Redirection method, device, apparatus, storage medium and program product |
| CN114442875B (en) * | 2021-12-07 | 2025-02-21 | 联想(北京)有限公司 | A control method, device, electronic device and storage medium |
| CN118113244A (en) * | 2022-03-23 | 2024-05-31 | 博泰车联网(南京)有限公司 | Screen-throwing end and display end response method, electronic equipment and storage medium |
| CN115562743B (en) * | 2022-03-31 | 2023-10-27 | 荣耀终端有限公司 | Application program loading method and electronic device |
| CN115134341A (en) * | 2022-06-27 | 2022-09-30 | 联想(北京)有限公司 | Display method and device |
| CN117499601B (en) * | 2024-01-02 | 2024-04-05 | 上海励驰半导体有限公司 | Method for SoC to call multiple camera data |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103927078A (en) * | 2014-03-20 | 2014-07-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN108459836A (en) * | 2018-01-19 | 2018-08-28 | 广州视源电子科技股份有限公司 | Comment display method, device, equipment and storage medium |
| CN109032485A (en) * | 2018-07-10 | 2018-12-18 | 广州视源电子科技股份有限公司 | Display method and device, electronic equipment, intelligent panel and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8698751B2 (en) * | 2010-10-01 | 2014-04-15 | Z124 | Gravity drop rules and keyboard display on a multiple screen device |
| WO2011104709A2 (en) * | 2010-02-23 | 2011-09-01 | Rami Parham | A system for projecting content to a display surface having user-controlled size, shape and location/direction and apparatus and methods useful in conjunction therewith |
| US8878794B2 (en) * | 2011-09-27 | 2014-11-04 | Z124 | State of screen info: easel |
| CN104731547A (en) * | 2015-04-02 | 2015-06-24 | 深圳市亚特尔仪器有限公司 | Method for drawing dynamic tendency chart |
-
2019
- 2019-11-13 CN CN201911108666.8A patent/CN111078168B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103927078A (en) * | 2014-03-20 | 2014-07-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN108459836A (en) * | 2018-01-19 | 2018-08-28 | 广州视源电子科技股份有限公司 | Comment display method, device, equipment and storage medium |
| CN109032485A (en) * | 2018-07-10 | 2018-12-18 | 广州视源电子科技股份有限公司 | Display method and device, electronic equipment, intelligent panel and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111078168A (en) | 2020-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111078168B (en) | Information processing method, first electronic equipment and storage medium | |
| CN106028166B (en) | Live broadcast room switching method and device in live broadcast process | |
| CN103747362B (en) | Method and device for cutting out video clip | |
| US11054987B1 (en) | Sidebar interaction method, device, and computer-readable storage medium | |
| CN105611215A (en) | Video call method and device | |
| CN112905074B (en) | Interactive interface display method, interactive interface generation method and device and electronic equipment | |
| CN112019893B (en) | Terminal screen projection method and terminal screen projection device | |
| CN112363785A (en) | Terminal display method, terminal and computer readable storage medium | |
| KR20160061133A (en) | Method for dispalying image and electronic device thereof | |
| CN109496293B (en) | Extended content display method, device, system and storage medium | |
| CN114265641B (en) | Control method, electronic device and computer readable storage medium | |
| CN109451341B (en) | Video playing method, video playing device, electronic equipment and storage medium | |
| CN110069230A (en) | Extend content display method, device and storage medium | |
| CN113965539A (en) | Message sending method, message receiving method, device, equipment and medium | |
| CN106774849B (en) | Virtual reality equipment control method and device | |
| CN105516638B (en) | A kind of video call method, device and system | |
| CN105554430A (en) | Video call method, system and device | |
| US20180035170A1 (en) | Method and device for controlling playing state | |
| CN107272896A (en) | The method and device switched between VR patterns and non-VR patterns | |
| CN105657323A (en) | Video calling method, device and system | |
| CN112468873A (en) | Screen display method, device, system, electronic device, server, and medium | |
| CN107132769A (en) | Smart device control method and device | |
| CN105578110A (en) | Video call method, device and system | |
| EP1983751A2 (en) | Control apparatus, mobile communications system, and communications terminal | |
| CN113709020A (en) | Message sending method, message receiving method, device, equipment and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |