WO2023045763A1 - 一种显示方法与电子设备 - Google Patents

一种显示方法与电子设备 Download PDF

Info

Publication number
WO2023045763A1
WO2023045763A1 PCT/CN2022/117647 CN2022117647W WO2023045763A1 WO 2023045763 A1 WO2023045763 A1 WO 2023045763A1 CN 2022117647 W CN2022117647 W CN 2022117647W WO 2023045763 A1 WO2023045763 A1 WO 2023045763A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
electronic device
display information
screen
display
Prior art date
Application number
PCT/CN2022/117647
Other languages
English (en)
French (fr)
Inventor
周学而
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22871811.0A priority Critical patent/EP4379538A1/en
Publication of WO2023045763A1 publication Critical patent/WO2023045763A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Definitions

  • the present application relates to the field of electronic technology, in particular to a display method and electronic equipment.
  • Screen projection technology is a technology that is emerging nowadays, which means that an electronic device can project the display interface on its display screen to another electronic device for display.
  • the document interface on the mobile phone can be projected to be displayed on the laptop or tablet, and so on.
  • the first interface is displayed on the notebook computer.
  • the notebook computer detects an operation of projecting the screen to the tablet computer (for example, mirroring the screen), it sends the display information of the first interface to the tablet computer, and the tablet computer (in landscape orientation) displays the first interface. Since the tablet has a screen rotation function, the user may switch the tablet from landscape to portrait when operating the tablet.
  • the tablet is switched from landscape to portrait, in order to adapt to the portrait display, the first interface projected from the tablet is reduced. In this way, a black screen area will appear on the tablet computer.
  • the first interface is reduced, it is difficult for the user to view it, and the experience is poor.
  • the purpose of the present application is to provide a display method and an electronic device for improving screen projection experience.
  • a display method is provided, which is applied to a system including a first electronic device and a second electronic device, and the method includes: the first electronic device responds to a first operation, displaying the The display information of the first interface of the first application is sent to the second electronic device; the second electronic device displays the first interface; The device sends an instruction, the instruction is used to indicate the screen rotation direction of the second electronic device, and the screen rotation direction includes switching from landscape to portrait or from portrait to landscape; the first electronic device responds Based on the instruction, sending the display information of the second interface of the first application to the second electronic device; the display information of the second interface is more or less than the display information of the first interface, and/or Or, the display information layout of the second interface is different from that of the first interface; and the second electronic device displays the second interface.
  • the interface projected to the target device can change as the screen of the target device rotates, and this change can be Including the increase and decrease of displayed information on the screen projected to the target device, the adjustment of the layout, etc.
  • the projected screen to the target device interface can adapt to the screen rotation of the target device to improve the screen projection experience.
  • the information displayed on the second interface is more than the information displayed on the first interface, And/or, the display information layout of the second interface is different from that of the first interface; when the screen rotation mode of the second electronic device is switched from portrait to landscape, the second interface The displayed information of the second interface is less than that of the first interface, and/or, the layout of the displayed information of the second interface is different from that of the first interface.
  • the target device (that is, the second electronic device) can switch from landscape to portrait or from portrait to landscape, and when switching from landscape to portrait, the screen will be displayed on the interface of the target device
  • the information is added or the layout of the displayed information is adjusted to adapt to the vertical screen display.
  • the displayed information in the interface projected to the target device is reduced or the layout is adjusted to adapt to the horizontal screen display.
  • the interface of screen projection to the target device can adapt to the screen rotation of the target device to improve the screen projection experience.
  • the display information on the second interface is more than the display information on the first interface, including: the second interface includes all display information on the first interface, and further includes a third Part or all of the interface displays information, and the third interface includes: at least one of a next interface, a previous interface, a system default interface, or a user-specified interface of the first interface.
  • the target device that is, the second electronic device
  • the display information in the interface projected on the target device increases, and the display information of the next interface or the previous interface can be increased, etc. , which can not only adapt to the screen rotation of the target device, but also allow the user to view more display information of the main device on the target device, providing a better experience.
  • the display information layout of the second interface is different from that of the first interface, including: when the screen rotation direction of the second electronic device is switched from landscape to portrait , the first interface includes first display information and second display information, and the first display information and the second display information are tiled and displayed in the horizontal direction; the second interface includes the first display information information and the second display information, and the first display information and the second display information are tiled in the vertical direction; the rotation direction of the screen of the second electronic device is to switch from the vertical screen to the horizontal screen In the case of , the first interface includes the first display information and the second display information, and the first display information and the second display information are tiled in the vertical direction; the second interface includes the The first display information and the second display information are tiled and displayed in the horizontal direction.
  • the target device that is, the second electronic device
  • information A is displayed on the left and information B is displayed on the right in the interface projected by the main device on the target device.
  • the target device switches from a landscape screen to a portrait screen, information A is displayed on the top and information B is displayed on the bottom of the projected interface.
  • the layout of the information displayed on the interface projected to the target device can change with the rotation of the screen of the target device, so as to adapt to the rotation of the screen of the target device.
  • the first electronic device sends display information of the first interface of the first application in the first electronic device to the second electronic device in response to the first operation, including: The first electronic device displays the first interface; in response to the first operation, the first electronic device determines whether the screen display directions of the first electronic device and the second electronic device are consistent; When the screen display directions of the first electronic device and the second electronic device are consistent, the first interface is sent to the second electronic device.
  • the main device that is, the first electronic device
  • the target device that is, the second electronic device
  • the current interface that is, the first interface
  • the main device can project interface 1 to the target device, because interface 1 has been adapted for landscape display.
  • the fourth interface of the first application is sent to the second electronic device; Wherein, the displayed information of the fourth interface is more or less than that of the first interface, and/or, the layout of the displayed information of the fourth interface is different from that of the first interface.
  • the main device that is, the first electronic device
  • the target device that is, the second electronic device
  • the current interface That is, the first interface
  • the current interface of the master device needs to be adjusted to an interface (that is, the fourth interface) that adapts to the screen display orientation of the target device, and then the interface is projected to the target device.
  • the first interface projected by the master device to the target device can adapt to the screen display direction of the target device, and the user experience is better.
  • sending the fourth interface of the first application to the second electronic device include:
  • the fourth interface displays more information than the first interface, and/or, the first interface includes The third display information and the fourth display information, and the third display information and the fourth display information are tiled and displayed in the horizontal direction, and the fourth interface includes the third display information and the fourth display information information and the third display information and the fourth display information are tiled and displayed in the vertical direction;
  • the display information of the fourth interface is less than that of the first interface, and/or, the first interface includes The third display information and the fourth display information, and the third display information and the fourth display information are tiled in the vertical direction, and the fourth interface includes the third display information and the fourth display information. information is displayed, and the third display information and the fourth display information are tiled and displayed in a horizontal direction.
  • the main device ie, the first electronic device
  • the target device ie, the second electronic device
  • the master device displays the first interface, on which information A is displayed on the left, and information B is displayed on the right. Since the target device is in a vertical screen, the main device projects the screen to the target device is the second interface, and the information A is displayed on the second interface, and the information B is displayed on the bottom. In this way, the first interface projected by the master device to the target device can adapt to the screen display direction of the target device, and the user experience is better.
  • the first electronic device sends display information of the first interface of the first application in the first electronic device to the second electronic device in response to the first operation, including: The first electronic device creates a first virtual display VD in response to the first operation, and the screen display direction of the first VD is consistent with the current screen display direction of the second electronic device; the first electronic device will The first application is transferred to the first VD to run; the first application displays the first interface in the first VD; the first VD sends the first interface to the first VD 2.
  • the first electronic device creates a first virtual display VD in response to the first operation, and the screen display direction of the first VD is consistent with the current screen display direction of the second electronic device; the first electronic device will The first application is transferred to the first VD to run; the first application displays the first interface in the first VD; the first VD sends the first interface to the first VD 2.
  • the first electronic device creates a first virtual display VD in response to the first operation, and the screen display direction of the first VD is consistent with the current
  • the first VD is consistent with the screen display direction of the target device
  • its display interface can be adjusted according to the screen display direction of the first VD, such as displaying the first interface , and then the first VD casts the first interface to the target device.
  • the interface projected from the first application to the target device can adapt to the screen display direction of the target device, because the screen display direction of the first VD is consistent with the screen display direction of the target device.
  • the first electronic device sends display information of the second interface of the first application to the second electronic device in response to the instruction, including: the first electronic device responds Based on the instruction, adjust the screen display direction of the first VD to be consistent with the screen display direction after the rotation of the second electronic device; the first application responds to the adjustment of the screen display direction of the first VD, and The first interface is adjusted to the second interface; the first VD sends the second interface to the second electronic device.
  • the screen display direction of the first VD changes with the change of the screen display direction of the target device.
  • the interface of the first application running in the first VD is adaptively adjusted. (For example, adjust from the first interface to the second interface), and then the first VD will cast the adjusted interface to the target device, so that the screen projection interface can be guaranteed to change with the change of the screen display direction of the target device.
  • the method further includes: in response to the first operation, the first electronic device sends display information of the first interface of the first application in the first electronic device to the second After the electronic device, the method further includes: the first electronic device displays an interface of the second application; or, displays the first interface.
  • the interface of the second application may be displayed, or the first interface may be displayed. If the main device casts the first interface of the first application and displays the interface of the second application, it is called application screen projection. If the main device casts the first interface of the first application, the first interface is displayed, which is called mirror projection. . Therefore, the technical solution of the present application can be applied to both application screen projection and mirror image projection.
  • a display method applied to the first electronic device comprising:
  • the first electronic device sends display information of the first interface of the first application in the first electronic device to the second electronic device in response to the first operation;
  • the first electronic device receives an instruction from the second electronic device, the instruction is used to indicate the screen rotation direction of the second electronic device, and the screen rotation direction includes switching from landscape to portrait or from portrait to landscape. Switch the screen to landscape;
  • the first electronic device sends the display information of the second interface of the first application to the second electronic device in response to the instruction; the display information of the second interface is more or less than that of the first application.
  • the display information of the interface, and/or, the layout of the display information of the second interface is different from that of the first interface.
  • the information displayed on the second interface is more than the information displayed on the first interface, And/or, the display information layout of the second interface is different from that of the first interface;
  • the display information on the second interface is less than the display information on the first interface, and/or, the second The display information layout of the interface is different from that of the first interface.
  • the display information on the second interface is more than the display information on the first interface, including:
  • the second interface includes all the display information of the first interface, and also includes part or all of the display information of the third interface, and the third interface includes: the next interface, the previous interface, and the system interface of the first interface. At least one of a default interface or a user-specified interface.
  • the display information layout of the second interface is different from that of the first interface, including:
  • the first interface When the screen rotation direction of the second electronic device is switched from landscape to portrait, the first interface includes first display information and second display information, and the first display information and the second display information The display information is tiled in the horizontal direction; the second interface includes the first display information and the second display information, and the first display information and the second display information are vertically parallel shop display;
  • the first interface When the screen rotation direction of the second electronic device is switched from portrait to landscape, the first interface includes first display information and second display information, and the first display information and the second The display information is tiled in the vertical direction; the second interface includes the first display information and the second display information, and the first display information and the second display information are horizontally tiled. shop display.
  • the first electronic device sends display information of the first interface of the first application in the first electronic device to the second electronic device in response to the first operation, including:
  • the first electronic device displays the first interface
  • the first electronic device determines whether the screen display directions of the first electronic device and the second electronic device are consistent
  • the first interface is sent to the second electronic device.
  • the method further includes: when the screen display directions of the first electronic device and the second electronic device are inconsistent, sending the fourth interface of the first application to the The second electronic device; wherein, the display information of the fourth interface is more or less than the display information of the first interface, and/or, the layout of the display information of the fourth interface and the first interface different.
  • sending the fourth interface of the first application to the second electronic device include:
  • the fourth interface displays more information than the first interface, and/or, the first interface includes The third display information and the fourth display information, and the third display information and the fourth display information are tiled and displayed in the horizontal direction, and the fourth interface includes the third display information and the fourth display information information and the third display information and the fourth display information are tiled and displayed in the vertical direction;
  • the display information of the fourth interface is less than that of the first interface, and/or, the first interface includes The third display information and the fourth display information, and the third display information and the fourth display information are tiled in the vertical direction, and the fourth interface includes the third display information and the fourth display information. information is displayed, and the third display information and the fourth display information are tiled and displayed in a horizontal direction.
  • the first electronic device sends display information of the first interface of the first application in the first electronic device to the second electronic device in response to the first operation, including:
  • the first electronic device creates a first virtual display VD in response to the first operation, and the screen display direction of the first VD is consistent with the current screen display direction of the second electronic device;
  • the first electronic device transfers the first application to run in the first VD
  • the first application displays the first interface in the first VD
  • the first VD sends the first interface to the second electronic device.
  • the first electronic device sends display information of the second interface of the first application to the second electronic device in response to the instruction, including:
  • the first electronic device adjusts the screen display direction of the first VD to be consistent with the rotated screen display direction of the second electronic device;
  • the first application adjusts the first interface to the second interface in response to the adjustment of the screen display direction of the first VD;
  • the first VD sends the second interface to the second electronic device.
  • the Methods after the first electronic device sends the display information of the first interface of the first application in the first electronic device to the second electronic device in response to the first operation, the Methods also include:
  • the first electronic device displays the interface of the second application; or, displays the first interface.
  • a communication system including: a first electronic device and a second electronic device;
  • the first electronic device includes: a processor; a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, and when the instructions are executed by the processor, making the first electronic device perform the steps of the first electronic device in the method described in the first aspect above;
  • the second electronic device includes: a processor; a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, and when the instructions are executed by the processor, Making the second electronic device execute the steps of the second electronic device in the method described in the first aspect above.
  • an electronic device including:
  • processor memory, and, one or more programs
  • the one or more programs are stored in the memory, the one or more programs include instructions, and when the instructions are executed by the processor, the electronic device performs the above-mentioned second aspect The method steps described.
  • a computer-readable storage medium the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer executes the above-mentioned first or second aspect. The method described in the two aspects.
  • a computer program product including a computer program.
  • the computer program When the computer program is run on a computer, the computer is made to execute the method described in the first aspect or the second aspect above.
  • a graphical user interface on an electronic device the electronic device has a display screen, a memory, and a processor, and the processor is used to execute one or more computer programs stored in the memory,
  • the graphical user interface includes a graphical user interface displayed when the electronic device executes the method described in the first aspect or the second aspect.
  • the embodiment of the present application also provides a chip, the chip is coupled with the memory in the electronic device, and is used to call the computer program stored in the memory and execute the technical solution of the first aspect or the second aspect above, the present application "Coupling" in the embodiments means that two components are directly or indirectly combined with each other.
  • FIG. 1 is a schematic diagram of a screen projection process provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of mirror projection provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application projection screen provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a display interface of a notebook computer provided by an embodiment of the present application.
  • Fig. 5A is a schematic diagram of projecting a screen from a notebook computer to a tablet computer according to an embodiment of the present application
  • FIG. 5B is another schematic diagram of screen projection from a notebook computer to a tablet computer according to an embodiment of the present application.
  • 6A to 6B are schematic diagrams of two application scenarios provided by an embodiment of the present application.
  • FIGS. 7A to 7B are schematic diagrams of two other application scenarios provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • 9A to 9B are schematic diagrams of a principle of a screen projection method provided by an embodiment of the present application.
  • FIGS. 10A to 10B are schematic diagrams of another principle of the screen projection method provided by an embodiment of the present application.
  • 11 to 12 are schematic flow charts of a screen projection method provided by an embodiment of the present application.
  • FIGS. 13A to 13D are schematic diagrams of application scenarios provided by an embodiment of the present application.
  • 16 to 17 are schematic flow charts of a screen projection method provided by an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Application program is a software program that can realize one or more specific functions.
  • multiple applications can be installed in an electronic device, for example, an instant messaging application, a video playing application, an audio application, an image capturing application, and the like.
  • instant messaging applications for example, may include SMS applications, Changlian applications, WhatsApp Photo sharing (Instagram), Kakao wait.
  • the image capturing application may include, for example, a camera application (system camera or third-party camera application).
  • Video playback applications for example, can include etc. Audio playback applications, such as Google etc.
  • the applications mentioned in the following embodiments may be applications installed when the electronic device leaves the factory, or applications downloaded by the user from the network or obtained from other electronic devices during the use of the electronic device.
  • At least one of the embodiments of the present application involves one or more; wherein, a plurality means greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing descriptions, and cannot be understood as express or implied relative importance, nor can they be understood as express or imply order.
  • the display method provided in the embodiment of the present application is applicable to screen projection scenarios.
  • the screen projection scene includes the sender and the receiver.
  • the sending end sends the display information to the receiving end for display.
  • this article refers to the sending end as the master device and the receiving end as the target device.
  • the sending end and the receiving end can also have other names, for example, the sending end is an active screen projection device, and the receiving end is a passive screen projection device; or, the sending end is the main device, and the receiving end It is an auxiliary device; or, the sending end is a source device, and the receiving end is a target device; or, the sending end is a first electronic device, and the receiving end is a second electronic device, etc., which is not limited in this application.
  • the roles of the sending end and the receiving end can be interchanged, that is, the sending end can project a screen to the receiving end, and correspondingly, the receiving end can also project a screen to the sending end.
  • the receiving end is a device capable of screen rotation (for example, switching between horizontal and vertical screens), such as a tablet computer, a mobile phone, and the like.
  • the sending end may or may not have a screen rotation function.
  • the sending end includes a mobile phone, a tablet computer, a PC, a mobile phone, a watch, and the like.
  • the following mainly takes the sending end as a notebook computer or mobile phone and the receiving end as a tablet computer as an example.
  • Screen projection technologies include mirror projection and application projection.
  • FIG. 2 is a schematic diagram of a process of mirroring and projecting a screen.
  • the interface A of the first application is displayed in the foreground of the sending end (for example, a laptop computer).
  • the sending end detects an operation of mirroring and projecting the screen to the receiving end (for example, a tablet computer) (to be described later), in response to the operation, the sending end sends the foreground display information to the tablet computer.
  • the display information (for example, interface A of the first application) is displayed on the tablet computer.
  • the information displayed on the foreground of the sending end changes, such as switching from interface A to interface B; correspondingly, the display information on the receiving end also changes, that is, switching from interface A to interface B.
  • This screen projection technology can be understood as that the display screen at the receiving end is a mirrored screen of the display screen at the sending end.
  • FIG. 3 is a schematic diagram of an application screen casting process.
  • the interface of the first application is displayed on the sending end (such as a laptop computer).
  • the sending end detects the operation of projecting the screen of the application to the receiving end (for example, a tablet computer) (to be introduced later)
  • the first application is projected to the tablet computer for display.
  • the interface of the second application is displayed in the foreground.
  • This screen projection technology can be understood as that the display screen at the receiving end acts as an extended screen of the display screen at the sending end.
  • the receiver may rotate the screen (for example, switch from landscape to portrait or from portrait to portrait). horizontal screen).
  • the size of the interface projected by the sending end (referred to as the screen projection interface) on the receiving end will be adjusted to fit the screen rotation of the receiving end.
  • an interface 401 of a browser application is displayed on the notebook computer (taking interface 401 as an interface of Huawei's official website as an example).
  • the interface 401 includes various display information, such as text (eg, HUAWEI P50, etc.) and pictures (eg, mobile phone pictures).
  • text eg, HUAWEI P50, etc.
  • pictures eg, mobile phone pictures.
  • a web page contains a lot of display information, limited by the size of the display screen of the notebook computer, it is impossible to display all the display information of the web page on the display screen at the same time, so usually the notebook computer will display more information for viewing the web page.
  • Information button For example, in (a) in FIG. 4 , a slider 402 is displayed on the right side of the interface 401 .
  • an interface 403 as shown in (b) of FIG. 4 is displayed.
  • the interface 403 can be understood as the next interface located on the interface 401 generated by a webpage (eg, Huawei official website). Therefore, when the user browses the webpage with the laptop computer, he can view more information of the webpage through the sliding block 402 .
  • the tablet computer is switched from a horizontal screen to a vertical screen, and the interface 401 on the tablet computer is reduced. As a result, a black screen area appears on the tablet.
  • This method will lead to a waste of display resources on the tablet computer, and the reduced screen projection interface will appear to be laborious to the user, which will affect the user experience.
  • Another way is that when the tablet is switched from landscape to portrait, the screen projection interface on the tablet is stretched (or enlarged) to fill the display screen of the tablet, as shown in (d) in Figure 5A . Although this method does not cause a waste of display resources, the screen projection interface is stretched and deformed, which affects user experience.
  • FIG. 5A is an example of screen mirroring, and similar problems also exist in application screen projection.
  • the notebook computer displays an interface 401 .
  • the notebook computer detects the operation of projecting the screen to the tablet computer application (will be introduced later), it sends the display information of the interface 401 to the tablet computer (assuming it is in a horizontal screen state), and the tablet computer displays the interface 401, as shown in Figure 5B (b).
  • the main interface is displayed, as shown in (c) in FIG. 5B.
  • the tablet is switched from landscape to portrait, the size of the screen-casting interface on its display screen is adjusted. For example, as shown in (d) in FIG. 5B , the tablet is switched from a horizontal screen to a vertical screen, and the interface 401 projected from the tablet is reduced.
  • the reason for the above problems is that when the sender projects to the receiver, it only sends the interface to be projected to the receiver as an image to the receiver for display.
  • the image When the receiver's screen is rotated, the image is reduced or enlarged. Black screen areas appear when the image is zoomed out and distorted when the image is zoomed in.
  • an embodiment of the present application provides a display method.
  • This display method is suitable for application screen projection scenarios.
  • the first electronic device responds to the screen rotation of the second electronic device, interface (casting interface for short) to make adjustments.
  • This adjustment is not a simple scaling of the screen projection interface as a picture, but an adjustment to the layout of information displayed on the screen projection interface, and/or deletion or addition of information displayed on the screen projection interface.
  • the first electronic device sends the adjusted screen projection interface to the second electronic device.
  • the second electronic device displays the adjusted screen projection interface, there will be no image distortion and no black screen area, and the screen projection experience is better.
  • the sending end may have a horizontal or vertical screen, and the receiving end may also have a horizontal or vertical screen
  • the sending end is a horizontal screen, and the receiving end is a horizontal screen.
  • the sending end is a horizontal screen, and the receiving end is a vertical screen.
  • the sending end is a vertical screen, and the receiving end is a vertical screen.
  • the sending end is a vertical screen, and the receiving end is a horizontal screen. Therefore, the following four application scenarios are introduced, corresponding to the above four situations.
  • an application projecting a laptop computer (in a landscape orientation) to a tablet computer currently in a landscape orientation is used as an example.
  • the sending end is a horizontal screen
  • the receiving end is a horizontal screen.
  • the notebook computer displays an interface 401 .
  • the notebook computer detects the operation of projecting the screen to the tablet computer application (will be introduced later), in response to the operation, it sends the display information of the interface 401 to the tablet computer, and the interface 401 is displayed on the tablet computer, as shown in FIG. 6A (b).
  • the main interface is displayed, as shown in (c) in FIG. 6A.
  • the notebook computer sends the display information of the interface 401 to the tablet computer, it will judge whether the current screen display direction of the tablet computer is landscape or portrait, and decide whether it is necessary to monitor the screen to be projected to the tablet according to the screen display direction of the tablet computer.
  • the interface of the computer ie interface 401 is adjusted. For example, when it is determined that the current screen display orientation of the tablet computer is horizontal, there is no need to adjust the interface 401, because the interface 401 itself is suitable for horizontal display (because the notebook computer is a horizontal display interface 401), so the notebook computer directly Send the display information of the interface 401 to the tablet computer.
  • the sender directly sends the foreground display interface of the sender to the receiver for display in response to the application screen projection operation, and does not judge whether it is necessary to modify the screen according to the current screen display direction of the receiver.
  • the interface to be projected to the receiving end is about to be adjusted, so in the current application projection technology, the sending end responds to the application projection operation, and the interface projected to the receiving end does not necessarily adapt to the current screen display direction of the receiving end.
  • the sending end before the sending end projects the screen to the receiving end, it can judge whether it is necessary to adjust the interface to be projected to the tablet computer according to the screen display direction of the receiving end, so the interface projected to the receiving end must be adapted to the receiving end Current screen display orientation.
  • the screen rotation may occur, for example, switching from a horizontal screen to a vertical screen.
  • the display information on the screen projection interface on the tablet computer increases.
  • the screen projection interface changes from interface 401 to interface 501 .
  • Interface 501 contains more display information than interface 401 .
  • the added display information may be the display information of the previous interface, the next interface, the default interface (for example, the main interface of the web page) or the user-specified interface of the interface 401 . Exemplarily, referring to FIG.
  • the display information on interface 501 that is more than that on interface 401 is the display information on interface 403 (see FIG. 4 ) next to interface 401 .
  • the tablet computer is switched from a horizontal screen to a vertical screen, more information is displayed on the screen projection interface, and display resources are not wasted.
  • the user can obtain more screen projection information, and the experience is better.
  • Another method is that when the tablet computer is switched from a horizontal screen to a vertical screen, the information displayed on the screen projection interface does not increase, but the layout mode is adjusted.
  • the screen projection interface on the tablet changes from interface 401 to interface 502 .
  • Interface 502 is different from interface 401 in display information layout.
  • the characters such as HUAWEI P50, etc.
  • the pictures such as mobile phone pictures
  • This method will not scale the size of the screen projection interface, so there will be no black screen area and no image distortion.
  • a notebook computer in a horizontal screen state
  • the sending end is a horizontal screen
  • the receiving end is a vertical screen.
  • the notebook computer displays an interface 401 .
  • the notebook computer detects the operation of projecting the screen to the tablet computer application (will be introduced later), in response to this operation, it sends the display information of the interface 501 to the tablet computer, and the interface 501 is displayed on the tablet computer, as shown in Figure 6B (b).
  • the main interface is displayed after the notebook computer screen projection, as shown in (c) in FIG. 6B.
  • interface 501 displays more information than interface 401 .
  • the extra display information (that is, the display information in the dotted line area) may be the display information in the next interface of the interface 401 (interface 403 in FIG. 4 ).
  • the notebook computer before the notebook computer sends the display information of interface 501 to the tablet computer, it is determined that the tablet computer is currently in portrait mode, so interface 401 needs to be adjusted, because interface 401 is suitable for horizontal screen display but not for vertical screen display, so , the notebook computer adjusts the interface 401 to an interface 501, and sends the interface 501 to the tablet computer. It can be seen from this that in the embodiment of the present application, before the sending end projects the screen to the receiving end, it can determine whether the receiving end is a horizontal screen or a vertical screen. The terminal can directly send the display information of the foreground display interface to the receiving end, without adjusting the foreground display interface.
  • the sending end needs to adjust the foreground display interface and send the adjusted interface to the receiving end for display. Therefore, in this embodiment of the application, the sending end adjusts the interface to be projected to the receiving end according to the screen display direction of the receiving end, so that the adjusted interface can adapt to the screen display direction of the receiving end when it is projected to the receiving end.
  • the screen may rotate, for example, switch from a vertical screen to a horizontal screen.
  • One way is that, when the tablet computer is switched from a vertical screen to a horizontal screen, the information displayed on the screen projection interface on the tablet computer is reduced.
  • the screen projection interface on the tablet PC changes from interface 501 to interface 401 .
  • interface 401 displays less information than interface 501 .
  • the reduced display information is the display information in the dotted line area in the interface 501 .
  • Another method is that when the tablet computer is switched from a portrait screen to a landscape screen, the displayed information on the screen projection interface does not decrease, and the layout mode is adjusted. For example, as shown in (b) and (e) in FIG. 6B , the tablet computer is switched from a vertical screen to a horizontal screen, and the screen projection interface on the tablet computer changes from interface 501 to interface 505 .
  • Interface 505 is different from interface 501 in display information layout. For example, in interface 501, the display information in the dotted line area is on the lower side of the display screen, while in interface 505, the display information in the dotted line area is on the right side of the display screen.
  • This application scenario corresponds to the previous case 3, where the sending end is a vertical screen and the receiving end is a vertical screen. It is understandable that the previous examples are all examples where the sender is a laptop. Generally, laptops are horizontal and cannot be displayed vertically. Therefore, this application scenario takes the sender as a mobile phone. For example, a mobile phone in a vertical state Take a tablet computer currently in a vertical screen state as an example.
  • Interface 701 is, for example, an interface of a video playing application on a mobile phone.
  • the mobile phone detects the operation of projecting the screen to the tablet computer application (will be introduced later), and in response to this operation, sends the display information of the interface 701 to the tablet computer, and the tablet computer displays the interface 701, as shown in (b) in Figure 7A.
  • the mobile phone displays the desktop after the interface 701 is projected, as shown in (c) in FIG. 7A.
  • the mobile phone sends the display information of the interface 701 to the tablet computer, it will judge whether the current screen display direction of the tablet computer is landscape or portrait, and decide whether it is necessary to project the screen to the tablet computer according to the current screen display direction of the tablet computer.
  • interface namely interface 701 to make adjustments. For example, when it is determined that the tablet computer is a vertical screen, there is no need to adjust the interface 701, because the interface 701 itself is suitable for vertical screen display (because the mobile phone displays the vertical screen interface 701), so the mobile phone directly sends the display information of the interface 701 Give the tablet.
  • the screen may rotate, for example, switching from a vertical screen to a horizontal screen.
  • One way is that when the tablet computer is switched from the portrait screen to the landscape screen, the displayed information on the screen projection interface is reduced. As shown in (b) and (d) of FIG. 7A , when the tablet computer is switched from a vertical screen to a horizontal screen, the screen projection interface on the tablet computer changes from interface 701 to interface 702 . Interface 702 displays less information than interface 701 . Wherein, the reduced display information is the display information in the dotted line area in the interface 701 .
  • the tablet computer is switched from a portrait screen to a landscape screen
  • the displayed information on the screen projection interface does not decrease, but the layout mode is adjusted.
  • the screen projection interface on the tablet changes from interface 701 to interface 703 .
  • Interface 703 is different from interface 701 in the display information layout.
  • the display information (media title, collection button, etc.) in the dotted line area in the interface 701 is on the lower side.
  • the displayed information in the dotted line area in the interface 703 is on the right side.
  • a mobile phone in a portrait state is cast to a tablet computer in a landscape state as an example.
  • the sending end is a vertical screen
  • the receiving end is a horizontal screen.
  • the mobile phone is in a vertical screen state and displays an interface 701 .
  • the mobile phone detects an operation of projecting a screen to the tablet computer, and in response to the operation, sends the display information of the interface 702 to the tablet computer.
  • the tablet computer displays an interface 702 .
  • the mobile phone displays the desktop after the interface 702 is projected, as shown in (c) in FIG. 7B.
  • the interface 702 displays less information than the interface 701 .
  • the few displayed information is the displayed information (media title, selection button, etc.) in the dotted line area in the interface 701 .
  • interface 701 needs to be adjusted, because interface 701 is not suitable for landscape display, so interface 701 Adjust to the interface 702, and send the interface 702 to the tablet computer.
  • FIG. 7B when the tablet PC is switched from a horizontal screen to a vertical screen, the screen projection interface on the tablet PC changes from interface 702 to interface 701 , and the displayed information increases.
  • Fig. 8 shows a schematic structural diagram of an electronic device.
  • the electronic device may be the receiving end or the sending end mentioned above.
  • the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • graphics processing unit graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic equipment. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • general packet radio service general packet radio service
  • CDMA code division multiple access
  • WCDMA broadband Code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • LTE long term evolution
  • BT GNSS
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display the display interface of the application and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the storage program area can store the operating system and software codes of at least one application program (such as iQiyi application, WeChat application, etc.).
  • the data storage area can store data (such as images, videos, etc.) generated during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save pictures, videos and other files in the external memory card.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device.
  • the angular velocity of the electronic device about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device may detect opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device when the electronic device is a flip machine, the electronic device can detect opening and closing of the flip according to the magnetic sensor 180D.
  • the acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • Electronic devices can measure distance via infrared or laser light. In some embodiments, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • Electronic devices emit infrared light outwards through light-emitting diodes.
  • Electronic devices use photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the electronic device.
  • the electronic device may determine that there is no object in the vicinity of the electronic device.
  • the electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint features to unlock fingerprints, access application locks, take pictures with fingerprints, answer incoming calls with fingerprints, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device may reduce the performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device when the temperature is lower than another threshold, the electronic device heats the battery 142 to avoid abnormal shutdown of the electronic device caused by low temperature.
  • the electronic device boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation with the electronic device.
  • FIG. 8 do not constitute a specific limitation on the electronic device.
  • the electronic device in the embodiment of the present invention may include more or less components than those shown in FIG. 8 .
  • the combination/connection relationship between the components in FIG. 8 can also be adjusted and modified.
  • the purpose of the first embodiment is to introduce the implementation principles of the previous four application scenarios. Considering that the implementation principles of the previous four application scenarios are the same, in order to save space, this article does not introduce the implementation principles of each application scenario one by one. It mainly introduces the implementation principle of the first application scenario and the second application scenario.
  • the implementation principles of the third application scenario and the fourth application scenario may refer to the implementation principles of the first application scenario and the second application scenario.
  • the notebook computer displays the first interface of the first application.
  • the first interface includes display information A1 and display information A2.
  • the first application may be any application without limitation.
  • the first application is a browser application
  • the first interface may be the interface 401 of the browser application in the first application scenario (that is, Figure 6A) above
  • the display information A1 includes text information (such as HUAWEI, etc.)
  • the display information A2 includes a picture of the mobile phone, and the display information A1 and the display information A2 are tiled and displayed in the horizontal direction, for example, the display information A1 is located on the left side of the display information A2.
  • FIG. 9A the notebook computer displays the first interface of the first application.
  • the first interface includes display information A1 and display information A2.
  • the first application may be any application without limitation.
  • the first application is a browser application
  • the first interface may be the interface 401 of the browser application in the first application scenario (that is, Figure 6A) above
  • the display information A1 includes text information (such as
  • the tablet computer is in landscape orientation and displays a desktop.
  • the notebook computer establishes a connection with the tablet computer in response to the connection operation with the tablet computer.
  • the connection may be a wired or wireless connection.
  • the notebook computer can identify whether the current screen orientation of the tablet computer is landscape or portrait. Exemplarily, after the tablet computer is connected to the notebook computer, it can actively report its current screen display direction to the notebook computer; or, the notebook computer sends a request to the tablet computer for requesting the current screen display direction of the tablet computer, and the tablet computer responds to This request returns the current screen orientation.
  • the notebook computer detects an operation of projecting the screen to the tablet computer application (such as an operation of long pressing and dragging in the first interface), in response to the operation, the first interface of the first application moves out of the notebook computer display screen, As shown in (c) in FIG. 9A, at the same time, the first interface of the first application enters the display screen of the tablet computer, as shown in (d) in FIG. 9A.
  • the long press is detected and the drag operation ends, the first interface of the first application is transferred to the tablet computer for display, as shown in (f) in FIG. 9A .
  • the interface of the second application is displayed on the notebook computer, as shown in (e) in FIG. 9A.
  • the first interface is sent to the tablet computer in response to the screen-casting operation, because the notebook computer has determined that the tablet computer is in a landscape orientation, and the first interface is suitable for landscape orientation. screen display, so send the first interface to the tablet.
  • the application screen projection operation is an operation of long pressing and dragging in the first interface as an example. It can be understood that the application screen projection operation can also be other types of operations, and this application does not give examples one by one.
  • the screen when the tablet computer displays the first interface projected from the screen, the screen may rotate, for example, switching from a horizontal screen to a vertical screen.
  • the tablet When the tablet is switched from landscape to portrait, there are two ways to display it.
  • the screen projection interface on the tablet computer changes from the first interface of the first application to the third interface of the first application.
  • the third interface displays more information than the first interface.
  • the third interface includes display information A1 and A2, and further includes display information B.
  • the display information A1 and A2 are the display information in the first interface, so it can be understood that the third interface includes all the display information of the first interface and also includes the display information of other interfaces, and the other interfaces may be the display information of the first interface. Display information in the previous interface or the next interface or the default interface or user-specified interface.
  • the first interface is interface 401
  • the third interface is interface 501.
  • Display information B may be more information displayed on interface 501 than interface 401, that is, in the area of the dotted line in interface 501.
  • the display information is the display information of the next interface (interface 403 in FIG. 4 ) following the first interface (interface 401 ).
  • the screen projection interface on the tablet computer changes from the first interface of the first application to the fourth interface of the first application.
  • the display information layout of the fourth interface is different from that of the first interface.
  • Display information A1 and display information A2 in the first interface are displayed in tiles in the horizontal direction, and display information A1 and display information A2 in the fourth interface are displayed in tiles in the vertical direction, for example, display information A1 is located on the upper side of display information A2 .
  • the first interface is the interface 401 and the fourth interface is the interface 502
  • the display information layout of the interface 502 is different from that of the interface 401 .
  • FIG. 9B is a background processing flow corresponding to FIG. 9A.
  • the main device that is, the notebook computer package in FIG. 9A
  • the main device includes a local display screen.
  • the local display is horizontal.
  • the local display screen displays the first interface of the first application, corresponding to (a) in FIG. 9A .
  • the notebook computer creates a first virtual display (virtual display, VD).
  • the first VD is used to project the display information in the first VD to the target device (ie, the tablet computer in FIG. 9A ) for display, that is, the projected information displayed on the target device is the display information in the first VD.
  • the display parameters of the first VD match the target device (i. e. tablet) display parameters.
  • the screen display orientation of the first VD is consistent with the current screen display orientation of the target device, and/or the aspect ratio of the first VD is equal to the aspect ratio of the target device. Assuming that the main device determines that the current screen display orientation of the target device is landscape, then the first VD is landscape. At this time, both the local display screen and the first VD are landscape, as shown in (b) in FIG. 9B .
  • the creation of the first VD by the main device may include: creating when it detects that it is connected to the target device, or creating when it detects that a screen projection operation is applied to the target device; or, the first VD may exist by default ( For example, it is set by default after leaving the factory), which is not limited in this embodiment of the present application.
  • the master device transfers the first application from the local display screen to run in the first VD.
  • the first application is originally displayed on the local display screen, but is transferred to the first VD for display.
  • the first application originally displayed the first interface on the local display screen, but when transferred to the first VD, the first interface is still displayed. This is because the first VD and the local display are both horizontal screens, and the first interface itself is already adapted to the horizontal screen display, so when the first application is transferred to the first VD, there is no need to adjust the first interface.
  • the first VD sends the first interface to the target device, and the target device displays the first interface.
  • the interface of the second application is displayed on the local display screen.
  • the screen of the target device may rotate, such as switching from landscape to portrait.
  • a screen rotation command is sent to the master device, and the command instructs the target device to switch to a portrait.
  • the main device adjusts the screen display orientation of the first VD to be vertical based on the instruction.
  • the first application will adjust the first interface to the third interface.
  • the display information of the third interface is more than that of the first interface, that is, display information B is added to adapt to the vertical screen display of the first VD.
  • the first VD sends the third interface to the target device, and the target device displays the third interface.
  • the master device adjusts the screen display direction of the first VD to be a vertical screen based on the instruction.
  • the first application adjusts the first interface to the fourth interface.
  • the display information layout of the fourth interface is different from that of the first interface.
  • the display information A1 and A2 in the first interface are horizontally tiled and displayed, and the display information A1 and display information A2 are vertically tiled in the fourth interface to adapt to the vertical display of the first VD.
  • the first VD sends the fourth interface to the target device.
  • FIGS. 9A to 9B are applicable to the first application scenario above, corresponding to case 1, that is, the sending end is a horizontal screen, and the receiving end is a horizontal screen. It can be understood that the same principle applies to the third application scenario (corresponding to case 3, that is, the sending end is a vertical screen and the receiving end is a vertical screen). Therefore, in order to save space, details are not repeated.
  • the notebook computer displays the first interface of the first application.
  • Display information A is included in the first interface.
  • the first application may be any application without limitation.
  • the first application is a browser application
  • the first interface can be the second application scenario above, that is, the interface 401 of the browser application in FIG. and cell phone pictures.
  • the tablet computer is in a vertical screen state and displays a desktop. Laptop connected with tablet.
  • the notebook computer determines that the current screen display orientation of the tablet computer is a vertical screen.
  • the notebook computer detects an application screen projection operation to the tablet computer (for example, long press and drag operation in the first interface), in response to the operation, the interface of the first application is moved out of the notebook computer display screen, as shown in the figure (c) in 10A, at the same time, the interface of the first application moves into the display screen of the tablet computer, as shown in (d) in FIG. 10A.
  • the interface of the second application is displayed on the notebook computer, such as (e) in Figure 10A, and the second interface of the first application is displayed on the tablet computer, as shown in Figure 10A (f).
  • the second interface is different from the first interface.
  • the second interface displays more information than the first interface, for example, the second interface displays more information B than the first interface.
  • the second interface includes all the display information of the first interface, and also includes the display information of other interfaces, and the other interfaces can be the next interface or the previous interface of the first interface.
  • the first interface is interface 401
  • the second interface is interface 501 .
  • Interface 501 has more display information in the dotted line area than interface 401 , and this part of display information is the display information of the next interface of interface 401 (interface 403 in FIG. 4 ). It should be noted that in FIG.
  • the notebook computer in response to the screen projection operation to the tablet computer, the notebook computer sends the display information of the second interface to the tablet computer, because the notebook computer determines that the tablet computer is currently in a vertical screen, and the second interface The first interface is not suitable for vertical screen display, so the notebook computer sends the second interface to the tablet computer to adapt to the vertical screen display of the tablet computer.
  • the screen may rotate, such as switching from a vertical screen to a horizontal screen.
  • the screen projection interface on the tablet PC changes from the second interface of the first application to the third interface of the first application.
  • the third interface includes display information A, which is less than that displayed on the second interface.
  • the second interface is interface 501
  • the third interface is interface 401
  • interface 401 displays less information than interface 501 .
  • the screen projection interface on the tablet PC changes from the second interface of the first application to the fourth interface of the first application.
  • the display information layout of the fourth interface is different from that of the second interface.
  • the display information A and B in the second interface are vertically tiled, and the display information A and B in the fourth interface are horizontally tiled.
  • the display information A is on the left, and the display information B is on the right. side.
  • the fourth interface is interface 505
  • the second interface is interface 501
  • the display information layouts of interface 505 and interface 501 are different.
  • Fig. 10B is the background processing process corresponding to Fig. 10A.
  • the main device ie, the notebook computer in FIG. 10A
  • the main device includes a local display screen.
  • the local display is horizontal.
  • the local display screen displays the first interface of the first application.
  • the first interface includes display information A, which corresponds to (a) in FIG. 10A .
  • the notebook computer creates the first VD, as (b) in FIG. 10B.
  • the first VD is used to project the display information in the first VD to the target device (ie, the tablet computer in FIG. 10A ) for display.
  • the display parameters of the first VD match the target device (ie, tablet) display parameters.
  • the screen display orientation of the first VD is consistent with the current screen display orientation of the target device, and/or the aspect ratio of the first VD is equal to the aspect ratio of the target device.
  • the main device determines that the current screen display orientation of the target device is a vertical screen
  • the first VD is a vertical screen.
  • the local display screen is a horizontal screen
  • the first VD is a vertical screen, as shown in (b) in FIG. 10B .
  • the master device transfers the first application to run in the first VD. It can be understood that the first application is originally displayed on the local display screen, but is transferred to the first VD for display.
  • the first application originally displays the first interface on the local display screen, and the first interface includes display information A to adapt to the landscape state of the local display screen.
  • the first application displays the second interface in the first VD, the second interface includes display information A and display information B, and the display information A and display information B are tiled in the vertical direction to adapt to the vertical screen state of the first VD.
  • the local display screen is a horizontal screen
  • the first VD is a vertical screen
  • the first interface originally displayed by the first application on the local display screen is suitable for horizontal screen display but not for vertical screen display, so the first application is transferred to the second screen.
  • For a VD adjust the first interface to the second interface, and the second interface is adapted to the vertical screen display of the first VD.
  • the first VD sends the second interface to the target device. After the first application is transferred from the local display to the first VD, the interface of the second application is displayed on the local display.
  • the screen of the target device may rotate, such as switching from portrait to landscape.
  • a screen rotation instruction is sent to the main device, and the instruction instructs the target device to switch to a horizontal screen.
  • the master device adjusts the screen display direction of the first VD to be landscape based on the instruction.
  • the first application will adjust the second interface to the third interface to adapt to the landscape display of the first VD.
  • the third interface displays less information than the second interface.
  • the first VD sends the third interface to the target device.
  • the master device adjusts the screen display direction of the first VD to be landscape based on the instruction.
  • the first application will adjust the second interface to the fourth interface.
  • the display information layout of the fourth interface is different from that of the second interface.
  • the display information A and B in the second interface are vertically tiled, and the display information A and B in the fourth interface are horizontally tiled.
  • the first VD sends the fourth interface to the target device.
  • 10A to 10B can be applied to the second application scenario above, corresponding to case 2, that is, the sending end is a horizontal screen, and the receiving end is a vertical screen. It can be understood that the same principle applies to the fourth application scenario (corresponding to case 4, that is, the sending end is a vertical screen and the receiving end is a horizontal screen), so in order to save space, it is not repeated.
  • FIG. 11 is a schematic flowchart of a display method provided by an embodiment of the present application. As shown in Figure 11, the process includes:
  • connection modes between the host device and the target device including wired connection and wireless connection, such as Bluetooth, wireless fidelity (wireless fidelity, WIFI), near field communication (near field communication, NFC) and other connection methods.
  • wireless connection such as Bluetooth, wireless fidelity (wireless fidelity, WIFI), near field communication (near field communication, NFC) and other connection methods.
  • WIFI wireless fidelity
  • NFC near field communication
  • the target device sends a screen display direction to the master device.
  • the target device may actively send the screen display direction to the master device. For example, after the target device detects that it is connected to the main device, it automatically sends the screen display direction to the main device. It can be understood that before this, the target device can detect the screen display direction of the local machine. There are many specific detection methods, such as detecting the screen display direction by collecting sensor data through a motion sensor (such as a gyroscope, etc.). The application examples are not limited.
  • the target device sends the screen display direction to the main device after receiving the request sent by the main device for requesting the screen display direction. That is, after the target device detects that it is connected to the master device, it temporarily does not send its screen display direction to the master device, and sends the screen display direction to the master device after receiving a request from the master device.
  • the target device sending the screen display direction to the master device may include: the target device sending an instruction to the master device, and the instruction carries instruction information.
  • the indication information may occupy 1 bit. For example, when the indication information is 1, it means that the screen display direction is horizontal; when the indication information is 0, it means that the screen display direction is vertical screen.
  • the target device may send the screen display direction to the main device in various ways, for example, if the main device is connected to the target device by wire, then send it by wire; if the main device and the target device are connected wirelessly, then by wireless Sending, for example, Bluetooth, WIFI, NFC and other wireless sending.
  • S1102 may not be executed, so it is represented by a dotted line in the figure.
  • the main device displays the first interface of the first application.
  • S1103 may or may not be executed, so it is represented by a dotted line in the figure.
  • the main device currently displays the main interface, and the main device may respond to the application screen casting operation to cast the first interface of the first application to the target device. That is to say, the interface projected by the main device may be the current display interface of the main device, or may not be the current display interface of the main device.
  • the master device receives an operation of projecting a screen to the target device.
  • the operation of casting the screen to the target device may be a dragging operation on the first interface, and the dragging operation may move the first interface out of the display screen of the main device and into the display screen of the target device (refer to FIG. 9A above) .
  • the master device judges whether the screen display directions of the master device and the target device are consistent, if they are consistent, execute S1106 and S1107, and if not, execute S1108 and S1109.
  • the master device sends the first interface of the first application to the target device.
  • the target device displays the first interface.
  • the first interface is adapted to the screen display direction of the master device, if the screen display direction of the master device and the target device are consistent, then the first interface is also adapted to the screen display direction of the target device, so the master device sends the first interface For the target device, there is no need to make adjustments to the first interface.
  • both the notebook computer and the tablet computer are landscape-oriented (screen display directions are the same), and when the notebook computer displays the first interface, it responds to the screen-casting operation and projects the first interface to the tablet computer.
  • the master device sends the second interface of the first application to the target device.
  • the target device displays the second interface.
  • the first interface is adapted to the screen display direction of the master device, and the screen display direction of the master device is inconsistent with that of the target device, the first interface does not adapt to the screen display direction of the target device, so the master device can adjust the first interface to The second interface, sending the second interface to the target device.
  • the notebook computer is in landscape orientation
  • the tablet computer is in portrait orientation (the display directions of the screens are inconsistent).
  • the notebook computer displays the first interface, it responds to the screen-casting operation and projects the second interface to the tablet computer.
  • the master device displays the interface of the second application.
  • the interface of the second application is displayed in the foreground of the main device, that is, the first application is switched to run in the background of the main device.
  • S1110 is an optional step, which may or may not be performed, so S1110 is represented by a dotted line in the figure.
  • the main device casts the first interface of the first application, it may still display the first interface of the first application, and when detecting an operation for switching the first application to the background, display the interface of the second application.
  • the target device detects a screen rotation operation.
  • the screen rotation operation is used to switch the target device from landscape to portrait or from portrait to landscape.
  • the target device sends a screen rotation command to the master device.
  • the screen rotation instruction is used to instruct the target device to switch from landscape to portrait or from portrait to landscape.
  • the target device sending the screen rotation instruction to the master device may include: the target device sending an instruction to the master device, and the instruction carries an indication information.
  • the indication information may occupy 1 bit. For example, when the target device is switched from portrait to landscape, the indication information is 1, which means that the current screen display direction is landscape (that is, switching from portrait to landscape). When the target device switches from landscape to portrait, the indication information is 0, which means that the current screen display direction is portrait (that is, switching from landscape to portrait).
  • the target device can send the screen rotation instruction to the main device in various ways, for example, if the main device is connected to the target device by wire, it will be sent in a wired manner; if the main device and the target device are connected wirelessly, it will be sent by wireless Sending, for example, Bluetooth, WIFI, NFC and other wireless sending.
  • wireless Sending for example, Bluetooth, WIFI, NFC and other wireless sending.
  • the main device adjusts the interface of the first application to the third interface or the fourth interface based on the screen rotation instruction.
  • S1106 and S1107 are executed, that is, the first application currently displays the first interface, then the first interface is adjusted to the third interface or the fourth interface, please refer to FIG. 9A above. If S1108 and S1109 were previously performed, that is, the first application currently displays the second interface, then the second interface is adjusted to the third interface or the fourth interface, see FIG. 10A above.
  • the master device sends the display information of the third interface or the fourth interface to the target device.
  • the target device displays the third interface or the fourth interface.
  • the screen projection interface on the target device changes from the first interface to the third interface or the fourth interface to adapt to the portrait display of the target device.
  • the screen projection interface on the target device changes from the second interface to the third or fourth interface to adapt to the landscape display of the target device.
  • the display method provided by this application includes: the master device detects a screen projection operation (S1104), and in response to the operation, the master device The display information of the first interface of the first application in the device is sent to the target device (S1106), and the target device displays the first interface (S1107).
  • the target device detects a screen rotation operation (S1111).
  • the target device sends a screen rotation instruction to the host device (S1112).
  • the master device adjusts the interface of the first application to be the third interface or the fourth interface in response to the instruction (S1113).
  • the master device sends the display information of the third interface or the fourth interface to the target device (S1114), and the target device displays the third interface or the fourth interface (S1115).
  • FIG. 12 is another schematic flowchart of the display method provided by the embodiment of the present application.
  • the flow shown in FIG. 12 can also be understood as a refinement of the flow shown in FIG. 11 .
  • the process includes:
  • the target device sends a screen display direction to the master device.
  • the local display screen of the master device displays the first interface of the first application.
  • the master device receives an operation of projecting a screen to the target device.
  • the master device creates a first VD, and the screen display direction of the first VD is consistent with the screen display direction of the target device.
  • the first VD created by the master device is a landscape screen.
  • the target device is a landscape screen
  • the first VD created by the master device is a vertical screen.
  • the master device judges whether the display direction of the local display screen is consistent with that of the screen of the first VD. If they are consistent, execute S1207 to S1209, and if not, execute S1210 to S1212.
  • the first application is transferred from the local display screen to the first VD, and the first application displays a first interface in the first VD.
  • the first VD sends the first interface of the first application to the target device.
  • the target device displays the first interface.
  • the first interface is adapted to the screen display direction of the local display screen, if the local display screen is consistent with the screen display direction of the first VD, then the first interface is also adapted to the screen display direction of the first VD, so the first application When transferring to the first VD, the first interface is still displayed, and there is no need to adjust the first interface.
  • the first interface is displayed.
  • the first VD projects the first interface to the target device for display. Because the screen display direction of the first VD is consistent with the target device, the first interface projected by the first VD is adapted to the screen display direction of the target device.
  • the first application is transferred from the local display screen to the first VD, and the first application displays the second interface in the first VD.
  • the first VD sends the second interface of the first application to the target device.
  • the target device displays the second interface.
  • the first interface is adapted to the screen display direction of the local display screen, if the local display screen is inconsistent with the screen display direction of the first VD, then the first interface does not adapt to the screen display direction of the first VD, so the first application transfers When reaching the first VD, the second interface is displayed to adapt to the screen display direction of the first VD.
  • the second interface is displayed.
  • the first VD projects the second interface to the target device for display. Because the screen display direction of the first VD is consistent with the target device, the second interface projected by the first VD is adapted to the screen display direction of the target device.
  • the local display screen of the master device displays the interface of the second application.
  • S1213 is an optional step, which may or may not be performed, so S1213 is represented by a dotted line in the figure.
  • the local display screen can still display the first interface of the first application, and when an operation for switching the first application to the background is detected, the local display screen displays the first interface of the first application. 2. Application interface.
  • the target device detects screen rotation.
  • the target device sends a screen rotation instruction to the master device.
  • the master device adjusts the screen display direction of the first VD based on the screen rotation instruction.
  • the first application adjusts the display interface of the first application in the first VD to be the third interface or the fourth interface.
  • the first application running in the first VD adaptively adjusts its display interface.
  • the interface of the first application in the first VD changes to the third interface or the fourth interface.
  • the first VD sends the third interface or the fourth interface to the target device.
  • the target device displays the third interface or the fourth interface.
  • the display method provided by this application includes: the master device detects a screen projection operation (S1204), and in response to the operation the master device The first VD is created, and the screen display direction of the first VD is consistent with that of the target device (S1205).
  • the master device transfers the first application to run in the first VD, and the first application displays a first interface in the first VD (S1207).
  • the first VD sends the display information of the first interface to the target device (S1208).
  • the target device displays the first interface (S1209).
  • the target device detects a screen rotation operation (S1214).
  • the target device sends a screen rotation instruction to the host device (S1215).
  • the master device adjusts the screen display direction of the first VD to be consistent with the rotated screen display direction of the target device (S1216).
  • the first application adjusts its display interface to the third interface or the fourth interface in response to the adjustment of the screen display direction of the first VD ( S1217 ).
  • the first VD sends the display information of the third interface or the fourth interface to the target device (S1218), and the target device displays the third interface or the fourth interface (S1219).
  • the second embodiment takes mirror projection as an example.
  • the following describes the application scenarios of mirroring screen projection.
  • the sending end may have a horizontal or vertical screen, and the receiving end may also have a horizontal or vertical screen
  • the sending end is a horizontal screen, and the receiving end is a horizontal screen.
  • the sending end is a horizontal screen, and the receiving end is a vertical screen.
  • the sending end is a vertical screen, and the receiving end is a vertical screen.
  • the sending end is a vertical screen, and the receiving end is a horizontal screen. Therefore, the following four application scenarios are included, respectively corresponding to the above four situations.
  • This application scenario corresponds to the previous case 1, where the sending end is a horizontal screen and the receiving end is a horizontal screen.
  • Interface 1701 is, for example, an interface of a video playing application.
  • the mobile phone detects the screen mirroring operation, it sends the display information of the interface 1701 to the tablet computer, and the tablet computer displays the interface 1701, as shown in (b) in FIG. 13A .
  • the mobile phone sends the display information of the interface 1701 to the tablet computer, it will judge whether the screen display direction of the tablet computer is horizontal or vertical, and determine whether it is necessary to project the screen to the tablet computer according to the screen display direction of the tablet computer. interface (namely interface 1701) to make adjustments.
  • the sender sends the foreground display interface of the sender to the receiver for display in response to the screen projection operation, and does not judge whether it is necessary to update the image to be displayed based on the current screen display direction of the receiver.
  • the screen projection to the receiver interface is adjusted. Therefore, in the current screen projection technology, the sender responds to the mirror image projection operation, and the interface of the screen projection to the receiver does not necessarily adapt to the current screen display direction of the receiver.
  • the screen projection interface changes from interface 1701 to interface 1702 .
  • the interface on the mobile phone also changes to interface 1702, as shown in (d) in FIG. 13A. That is to say, although the mobile phone maintains the posture of the horizontal screen (the horizontal screen is placed), as the receiving end (ie, the tablet computer) switches from the horizontal screen to the vertical screen, the mobile phone also enters the vertical screen mode.
  • This application scenario corresponds to the previous case 2, where the sending end is a horizontal screen and the receiving end is a vertical screen.
  • the mobile phone As shown in (a) of FIG. 13B , the mobile phone is currently in a horizontal screen state and displays an interface 1701 . At this time, if the mobile phone detects the screen mirroring operation, it sends the display information of the interface 1702 to the tablet computer, and the tablet computer displays the interface 1702, as shown in (b) in FIG. 13B .
  • the mobile phone Please understand in conjunction with Figure 13A and Figure 13B that in Figure 13A, the mobile phone sends the display information of interface 1701 to the tablet in response to the mirroring operation, and in Figure 13B, the mobile phone sends the interface to the tablet in response to the mirroring operation 1702 display information.
  • the screen projection interface changes from interface 1702 to interface 1701 .
  • the interface on the mobile phone also changes to interface 1701, as shown in (e) in FIG. 13B. That is to say, as the receiving terminal (i.e. tablet computer) switches from portrait to landscape, the mobile phone also switches from portrait to landscape.
  • This application scenario corresponds to the previous situation 3, the sending end is a vertical screen, and the receiving end is a vertical screen.
  • the mobile phone is currently in a vertical screen state and an interface 1702 is displayed.
  • the mobile phone detects the screen mirroring operation, it sends the display information of the interface 1702 to the tablet computer, and the tablet computer displays the interface 1702, as shown in (b) in FIG. 13C .
  • the mobile phone sends the display information of the interface 1702 to the tablet computer, it is determined that the tablet computer is a vertical screen, so there is no need to adjust the interface 1702, and the display information of the interface 1702 is directly sent to the tablet computer, because the interface 1702 itself is It is suitable for vertical screen display (because the mobile phone is a vertical screen display interface 1702).
  • the screen projection interface changes from interface 1702 to interface 1701 .
  • the interface on the mobile phone also changes to interface 1701, as shown in (d) in FIG. 13C. That is to say, although the mobile phone maintains the posture of the vertical screen, as the receiving end (ie, the tablet computer) switches from the vertical screen to the horizontal screen, the mobile phone also enters the horizontal screen mode.
  • This application scenario corresponds to the previous case 4, where the sending end is a vertical screen and the receiving end is a horizontal screen.
  • the mobile phone is currently in a vertical screen state and displays an interface 1702 .
  • the mobile phone detects the screen mirroring operation, it sends the display information of the interface 1701 to the tablet computer, and the tablet computer displays the interface 1701, as shown in (b) in FIG. 13D .
  • the mobile phone determines that the current screen display orientation of the tablet computer is landscape, and the interface 1702 is not suitable for landscape display, so the interface 1702 is adjusted to interface 1701, and the interface 1701 is sent to the tablet computer.
  • the mobile phone projects the interface 1701, the mobile phone also displays the interface 1701, as shown in (c) in FIG. 13D.
  • the screen projection interface changes from interface 1701 to interface 1702 .
  • the interface on the mobile phone also changes to interface 1702, as shown in (e) in FIG. 13D.
  • the mobile phone displays the first interface.
  • the first interface may be, for example, interface 1702 in FIG. 13D , or other interfaces.
  • the first interface includes display information A and display information B. If the first interface is interface 1702, the display information A may be a video playback window, and the display information B may be information about media titles and collection buttons.
  • the tablet computer displays the main interface.
  • the phone is connected with the tablet.
  • the connection may be a wired or wireless connection.
  • the mobile phone can identify whether the current screen orientation of the tablet computer is landscape or portrait.
  • the tablet computer after the tablet computer is connected to the mobile phone, it can actively report its current screen display direction to the mobile phone; or, the mobile phone can send a request to the tablet computer for the current screen display direction of the tablet computer, and the tablet computer responds to the request Returns the current screen display orientation.
  • the mobile phone When the mobile phone detects the screen mirroring operation (for example, the operation of clicking the screen projection button in the sliding notification bar interface or pulling up the control center interface), it will display the interface shown in (c) in Figure 14, which includes the surrounding The identity of the device.
  • the display information of the second interface is sent to the tablet computer, and the tablet computer displays the second interface, as shown in (d) in FIG. 14 .
  • the mobile phone determines that the tablet computer is currently in a horizontal screen state, and the first interface is not suitable for horizontal screen display, the mobile phone adjusts the first interface to the second interface and sends the second interface to the tablet computer.
  • the second interface displays less information than the first interface.
  • the second interface only includes a video playback window, as shown in (b) in FIG. 13D .
  • the mobile phone After the mobile phone sends the second interface to the tablet computer, the mobile phone also displays the second interface, as shown in (e) in FIG. 14 . That is to say, the mobile phone is originally in portrait mode and displays the first interface.
  • the mobile phone adjusts the first interface to the second interface, and projects the second interface to the tablet computer.
  • the mobile phone also switches from the portrait mode to the landscape mode to display the second interface.
  • the projection interface on the tablet changes from the second interface to the first interface, that is, more information is displayed, and the corresponding adjustment on the mobile phone is
  • the first interface is as (g) in FIG. 14 . Therefore, the mobile phone is originally in landscape mode, and when the target device (i.e. tablet computer) is switched from landscape to portrait mode, the mobile phone is also adjusted to portrait mode accordingly.
  • FIG. 15 is the background processing process corresponding to FIG. 14 .
  • the master device ie the mobile phone in Figure 14
  • the master device includes a local display screen.
  • the local display screen is in a vertical screen mode and displays the first interface.
  • the first interface includes display information A and display information B.
  • the master device creates the first VD.
  • the first VD is used to project the display information in the first VD to the target device.
  • the display parameters of the first VD match the display parameters of the target device, for example, the screen display direction of the first VD is consistent with the screen display direction of the target device, and/or, the aspect ratio of the first VD matches the aspect ratio of the target device ,etc. For example, if the target device is a horizontal screen, then the first VD is a horizontal screen.
  • the display information of the local display screen needs to be mapped to the first VD, so that the first VD sends the display information in the first VD to the target device.
  • the first VD is a horizontal screen (because the target device is a horizontal screen), and the local display screen is a vertical screen. Therefore, when the local display screen is mapped to the first VD to display information, the first interface on the local display screen can be adjusted to the second interface, as shown in (c) in Figure 15.
  • the second interface is adapted to horizontal screen display, such as the second interface
  • the interface includes display information A.
  • the local display screen maps the second interface to the first VD.
  • the first VD projects the second interface to the target device. That is to say, in mirror projection, the screen display direction of the first VD is consistent with the screen display direction of the target device.
  • the local display screen is inconsistent with the screen display direction of the first VD, adjust the interface of the local display screen to The screen display direction of the first VD, in this way, the interface projected to the target device is adapted to the screen display direction of the target device.
  • the screen of the target device may rotate. For example, switching from landscape to portrait.
  • the target device switches from the landscape to the portrait, it sends a screen rotation instruction to the master device, which is used to instruct the target device to switch to the portrait.
  • the host device switches the first VD from a landscape orientation to a portrait orientation according to the screen rotation orientation.
  • the local display screen also switches to the vertical screen mode, so the interface on the local display screen is switched from the second interface to the third interface, and the third interface is mapped to the first VD.
  • the first VD sends the third interface to the target device.
  • FIG. 16 is a schematic flowchart of a display method provided by an embodiment of the present application. This method is applicable to screen mirroring. As shown in Figure 16, the process includes:
  • the master device is connected to the target device.
  • the target device sends a screen display direction to the master device.
  • the main device displays the first interface of the first application.
  • the master device receives an operation of projecting a screen to the target device.
  • the master device judges whether the screen display directions of the master device and the target device are consistent, if they are consistent, execute S2006 to S2007, and if not, execute S2008 and S2010.
  • the master device sends the first interface of the first application to the target device.
  • the target device displays the first interface.
  • the first interface is adapted to the screen display direction of the master device, if the screen display direction of the master device is the same as that of the target device, then the first interface is also adapted to the screen display direction of the target device, so the master device sends the first interface to The target device does not need to be adjusted on the first interface.
  • the main device adjusts the display direction of the local screen and displays the second interface of the first application.
  • the master device sends the second interface of the first application to the target device.
  • the target device displays the second interface.
  • the first interface is adapted to the screen display orientation of the master device, if the screen display orientation of the master device and the target device are inconsistent, then the first interface does not adapt to the screen display orientation of the target device, so the master device adjusts the screen display orientation of the local device to match The target device is consistent, and the first interface is adjusted to the second interface, and the second interface is sent to the target device.
  • the target device detects screen rotation.
  • the target device sends a screen rotation instruction to the master device.
  • the main device adjusts the display direction of the local screen based on the screen rotation command and displays the third interface of the first application.
  • the master device sends the third interface to the target device.
  • the target device displays a third interface.
  • the display method provided by the present application includes: displaying the first interface of the first application on the local display screen of the master device (S2003).
  • the main device detects a screen casting operation (S2004), and in response to the operation, the main device sends display information of the first interface of the first application to the target device (S2006).
  • the target device displays the first interface (S2007).
  • the target device detects a screen rotation operation (S2011).
  • the target device sends a screen rotation instruction to the master device (S2012).
  • the host device adjusts the screen display direction of the local device to be consistent with the screen display direction of the target device and displays the third interface of the first application (S2013).
  • the master device sends the display information of the third interface to the target device (S2014), and the target device displays the third interface (S2015). That is to say, the screen display direction of the master device switches with the switch of the screen display direction of the target device, and remains consistent with the screen display direction of the target device, so that the display information projected from the master device to the target device adapts to the screen of the target device Show directions.
  • FIG. 17 is another schematic flow chart of the display method provided by the embodiment of the present application.
  • the process shown in FIG. 17 can also be understood as a refinement of the process shown in FIG. 16 .
  • the process includes:
  • the target device sends a screen display direction to the master device.
  • the local display screen of the master device displays the first interface of the first application.
  • the master device receives a screen projection operation.
  • the master device creates a first VD, and the screen display direction of the first VD is consistent with the screen display direction of the target device.
  • the master device judges whether the display direction of the local display screen is consistent with that of the screen of the first VD. If they are consistent, execute S2107 to S2109, and if not, execute S2110 to S2113.
  • the local display screen maps the first interface of the first application to the first VD.
  • the first VD sends the first interface of the first application to the target device.
  • the target device displays the first interface.
  • the master device adjusts the screen display direction of the local display screen to be consistent with the first VD.
  • the first application displays the second interface on the local display screen, and the local display screen maps the second interface to the first VD.
  • the first VD sends the second interface of the first application to the target device.
  • the target device displays the second interface.
  • the target device detects screen rotation.
  • the target device sends a screen rotation command to the master device.
  • the host device adjusts the screen display orientation of the first VD to be consistent with that of the target device based on the screen rotation instruction.
  • the master device adjusts the screen display direction of the local display screen to be consistent with the first VD.
  • the first application displays the third interface on the local display screen, and the local display screen maps the third interface to the first VD.
  • the first VD sends the third interface to the target device.
  • the target device displays a third interface.
  • the display method provided by the present application includes: displaying the first interface of the first application on the local display screen of the master device (S2103).
  • the main device detects a screen casting operation (S2104), and in response to the operation, the main device creates a first VD, and the screen display direction of the first VD is consistent with that of the target device (S2105).
  • the local display screen of the master device maps the first interface to the first VD (S2107).
  • the first VD sends the display information of the first interface to the target device (S2108).
  • the target device displays the first interface (S2109).
  • the target device detects a screen rotation operation (S2114).
  • the target device sends a screen rotation command to the host device (S2115).
  • the master device adjusts the screen display direction of the first VD to be consistent with the rotated screen display direction of the target device (S2116).
  • the main device adjusts the screen display reverse of the local display screen to be consistent with the first VD (S2117).
  • the first application displays the third interface on the local display screen, and the local display screen maps the third interface to the first VD (S2118).
  • the first VD sends the display information of the third interface to the target device (S2119), and the target device displays the third interface (S2120).
  • FIG. 18 is a schematic structural diagram of an electronic device 2200 provided by an embodiment of the present application.
  • the electronic device 2200 may be the above-mentioned master device or target device.
  • the electronic device 2200 may include: one or more processors 2201; one or more memories 2202; a communication interface 2203, and one or more computer programs 2204, and the above-mentioned devices may communicate through one or more bus 2205 connection.
  • the one or more computer programs 2204 are stored in the memory 2202 and configured to be executed by the one or more processors 2201, and the one or more computer programs 2204 include instructions.
  • the above instructions may be used to execute the relevant steps of the master device in the above corresponding embodiments.
  • the communication interface 2203 is used to realize the communication between the master device and other devices (such as the target device), for example, the communication interface may be a transceiver.
  • the embodiment of the present application also provides a communication system.
  • the communication system includes a first electronic device and a second electronic device.
  • the first electronic device may be the above-mentioned master device
  • the second electronic device may be the above-mentioned target device.
  • the first electronic device may be a device with a display screen, such as a mobile phone, a tablet computer, a PC, and a watch.
  • the second electronic device may be a large-screen device such as a tablet computer, a PC, or a television.
  • the structures of the first electronic device and the second electronic device can be referred to as shown in FIG. 18 . For example, when the electronic device 2200 shown in FIG.
  • the first electronic device when the instructions of one or more computer programs 2204 are executed by the processor, the first electronic device executes the first electronic device (That is, the steps of the master device).
  • the electronic device 2200 shown in FIG. 18 is a second electronic device, when the instructions of one or more computer programs 2204 are executed by the processor, the second electronic device executes the second electronic device ( i.e. the target device).
  • the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device (such as a host device or a target device) as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above-mentioned functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • the terms “when” or “after” may be interpreted to mean “if” or “after” or “in response to determining" or “in response to detecting ".
  • the phrases “in determining” or “if detected (a stated condition or event)” may be interpreted to mean “if determining" or “in response to determining" or “on detecting (a stated condition or event)” or “in response to detecting (a stated condition or event)”.
  • relational terms such as first and second are used to distinguish one entity from another, without limiting any actual relationship and order between these entities.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
  • a magnetic medium for example, a floppy disk, a hard disk, or a magnetic tape
  • an optical medium for example, DVD
  • a semiconductor medium for example, a Solid State Disk (SSD)

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)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种显示方法与电子设备。该方法包括:第一电子设备响应于第一操作,将第一应用的第一界面的显示信息发送给第二电子设备;第二电子设备显示第一界面;第二电子设备响应于屏幕旋转操作,向第一电子设备指示其屏幕旋转方向;第一电子设备向第二电子设备发送第一应用的第二界面的显示信息;第二界面的显示信息多于或少于第一界面的显示信息,和/或,第二界面与第一界面的显示信息布局方式不同;第二电子设备显示第二界面。通过这种方式,第一电子设备向第二电子设备投屏的过程中,投屏到第二电子设备上的界面可以随着第二电子设备的屏幕旋转而改变,以适配第二电子设备屏幕显示方向,有助于提升投屏体验。

Description

一种显示方法与电子设备
相关申请的交叉引用
本申请要求在2021年09月27日提交中国专利局、申请号为202111133943.8、申请名称为“一种显示方法与电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种显示方法与电子设备。
背景技术
投屏技术是一种时下正在兴起的技术,是指一个电子设备可以将其显示屏上的显示界面投屏到另一个电子设备上显示。比如,手机上的文档界面可以投屏在笔记本电脑或平板电脑上显示,等等。
以笔记本电脑向平板电脑投屏为例,如图1,笔记本电脑上显示第一界面。当笔记本电脑检测到向平板电脑投屏(如,镜像投屏)操作时,向平板电脑发送第一界面的显示信息,平板电脑(处于横屏)显示第一界面。由于平板电脑具有屏幕旋转功能,用户操作平板电脑时可能会将平板电脑从横屏切换到竖屏。继续如图1,当平板电脑从横屏切换到竖屏时,为了适配竖屏显示,平板电脑上投屏来的第一界面缩小。这样,平板电脑上会出现黑屏区域,而且,第一界面缩小时用户查看起来比较费劲,体验较差。
发明内容
本申请的目的在于提供了一种显示方法与电子设备,用于提升投屏体验。
第一方面,提供一种显示方法,应用于包括第一电子设备和第二电子设备的***,所述方法包括:所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备;所述第二电子设备显示所述第一界面;所述第二电子设备响应于屏幕旋转操作,向所述第一电子设备发送指令,所述指令用于指示所述第二电子设备的屏幕旋转方向,所述屏幕旋转方向包括从横屏切换到竖屏或从竖屏切换到横屏;所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息;所述第二界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同;所述第二电子设备显示所述第二界面。
也就是说,当主设备(即第一电子设备)向目标设备(即第二电子设备)投屏后,投屏到目标设备上的界面可以随着目标设备的屏幕旋转而变化,这种变化可以包括投屏到目标设备上的界面中显示信息的增加、减少、布局方式的调整等等,总之投屏到目标设备上的界面可以适配目标设备的屏幕旋转,提升投屏体验。
在一种可能的设计中,所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第二界面上的显示信息多于所述第一界面的显示信息,和/或,所述第二界面与所 述第一界面的显示信息布局方式不同;所述第二电子设备的屏幕旋转方式为从竖屏切换到横屏的情况下,所述第二界面上的显示信息少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同。
示例性的,目标设备(即第二电子设备)可以从横屏切换到竖屏或从竖屏切换到横屏,在从横屏切换到竖屏时,投屏到目标设备上的界面中显示信息增加或者显示信息布局调整以适配竖屏显示,在从竖屏切换到横屏时,投屏到目标设备的界面中显示信息减少或布局调整已适配横屏显示。总之投屏到目标设备上的界面可以适配目标设备的屏幕旋转,提升投屏体验。
在一种可能的设计中,所述第二界面上的显示信息多于所述第一界面的显示信息,包括:所述第二界面包括所述第一界面的全部显示信息,还包括第三界面的部分或全部显示信息,所述第三界面包括:所述第一界面的下一界面、上一界面、***默认界面或用户指定界面中的至少一种。
也就是说,当目标设备(即第二电子设备)从横屏切换到竖屏时,投屏在目标设备上的界面中的显示信息增多,可以增加下一界面或上一界面的显示信息等,这样不仅可以适配目标设备的屏幕旋转,还可以让用户在目标设备上查看到主设备的更多的显示信息,体验较好。
在一种可能的设计中,所述第二界面与所述第一界面的显示信息布局方式不同,包括:在所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在竖直方向上平铺显示;在所述第二电子设备的屏幕旋转方向为从竖屏切换到横屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息和所述第二显示信息在竖直方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示。
举例来说,目标设备(即第二电子设备)处于横屏时,目标设备上由主设备投屏来的界面中显示信息A在左,显示信息B在右。当目标设备从横屏切换到竖屏时,投屏来的界面中显示信息A在上,显示信息B在下。通过这种方式,投屏到目标设备上的界面中的显示信息的布局方式可以随着目标设备的屏幕旋转而变化,以适配目标设备的屏幕旋转。
在一种可能的设计中,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:所述第一电子设备显示所述第一界面;所述第一电子设备响应于所述第一操作,判断所述第一电子设备与所述第二电子设备的屏幕显示方向是否一致;在所述第一电子设备与所述第二电子设备的屏幕显示方向一致的情况下,将所述第一界面发送给所述第二电子设备。
也就是说,在本申请实施例中,主设备(即第一电子设备)向目标设备(即第二电子设备)投屏之前,可以判断目标设备与主设备的屏幕显示方向是否一致,如果一致,则主设备当前界面(即第一界面)可以投屏到目标设备上。比如,主设备当前是横屏且显示界面1,如果目标设备与主设备屏幕显示方向一致,那么主设备可以将界面1投屏到目标设备上,因为界面1已适配横屏显示。
在一种可能的设计中,在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备;其中,所述第四界面 的显示信息多于或少于所述第一界面的显示信息,和/或,所述第四界面与所述第一界面的显示信息布局方式不同。
也就是说,主设备(即第一电子设备)向目标设备(即第二电子设备)投屏之前,可以判断目标设备与主设备的屏幕显示方向是否一致,如果一致,则主设备当前界面(即第一界面)可以投屏到目标设备上。如果不一致,主设备当前界面需要调整到适配目标设备的屏幕显示方向的界面(即第四界面),然后将该界面投屏到目标设备上。通过这种方式,主设备向目标设备投出的首个界面就可以适配目标设备的屏幕显示方向,用户体验较好。
在一种可能的设计中,在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备,包括:
在所述第一电子设备处于横屏、所述第二电子设备处于竖屏的情况下,所述第四界面的显示信息多于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在竖直方向上平铺显示;
在所述第一电子设备处于竖屏、所述第二电子设备处于横屏的情况下,所述第四界面的显示信息少于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息和所述第四显示信息在竖直方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示。
举例来说,主设备(即第一电子设备)处于横屏、目标设备(即第二电子设备)处于竖屏。主设备显示第一界面,第一界面上显示信息A在左,显示信息B在右。由于目标设备处于竖屏,所以主设备向目标设备投屏的是第二界面,第二界面上显示信息A在上,显示信息B在下。通过这种方式,主设备向目标设备投出的首个界面就可以适配目标设备的屏幕显示方向,用户体验较好。
在一种可能的设计中,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:所述第一电子设备响应于所述第一操作,创建第一虚拟显示器VD,所述第一VD的屏幕显示方向与所述第二电子设备的当前屏幕显示方向一致;所述第一电子设备将所述第一应用转移到所述第一VD中运行;所述第一应用在所述第一VD中显示所述第一界面;所述第一VD将所述第一界面发送给所述第二电子设备。
在本申请实施例中,因为第一VD与目标设备的屏幕显示方向一致,第一应用在第一VD中运行时,可以根据第一VD的屏幕显示方向调整其显示界面,比如显示第一界面,然后第一VD将第一界面投屏到目标设备上。这样可以保证第一应用投屏到目标设备上的界面能够适配目标设备的屏幕显示方向,因为第一VD的屏幕显示方向与目标设备的屏幕显示方向一致。
在一种可能的设计中,所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息,包括:所述第一电子设备响应于所述指令,调整所述第一VD的屏幕显示方向与所述第二电子设备旋转后的屏幕显示方向一致;所述第一应用响应于所述第一VD的屏幕显示方向的调整,将所述第一界面调整为所述第二界面;所述第一VD将所述第二界面发送给所述第二电子设备。
也就是说,第一VD的屏幕显示方向随着目标设备的屏幕显示方向的变化而变化,当第一VD的屏幕显示方向变化时,运行在第一VD中的第一应用的界面适应性调整(比如,从第一界面调整为第二界面),然后第一VD将调整后的界面投屏到目标设备上,这样可以保证投屏界面随着目标设备的屏幕显示方向的变化而变化。
在一种可能的设计中,所述方法还包括:所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备之后,所述方法还包括:所述第一电子设备显示第二应用的界面;或者,显示所述第一界面。
也就是说,主设备投出第一应用的第一界面之后可以显示第二应用的界面,或者显示第一界面。如果主设备投出第一应用的第一界面之后显示第二应用的界面称之为应用投屏,如果主设备投出第一应用的第一界面之后,显示第一界面称之为镜像投屏。因此,本申请的技术方案可以适用于应用投屏也可以适用于镜像投屏。
第二方面,还提供一种显示方法,应用于第一电子设备,所述方法包括:
所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给第二电子设备;
所述第一电子设备接收来自所述第二电子设备的指令,所述指令用于指示所述第二电子设备的屏幕旋转方向,所述屏幕旋转方向包括从横屏切换到竖屏或从竖屏切换到横屏;
所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息;所述第二界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同。
在一种可能的设计中,所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第二界面上的显示信息多于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同;
所述第二电子设备的屏幕旋转方式为从竖屏切换到横屏的情况下,所述第二界面上的显示信息少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同。
在一种可能的设计中,所述第二界面上的显示信息多于所述第一界面的显示信息,包括:
所述第二界面包括所述第一界面的全部显示信息,还包括第三界面的部分或全部显示信息,所述第三界面包括:所述第一界面的下一界面、上一界面、***默认界面或用户指定界面中的至少一种。
在一种可能的设计中,所述第二界面与所述第一界面的显示信息布局方式不同,包括:
在所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在竖直方向上平铺显示;
在所述第二电子设备的屏幕旋转方向为从竖屏切换到横屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息和所述第二显示信息在竖直方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示。
在一种可能的设计中,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:
所述第一电子设备显示所述第一界面;
所述第一电子设备响应于所述第一操作,判断所述第一电子设备与所述第二电子设备的屏幕显示方向是否一致;
在所述第一电子设备与所述第二电子设备的屏幕显示方向一致的情况下,将所述第一界面发送给所述第二电子设备。
在一种可能的设计中,所述方法还包括:在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备;其中,所述第四界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第四界面与所述第一界面的显示信息布局方式不同。
在一种可能的设计中,在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备,包括:
在所述第一电子设备处于横屏、所述第二电子设备处于竖屏的情况下,所述第四界面的显示信息多于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在竖直方向上平铺显示;
在所述第一电子设备处于竖屏、所述第二电子设备处于横屏的情况下,所述第四界面的显示信息少于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息和所述第四显示信息在竖直方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示。
在一种可能的设计中,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:
所述第一电子设备响应于所述第一操作,创建第一虚拟显示器VD,所述第一VD的屏幕显示方向与所述第二电子设备的当前屏幕显示方向一致;
所述第一电子设备将所述第一应用转移到所述第一VD中运行;
所述第一应用在所述第一VD中显示所述第一界面;
所述第一VD将所述第一界面发送给所述第二电子设备。
在一种可能的设计中,所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息,包括:
所述第一电子设备响应于所述指令,调整所述第一VD的屏幕显示方向与所述第二电子设备旋转后的屏幕显示方向一致;
所述第一应用响应于所述第一VD的屏幕显示方向的调整,将所述第一界面调整为所述第二界面;
所述第一VD将所述第二界面发送给所述第二电子设备。
在一种可能的设计中,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备之后,所述方法还包括:
所述第一电子设备显示第二应用的界面;或者,显示所述第一界面。
第三方面,还提供一种通信***,包括:第一电子设备和第二电子设备;
所述第一电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第一电子设备执行如上述第一方面所述的方法中第一电子设备的步骤;
所述第二电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第二电子设备执行如上述第一方面所述的方法中第二电子设备的步骤。
第四方面,还提供一种电子设备,包括:
处理器,存储器,以及,一个或多个程序;
其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如上述第二方面所述的方法步骤。
第五方面,还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第二方面所述的方法。
第六方面,还提供一种计算机程序产品,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面或第二方面所述的方法。
第七方面,还提供一种电子设备上的图形用户界面,所述电子设备具有显示屏、存储器、以及处理器,所述处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述第一方面或第二方面所述的方法时显示的图形用户界面。
第八方面,本申请实施例还提供一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行上述第一方面或第二方面的技术方案,本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
上述第二方面至第八方面的有益效果,请参见第一方面的有益效果,不重复赘述。
附图说明
图1为本申请一实施例提供的投屏过程的示意图;
图2为本申请一实施例提供的镜像投屏的示意图;
图3为本申请一实施例提供的应用投屏的示意图;
图4为本申请一实施例提供的笔记本电脑显示界面的示意图;
图5A为本申请一实施例提供的笔记本电脑向平板电脑投屏的一种示意图;
图5B为本申请一实施例提供的笔记本电脑向平板电脑投屏的另一种示意图;
图6A至图6B为本申请一实施例提供的两种应用场景的示意图;
图7A至图7B为本申请一实施例提供的另外两种应用场景的示意图;
图8为本申请一实施例提供的电子设备的示意图;
图9A至图9B为本申请一实施例提供的投屏方法的一种原理的示意图;
图10A至图10B为本申请一实施例提供的投屏方法的另一种原理示意图;
图11至图12为本申请一实施例提供的投屏方法的流程示意图;
图13A至图13D为本申请一实施例提供的应用场景的示意图;
图14至图15为本申请一实施例提供的投屏方法的原理示意图;
图16至图17为本申请一实施例提供的投屏方法的流程示意图;
图18为本申请一实施例提供的电子设备的结构示意图。
具体实施方式
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。
(1)应用程序(application,简称app),简称应用,为能够实现某项或多项特定功能的软件程序。通常,电子设备中可以安装多个应用,例如,即时通讯类应用、视频播放类应用、音频类应用、图像拍摄类应用等等。其中,即时通信类应用,例如可以包括短信应用、畅连应用、
Figure PCTCN2022117647-appb-000001
WhatsApp
Figure PCTCN2022117647-appb-000002
照片分享(Instagram)、Kakao
Figure PCTCN2022117647-appb-000003
等。图像拍摄类应用,例如可以包括相机应用(***相机或第三方相机应用)。视频播放类应用,例如可以包括
Figure PCTCN2022117647-appb-000004
Figure PCTCN2022117647-appb-000005
等等。音频播放类应用,例如可以包括Google
Figure PCTCN2022117647-appb-000006
Figure PCTCN2022117647-appb-000007
等等。以下实施例中提到的应用,可以是电子设备出厂时已安装的应用,也可以是用户在使用电子设备的过程中从网络下载或其他电子设备获取的应用。
(2)本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为明示或暗示相对重要性,也不能理解为明示或暗示顺序。
本申请实施例提供的显示方法适用于投屏场景。一般来说,投屏场景中包括发送端和接收端。发送端将显示信息发送给接收端进行显示。为了方便描述,本文将发送端称为主设备,将接收端称为目标设备。当然,除了主设备和目标设备之外,发送端和接收端还可以有其它称呼,比如,发送端是主动投屏设备,接收端是被动投屏设备;或者,发送端是主设备,接收端是辅设备;或者,发送端是源设备,接收端是目标设备;或者,发送端是第一电子设备,接收端是第二电子设备等等,本申请对此不作限定。其中,发送端和接收端的角色可以互换,即,发送端可以向接收端投屏,对应的,所述接收端也可以向所述发送端投屏。在本申请实施例中,接收端是能够进行屏幕旋转(如,横、竖屏切换)的设备,比如平板电脑、手机等。发送端可以具有屏幕旋转功能,也可以没有屏幕旋转功能。比如,发送端包括手机、平板电脑、PC、手机、手表等等。为了方便描述,下文主要以发送端是笔记本电脑或手机、接收端是平板电脑为例进行介绍。
投屏技术包括镜像投屏和应用投屏。
镜像投屏,是指发送端将本机显示屏上当前显示信息发送给接收端,接收端显示所述显示信息。这样的话,发送端和接收端可展示相同的画面,换言之,发送端当前显示什么样的内容就向接收端投屏什么样的内容。示例性的,请参见图2,为镜像投屏的过程的示意图。发送端(如,笔记本电脑)前台显示第一应用的界面A。此时,若发送端检测到向接收端(如,平板电脑)镜像投屏的操作(将在后文介绍),响应于该操作,发送端将前台显示信息发送给平板电脑。平板电脑上显示所述显示信息(如,第一应用的界面A)。当发送端前台显示信息发生变化,比如从界面A切换为界面B;对应的,接收端上的显示信息也变化,即从界面A切换为界面B。这种投屏技术,可以理解为,接收端显示屏是发送 端显示屏的镜像屏。
应用投屏与镜像投屏不同。简单来说,应用投屏场景中,接收端上由发送端投屏来的显示信息可以与发送端前台正在显示的显示信息不同。示例性的,请参见图3,为应用投屏过程的示意图。发送端(比如笔记本电脑)上显示第一应用的界面。此时,若发送端检测到向接收端(如,平板电脑)应用投屏的操作(将在后文介绍),将第一应用投屏到平板电脑上显示。发送端投出第一应用后,前台显示第二应用的界面。这种投屏技术,可以理解为,接收端显示屏作为发送端显示屏的扩展屏。
在一些实施例中,发送端向接收端投屏(包括镜像投屏或应用投屏)的过程中,接收端可能会发生屏幕旋转(比如,从横屏切换到竖屏或从竖屏切换到横屏)。当接收端屏幕旋转时,接收端上由发送端投来的界面(简称投屏界面)的尺寸会被调整以适配接收端的屏幕旋转。
为了方便理解,下文以发送端是笔记本电脑,接收端是平板电脑为例进行说明。
示例性的,如图4中的(a),笔记本电脑上显示浏览器应用的界面401(以界面401是华为官网的一个界面为例)。界面401中包括各种显示信息,比如文字(如,HUAWEI P50等)和图片(如,手机图片)。一般,网页所包含的显示信息比较多,受限于笔记本电脑的显示屏尺寸,无法同时将网页的所有显示信息全部在显示屏上显示完,所以通常笔记本电脑会显示用于查看网页的更多信息的按键。比如,图4中的(a)中,在界面401的右侧显示滑动块402。当笔记本电脑检测到针对滑动块402的下滑操作时,显示如图4中的(b)所示的界面403。界面403可以理解为网页(如,华为官网)产生的位于界面401的下一界面。因此,用户使用笔记本电脑浏览网页时,可以通过滑动块402查看网页的更多信息。
如图5A中的(a),假设笔记本电脑在显示界面401时,检测到向平板电脑镜像投屏的操作(将在后文介绍)时,响应于该操作,笔记本电脑向平板电脑(假设当前处于横屏状态)发送界面401的显示信息,平板电脑显示界面401,如图5A中的(b)。当平板电脑从横屏切换到竖屏时,其显示屏上的投屏界面(即界面401)的尺寸被调整。比如,如图5A中的(c),平板电脑从横屏切换到竖屏,平板电脑上界面401被缩小。这样,平板电脑上出现黑屏区域。这种方式会导致平板电脑显示资源的浪费,而且投屏界面被缩小用户看起来比较费劲,影响用户体验。另一种方式为,平板电脑从横屏切换到竖屏时,平板电脑上投屏界面被拉伸(或称为放大)到能够占满平板电脑的显示屏,如图5A中的(d)。这种方式,虽然没有造成显示资源浪费,但是却出现了投屏界面被拉伸而变形的情况,影响用户体验。因此,目前的镜像投屏技术中,发送端向接收端投屏过程中,如果接收端屏幕旋转(如,从横屏切换到竖屏),要么出现显示资源浪费的问题,要么出现画面被拉伸而变形的问题,体验差。
图5A是以镜像投屏为例,在应用投屏中同样也存在类似的问题。
如图5B中的(a),笔记本电脑显示界面401。当笔记本电脑检测到向平板电脑应用投屏的操作(将在后文介绍)时,向平板电脑(假设处于横屏状态)发送界面401的显示信息,平板电脑显示界面401,如图5B中的(b)。笔记本电脑向平板电脑投屏后显示主界面,如图5B中的(c)。平板电脑从横屏切换到竖屏时,其显示屏上投屏界面的尺寸被调整。比如,如图5B中的(d),平板电脑从横屏切换到竖屏,平板电脑上投屏来的界面401缩小。这样,平板电脑上出现黑屏区域,造成显示资源的浪费而且投屏界面被缩小用户看起来比较费劲。另一种方式为,平板电脑从横屏切换到竖屏时,平板电脑上投屏界面被拉伸 (或放大)到能够占满平板电脑的显示屏,如图5B中的(e)。这种方式投屏界面变形,影响用户体验。因此,目前的应用投屏技术中,也存在同样的问题,即发送端向接收端投屏过程中,如果接收端屏幕旋转(如,从横屏切换到竖屏),要么出现黑屏区域,要么出现画面变形。
无论是应用投屏还是镜像投屏,出现上述问题的原因在于:发送端向接收端投屏时,仅仅是将要投屏到接收端的界面作为一张图像发送给接收端进行显示。当接收端屏幕旋转时,图像被缩小或放大。当图像缩小时会出现黑屏区域,当图像放大时会变形。
为了提升投屏体验,本申请实施例提供一种显示方法。该显示方法适应于应用投屏场景。应用投屏请参见前文介绍。具体地,第一电子设备向第二电子设备应用投屏过程中,若第二电子设备发生屏幕旋转,第一电子设备响应于第二电子设备的屏幕旋转,对要投屏到第二电子设备的界面(简称投屏界面)作调整。这种调整不是将投屏界面作为一张图片进行简单的尺寸缩放,而是对投屏界面上显示信息的布局调整,和/或,对投屏界面上显示信息进行删减或增加等。第一电子设备将调整后的投屏界面发送给第二电子设备。第二电子设备显示所述调整后的投屏界面时,不会出现画面变形,也不会出现黑屏区域,投屏体验较好。
下面介绍本申请的应用场景。
考虑到发送端可能是横屏或竖屏,接收端也可能是横屏或竖屏,所以,存在多种情况。1、发送端是横屏、接收端是横屏。2、发送端是横屏、接收端是竖屏。3、发送端是竖屏、接收端是竖屏。4、发送端是竖屏、接收端是横屏。因此,下文介绍四种应用场景,分别对应上面的四种情况。
第一种应用场景
该应用场景以笔记本电脑(处于横屏状态)向当前正处于横屏状态的平板电脑应用投屏为例。对应前面的情况1,发送端是横屏、接收端是横屏。
如图6A中的(a),笔记本电脑显示界面401。此时,若笔记本电脑检测到向平板电脑应用投屏的操作(将在后文介绍),响应于该操作,向平板电脑发送界面401的显示信息,平板电脑上显示界面401,如图6A中的(b)。笔记本电脑投出界面401之后显示主界面,如图6A中的(c)。
需要说明的是,笔记本电脑向平板电脑发送界面401的显示信息之前,会判断平板电脑当前屏幕显示方向是横屏还是竖屏,根据平板电脑的屏幕显示方向决定是否需要对即将要投屏到平板电脑的界面(即界面401)作调整。比如,确定平板电脑当前屏幕显示方向是横屏时,不需要对界面401作调整,因为界面401本身是适合横屏显示的(因为笔记本电脑是横屏显示界面401的),所以,笔记本电脑直接将界面401的显示信息发送给平板电脑。值得说明的是,目前的应用投屏技术中,发送端响应于应用投屏操作,直接将发送端前台显示界面发送给接收端进行显示,并不会根据接收端当前屏幕显示方向判断是否需要对即将要投屏到接收端的界面作调整,所以目前的应用投屏技术中,发送端响应于应用投屏操作,投屏到接收端的界面不一定适配接收端当前屏幕显示方向。本申请实施例中,发送端向接收端投屏之前,可以根据接收端的屏幕显示方向判断是否需要对即将要投屏到平板电脑的界面作调整,所以投屏到接收端的界面一定适配接收端当前屏幕显示方向。
继续参见图6A中的(b),平板电脑显示投屏来的界面401的过程中,可能会发生屏 幕旋转,如,从横屏切换到竖屏。
一种方式为,平板电脑从横屏切换到竖屏时,平板电脑上投屏界面上的显示信息增多。如图6A中的(b)和(d),平板电脑从横屏切换到竖屏时,投屏界面由界面401变为界面501。界面501比界面401所包含的显示信息多。其中,增加的显示信息可以是界面401的上一界面、下一个界面、默认界面(比如,所述网页的主界面)或用户指定界面的显示信息。示例性的,请结合前文中的图4,界面501比界面401多出的显示信息(即虚线区域的显示信息)是界面401的下一界面403(见图4)中的显示信息。通过这种方式,当平板电脑从横屏切换到竖屏时,投屏界面上显示信息增多,不浪费显示资源,而且,用户可以获取更多的投屏信息,体验较好。
另一种方式为,平板电脑从横屏切换到竖屏时,投屏界面上显示信息不增多,而是布局方式调整。如图6A中的(b)和(e),平板电脑从横屏切到竖屏时,平板电脑上的投屏界面从界面401变为界面502。界面502与界面401的显示信息布局方式不同。比如,界面401中文字(比如HUAWEI P50等)在左侧,图片(如,手机图片)在右侧,而界面502中文字在上侧,图片在下侧。这种方式不会对投屏界面进行尺寸缩放,所以不会出现黑屏区域而且也不会出现画面变形。
第二种应用场景
第二种应用场景以笔记本电脑(处于横屏状态)向当前正处于竖屏状态的平板电脑投屏为例。对应前面的情况2,发送端是横屏、接收端是竖屏。
如图6B中的(a),笔记本电脑显示界面401。此时,若笔记本电脑检测到向平板电脑应用投屏的操作(将在后文介绍),响应于该操作,向平板电脑发送界面501的显示信息,平板电脑上显示界面501,如图6B中的(b)。笔记本电脑投屏之后显示主界面,如图6B中的(c)。其中,界面501比界面401的显示信息多。比如,多出来的显示信息(即虚线区域的显示信息)可以是界面401的下一个界面(图4中界面403)中的显示信息。
请对比图6A和图6B理解,图6A中笔记本电脑向当前处于横屏的平板电脑投屏时,发送的是界面401的显示信息,图6B中笔记本电脑向当前处于竖屏的平板电脑投屏时,发送的是界面501的显示信息。这是因为,图6A中笔记本电脑发送界面401的显示信息之前,确定出平板电脑当前是横屏,而界面401是适合横屏显示的,所以直接向平板电脑发送界面401的显示信息。然而,图6B中,笔记本电脑向平板电脑发送界面501的显示信息之前,确定平板电脑当前是竖屏的,所以需要对界面401作调整,因为界面401适合横屏显示不适合竖屏显示,所以,笔记本电脑将界面401调整为界面501,将界面501发送给平板电脑。由此可知,本申请实施例中,发送端向接收端投屏之前,可以判断接收端是横屏还是竖屏,如果接收端与发送端的屏幕显示方向一致(比如,都是横屏),发送端直接将前台显示界面的显示信息发送给接收端即可,无需对前台显示界面作调整。如果接收端与发送端屏幕显示方向不一致,比如,发送端是横屏,接收端是竖屏,发送端需要将前台显示界面作调整,将调整后的界面发送给接收端显示。因此,本申请实施例中,发送端根据接收端的屏幕显示方向对即将要投屏到接收端的界面作调整,使得调整后的界面被投屏到接收端时能够适配接收端的屏幕显示方向。
继续参见图6B中的(b),平板电脑显示投屏来的界面501时,可能会发生屏幕旋转,如,从竖屏切换到横屏。
一种方式为,平板电脑从竖屏切换到横屏时,平板电脑上投屏界面的显示信息减少。如图6B中的(b)和(d),平板电脑从竖屏切换到横屏时,平板电脑上投屏界面由界面501变为界面401。其中,界面401比界面501的显示信息少。其中,减少的显示信息为界面501中虚线区域内的显示信息。
另一种方式为,平板电脑从竖屏切换到横屏时,投屏界面上显示信息不减少,而且布局方式调整。比如,如图6B中的(b)和(e),平板电脑从竖屏切换到横屏,平板电脑上投屏界面由界面501变为界面505。界面505与界面501的显示信息布局方式不同。比如,界面501中,虚线区域的显示信息在显示屏下侧,而界面505中,虚线区域的显示信息在显示屏右侧。
第三种应用场景
该应用场景对应前面的情况3,发送端是竖屏、接收端是竖屏。可以理解的是,前面的例子都是发送端是笔记本电脑为例,一般笔记本电脑都是横屏无法竖屏显示,所以该应用场景以发送端是手机为例,如处于竖屏状态的手机向当前正处于竖屏状态的平板电脑为例。
如图7A中的(a),手机处于竖屏状态并且显示界面701。界面701比如是手机上视频播放类应用的界面。手机检测到向平板电脑应用投屏的操作(将在后文介绍),响应于该操作,将界面701的显示信息发送给平板电脑,平板电脑显示界面701,如图7A中的(b)。手机在投出界面701之后显示桌面,如图7A中的(c)。需要说明的是,手机向平板电脑发送界面701的显示信息之前,会判断平板电脑当前屏幕显示方向是横屏还是竖屏,根据平板电脑当前屏幕显示方向决定是否需要对即将要投屏到平板电脑的界面(即界面701)作调整。比如,当确定平板电脑是竖屏时,不需要对界面701作调整,因为界面701本身就是适合竖屏显示的(因为手机竖屏显示界面701),所以,手机直接将界面701的显示信息发送给平板电脑。
继续如图7A中的(b),平板电脑显示投屏来的界面701时,可能会发生屏幕旋转,如,从竖屏切换到横屏。
一种方式为,平板电脑从竖屏切换到横屏时,投屏界面的显示信息减少。如图7A中的(b)和(d),平板电脑从竖屏切换到横屏时,平板电脑上的投屏界面由界面701变为界面702。界面702比界面701的显示信息少。其中,减少的显示信息为界面701中虚线区域内的显示信息。
另一种方式为,平板电脑从竖屏切换到横屏时,投屏界面的显示信息不减少,但是布局方式调整。比如,如图7A中的(b)和(e),平板电脑从竖屏切换到横屏时,平板电脑上的投屏界面由界面701变为界面703。界面703与界面701的显示信息布局方式不同。比如,界面701中虚线区域内的显示信息(媒体标题、选集按键等)在下侧。界面703中所述虚线区域内的显示信息在右侧。
第四种应用场景
该应用场景以处于竖屏状态的手机向处于横屏状态的平板电脑投屏为例。对应前面的情况4,发送端是竖屏、接收端是横屏。
[根据细则91更正 30.09.2022] 
如图7B中的(a),手机处于竖屏状态并且显示界面701。手机检测到向平板电脑应用 投屏的操作,响应于该操作,将界面702的显示信息发送给平板电脑。如图7B中的(b),平板电脑显示界面702。手机在投出界面702之后显示桌面,如图7B中的(c)。其中,界面702比界面701的显示信息少。比如,少的显示信息是界面701中虚线区域内的显示信息(媒体标题、选集按键等)。需要说明的是,手机向平板电脑发送界面702的显示信息之前,确定平板电脑当前屏幕显示方向是横屏,所以需要对界面701作调整,因为界面701不适合横屏显示,所以,将界面701调整为界面702,将界面702发送给平板电脑。如图7B中的(b)和(d),平板电脑从横屏切换到竖屏时,平板电脑上投屏界面从界面702变为界面701,显示信息增多。
下面介绍本申请的相关设备。
图8示出了电子设备的结构示意图。该电子设备可以是前文中的接收端或者发送端。如图8所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备充电,也可以用于电子设备与***设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以 提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
显示屏194用于显示应用的显示界面等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP 还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,以及至少一个应用程序(例如爱奇艺应用,微信应用等)的软件代码等。存储数据区可存储电子设备使用过程中所产生的数据(例如图像、视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。
陀螺仪传感器180B可以用于拍摄防抖。气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备是翻盖机时,电子设备可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备通过发光二极管向外发射红外光。电子设备使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备附近有物体。当检测到不充分的反射光时,电子设备可以确定电子设备附近没有物体。电子设备可以利用接近光传感器180G检测用户手持电子设备贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备是否在口袋里,以防误触。指纹传感器180H用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备对电池142加热,以避免低温导致电子设备异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。
可以理解的是,图8所示的部件并不构成对电子设备的具体限定。本发明实施例中的电子设备可以包括比图8中更多或更少的部件。此外,图8中的部件之间的组合/连接关系也是可以调整修改的。
下面结合附图介绍本申请实施例提供的技术方案。
实施例一
本实施例一的目的在于介绍前面的四种应用场景的实现原理,考虑到前面的四种应用场景的实现原理相同,为了节省篇幅,本文不对每种应用场景的实现原理一一介绍。主要介绍第一种应用场景和第二种应用场景的实现原理。第三种应用场景和第四种应用场景的实现原理可以参考第一种应用场景和第二种应用场景的实现原理。
示例性的,如图9A中的(a),笔记本电脑显示第一应用的第一界面。第一界面包括显示信息A1和显示信息A2。第一应用可以是任何应用,不作限定。比如,第一应用是浏览器应用,第一界面可以是前文中第一种应用场景(即图6A)中浏览器应用的界面401,那么显示信息A1包括文字信息(如,HUAWEI等),显示信息A2包括手机图片,且显示 信息A1和显示信息A2在水平方向平铺显示,比如显示信息A1位于显示信息A2左侧。如图9A中的(b),平板电脑处于横屏且显示桌面。笔记本电脑响应于与平板电脑连接的操作,与平板电脑建立连接。所述连接可以是有线或无线连接。笔记本电脑可以识别平板电脑当前屏幕显示方向是横屏还是竖屏。示例性的,平板电脑与笔记本电脑连接之后,可以主动地向笔记本电脑汇报其当前屏幕显示方向;或者,笔记本电脑向平板电脑发送请求,用于请求平板电脑的当前屏幕显示方向,平板电脑响应于该请求返回当前屏幕显示方向。
当笔记本电脑检测到向平板电脑应用投屏的操作(如,在第一界面内长按且拖动的操作)时,响应于该操作,第一应用的第一界面移动出笔记本电脑显示屏,如图9A中的(c),同时,第一应用的第一界面进入平板电脑显示屏,如图9A中的(d)。当检测到所述长按且拖拽操作结束时,第一应用的第一界面被转移到平板电脑上显示,如图9A中的(f)。笔记本电脑上显示第二应用的界面,如图9A中的(e)。需要说明的是,笔记本电脑在显示第一界面时响应于投屏操作向平板电脑发送的是第一界面,是因为在此之前笔记本电脑确定平板电脑处于横屏状态,而第一界面是适合横屏显示的,所以发送第一界面到平板电脑。图9A中,以应用投屏操作是在第一界面内长按且拖拽的操作为例,可以理解的是,应用投屏操作还可以是其它类型的操作,本申请不一一举例。
继续参见图9A中的(f),平板电脑显示投屏来的第一界面时,可能会发生屏幕旋转,比如,从横屏切换到竖屏。当平板电脑从横屏切换到竖屏时,有两种显示方式。
第一种方式
如图9A中的(g),当平板电脑从横屏切换到竖屏时,平板电脑上的投屏界面从第一应用的第一界面变为第一应用的第三界面。第三界面比第一界面的显示信息多。第三界面中包括显示信息A1和A2,还包括显示信息B。其中,显示信息A1和A2是第一界面中的显示信息,所以可以理解为,第三界面包括第一界面的全部显示信息还包括其它界面的显示信息,所述其它界面可以是第一界面的上一界面或下一界面或默认界面或用户指定界面中的显示信息。比如,以前文的图6A为例的话,第一界面是界面401,第三界面是界面501.,显示信息B可以是界面501比界面401多出来的显示信息,即界面501中虚线区域内的显示信息,即第一界面(界面401)的下一界面(图4中界面403)的显示信息。
第二种方式
如图9A中的(h),当平板电脑从横屏切换到竖屏时,平板电脑上的投屏界面从第一应用的第一界面变为第一应用的第四界面。第四界面与第一界面的显示信息布局不同。第一界面中显示信息A1和显示信息A2在水平方向上平铺显示,第四界面中显示信息A1和显示信息A2在竖直方向上平铺显示,比如显示信息A1位于显示信息A2的上侧。比如,以前面的图6A为例的话,第一界面是界面401、第四界面是界面502,界面502与界面401的显示信息布局不同。
图9B为图9A对应的后台处理流程。
如图9B中的(a),主设备(即图9A中的笔记本电脑包)括本地显示屏。本地显示屏是横屏。本地显示屏显示第一应用的第一界面,对应图9A中的(a)。如图9B中的(b),笔记本电脑创建第一虚拟显示器(virtual display,VD)。第一VD用于将第一VD中的显示信息投屏到目标设备(即图9A中的平板电脑)上显示,即目标设备上显示的投屏信息是第一VD中的显示信息。第一VD的显示参数与目标设备(即,平板电脑)显示参数匹 配。比如,第一VD的屏幕显示方向与目标设备当前屏幕显示方向一致,和/或,第一VD的长宽比等于目标设备的长宽比。假设主设备确定目标设备当前屏幕显示方向为横屏时,则第一VD为横屏,此时,本地显示屏和第一VD都是横屏,如图9B中的(b)。可以理解的是,主设备创建第一VD可以包括:在检测到与目标设备连接时创建,或者,在检测到向目标设备应用投屏操作时创建;或者,第一VD可以是默认存在的(比如,出厂之后就默认设置好的),本申请实施例对此不作限定。
主设备响应于向目标设备的应用投屏操作,将第一应用从本地显示屏转移到第一VD中运行。可以理解为,第一应用原本在本地显示屏上显示,被转移到第一VD上显示。如图9B中的(b),第一应用原本在本地显示屏上显示的是第一界面,当转移到第一VD时,仍然显示第一界面。这是因为第一VD和本地显示屏都是横屏,而第一界面本身就已适配横屏显示,所以第一应用转移到第一VD时,不需要调整第一界面。然后,第一VD将第一界面发送给目标设备,目标设备显示第一界面。继续如图9B中的(b),第一应用从本地显示屏转移到第一VD之后,本地显示屏上显示第二应用的界面。
当第一VD中的第一界面投屏到目标设备之后,目标设备可能发生屏幕旋转,如从横屏切换到竖屏。如图9B中的(a),当目标设备从横屏切换为竖屏时,向主设备发送屏幕旋转指令,该指令中指示目标设备切换为竖屏。
第一种方式
如图9B中的(c),主设备基于所述指令调整第一VD的屏幕显示方向为竖屏。第一VD被调整为竖屏显示时,第一应用会调整第一界面为第三界面。比如,第三界面比第一界面的显示信息增多,即增加显示信息B,以适配第一VD的竖屏显示。第一VD将第三界面发送给目标设备,目标设备显示第三界面。
第二种方式
如图9B中的(d),主设备基于所述指令调整第一VD的屏幕显示方向为竖屏。第一VD被调整为竖屏显示时,第一应用会调整第一界面为第四界面。比如,第四界面与第一界面的显示信息布局不同。如,第一界面中显示信息A1和A2水平方向上平铺显示,第四界面中显示信息A1与显示信息A2在竖直方向平铺显示,以适配第一VD的竖屏显示。第一VD将第四界面发送给目标设备。
需要说明的是,图9A至图9B可以适用于前面的第一种应用场景,对应情况1,即发送端是横屏、接收端是横屏。可以理解的是,对于第三种应用场景(对应情况3,即发送端是竖屏、接收端是竖屏),也是同样的原理,所以,为了节省篇幅,不重复赘述。
示例性的,如图10A中的(a),笔记本电脑显示第一应用的第一界面。第一界面中包括显示信息A。第一应用可以是任何应用,不作限定。比如,第一应用是浏览器应用,第一界面可以是前文中第二种应用场景即图6B中浏览器应用的界面401,那么显示信息A包括界面401中的文字信息(如,HUAWEI等)以及手机图片等。如图10A中的(b),平板电脑处于竖屏状态且显示桌面。笔记本电脑与平板电脑连接。笔记本电脑确定平板电脑当前屏幕显示方向为竖屏。当笔记本电脑检测到向平板电脑的应用投屏操作(如,在第一界面内长按且拖拽操作)时,响应于该操作,第一应用的界面被移动出笔记本电脑显示屏,如图10A中的(c),同时,第一应用的界面移入平板电脑显示屏,如图10A中的(d)。当检测到所述长按且拖拽操作结束时,笔记本电脑上显示第二应用的界面,如图10A中的(e), 平板电脑上显示第一应用的第二界面,如图10A中的(f)。第二界面与第一界面不同。第二界面比第一界面的显示信息多,如,第二界面比第一界面多出显示信息B。因为显示信息A是第一界面的,所以可以理解为第二界面包括第一界面的全部显示信息,还包括其它界面的显示信息,所述其它界面可以是第一界面的下一界面或上一界面或第一应用的默认界面或用户指定界面。比如,以前文图6B为例的话,第一界面是界面401,第二界面是界面501。界面501比界面401多出了虚线区域的显示信息,这部分显示信息是界面401的下一界面(图4中的界面403)的显示信息。需要说明的是,图10A中,笔记本电脑响应于向平板电脑的投屏操作,向平板电脑发送的是第二界面的显示信息,这是因为,笔记本电脑确定平板电脑当前处于竖屏,而第一界面不适合竖屏显示,所以笔记本电脑将第二界面发送给平板电脑,以适配平板电脑的竖屏显示。
继续参见图10A中的(f),平板电脑显示投屏来的第二界面时,可能会发生屏幕旋转,比如从竖屏切换到横屏。
第一种方式
如图10A中的(f)和(g),当平板电脑从竖屏切换到横屏时,平板电脑上投屏界面从第一应用的第二界面变为第一应用的第三界面。第三界面上包括显示信息A,比第二界面显示信息减少。比如,以前文图6B为例的话,第二界面是界面501,第三界面是界面401,界面401比界面501的显示信息少。
第二种方式
如图10A中的(f)和(h),当平板电脑从竖屏切换到横屏时,平板电脑上投屏界面从第一应用的第二界面变为第一应用的第四界面。第四界面与第二界面的显示信息布局方式不同。第二界面中显示信息A和B是竖直方向上平铺显示,第四界面中显示信息A和B是在水平方向上平铺显示,比如,显示信息A在左侧,显示信息B在右侧。比如,以前文图6B为例的话,第四界面是界面505,第二界面是界面501,界面505与界面501的显示信息布局不同。
图10B为图10A对应的后台处理过程。
如图10B中的(a),主设备(即图10A中的笔记本电脑)包括本地显示屏。本地显示屏是横屏。本地显示屏显示第一应用的第一界面。第一界面中包括显示信息A,对应图10A中的(a)。笔记本电脑创建第一VD,如图10B中的(b)。第一VD用于将第一VD中的显示信息投屏到目标设备(即图10A中的平板电脑)上显示。第一VD的显示参数与目标设备(即,平板电脑)显示参数匹配。比如,第一VD的屏幕显示方向与目标设备当前屏幕显示方向一致,和/或,第一VD的长宽比等于目标设备的长宽比。假设主设备确定目标设备当前屏幕显示方向为竖屏时,则第一VD为竖屏。此时,本地显示屏是横屏、第一VD是竖屏,如图10B中的(b)。
主设备响应于向目标设备的应用投屏操作,将第一应用转移到第一VD中运行。可以理解为,第一应用原本在本地显示屏上显示,被转移到第一VD上显示。
如图10B中的(b),第一应用原本在本地显示屏上显示的是第一界面,第一界面中包括显示信息A,以适配本地显示屏的横屏状态。当第一应用被转移到第一VD时,由于第一VD是竖屏,所以第一应用在第一VD中显示第二界面,第二界面中包括显示信息A和显示信息B,且显示信息A和显示信息B在竖直方向平铺,以适配第一VD的竖屏状态。换言之,本地显示屏是横屏,第一VD是竖屏,第一应用原本在本地显示屏上显示的第一 界面适配横屏显示而不适配竖屏显示,所以第一应用转移到第一VD时调整第一界面为第二界面,第二界面适配第一VD的竖屏显示。第一VD将第二界面发送给目标设备。第一应用从本地显示屏转移到第一VD之后,本地显示屏上显示第二应用的界面。
当第一VD中的第二界面投屏到目标设备之后,目标设备可能发生屏幕旋转,如从竖屏切换到横屏。如图10B中的(b),当目标设备从竖屏切换到横屏时,向主设备发送屏幕旋转指令,该指令中指示目标设备切换为横屏。
第一种方式
如图10B中的(c),主设备基于所述指令调整第一VD的屏幕显示方向为横屏。第一VD被调整为横屏显示时,第一应用会调整第二界面为第三界面,以适配第一VD的横屏显示。第三界面比第二界面的显示信息少。第一VD将第三界面发送给目标设备。
第二种方式
[根据细则91更正 30.09.2022] 
如图10B中的(d),主设备基于所述指令调整第一VD的屏幕显示方向为横屏。第一VD被调整为横屏显示时,第一应用会调整第二界面为第四界面。第四界面与第二界面的显示信息布局不同,第二界面中显示信息A和B是竖直方向上平铺显示,第四界面中显示信息A和B是在水平方向上平铺显示,以适配第一VD的横屏显示。第一VD将第四界面发送给目标设备。
图10A至图10B可以适用于前面的第二种应用场景,对应情况2,即发送端是横屏、接收端是竖屏。可以理解的是,对于第四种应用场景(对应情况4,即发送端是竖屏、接收端是横屏),也是同样的原理,所以,为了节省篇幅,不重复赘述。
请参见图11,为本申请实施例提供的显示方法的一种流程示意图。如图11所示,所述流程包括:
S1101,主设备与目标设备连接。
主设备与目标设备的连接方式有多种,包括有线连接、无线连接,比如蓝牙、无线保真(wireless fidelity,WIFI)、近场通讯(near field communication,NFC)等连接方式。
S1102,目标设备向主设备发送屏幕显示方向。
在一些实施例中,目标设备可以主动向主设备发送屏幕显示方向。比如,目标设备在检测到与主设备连接之后,自动向主设备发送屏幕显示方向。可以理解的是,在此之前,目标设备可以检测本机的屏幕显示方向,具体的检测方式有多种,比如通过运动传感器(比如,陀螺仪等)采集到传感器数据来检测屏幕显示方向,本申请实施例不作限定。
在另一些实施例中,目标设备在接收到主设备发送的用于请求屏幕显示方向的请求之后向主设备发送屏幕显示方向。即,目标设备检测到与主设备连接之后,暂时不向主设备发送其屏幕显示方向,在接收到来自主设备的请求之后向主设备发送屏幕显示方向。
示例性的,目标设备向主设备发送屏幕显示方向,可以包括:目标设备向主设备发送一指令,该指令中携带一个指示信息。所述指示信息可以占1比特,比如当指示信息是1时,代表屏幕显示方向为横屏,当该指示信息是0时,代表屏幕显示方向为竖屏。
示例性的,目标设备可以通过各种方式向主设备发送屏幕显示方向,比如,如果主设备与目标设备是有线连接,则通过有线方式发送,如果主设备与目标设备是无线连接,则通过无线发送,比如,蓝牙、WIFI、NFC等无线发送。
可选的,S1102可以不执行,所以图中使用虚线表示。
S1103,主设备显示第一应用的第一界面。
在一些实施例中,S1103可以执行或不执行,所以图中使用虚线表示。比如,主设备当前显示的是主界面,主设备可以响应于应用投屏操作将第一应用的第一界面投屏到目标设备。也就是说,主设备投屏出的界面可以是主设备当前显示界面,也可以不是主设备当前显示界面。
需要说明的是,S1101至S1103的执行顺序本申请不作限定。
S1104,主设备接收到向目标设备投屏的操作。
示例性的,向目标设备投屏的操作可以是针对第一界面的拖拽操作,该拖拽操作可以将第一界面移出主设备显示屏并移入目标设备显示屏的操作(参见前文图9A)。
S1105,主设备判断主设备与目标设备的屏幕显示方向是否一致,如果一致,执行S1106和S1107,如果不一致,执行S1108和S1109。
S1106,主设备将第一应用的第一界面发送给目标设备。
S1107,目标设备显示第一界面。
因为第一界面是适配主设备的屏幕显示方向的,如果主设备与目标设备屏幕显示方向一致时,那么第一界面也是适配目标设备的屏幕显示方向的,所以主设备将第一界面发送给目标设备,无需对第一界面作调整。示例性的,如图9A,笔记本电脑和平板电脑都是横屏(屏幕显示方向一致),笔记本电脑显示第一界面时响应于投屏操作,向平板电脑投屏第一界面。
S1108,主设备将第一应用的第二界面发送给目标设备。
S1109,目标设备显示第二界面。
因为第一界面是适配主设备的屏幕显示方向的,而主设备与目标设备屏幕显示方向不一致,所以第一界面不适配目标设备的屏幕显示方向,所以主设备可以将第一界面调整为第二界面,将第二界面发送给目标设备。示例性的,如图10A,笔记本电脑是横屏,平板电脑是竖屏(屏幕显示方向不一致),笔记本电脑显示第一界面时响应于投屏操作,向平板电脑投屏第二界面。
S1110,主设备显示第二应用的界面。
也就是说,主设备向目标设备投出第一应用之后,主设备前台显示第二应用的界面,即第一应用切换到主设备的后台运行。
在一些实施例中,S1110是可选步骤,可以执行或不执行,所以图中S1110使用虚线表示。比如,主设备投出第一应用的第一界面之后,仍然可以显示第一应用的第一界面,当检测到用于将第一应用切换到后台的操作时,显示第二应用的界面。
S1111,目标设备检测到屏幕旋转操作。所述屏幕旋转操作用于将目标设备从横屏切换到竖屏或者从竖屏切换到横屏。
S1112,目标设备向主设备发送屏幕旋转指令。
示例性的,所述屏幕旋转指令用于指示目标设备从横屏切换到竖屏或者从竖屏切换到横屏。在一些实施例中,目标设备向主设备发送屏幕旋转指令可以包括:目标设备向主设备发送一指令,该指令中携带一个指示信息。所述指示信息可以占1比特。比如,目标设备从竖屏切换到横屏时,所述指示信息为1,代表当前屏幕显示方向为横屏(即从竖屏切换到横屏)。目标设备从横屏切换到竖屏时,所述指示信息为0,代表当前屏幕显示方向为竖屏(即从横屏切换到竖屏)。
示例性的,目标设备可以通过各种方式向主设备发送屏幕旋转指令,比如,如果主设备与目标设备是有线连接,则通过有线方式发送,如果主设备与目标设备是无线连接,则通过无线发送,比如,蓝牙、WIFI、NFC等无线发送。
S1113,主设备基于屏幕旋转指令调整第一应用的界面为第三界面或者第四界面。
可以理解的是,如图前面执行的是S1106和S1107,即第一应用当前显示的是第一界面,则将第一界面调整为第三界面或第四界面,请参见前文图9A。如果前面执行的是S1108和S1109,即第一应用当前显示的是第二界面,则将第二界面调整为第三界面或第四界面,请参见前文图10A。
S1114,主设备将第三界面或第四界面的显示信息发送给目标设备。
S1115,目标设备显示第三界面或第四界面。
示例性的,如图9A,目标设备从横屏切换到竖屏时,目标设备上的投屏界面从第一界面变为第三界面或第四界面,以适配目标设备的竖屏显示。或者,如图10A,目标设备从竖屏切换到横屏时,目标设备上的投屏界面从第二界面变为第三界面或第四界面,以适配目标设备的横屏显示。
需要说明的是,图11中可选步骤均使用虚线表示,当可选步骤全部不执行时,本申请提供的显示方法包括:主设备检测到投屏操作(S1104),响应于该操作将主设备中第一应用的第一界面的显示信息发送给目标设备(S1106),目标设备显示第一界面(S1107)。目标设备检测到屏幕旋转操作(S1111)。目标设备向主设备发送屏幕旋转指令(S1112)。主设备响应于该指令调整第一应用的界面为第三界面或第四界面(S1113)。主设备将第三界面或第四界面的显示信息发送给目标设备(S1114),目标设备显示第三界面或第四界面(S1115)。
请参见图12,为本申请实施例提供的显示方法的另一种流程示意图。图12所示流程也可以理解为图11所示的流程的细化。如图12,所述流程包括:
S1201,主设备与目标设备连接。
S1202,目标设备向主设备发送屏幕显示方向。
S1203,主设备的本地显示屏显示第一应用的第一界面。
S1204,主设备接收到向目标设备投屏的操作。
前面的S1201至S1204的实现原理请参见图11中S1101至S1104的实现原理,不重复赘述。
S1205,主设备创建第一VD,第一VD的屏幕显示方向与目标设备的屏幕显示方向一致。
示例性的,如图9B中的(b),目标设备是横屏,则主设备创建的第一VD是横屏。或者,如图10B中的(b),目标设备是竖屏,则主设备创建的第一VD是竖屏。
S1206,主设备判断本地显示屏与第一VD的屏幕显示方向是否一致。如果一致,执行S1207至S1209,如果不一致,执行S1210至S1212。
S1207,第一应用从本地显示屏转移到第一VD,第一应用在第一VD中显示第一界面。
S1208,第一VD将第一应用的第一界面发送给目标设备。
S1209,目标设备显示第一界面。
因为第一界面是适配本地显示屏的屏幕显示方向的,如果本地显示屏与第一VD的屏 幕显示方向一致,那么第一界面也是适配第一VD的屏幕显示方向的,所以第一应用转移到第一VD时仍然显示第一界面,无需对第一界面作调整。示例性的,如图9B中的(b),第一应用从本地显示屏转移到第一VD时,显示第一界面。第一VD将第一界面投屏到目标设备显示。因为第一VD的屏幕显示方向与目标设备一致,所以第一VD投出的第一界面适配目标设备的屏幕显示方向。
S1210,第一应用从本地显示屏转移到第一VD,第一应用在第一VD中显示第二界面。
S1211,第一VD将第一应用的第二界面发送给目标设备。
S1212,目标设备显示第二界面。
因为第一界面是适配本地显示屏的屏幕显示方向的,如果本地显示屏与第一VD的屏幕显示方向不一致,那么第一界面不适配第一VD的屏幕显示方向,所以第一应用转移到第一VD时显示第二界面以适配第一VD的屏幕显示方向。示例性的,如图10B中的(b),第一应用从本地显示屏转移到第一VD时,显示第二界面。第一VD将第二界面投屏到目标设备显示。因为第一VD的屏幕显示方向与目标设备一致,所以第一VD投出的第二界面适配目标设备的屏幕显示方向。
S1213,主设备本地显示屏显示第二应用的界面。
在一些实施例中,S1213是可选步骤,可以执行或不执行,所以图中S1213使用虚线表示。比如,主设备投出第一应用的第一界面之后,本地显示屏仍然可以显示第一应用的第一界面,当检测到用于将第一应用切换到后台的操作时,本地显示屏显示第二应用的界面。
S1214,目标设备检测到屏幕旋转。
S1215,目标设备向主设备发送屏幕旋转指令。
示例性的,S1214至S1215的实现原理请参见图11中S1111至S1112的实现原理,不重复赘述。
S1216,主设备基于屏幕旋转指令调整第一VD的屏幕显示方向。
S1217,第一应用调整第一VD中第一应用的显示界面为第三界面或第四界面。
当第一VD的屏幕显示方向变化时,运行在第一VD中的第一应用适应性的调整其显示界面。示例性的,如图9B,第一VD从竖屏切换到横屏时,第一VD中第一应用的界面变化为第三界面或第四界面。
S1218,第一VD将第三界面或第四界面发送给目标设备。
S1219,目标设备显示第三界面或第四界面。
需要说明的是,图12中可选步骤均使用虚线表示,当可选步骤全部不执行时,本申请提供的显示方法包括:主设备检测到投屏操作(S1204),响应于该操作主设备创建第一VD,第一VD的屏幕显示方向与目标设备一致(S1205)。主设备将第一应用转移到第一VD中运行,第一应用在第一VD中显示第一界面(S1207)。第一VD将第一界面的显示信息发送给目标设备(S1208)。目标设备显示第一界面(S1209)。目标设备检测到屏幕旋转操作(S1214)。目标设备向主设备发送屏幕旋转指令(S1215)。主设备响应于该指令调整第一VD的屏幕显示方向与目标设备旋转后的屏幕显示方向一致(S1216)。第一应用响应于第一VD的屏幕显示方向的调整,调整其显示界面为第三界面或第四界面(S1217)。第一VD将第三界面或第四界面的显示信息发送给目标设备(S1218),目标设备显示第三界面或第四界面(S1219)。
实施例二
本实施例二以镜像投屏为例。下面介绍镜像投屏的应用场景。
考虑到发送端可能是横屏或竖屏,接收端也可能是横屏或竖屏,所以,镜像投屏存在多种情况。1、发送端是横屏、接收端是横屏。2、发送端是横屏、接收端是竖屏。3、发送端是竖屏、接收端是竖屏。4、发送端是竖屏、接收端是横屏。因此,下文包括四种应用场景,分别对应上面的四种情况。
第一种应用场景
该应用场景对应前面的情况1,发送端是横屏、接收端是横屏。
如图13A中的(a),手机当前处于横屏状态且显示界面1701。界面1701比如是视频播放应用的界面。此时,若手机检测到镜像投屏操作,向平板电脑发送界面1701的显示信息,平板电脑显示界面1701,如图13A中的(b)。需要说明的是,手机向平板电脑发送界面1701的显示信息之前,会判断平板电脑的屏幕显示方向是横屏还是竖屏,根据平板电脑的屏幕显示方向决定是否需要对即将要投屏到平板电脑的界面(即界面1701)作调整。当确定平板电脑是横屏时,不需要对界面1701作调整,因为界面1701本身就是适合横屏显示的(因为手机是横屏),所以,手机直接将界面1701的显示信息发送给平板电脑。值得说明的是,目前的镜像投屏技术中,发送端响应于投屏操作,将发送端前台显示界面发送给接收端进行显示,并不会根据接收端当前屏幕显示方向判断是否需要对即将要投屏到接收端的界面作调整,所以目前的投屏技术中,发送端响应于镜像投屏操作,投屏到接收端的界面不一定适配接收端当前屏幕显示方向。
如图13A中的(c),当平板电脑从横屏切换到竖屏时,投屏界面由界面1701变为界面1702。对应的,手机上的界面也变为界面1702,如图13A中的(d)。也就是说,虽然手机保持横屏的姿态(横屏放置的),但是随着接收端(即平板电脑)从横屏切换到竖屏,手机上也进入竖屏模式。
第二种应用场景
该应用场景对应前面的情况2,发送端是横屏、接收端是竖屏。
如图13B中的(a),手机当前处于横屏状态且显示界面1701。此时,若手机检测到镜像投屏操作,向平板电脑发送界面1702的显示信息,平板电脑显示界面1702,如图13B中的(b)。请结合图13A和图13B理解,图13A中,手机响应于镜像投屏操作向平板电脑发送的是界面1701的显示信息,图13B中,手机响应于镜像投屏操作,向平板电脑发送的界面1702的显示信息。这是因为,图13A中手机向平板电脑投屏之前,确定平板电脑当前屏幕显示方向是横屏,而手机当前显示界面1701适配横屏显示,所以不需要调整界面1701直接将界面1701投屏到平板电脑。然而,图13B中手机向平板电脑投屏之前,确定平板电脑当前屏幕显示方向是竖屏,而手机当前显示的界面1701不适合竖屏显示,所以手机将界面1701调整为界面1702,将界面1702投屏到平板电脑。当手机投出界面1702时,手机也显示界面1702,如图13B中的(c)。
如图13B中的(d),当平板电脑从竖屏切换到横屏时,投屏界面由界面1702变为界面1701。对应的,手机上的界面也变为界面1701,如图13B中的(e)。也就是说,随着接收端(即平板电脑)从竖屏切换到横屏,手机也从竖屏模式切换到横屏模式。
第三种应用场景
该应用场景对应前面的情况3、发送端是竖屏、接收端是竖屏。
如图13C中的(a),手机当前处于竖屏状态且显示界面1702。此时,若手机检测到镜像投屏操作,向平板电脑发送界面1702的显示信息,平板电脑显示界面1702,如图13C中的(b)。需要说明的是,手机向平板电脑发送界面1702的显示信息之前,确定平板电脑是竖屏,所以不需要对界面1702作调整,直接将界面1702的显示信息发送给平板电脑,因为界面1702本身就是适合竖屏显示的(因为手机是竖屏显示界面1702)。
如图13C中的(c),当平板电脑从竖屏切换到横屏时,投屏界面由界面1702变为界面1701。对应的,手机上的界面也变为界面1701,如图13C中的(d)。也就是说,虽然手机保持竖屏的姿态,但是随着接收端(即平板电脑)从竖屏切换到横屏,手机上也进入横屏模式。
第四种应用场景
该应用场景对应前面的情况4,发送端是竖屏、接收端是横屏。
如图13D中的(a),手机当前处于竖屏状态且显示界面1702。此时,若手机检测到镜像投屏操作,向平板电脑发送界面1701的显示信息,平板电脑显示界面1701,如图13D中的(b)。这是因为,手机向平板电脑投屏之前,确定平板电脑当前屏幕显示方向是横屏,而界面1702不适合横屏显示,所以将界面1702调整为界面1701,将界面1701发送给平板电脑。当手机投出界面1701时,手机也显示界面1701,如图13D中的(c)。
如图13D中的(d),当平板电脑从横屏切换到竖屏时,投屏界面由界面1701变为界面1702。对应的,手机上的界面也变为界面1702,如图13D中的(e)。
下面介绍上面的四种应用场景的实现原理。需要说明的是,考虑到上面四种应用场景的实现原理相同。为了节省篇幅,主要以上面第四种应用场景为例介绍。
如图14中的(a),手机显示第一界面。所述第一界面例如可以图13D中的界面1702,或者其它界面。所述第一界面中包括显示信息A和显示信息B。如果第一界面是界面1702,显示信息A可以是视频播放窗口,显示信息B可以是媒体标题、选集按键的信息。如图14中的(b),平板电脑显示主界面。手机与平板电脑连接。所述连接可以是有线或无线连接。手机可以识别平板电脑当前屏幕显示方向是横屏还是竖屏。示例性的,平板电脑与手机连接之后,可以主动地向手机汇报其当前屏幕显示方向;或者,手机可以向平板电脑发送请求,用于请求平板电脑的当前屏幕显示方向,平板电脑响应于该请求返回当前屏幕显示方向。
手机检测到镜像投屏操作(如,在下滑通知栏界面或者上拉控制中心界面中点击投屏按键的操作)时,显示如图14中的(c)所示的界面,该界面中包括周围设备的标识。当检测到针对平板电脑的标识的操作时,向平板电脑发送第二界面的显示信息,平板电脑显示第二界面,如图14中的(d)。这是因为,手机确定平板电脑当前处于横屏状态,而第一界面不适合横屏显示,所述手机将第一界面调整为第二界面并将第二界面发送给平板电脑。第二界面比第一界面的显示信息少,比如第二界面只包括视频播放窗口,如图13D中的(b)。手机向平板电脑发送第二界面后,手机也显示第二界面,如图14中的(e)。也就是说,手机原本处于竖屏模式并显示第一界面,当手机需要向处于横屏状态的平板电脑投屏时,手机调整第一界面为第二界面,将第二界面投屏到平板电脑,并且手机也从竖屏模式切换到横屏模式显示第二界面。
如图14中的(f),平板电脑从横屏切换到竖屏时,平板电脑上投屏界面从第二界面变为第一界面,即显示信息增多,而且,手机上也对应的调整为第一界面,如图14中的(g)。 因此,手机原本是横屏模式,当目标设备(即平板电脑)从横屏切换到竖屏时,手机也相应的调整为竖屏模式。
图15为图14对应的后台处理过程。
如图15中的(a),主设备(即图14中的手机)包括本地显示屏。本地显示屏处于竖屏模式,并显示第一界面。第一界面中包括显示信息A和显示信息B。对应图14中的(a)。如图15中的(b),主设备创建第一VD。第一VD用于将第一VD中的显示信息投屏到目标设备上。第一VD的显示参数与目标设备的显示参数匹配,比如第一VD的屏幕显示方向与目标设备的屏幕显示方向一致,和/或,第一VD的长宽比与目标设备的长宽比匹配,等等。比如目标设备是横屏,则第一VD是横屏。
在创建第一VD之后,本地显示屏的显示信息需要映射到第一VD中,使得第一VD将第一VD中的显示信息发送给目标设备。
需要说明的是,如图15中的(b),第一VD是横屏(因为目标设备是横屏),本地显示屏是竖屏。所以,本地显示屏向第一VD映射显示信息时,可以调整本地显示屏上的第一界面为第二界面,如图15中的(c),第二界面适配横屏显示,比如第二界面中包括显示信息A。本地显示屏将第二界面映射到第一VD中。第一VD将第二界面投屏到目标设备。也就是说,镜像投屏中,第一VD的屏幕显示方向与目标设备的屏幕显示方向一致,当本地显示屏与第一VD的屏幕显示方向不一致时,调整本地显示屏的界面,以适配第一VD的屏幕显示方向,这样,投屏到目标设备的界面是适配目标设备的屏幕显示方向的。
主设备向目标设备投屏第二界面之后,目标设备的屏幕可能发生旋转。比如,从横屏切换到竖屏。如图15中的(c),目标设备从横屏切换到竖屏时,向主设备发送屏幕旋转指令,用于指示目标设备切换到竖屏。
如图15中的(d),主设备接收到目标设备的屏幕旋转指令之后,根据所述屏幕旋转指令,将第一VD从横屏切换为竖屏。随着第一VD切换到竖屏,本地显示屏也切换到竖屏模式,所以本地显示屏上的界面从第二界面切换到第三界面,并将第三界面向第一VD映射。第一VD将第三界面发送给目标设备。
请参见图16,为本申请实施例提供的显示方法的一种流程示意图。该方法适用于镜像投屏。如图16所示,所述流程包括:
S2001,主设备与目标设备连接。
S2002,目标设备向主设备发送屏幕显示方向。
S2003,主设备显示第一应用的第一界面。
S2004,主设备接收到向目标设备投屏的操作。
示例性的,前面的S2001至S2003的实现原理请参见图11中S1101至S1104的实现原理,不重复赘述。
S2005,主设备判断主设备与目标设备的屏幕显示方向是否一致,如果一致,执行S2006至S2007,如果不一致,执行S2008和S2010。
S2006,主设备将第一应用的第一界面发送给目标设备。
S2007,目标设备显示第一界面。
因为第一界面是适配主设备的屏幕显示方向的,如果主设备与目标设备屏幕显示方向一致,那么第一界面也是适配目标设备的屏幕显示方向的,所以主设备将第一界面发送给目标设备,无需对第一界面作调整。
S2008,主设备调整本机屏幕显示方向并显示第一应用的第二界面。
S2009,主设备将第一应用的第二界面发送给目标设备。
S2010,目标设备显示第二界面。
因为第一界面是适配主设备的屏幕显示方向的,如果主设备与目标设备屏幕显示方向不一致,那么第一界面不适配目标设备的屏幕显示方向,所以主设备调整本机屏幕显示方向与目标设备一致,并将第一界面调整为第二界面,第二界面被发送给目标设备。
S2011,目标设备检测到屏幕旋转。
S2012,目标设备向主设备发送屏幕旋转指令。
示例性的,S2011至S2012的实现原理请参见图11中S1111至S1112的实现原理,不重复赘述。
S2013,主设备基于屏幕旋转指令调整本机屏幕显示方向并显示第一应用的第三界面。
S2014,主设备将第三界面发送给目标设备。
S2015,目标设备显示第三界面。
需要说明的是,图16中可选步骤均使用虚线表示。当可选步骤全部不执行时,本申请提供的显示方法包括:主设备本地显示屏显示第一应用的第一界面(S2003)。主设备检测到投屏操作(S2004),响应于该操作主设备将第一应用的第一界面的显示信息发送给目标设备(S2006)。目标设备显示第一界面(S2007)。目标设备检测到屏幕旋转操作(S2011)。目标设备向主设备发送屏幕旋转指令(S2012)。主设备响应于该指令调整本机屏幕显示方向与目标设备的屏幕显示方向一致并显示第一应用的第三界面(S2013)。主设备将第三界面的显示信息发送给目标设备(S2014),目标设备显示第三界面(S2015)。也就是说,主设备的屏幕显示方向随着目标设备的屏幕显示方向的切换而切换,保持与目标设备的屏幕显示方向一致,这样主设备投屏到目标设备的显示信息适配目标设备的屏幕显示方向。
请参见图17,为本申请实施例提供的显示方法的另一种流程示意图。图17所示流程也可以理解为图16所示的流程的细化。如图17,所述流程包括:
S2101,主设备与目标设备连接。
S2102,目标设备向主设备发送屏幕显示方向。
S2103,主设备的本地显示屏显示第一应用的第一界面。
S2104,主设备接收到投屏操作。
示例性的,前面的S2101至S2104的实现原理请参见图11中S1101至S1104的实现原理,不重复赘述。
S2105,主设备创建第一VD,第一VD的屏幕显示方向与目标设备的屏幕显示方向一致。
S2106,主设备判断本地显示屏与第一VD的屏幕显示方向是否一致。如果一致,执行S2107至S2109,如果不一致,执行S2110至S2113。
S2107,本地显示屏将第一应用的第一界面映射到第一VD。
S2108,第一VD将第一应用的第一界面发送给目标设备。
S2109,目标设备显示第一界面。
S2110,主设备调整本地显示屏的屏幕显示方向与第一VD一致。
S2111,第一应用在本地显示屏显示第二界面,本地显示屏将第二界面映射到第一VD。
S2112,第一VD将第一应用的第二界面发送给目标设备。
S2113,目标设备显示第二界面。
S2114,目标设备检测到屏幕旋转。
S2115,目标设备向主设备发送屏幕旋转指令。
示例性的,S2114至S2115的实现原理请参见图11中S1111至S1112的实现原理,不重复赘述。
S2116,主设备基于屏幕旋转指令调整第一VD的屏幕显示方向与目标设备一致。
S2117,主设备调整本地显示屏的屏幕显示方向与第一VD一致。
S2118,第一应用在本地显示屏显示第三界面,本地显示屏将第三界面映射到第一VD。
S2119,第一VD将第三界面发送给目标设备。
S2120,目标设备显示第三界面。
需要说明的是,图17中可选步骤均使用虚线表示。当可选步骤全部不执行时,本申请提供的显示方法包括:主设备本地显示屏显示第一应用的第一界面(S2103)。主设备检测到投屏操作(S2104),响应于该操作主设备创建第一VD,第一VD的屏幕显示方向与目标设备一致(S2105)。主设备的本地显示屏将第一界面映射到第一VD中(S2107)。第一VD将第一界面的显示信息发送给目标设备(S2108)。目标设备显示第一界面(S2109)。目标设备检测到屏幕旋转操作(S2114)。目标设备向主设备发送屏幕旋转指令(S2115)。主设备响应于该指令调整第一VD的屏幕显示方向与目标设备旋转后的屏幕显示方向一致(S2116)。主设备调整本地显示屏的屏幕显示反向与第一VD一致(S2117)。第一应用在本地显示屏上显示第三界面,本地显示屏将第三界面映射到第一VD(S2118)。第一VD将第三界面的显示信息发送给目标设备(S2119),目标设备显示第三界面(S2120)。
图18为本申请实施例提供的电子设备2200的结构示意图。电子设备2200可以是前文中的主设备或目标设备。如图18所示,电子设备2200可以包括:一个或多个处理器2201;一个或多个存储器2202;通信接口2203,以及一个或多个计算机程序2204,上述各器件可以通过一个或多个通信总线2205连接。其中该一个或多个计算机程序2204被存储在上述存储器2202中并被配置为被该一个或多个处理器2201执行,该一个或多个计算机程序2204包括指令。比如,上述指令可以用于执行如上面相应实施例中主设备的相关步骤。通信接口2203用于实现主设备与其他设备(比如目标设备)的通信,比如通信接口可以是收发器。
本申请实施例还提供一种通信***。所述通信***中包括第一电子设备和第二电子设备。其中,第一电子设备可以是前文中的主设备,第二电子设备可以是前文中的目标设备。示例性的,第一电子设备可以是手机、平板电脑、PC、手表等具有显示屏的设备。第二电子设备可以是平板电脑、PC、电视机等大屏设备。其中,第一电子设备和第二电子设备的结构可以参见图18所示。比如,当图18所示的电子设备2200是第一电子设备时,当一个或多个计算机程序2204的指令被处理器执行时,使得所述第一电子设备执行如前文中第一电子设备(即主设备)的步骤。当图18所示的电子设备2200是第二电子设备时,当一个或多个计算机程序2204的指令被所述处理器执行时,使得所述第二电子设备执行如前文中第二电子设备(即目标设备)的步骤。
上述本申请提供的实施例中,从电子设备(例如主设备或目标设备)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的 各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。另外,在上述实施例中,使用诸如第一、第二之类的关系术语来区份一个实体和另一个实体,而并不限制这些实体之间的任何实际的关系和顺序。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。在不冲突的情况下,以上各实施例的方案都可以组合使用。
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。

Claims (23)

  1. 一种显示方法,应用于包括第一电子设备和第二电子设备的***,其特征在于,所述方法包括:
    所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备;
    所述第二电子设备显示所述第一界面;
    所述第二电子设备响应于屏幕旋转操作,向所述第一电子设备发送指令,所述指令用于指示所述第二电子设备的屏幕旋转方向,所述屏幕旋转方向包括从横屏切换到竖屏或从竖屏切换到横屏;
    所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息;所述第二界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同;
    所述第二电子设备显示所述第二界面。
  2. 根据权利要求1所述的方法,其特征在于,
    所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第二界面上的显示信息多于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同;
    所述第二电子设备的屏幕旋转方式为从竖屏切换到横屏的情况下,所述第二界面上的显示信息少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二界面上的显示信息多于所述第一界面的显示信息,包括:
    所述第二界面包括所述第一界面的全部显示信息,还包括第三界面的部分或全部显示信息,所述第三界面包括:所述第一界面的下一界面、上一界面、***默认界面或用户指定界面中的至少一种。
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述第二界面与所述第一界面的显示信息布局方式不同,包括:
    在所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在竖直方向上平铺显示;
    在所述第二电子设备的屏幕旋转方向为从竖屏切换到横屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息和所述第二显示信息在竖直方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示。
  5. 根据权利要求1-4任一所述的方法,其特征在于,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:
    所述第一电子设备显示所述第一界面;
    所述第一电子设备响应于所述第一操作,判断所述第一电子设备与所述第二电子设备的屏幕显示方向是否一致;
    在所述第一电子设备与所述第二电子设备的屏幕显示方向一致的情况下,将所述第一界面发送给所述第二电子设备。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备;其中,所述第四界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第四界面与所述第一界面的显示信息布局方式不同。
  7. 根据权利要求6所述的方法,其特征在于,在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备,包括:
    在所述第一电子设备处于横屏、所述第二电子设备处于竖屏的情况下,所述第四界面的显示信息多于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在竖直方向上平铺显示;
    在所述第一电子设备处于竖屏、所述第二电子设备处于横屏的情况下,所述第四界面的显示信息少于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息和所述第四显示信息在竖直方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示。
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:
    所述第一电子设备响应于所述第一操作,创建第一虚拟显示器VD,所述第一VD的屏幕显示方向与所述第二电子设备的当前屏幕显示方向一致;
    所述第一电子设备将所述第一应用转移到所述第一VD中运行;
    所述第一应用在所述第一VD中显示所述第一界面;
    所述第一VD将所述第一界面发送给所述第二电子设备。
  9. 根据权利要求8所述的方法,其特征在于,所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息,包括:
    所述第一电子设备响应于所述指令,调整所述第一VD的屏幕显示方向与所述第二电子设备旋转后的屏幕显示方向一致;
    所述第一应用响应于所述第一VD的屏幕显示方向的调整,将所述第一界面调整为所述第二界面;
    所述第一VD将所述第二界面发送给所述第二电子设备。
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备之后,所述方法还包括:
    所述第一电子设备显示第二应用的界面;或者,显示所述第一界面。
  11. 一种显示方法,应用于第一电子设备,其特征在于,所述方法包括:
    所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给第二电子设备;
    所述第一电子设备接收来自所述第二电子设备的指令,所述指令用于指示所述第二电子设备的屏幕旋转方向,所述屏幕旋转方向包括从横屏切换到竖屏或从竖屏切换到横屏;
    所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息;所述第二界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同。
  12. 根据权利要求11所述的方法,其特征在于,
    所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第二界面上的显示信息多于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同;
    所述第二电子设备的屏幕旋转方式为从竖屏切换到横屏的情况下,所述第二界面上的显示信息少于所述第一界面的显示信息,和/或,所述第二界面与所述第一界面的显示信息布局方式不同。
  13. 根据权利要求11或12所述的方法,其特征在于,所述第二界面上的显示信息多于所述第一界面的显示信息,包括:
    所述第二界面包括所述第一界面的全部显示信息,还包括第三界面的部分或全部显示信息,所述第三界面包括:所述第一界面的下一界面、上一界面、***默认界面或用户指定界面中的至少一种。
  14. 根据权利要求11-13任一所述的方法,其特征在于,所述第二界面与所述第一界面的显示信息布局方式不同,包括:
    在所述第二电子设备的屏幕旋转方向为从横屏切换为竖屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在竖直方向上平铺显示;
    在所述第二电子设备的屏幕旋转方向为从竖屏切换到横屏的情况下,所述第一界面包括第一显示信息和第二显示信息且所述第一显示信息和所述第二显示信息在竖直方向上平铺显示;所述第二界面中包括所述第一显示信息和所述第二显示信息且所述第一显示信息与所述第二显示信息在水平方向上平铺显示。
  15. 根据权利要求11-14任一所述的方法,其特征在于,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:
    所述第一电子设备显示所述第一界面;
    所述第一电子设备响应于所述第一操作,判断所述第一电子设备与所述第二电子设备的屏幕显示方向是否一致;
    在所述第一电子设备与所述第二电子设备的屏幕显示方向一致的情况下,将所述第一界面发送给所述第二电子设备。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第 一应用的第四界面发送给所述第二电子设备;其中,所述第四界面的显示信息多于或少于所述第一界面的显示信息,和/或,所述第四界面与所述第一界面的显示信息布局方式不同。
  17. 根据权利要求16所述的方法,其特征在于,在所述第一电子设备与所述第二电子设备的屏幕显示方向不一致的情况下,将所述第一应用的第四界面发送给所述第二电子设备,包括:
    在所述第一电子设备处于横屏、所述第二电子设备处于竖屏的情况下,所述第四界面的显示信息多于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在竖直方向上平铺显示;
    在所述第一电子设备处于竖屏、所述第二电子设备处于横屏的情况下,所述第四界面的显示信息少于所述第一界面,和/或,所述第一界面包括第三显示信息和第四显示信息且所述第三显示信息和所述第四显示信息在竖直方向上平铺显示,所述第四界面中包括所述第三显示信息和所述第四显示信息且所述第三显示信息与所述第四显示信息在水平方向上平铺显示。
  18. 根据权利要求11-17任一所述的方法,其特征在于,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备,包括:
    所述第一电子设备响应于所述第一操作,创建第一虚拟显示器VD,所述第一VD的屏幕显示方向与所述第二电子设备的当前屏幕显示方向一致;
    所述第一电子设备将所述第一应用转移到所述第一VD中运行;
    所述第一应用在所述第一VD中显示所述第一界面;
    所述第一VD将所述第一界面发送给所述第二电子设备。
  19. 根据权利要求18所述的方法,其特征在于,所述第一电子设备响应于所述指令,向所述第二电子设备发送所述第一应用的第二界面的显示信息,包括:
    所述第一电子设备响应于所述指令,调整所述第一VD的屏幕显示方向与所述第二电子设备旋转后的屏幕显示方向一致;
    所述第一应用响应于所述第一VD的屏幕显示方向的调整,将所述第一界面调整为所述第二界面;
    所述第一VD将所述第二界面发送给所述第二电子设备。
  20. 根据权利要求11-19任一所述的方法,其特征在于,所述第一电子设备响应于第一操作,将所述第一电子设备中第一应用的第一界面的显示信息发送给所述第二电子设备之后,所述方法还包括:
    所述第一电子设备显示第二应用的界面;或者,显示所述第一界面。
  21. 一种通信***,其特征在于,包括:第一电子设备和第二电子设备;
    所述第一电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所述第一电子设备执行如权利要求1至10任一项所述的方法中第一电子设备的步骤;
    所述第二电子设备包括:处理器;存储器;其中,所述存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述处理器执行时,使得所 述第二电子设备执行如权利要求11至20任一项所述的方法中第二电子设备的步骤。
  22. 一种电子设备,其特征在于,包括:
    处理器,存储器,以及,一个或多个程序;
    其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求11至20中任意一项所述的方法步骤。
  23. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至20中任意一项所述的方法。
PCT/CN2022/117647 2021-09-27 2022-09-07 一种显示方法与电子设备 WO2023045763A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22871811.0A EP4379538A1 (en) 2021-09-27 2022-09-07 Display method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111133943.8 2021-09-27
CN202111133943.8A CN115878056A (zh) 2021-09-27 2021-09-27 一种显示方法与电子设备

Publications (1)

Publication Number Publication Date
WO2023045763A1 true WO2023045763A1 (zh) 2023-03-30

Family

ID=85719290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/117647 WO2023045763A1 (zh) 2021-09-27 2022-09-07 一种显示方法与电子设备

Country Status (3)

Country Link
EP (1) EP4379538A1 (zh)
CN (1) CN115878056A (zh)
WO (1) WO2023045763A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106784A1 (en) * 2013-10-16 2015-04-16 One Smart Star Limited Device, system, and method of communication
CN105718227A (zh) * 2014-12-04 2016-06-29 ***通信集团公司 一种传屏方法及相关设备
CN106873765A (zh) * 2016-12-27 2017-06-20 比亚迪股份有限公司 车载终端的屏幕状态的切换方法和装置
CN106888312A (zh) * 2016-12-27 2017-06-23 比亚迪股份有限公司 车载终端的屏幕状态的切换方法和装置
CN111625163A (zh) * 2020-06-29 2020-09-04 海信电子科技(深圳)有限公司 一种显示设备及应用程序界面显示方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106784A1 (en) * 2013-10-16 2015-04-16 One Smart Star Limited Device, system, and method of communication
CN105718227A (zh) * 2014-12-04 2016-06-29 ***通信集团公司 一种传屏方法及相关设备
CN106873765A (zh) * 2016-12-27 2017-06-20 比亚迪股份有限公司 车载终端的屏幕状态的切换方法和装置
CN106888312A (zh) * 2016-12-27 2017-06-23 比亚迪股份有限公司 车载终端的屏幕状态的切换方法和装置
CN111625163A (zh) * 2020-06-29 2020-09-04 海信电子科技(深圳)有限公司 一种显示设备及应用程序界面显示方法

Also Published As

Publication number Publication date
CN115878056A (zh) 2023-03-31
EP4379538A1 (en) 2024-06-05

Similar Documents

Publication Publication Date Title
WO2020259038A1 (zh) 一种拍摄方法及设备
WO2020177583A1 (zh) 一种图像裁剪方法和电子设备
CN109766066B (zh) 一种消息处理的方法、相关装置及***
EP3944063A1 (en) Screen capture method and electronic device
WO2021057277A1 (zh) 一种暗光下拍照的方法及电子设备
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
WO2021036651A1 (zh) 一种显示方法及电子设备
WO2023015981A1 (zh) 图像处理方法及其相关设备
WO2023000772A1 (zh) 模式切换方法、装置、电子设备及芯片***
WO2021190314A1 (zh) 触控屏的滑动响应控制方法及装置、电子设备
CN111316604B (zh) 一种数据传输方法及电子设备
WO2021238351A1 (zh) 一种图像校正方法与电子设备
WO2022252780A1 (zh) 拍摄方法及电子设备
EP4135309A1 (en) Photographing method, graphic user interface, and electronic device
WO2022089122A1 (zh) 一种应用窗口的投屏方法与电子设备
WO2023273323A1 (zh) 一种对焦方法和电子设备
WO2022266907A1 (zh) 处理方法、终端设备及存储介质
CN117956269A (zh) 一种摄像头切换方法及相关电子设备
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
JP2024073455A (ja) インタフェース表示方法および電子デバイス
WO2023045763A1 (zh) 一种显示方法与电子设备
WO2022206589A1 (zh) 一种图像处理方法以及相关设备
CN115729431A (zh) 一种控件内容的拖拽方法、电子设备及***
WO2023273744A1 (zh) 一种投屏控制方法与电子设备
WO2023160224A1 (zh) 一种拍摄方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22871811

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022871811

Country of ref document: EP

Effective date: 20240301

NENP Non-entry into the national phase

Ref country code: DE