Screen projection method and electronic device
By adjusting the display style of the screen projection interface in the first electronic device according to the display screen information of the second electronic device, the problem of display screen size adaptation in multi-screen collaboration is solved, the user experience is improved, and efficiency on different devices is achieved. Screen projection effect.
Patent Information
- Application Number
- CN202011198517.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-10-31
AI Technical Summary
In multi-screen collaboration scenarios, traditional screen casting methods cannot adapt to different display sizes, resulting in poor viewing and operating experience for users. Especially when casting screens between tablets or computers and mobile phones, the display effect of the virtual window cannot adapt to large screens. Device resolution and layout.
By receiving the display screen information of the second electronic device in the first electronic device, adjusting the display style of the first interface, including adjusting the page layout and display direction to adapt to the display screen size and resolution of the second electronic device, and projecting Send the adjusted interface when the screen is running so that it can be displayed in full screen on large-screen devices.
It improves the user's viewing and operating experience, ensures that the projection interface is properly displayed on devices with different display sizes, has a beautiful layout, adapts to the resolution of large-screen devices, and enhances the user interaction experience.
Smart Images

Figure CN114442972B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and in particular to a screen projection method and electronic device. Background Art
[0002] With the development of smart terminals, there are more and more scenarios where a user owns multiple smart terminals, such as smart phones (or mobile phones), tablet computers (PADs, or tablets), or personal computers (PCs, or computers). The interconnection between multiple devices brings a better experience to users.
[0003] At present, in order to improve the user experience, a multi-screen collaboration (or multi-device collaboration) function is provided. Under the multi-screen collaboration function, the first electronic device can project the screen to the second electronic device, and the real window is displayed on the display screen of the first electronic device, and the mirror image of the first electronic device, that is, the virtual window, is displayed on the display screen of the second electronic device. The user can operate both the real window of the first electronic device and the virtual window of the second electronic device.
[0004] Compared with mobile phones, tablets or computers have larger display screens, while mobile phones have smaller display screens. Direct screen projection may not be able to adapt to the display screen size. Therefore, when projecting the screen, the display effect of the virtual window is the key experience point in the multi-screen collaboration scenario. Summary of the invention
[0005] The present application provides a display method and an electronic device to adapt to the screen projection scenarios of electronic devices with different display screen sizes and improve the user's viewing and operating experience.
[0006] In a first aspect, an embodiment of the present application provides a display method, which is applied to a first electronic device, wherein the first electronic device includes a first display screen. The method includes: the first electronic device displays a first interface on the first display screen; the first electronic device receives a first operation, and the first operation is used to instruct to project the first interface to a second electronic device for display; in response to the first operation, the first electronic device adjusts the display style of the first interface according to the display screen information of the second display screen of the second electronic device; the first electronic device sends the first interface after the display style is adjusted to the second electronic device for display. Since the display style of the first interface is adjusted according to the display screen information of the second display screen of the second electronic device, the projected first interface can adapt to electronic devices with different display screen sizes, thereby helping to improve the user's viewing and operating experience.
[0007] In a possible design, the display screen information of the second display screen includes at least one of the following: size information of the second display screen, resolution of the second display screen, and horizontal or vertical screen attributes of the second display screen. Exemplarily, the size information of the second display screen and the resolution of the second display screen are used to adjust the page layout of the projection interface, and the horizontal or vertical screen attributes of the second display screen are used to adjust the display direction of the projection interface.
[0008] In a possible design, the first interface after adjusting the display style is the first interface after adjusting the display page layout and / or display direction.
[0009] In one possible design, while the first electronic device is adjusting the display style of the first interface based on display information of the second display screen of the second electronic device, the first electronic device determines the first display style of the second electronic device when displayed in full screen based on the display information of the second display screen; and the first electronic device adjusts the first interface according to the first display style.
[0010] In a possible design, in the process of the first electronic device determining the first display style of the second electronic device when in full screen display according to the display screen information of the second display screen, the first electronic device determines the first display style of the second electronic device when in full screen display according to the display screen information of the second display screen and the horizontal and vertical screen properties of the electronic device for audio and video acquisition. By taking into account the horizontal and vertical screen properties of the electronic device for audio and video acquisition, the display direction of the first interface is further adjusted according to the horizontal and vertical screen properties of the electronic device for audio and video acquisition, which can improve the user's viewing experience.
[0011] In a possible design, the second electronic device has a horizontal screen, and the first electronic device determines the first display style of the second electronic device in full screen display according to the display screen information of the second display screen and the horizontal and vertical screen properties of the electronic device for audio and video acquisition, and the following adjustment methods may be provided:
[0012] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device is a vertical screen, the display direction of the first interface is rotated clockwise by a first angle, and the resolution of the first interface is adjusted according to the size and resolution of the second display screen;
[0013] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device has a horizontal screen, adjusting the resolution of the first interface according to the size and resolution of the second display screen;
[0014] If the electronic device for performing audio and video acquisition is the second electronic device, the resolution of the first interface is adjusted according to the size and resolution of the second display screen.
[0015] In a possible design, the first electronic device can also determine the second display style of the first electronic device when displaying according to the horizontal and vertical screen properties of the electronic device performing audio and video acquisition; the first electronic device adjusts the first interface according to the second display style.
[0016] In a possible design, the second electronic device has a horizontal screen, and the first electronic device determines the second display style of the first electronic device when displaying according to the horizontal or vertical screen properties of the electronic device performing audio and video acquisition, and the following adjustment methods may be used:
[0017] If the electronic device performing video capture is the second electronic device, and the first electronic device is a vertical screen, the display direction of the first interface is rotated counterclockwise by a second angle.
[0018] If the electronic device performing the video capture is the second electronic device, and the first electronic device is in a horizontal screen mode, the current display style of the first interface is kept unchanged;
[0019] If the electronic device performing the video capture is the first electronic device, and the first electronic device has a horizontal screen or a vertical screen, the current display style of the first interface is kept unchanged.
[0020] In a second aspect, an embodiment of the present application provides a display method, which is applied to a second electronic device, wherein the second electronic device includes a second display screen. The method includes: the second electronic device receives and displays a first interface, wherein the first interface is obtained by the first electronic device adjusting the interface displayed on the first display screen of the first electronic device according to the display screen information of the second display screen of the second electronic device; the second electronic device receives a second operation, wherein the second operation is used to instruct the second electronic device to perform a full-screen display; in response to the second operation, the second electronic device adjusts the first interface to perform a full-screen display. Since the display style of the first interface is adjusted according to the display screen information of the second display screen of the second electronic device, the first interface of the projection can adapt to electronic devices with different display screen sizes, thereby helping to improve the user's viewing and operating experience.
[0021] In a possible design, before the second electronic device receives and displays the first interface, the second electronic device may also obtain display screen information of the second display screen; and the second electronic device sends the display screen information of the second display screen to the first electronic device.
[0022] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one display screen, one or more processors, and the at least one processor is coupled to at least one memory; wherein, one or more computer programs are stored in the memory, and when the computer program is executed by the processor, the electronic device can implement a method that may be designed in any of the first or second aspects above.
[0023] In a fourth aspect, an embodiment of the present application provides a chip, which is coupled to a memory in an electronic device so that the chip calls a computer program stored in the memory during operation to implement a method that may be designed in any of the first or second aspects of the embodiment of the present application.
[0024] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program runs on an electronic device, the electronic device executes a method that may be designed in any of the first or second aspects above.
[0025] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device can execute a method that may be designed in any of the first or second aspects above.
[0026] In the seventh aspect, an embodiment of the present application provides an electronic device, comprising a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute a method that may be designed in any of the first or second aspects above.
[0027] In an eighth aspect, an embodiment of the present application provides a screen projection system, comprising a first electronic device that executes the method in the first aspect, and a second electronic device that executes the method in the second aspect. The first electronic device and the second electronic device can perform multi-screen collaboration.
[0028] For the technical effects that can be achieved by any possible design of any of the third to eighth aspects and any of the aspects above, please refer to the description of the technical effects that can be brought about by the first and second aspects above, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application;
[0030] Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6A schematic diagram of a user interface according to an embodiment of the present application;
[0031] Figure 7 A schematic diagram of the architecture of a screen projection system according to an embodiment of the present application;
[0032] Figure 8 A schematic diagram of a screen projection process according to an embodiment of the present application;
[0033] Fig. 9 , Fig.10 , Fig.11 , Fig.12 , Fig.13 , Fig.14 A schematic diagram showing the application direction of an embodiment of the present application;
[0034] Fig.15 , Fig.16 A schematic diagram of a screen projection method according to an embodiment of the present application;
[0035] Fig.17 , Fig.18 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to adapt to the window display of screens of different sizes under the multi-screen collaboration function and achieve better display results, the present application provides a screen projection method, wherein the method and the electronic device are based on the same technical concept. Since the principles of solving problems by the method and the electronic device are similar, the embodiments of the electronic device and the method can refer to each other, and the repeated parts will not be repeated.
[0037] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0038] Some terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
[0039] 1) Multi-screen collaboration, also known as multi-device collaboration, is a distributed technology that can achieve cross-system and cross-device collaboration. After connecting a mobile phone with a tablet or computer, resources can be shared and collaboratively operated, making sharing more convenient and office work more efficient. Devices using the multi-screen collaboration function can be connected in the same local area network, or connected to each other using near field communication (NFC) technology.
[0040] For example, in multi-screen collaboration, the first electronic device can project the screen to the second electronic device, and the files on the first electronic device can be viewed and opened on the second electronic device. The first electronic device displays a real window (or real interface), and the second electronic device displays a mirror image of the first electronic device. The mirror image of the first electronic device displayed on the second electronic device can be understood as a virtual window (or virtual interface, projection interface).
[0041] With the rapid development of smart terminals, the demand for multi-device collaborative work has risen rapidly, and the use scenarios of multi-screen collaboration have appeared more and more in people's lives. The traditional multi-screen collaboration function supports mobile phone screen projection to tablets or computers. Tablets or computers are large-screen devices compared to mobile phones. Therefore, in the embodiments of this application, tablets or computers are also referred to as large-screen devices or large-screen sides, and mobile phones are referred to as small-screen devices or small-screen sides. Under the traditional multi-screen collaboration function, after the screen projection connection is successful, the user can operate on the small-screen side or the large-screen side, and can choose to use the audio and video acquisition capabilities of the small-screen side or the large-screen side, that is, choose to use the small-screen side or the large-screen side to collect audio and video. The large-screen side displays the virtual window of the small-screen side, and the size of the virtual window is consistent with the real window size of the small-screen side, and the displayed content is also consistent with the display content of the small-screen side.
[0042] 2) Electronic devices: The embodiments of the present application can be applied to electronic devices. In the embodiments of the present application, the electronic device can be a terminal. For example, the terminal can be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a smart watch), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or other portable electronic devices with operating systems.
[0043] More specifically, electronic devices may include small-screen devices such as mobile phones, and large-screen devices such as tablets and computers.
[0044] For example, Figure 1 , which is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Specifically, the electronic device 100 may include a processor 110, an internal memory 121, an external memory interface 122, an audio module 130, a speaker 130A, a receiver 130B, a microphone 130C, an earphone interface 130D, a display screen 141, a camera 151, a button 152, a universal serial bus (USB) interface 160, a charging management module 170, a power management module 171 and a battery 172. In other embodiments, the electronic device 100 may also include an indicator.
[0045] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0046] In an embodiment of the present application, the processor may store one or more applications and determine the full-screen display style of the display screen according to the acquired display screen information, wherein the display screen information at least includes the size information of the display screen, so as to ensure that the full-screen display of display screens of different sizes can be adapted when multiple screens are coordinated. Alternatively, the processor may also acquire the display screen information and control the display screen 141 to display a virtual window according to the full-screen display style of the display screen.
[0047] In some embodiments, a memory may also be provided in the processor 110 for storing instructions and data.
[0048] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image acquisition function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, parameters required for taking pictures, etc.), etc. In addition, 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 disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0049] The external memory interface 122 can be used to connect an external memory card (eg, a Micro SD card) to expand the storage capacity of the electronic device 100 .
[0050] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 130 , the speaker 130A, the receiver 130B, the microphone 130C, the headphone jack 130D, and the application processor.
[0051] The electronic device 100 can realize the display function through a GPU, a display screen 141, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 141 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0052] The display screen 141 can be used to display images, videos, etc. The display screen 141 may include a display panel. The display panel may 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 141, where N is a positive integer greater than 1.
[0053] In the embodiment of the present application, the display screen 141 can display a real window or a virtual window. The display style of the display screen 141 when displaying a real window or a virtual window is determined by the display screen information of the display screen 141. The display screen information includes but is not limited to at least one of the following information: the size information of the display screen 141, the resolution of the display screen 141, or the horizontal and vertical screen attributes of the display screen 141. The size information of the display screen 141 is the size of the display window when the full screen is displayed, the resolution of the display screen 141 is the maximum resolution supported by the display screen 141, and the horizontal and vertical screen attributes of the display screen 141 are used to indicate whether the display screen 141 is currently displayed in a horizontal screen or a vertical screen.
[0054] For example, if a first electronic device projects its screen to a second electronic device, the processor of the first electronic device can obtain first display screen information of the first display screen of the first electronic device, and the processor of the second electronic device can obtain second display screen information of the second display screen of the second electronic device.
[0055] The electronic device 100 can also implement a shooting function through an ISP, a camera 151, a video codec, a GPU, a display screen 141, and an application processor.
[0056] The ISP can be used to process data fed back by the camera 151. For example, when taking a photo, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. In some embodiments, the ISP can be set in the camera 151.
[0057] The camera 151 can be used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 151, where N is a positive integer greater than 1.
[0058] In some embodiments, the camera 151 also includes a visible light camera, which can capture visible light images, for example, visible light images include color images.
[0059] The key 152 may include a power key, a volume key, etc. The key 152 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0060] In other embodiments, the processor 110 may further include one or more interfaces. For example, the interface may be a SIM card interface. For another example, the interface may also be a USB interface 160. It is understood that the embodiment of the present application may connect different modules of the electronic device 100 through interfaces, so that the electronic device 100 can achieve different functions. It should be noted that the embodiment of the present application does not limit the connection method of the interface in the electronic device 100.
[0061] The USB interface 160 is an interface that complies with the USB standard specification. For example, the USB interface 160 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 160 may be used to connect a charger to charge the electronic device 100, or may be used to transfer data between the electronic device 100 and a peripheral device. It may also be used to connect headphones to play audio through the headphones. The USB interface 160 may also be used to connect other electronic devices.
[0062] The charging management module 170 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 170 may receive charging input from a wired charger through the USB interface 160. In some wireless charging embodiments, the charging management module 170 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 170 is charging the battery 172, it may also power the electronic device 100 through the power management module 171.
[0063] The power management module 171 is used to connect the battery 172, the charging management module 170 and the processor 110. The power management module 171 receives input from the battery 172 and / or the charging management module 170, and supplies power to the processor 110, the internal memory 121, the external memory 122, the display screen 141 and the camera 151. The power management module 171 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 171 can also be set in the processor 110. In other embodiments, the power management module 171 and the charging management module 170 can also be set in the same device.
[0064] It should be understood that Figure 1 The hardware structure of the electronic device 100 shown is only an example. The electronic device 100 of the embodiment of the present application may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0065] In addition, it should be understood that the electronic device 100 in the embodiment of the present application can realize different functions by installing different applications, wherein the application can be a native application, such as settings, phone, camera, etc., and can also be a third-party application downloaded from an application store, such as wait.
[0066] 3) Virtual window refers to the projection window displayed on the display screen of the second electronic device when the first electronic device is projected onto the second electronic device. In the embodiment of the present application, an associate assistant (AA) virtual display (Virtual Display) can be used to create, manage and refresh the display style of the virtual window to adapt to display screens of different sizes.
[0067] The real window refers to the window displayed on the display screen of the first electronic device when the first electronic device is projected onto the second electronic device. In the embodiment of the present application, the window manager service (WMS), and / or the display manager service (DMS), and / or the application manager service (AMS) may be used to create, manage, and refresh the display style of the real window.
[0068] When the screen projection connection is successful, the user can view and operate the real window through the first electronic device, or view and operate the virtual window through the second electronic device, and the operation results on one side will be displayed on the other side in real time.
[0069] 4) Application (app) is a software program that can realize one or more specific functions. Usually, multiple applications can be installed in an electronic device. For example, camera applications, text messaging applications, image applications, various mailbox applications, instant messaging software or video applications, etc. The applications mentioned below can be applications installed on the electronic device when it leaves the factory, or they can be applications downloaded from the Internet or obtained from other electronic devices by the user during the use of the electronic device (for example, applications sent by other electronic devices).
[0070] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0071] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the size, content, order, timing, priority or importance of multiple objects. For example, the second file and the second file are only used to distinguish different files, and do not indicate the difference in size, content, priority or importance of the two files.
[0072] In order to better understand the technical solution provided by the embodiment of the present application, the following first briefly describes the display process of multi-screen collaboration in the related art:
[0073] In the related art, when the small screen is projected to the large screen, a virtual window is created and displayed on the large screen based on the size of the real window on the small screen. The user can operate the virtual window on the large screen or directly operate the real window on the small screen, which can be synchronized to the other side in real time. Figure 2 As shown in (a) in the figure, the size and ratio of the virtual window displayed on the large screen side are consistent with the real window displayed on the small screen side.
[0074] In the related art, full screen display is supported only in a few cases. For example, for an application that supports horizontal screen display, when the small screen side is rotated to horizontal screen display in such an application, Figure 2 As shown in (b) in FIG. 1 , the virtual window on the large screen side also rotates to a horizontal screen display along with the small screen side. In some possible scenarios, the virtual window on the large screen side is also provided with a full screen button. The user clicks the full screen button to realize the full screen display of the virtual window on the large screen side, such as Figure 2 As shown in (c) in .
[0075] But according to Figure 2 As shown in (c), when the full-screen display is displayed, the real window ratio on the small-screen side is kept unchanged, and the virtual window on the large-screen side is enlarged in proportion. Taking the video playback window as an example, there are black borders on the top, bottom, left and right of the video playback window, which does not cover the entire large-screen side of the screen, and the fonts and buttons are also enlarged accordingly, without adapting to the resolution of the large-screen side, resulting in poor user viewing and operating experience. And as the size of the large-screen side increases, the user experience will be even worse. And there are still many applications that do not support horizontal screen display. At this time, the size of the virtual window on the large-screen side remains fixed, and does not support expansion to full-screen display, resulting in poor user viewing and operating experience. It can be seen that in the related technology, under the multi-screen collaboration function, the display window cannot adapt to the display screen size of the projected device, and the user viewing and operating experience is poor.
[0076] In order to solve the above problems, the embodiment of the present application provides a display method, where the first electronic device can determine the display layout and direction of the second electronic device when it is displayed in full screen according to the display screen resolution of the second electronic device and whether it can support horizontal and vertical screen properties, and adjust the currently displayed first interface according to the display layout and direction. When the first electronic device projects the adjusted first interface to the second electronic device, the second electronic device can redraw and display the first interface according to the display layout and direction. In this way, it can ensure that the projected interface adapts to the display size of the projected device, improving the user's viewing and operating experience.
[0077] Combine the following Figure 1 The hardware structure of the electronic device 100 shown in the figure is used to describe the display method provided in the embodiment of the present application in detail. In the embodiment of the present application, the first electronic device is used to project the screen to the second electronic device as an example, that is, the first device is the projection device or source device, and the second device is the projection device or target device. The first electronic device and / or the second electronic device can be Figure 1 An electronic device 100 is shown.
[0078] It should be noted that the screen projection method of the embodiment of the present application can be applied to any application. The embodiment of the present application is mainly described by taking video application and camera application as examples. When the method provided in the embodiment of the present application is applied to other applications, its implementation is similar to that of video application and camera application, and will not be repeated here.
[0079] For example Figure 3 As shown in (a) of FIG. 1 , a user interface 300 is displayed on the display screen of the first electronic device, and the user interface 300 is a notification bar interface. The user interface 300 includes a "wireless screen projection" switch 301. In addition, the user interface 300 may also include other function switches, such as a wireless local area network (WLAN) switch, a Bluetooth switch, etc. Figure 3 As shown in (b) of FIG. 1 , a user interface 310 is displayed on the display screen of the first electronic device, and the user interface 310 is the application interface (such as a video playback interface) currently operated by the user. The user interface 310 includes a "wireless screen casting" button 311. In addition, the user interface 310 may also include a video title, a video playback pause button, a selection button, etc.
[0080] like Figure 4As shown, the first electronic device can display a user interface 320 on the display screen in response to a first operation. The first operation can be an operation on the "wireless screen projection" switch 301 or the "wireless screen projection" button 311 (such as a touch operation), or an operation on a user's voice command (such as "start screen projection"), or a quick gesture operation (such as sliding down with three fingers, etc.).
[0081] Exemplarily, when the first electronic device responds to the first operation, the processor of the first electronic device may obtain the identification of the electronic devices supporting the screen projection function around the first electronic device, and display the user interface 320 on the display screen. The user interface 320 includes the identification of the electronic devices supporting the screen projection function around the first electronic device, such as the electronic device 10, the electronic device 20, and the electronic device 30. The electronic devices supporting the screen projection function around the first electronic device include electronic devices supporting the screen projection function that are located in the same local area network as the first electronic device, and electronic devices supporting the screen projection function that are connected to the first electronic device via NFC.
[0082] The first electronic device may determine the second electronic device selected by the user in response to the second operation, and the first electronic device determines to project the content displayed on its display screen to the second electronic device. The second operation may be an operation on the identifier of the electronic device displayed in the user interface 320. For example, the user touches the electronic device 10, and the first electronic device determines that the electronic device 10 is the second electronic device, and determines to project the screen to the electronic device 10.
[0083] The screen projection method provided in the embodiment of the present application is applicable to both applications that support horizontal screen display (see scenario one) and applications that do not support horizontal screen display (see scenario two), which are described in detail below.
[0084] Scenario 1: For an application supporting horizontal screen display, a video application is used as an example. The first electronic device displays the first display screen of the first electronic device in a first display mode. Figure 3 The first electronic device will Figure 3 The video playback interface shown in (b) is projected to the second electronic device.
[0085] In a possible embodiment, when the first electronic device sends the video playback interface to the second electronic device, the second electronic device directly displays the video playback interface in full screen. Figure 5 The virtual window 500 shown in (a) displays the video playback interface 501.
[0086] In this embodiment, after receiving the video playback interface, the second electronic device obtains the second display screen information of the second display screen of the second electronic device, and sends the second display screen information to the first electronic device. The first electronic device determines the second display style of the second electronic device when the second electronic device is displayed in full screen according to the second display screen information. The first electronic device sends the second display style to the second electronic device. The second electronic device displays the video playback interface in full screen according to the second display style.
[0087] In another possible embodiment, when the first electronic device sends the video playback interface to the second electronic device, the second electronic device displays the video playback interface as shown in FIG. Figure 5 The virtual window 510 shown in (b) of FIG. 5 displays the video playback interface 511 and a full screen button 512. The second electronic device may respond to a third operation on the full screen button 512 by displaying the video playback interface 511 in full screen. Figure 5 The virtual window 500 shown in (a) in FIG.
[0088] In this embodiment, the second electronic device may first receive the third operation, then obtain the second display screen information, and then display the video playback interface in full screen based on the second display style. Alternatively, the second electronic device may first obtain the second display screen information, receive the second display style, then receive the third operation, and then display the video playback interface in full screen based on the second display style.
[0089] It can be seen that when the second electronic device displays the video playback interface in full screen, it can not only fill the window with the video screen in the video playback interface for full screen display, but also refresh the layout of the fonts and buttons displayed in the video playback interface, which is more beautiful than the layout when directly enlarged and displayed, and is more in line with the user's operating habits.
[0090] Scenario 2: For applications that do not support horizontal screen display, a camera application is used as an example. The first electronic device displays the first display screen of the first electronic device in a first display mode. Figure 6 The first electronic device will be as shown in (a) of the photographing interface 600. Figure 6 The photo taking interface 600 shown in (a) is projected to the second electronic device.
[0091] In a possible embodiment, when the first electronic device sends the photographing interface 600 to the second electronic device, the second electronic device directly displays the photographing interface 600 in full screen. Figure 6 The virtual window 610 shown in (b) in FIG. 1 displays the photo taking interface 611 .
[0092] In another possible embodiment, when the first electronic device sends the photographing interface 600 to the second electronic device, the second electronic device displays the following Figure 6 The virtual window 620 shown in (c) of FIG. 1 displays the photographing interface 621 and a full screen button 622. The second electronic device may respond to a fourth operation on the full screen button 622 by displaying the full screen as shown in FIG. Figure 6 The virtual window 610 shown in (b) in FIG.
[0093] It can be seen that for camera applications that do not support horizontal screen display, by refreshing the layout of the photo taking interface, the photo taking interface can be displayed in full screen, thereby improving the user's viewing and operating experience.
[0094] It can be understood that the screen projection method of the embodiment of the present application is applicable to the scenario of projecting the screen from the small screen side to the large screen side, and is also applicable to the scenario of projecting the screen from the large screen side to the small screen side, the small screen side to the small screen side, and the large screen side to the large screen side. In the embodiment of the present application, the scenario of projecting the screen from the small screen side to the large screen side is mainly described as an example. For other scenarios, refer to the scenario of projecting the screen from the small screen side to the large screen side, which will not be described in detail here.
[0095] The screen projection method provided in the embodiment of the present application can be applied to a screen projection system, wherein the screen projection system includes a first electronic device and a second electronic device. Of course, the screen projection system can also include other more electronic devices, such as a third electronic device. Figure 7 As shown, a possible screen projection system architecture schematic diagram provided in an embodiment of the present application, the screen projection system includes the first electronic device and the second electronic device, and the screen projection is completed between the first electronic device and the second electronic device through a multi-screen collaborative service.
[0096] The second electronic device includes a WMS. The second electronic device supports full-screen display, and a full-screen button is displayed on the second display screen of the second electronic device. When the full-screen button is operated, the WMS of the second electronic device can obtain the second display screen information of the second display screen of the second electronic device. The second electronic device can send the second display screen information to the first electronic device based on the multi-screen collaborative service. The function of the WMS of the second electronic device can be completed by the processor of the second electronic device.
[0097] The first electronic device includes a DMS, an AMS and a WMS. The DMS, AMS and WMS of the first electronic device are responsible for creating, managing and refreshing a real window displayed by the first electronic device. Exemplarily, the DMS of the first electronic device is responsible for managing a first display style of the real window of the first electronic device, and the first display style may be referred to as a local display style (LocalDisplay) of the first electronic device. The AMS of the first electronic device is used to manage the application (or the interface of the application) of the first electronic device. The WMS of the first electronic device is used to determine that the first display screen of the first electronic device displays a real window with LocalDisplay, and the real window includes a first application interface. The functions of the DMS, AMS and WMS of the first electronic device may be performed by a processor of the first electronic device.
[0098] The first electronic device may also receive second display screen information of the second display screen of the second electronic device based on the multi-screen collaborative service. The first electronic device may determine a second display style of the second electronic device in full screen display according to the second display screen information, and the second display style may be called AAVirtual Display of the second electronic device.
[0099] The first electronic device may send AA VirtualDisplay to the second electronic device based on the multi-screen collaborative service. The second display screen of the second electronic device displays a virtual window in full screen with AA Virtual Display, and the virtual window includes the first application interface.
[0100] Figure 8 A possible screen projection process diagram provided in the embodiment of the present application can be applied to the above Figure 7 The screen projection system shown includes the following steps:
[0101] S801: The first electronic device displays a real window on a first display screen, where the real window includes a first application interface.
[0102] The DMS of the first electronic device determines the LocalDisplay (i.e., the first display style) of the first electronic device, and the WMS of the first electronic device determines the window size and position of the real window according to the LocalDisplay. The AMS of the first electronic device displays the first application interface in the real window according to the window size and position of the real window.
[0103] S802: The first electronic device sends the first application interface to the second electronic device based on the multi-screen collaborative service.
[0104] S803: The second electronic device displays a first virtual window on a second display screen, where the first virtual window includes the first application interface and a full-screen button.
[0105] The first virtual window is a mirror image of the real window, that is, the first virtual window has the same window size as the real window.
[0106] S804: The second electronic device receives an instruction from a user to click the full-screen button displayed on the second display screen.
[0107] It can be understood that the user's operation on the full-screen button may be other operations besides a click operation, such as a press operation or a double-click operation.
[0108] S805: The WMS of the second electronic device obtains second display screen information of the second display screen. The second display screen information includes at least one of the following: size information of the second display screen, resolution of the second display screen, and horizontal and vertical screen attributes of the second display screen.
[0109] The gravity sensor of the second electronic device can obtain the horizontal or vertical screen attribute of the second display screen to determine whether the second display screen is currently displayed in horizontal or vertical screen. The horizontal or vertical screen attribute of the second display screen can be used to determine whether the second virtual window on the second display screen is displayed in horizontal or vertical screen, and the second virtual window is a virtual window displayed in full screen by the second electronic device.
[0110] The size information of the second display screen and the resolution of the second display screen may be used to determine the layout and resolution of the second electronic device when it is displayed in full screen.
[0111] S806: The second electronic device sends the second display screen information to the first electronic device based on the multi-screen collaborative service.
[0112] S807: The first electronic device creates an AA VirtualDisplay for the second electronic device in full screen display.
[0113] S808: The first electronic device refreshes the AAVirtual Display according to the LocalDisplay and the display screen information.
[0114] Optionally, the first electronic device refreshes the AA Virtual Display according to the LocalDisplay, the display screen information and the identifier of the audio and video acquisition device, where the identifier of the audio and video acquisition device is the identifier of the first electronic device or the identifier of the second electronic device. Here, because if the acquisition of audio and video is involved in the screen projection process, both the first electronic device and the second electronic device can acquire audio and video, the user can choose to have the first electronic device or the second electronic device acquire audio and video. The first electronic device can determine which electronic device the user selects as the audio and video acquisition device, that is, determine whether the first electronic device or the second electronic device acquires audio and video. Here, by considering the horizontal and vertical screen properties of the image acquisition device, it can be ensured that the second electronic device subsequently displays the user interface in the positive direction for the user.
[0115] In an embodiment of the present application, in order to ensure that the user interface viewed by the user on the second electronic device is positive, the horizontal and vertical screen directions and sizes of the AA Virtual Display need to be consistent with the horizontal and vertical screen attributes and sizes of the second display screen. Here, the first electronic device is a small-screen device and the second electronic device is a large-screen device as an example for explanation. Generally, if the second electronic device is a large-screen device, the second display screen of the second electronic device is placed in a horizontal screen. Of course, the possibility of the second display screen being placed in a vertical screen is not ruled out. The small-screen device may be displayed in a horizontal screen or in a vertical screen as the user's grip changes. The display direction of the camera of the audio and video acquisition device is affected by the physical direction of the audio and video acquisition device and the horizontal and vertical screen directions of the application display, and it will also affect the display of the final second virtual window. Therefore, the embodiment of the present application also formulates a negotiation strategy between AA Virtual Display and LocalDisplay to negotiate the final display style of the second virtual window. The negotiation strategy is described in detail later.
[0116] S809: The first electronic device sends the refreshed AA VirtualDisplay to the second electronic device based on the multi-screen collaborative service.
[0117] The AA Virtual Display described here is the AA Virtual Display refreshed in S808.
[0118] S810: The second electronic device displays a second virtual window in full screen on the second display screen according to the AA Virtual Display, where the second virtual window displays the first application interface.
[0119] The AA Virtual Display described here is the AA Virtual Display refreshed in S808.
[0120] It can be understood that when the second display information does not change and the application displayed by the first electronic device does not send a change, the second electronic device can always display other application interfaces with the AA Virtual Display.
[0121] If any of the second display information and the application displayed by the first electronic device changes, the Figure 8 The screen projection process is shown.
[0122] Here we describe in detail the negotiation strategy between AA Virtual Display and LocalDisplay.
[0123] First of all The native strategy of the camera under the operating system is described. In the embodiment of this application, Operating system for electronic devices is referred to as equipment.
[0124] 1) When the device is held in landscape or portrait mode, the image sensor (ImageSensor) has a fixed imaging scanning direction, but the final image output direction of the ImageSensor is different from The physical orientation of the device is not necessarily the same. Take the ImageSensor of the rear camera as an example. Fig. 9 As shown, when When the device is held in landscape mode, the image output direction of ImageSensor is positive, that is, it is positive for the user to watch. When the device is held in portrait mode, the image output direction of the ImageSensor needs to be rotated 90 degrees clockwise to ensure that the user can view it in the normal direction. That is, the image output of the ImageSensor has been rotated 90 degrees counterclockwise.
[0125] 2) Based on 1), the application also needs to consider the horizontal or vertical screen orientation of the application when displaying, to ensure that no matter how the ImageSensor outputs the image, the application can be displayed in the normal direction. Fig.10As shown in the figure, when the application is in landscape mode, the image output direction of ImageSensor is in the positive direction, and the application layer does not need to perform any rotation operation to ensure that what the user sees is in the positive direction. When the application is in portrait mode, the image output direction of ImageSensor has been rotated 90 degrees counterclockwise. The application layer needs to rotate the image output of ImageSensor by 90 degrees clockwise again to ensure that what the user sees is in the positive direction.
[0126] The negotiation strategy of AA Virtual Display and LocalDisplay is shown in the following Table 1. Here, the first electronic device is a small-screen device, the second electronic device is a large-screen device, and the large-screen device is placed in landscape orientation as an example, including the following scenarios:
[0127] Scenario 1: The small-screen device is an audio and video acquisition device. The small-screen device is held vertically. The image output direction of the ImageSensor of the small-screen device is as follows: Fig.11 As shown in (a) in the figure, the LocalDisplay of the small-screen device specifies that the application display is displayed in portrait mode, and the AA Virtual Display of the large-screen device specifies that the application display is displayed in landscape mode.
[0128] LocalDisplay is displayed in portrait mode. As can be seen from 2) above, the application itself has a rotation strategy and the application is displayed in the forward direction after rotation. Therefore, no additional rotation is required here. The final display of the small-screen device is shown in (c) in 11.
[0129] AA Virtual Display is displayed in landscape mode, but the application itself does not have the ability to rotate on the large-screen device. Therefore, the multicast source discovery protocol (MSDP) is required for supplementary rotation. MSDP can rotate 90 degrees clockwise based on the output direction of ImageSensor. After rotation, the application is displayed in the forward direction, and the resolution of the application needs to be refreshed according to the size of the display screen of the large-screen device. The final display of the large-screen device is as follows: Fig.11 As shown in (b) in .
[0130] Scenario 2: The small-screen device is an audio and video acquisition device, and the small-screen device is held in landscape mode. The image output direction of the ImageSensor of the small-screen device is as follows: Fig.12 As shown in (a) in the figure, the LocalDisplay of the small-screen device specifies that the application display is displayed in landscape mode, and the AA Virtual Display of the large-screen device specifies that the application display is displayed in landscape mode.
[0131] LocalDisplay is displayed in landscape mode. As can be seen from 2) above, the output direction of ImageSensor is forward, so no additional rotation is required. The final display of the small-screen device is as follows: Fig.12 As shown in (c) in .
[0132] AA Virtual Display is horizontal, and the output direction of ImageSensor is forward, so no additional rotation is required. However, the resolution of the application needs to be refreshed according to the size of the display screen of the large-screen device. The final display of the large-screen device is as follows: Fig.12 As shown in (b) in .
[0133] Scenario 3: The large-screen device is used as an audio and video acquisition device, and the small-screen device is held vertically. The image output direction of the ImageSensor of the large-screen device is as follows: Fig.13 As shown in (a) in the figure, the LocalDisplay of the small-screen device specifies that the application display is displayed in portrait mode, and the AA Virtual Display of the large-screen device specifies that the application display is displayed in landscape mode.
[0134] LocalDisplay is displayed in portrait mode. As can be seen from 2) above, the application itself has a rotation strategy but performs redundant rotation. Therefore, the MSDP service is required to perform additional rotation. MSDP can rotate the application 90 degrees counterclockwise based on the rotation of the application. After the rotation, the application is displayed in the forward direction. The final display of the small-screen device is as follows: Fig.13 As shown in (c) in .
[0135] AA Virtual Display is horizontal, and the output direction of ImageSensor is forward, so no additional rotation is required. However, the resolution of the application needs to be refreshed according to the size of the display screen of the large-screen device. The final display of the large-screen device is as follows: Fig.13 As shown in (b) in .
[0136] Scenario 4: The large-screen device is an audio and video acquisition device, and the small-screen device is held in landscape mode. The image output direction of the ImageSensor of the large-screen device is as follows: Fig.14 As shown in (a) in the figure, the LocalDisplay of the small-screen device specifies that the application display is displayed in landscape mode, and the AA Virtual Display of the large-screen device specifies that the application display is displayed in landscape mode.
[0137] LocalDisplay is displayed in landscape mode. As can be seen from 2) above, the output direction of ImageSensor is forward, so no additional rotation is required. The final display of the small-screen device is as follows: Fig.14 As shown in (c) in .
[0138] AA Virtual Display is horizontal, and the output direction of ImageSensor is forward, so no additional rotation is required. However, the resolution of the application needs to be refreshed according to the size of the display screen of the large-screen device. The final display of the large-screen device is as follows: Fig.14 As shown in (b) in .
[0139] Table 1
[0140]
[0141]
[0142] It can be seen that in the embodiment of the present application, when cross-device collaboration is performed, through the formulation of the negotiation strategy, no matter whether the small screen side is held in landscape or portrait mode, both the small screen side and the large screen side can be adaptively displayed according to the size, landscape or portrait orientation, and resolution of the display screen. In particular, when the small screen side is projected to the large screen side, whether it is a self-developed application or a third-party application, or an application that supports landscape display or does not support landscape display, it can be displayed in full screen, filling the display window on the large screen side, and the display ratio of the font and button is normal, and the layout of the window is more beautiful, which improves the user's viewing and operating experience.
[0143] In combination with the above embodiments and drawings, the present application embodiment provides a screen projection method. Figure 1 The hardware structure shown is implemented in the electronic device 100.
[0144] like Fig.15 As shown, a flowchart of a screen projection method provided in an embodiment of the present application is applied to a first electronic device, where the first electronic device includes a first display screen. The following steps are included:
[0145] S1501: The first electronic device displays a first interface on the first display screen.
[0146] S1502: The first electronic device receives a first operation, where the first operation is used to instruct to project the first interface onto a second electronic device for display.
[0147] S1503: In response to the first operation, the first electronic device adjusts the display style of the first interface according to display screen information of the second display screen of the second electronic device.
[0148] The display screen information of the second display screen includes at least one of the following: size information of the second display screen, resolution of the second display screen, and horizontal and vertical screen attributes of the second display screen.
[0149] The first interface after adjusting the display style is the first interface after adjusting the display page layout and / or display direction.
[0150] The first electronic device adjusts the display style of the first interface according to the display information of the second display, which may be the display style when the first interface is displayed in full screen on the second display, or the display style when the first interface is displayed on the second display at a certain ratio of the full screen (such as a first ratio, the first ratio is greater than 0 and not greater than 1), for example, the display style when displayed at 60% of the full screen.
[0151] In some embodiments, the first electronic device adjusts the display style of the first interface according to the display information of the second display of the second electronic device, including: the first electronic device determines the first display style of the second electronic device in full screen display according to the display information of the second display; the first electronic device adjusts the first interface according to the first display style.
[0152] The first electronic device determines, according to the display screen information of the second display screen, a first display style of the second electronic device when the second electronic device is in full screen display, including:
[0153] The first electronic device determines a first display style of the second electronic device in full-screen display according to the display screen information of the second display screen and the horizontal and vertical screen properties of the electronic device for audio and video acquisition.
[0154] Exemplarily, the second electronic device is a horizontal screen, and the first electronic device determines the first display style of the second electronic device in full screen display according to the display screen information of the second display screen and the horizontal and vertical screen properties of the electronic device for audio and video acquisition, including:
[0155] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device is a vertical screen, the display direction of the first interface is rotated clockwise by a first angle, and the resolution of the first interface is adjusted according to the size and resolution of the second display screen;
[0156] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device has a horizontal screen, adjusting the resolution of the first interface according to the size and resolution of the second display screen, and optionally, keeping the display direction of the first interface unchanged;
[0157] If the electronic device performing audio and video capture is the second electronic device, the resolution of the first interface is adjusted according to the size and resolution of the second display screen, and optionally, the display direction of the first interface is kept unchanged (when the application has the ability to rotate) or rotated clockwise by a third angle (when the application does not have the ability to rotate).
[0158] Exemplarily, the second electronic device is a vertical screen, and the first electronic device determines the first display style of the second electronic device in full screen display according to the display screen information of the second display screen and the horizontal and vertical screen properties of the electronic device for audio and video acquisition, including:
[0159] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device has a vertical screen, adjusting the resolution of the first interface according to the size and resolution of the second display screen, and optionally, keeping the display direction of the first interface unchanged;
[0160] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device is a horizontal screen, the display direction of the first interface is rotated clockwise by a fourth angle, and the resolution of the first interface is adjusted according to the size and resolution of the second display screen.
[0161] If the electronic device performing audio and video capture is the second electronic device, the resolution of the first interface is adjusted according to the size and resolution of the second display screen, and optionally, the display direction of the first interface is kept unchanged (when the application has the ability to rotate) or rotated clockwise by a fifth angle (when the application does not have the ability to rotate).
[0162] In some embodiments, the first electronic device may also determine a second display style of the first electronic device when displaying according to the horizontal or vertical screen properties of the electronic device performing audio and video acquisition; the first electronic device displays the first interface according to the second display style.
[0163] Exemplarily, the first electronic device may also determine the second display style of the first electronic device during display according to the horizontal and vertical screen properties of the electronic device for performing audio and video acquisition, including:
[0164] If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device has a horizontal screen or a vertical screen, the first electronic device may keep the current display style of the first interface unchanged;
[0165] If the electronic device for audio and video acquisition is the second electronic device, and the second electronic device is in landscape mode, when the first electronic device is in landscape mode, the first electronic device may keep the current display style of the first interface unchanged;
[0166] If the electronic device for audio and video acquisition is the second electronic device, the second electronic device has a horizontal screen and the first electronic device has a vertical screen, the display direction of the first interface is rotated counterclockwise by a second angle;
[0167] If the electronic device for audio and video acquisition is the second electronic device, and the second electronic device has a vertical screen, when the first electronic device has a vertical screen, the first electronic device may keep the current display style of the first interface unchanged;
[0168] If the electronic device performing audio and video capture is the second electronic device, the second electronic device is a portrait screen, and the first electronic device is a landscape screen, the display direction of the first interface is rotated counterclockwise by a sixth angle (when the application has the ability to rotate), or the current display direction of the first interface is kept unchanged (when the application does not have the ability to rotate).
[0169] S1504: The first electronic device sends the first interface with the adjusted display style to the second electronic device for display.
[0170] like Fig.16 As shown, the embodiment of the present application also provides a flowchart of a screen projection method, which is applied to a second electronic device, and the second electronic device includes a second display screen. The steps include:
[0171] S1601: The second electronic device receives and displays a first interface, where the first electronic device adjusts the interface displayed on the first electronic device according to display screen information of a second display screen of the second electronic device.
[0172] S1602: The second electronic device receives a second operation, where the second operation is used to instruct the second electronic device to perform full-screen display.
[0173] The execution order of S1601 and S1602 is not limited here.
[0174] S1603: In response to the second operation, the second electronic device adjusts the first interface to display it in full screen.
[0175] Optionally, before the second electronic device receives and displays the adjusted first interface, the second electronic device may also obtain display screen information of the second display screen; and the second electronic device sends the display screen information of the second display screen to the first electronic device.
[0176] In the present application embodiment Fig.15 and 16 The specific implementation of the method shown can refer to the introduction of the above-mentioned related embodiments.
[0177] The various embodiments in the embodiments of the present application can be used in combination with each other or can be used alone.
[0178] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of the electronic device as the execution subject. In order to realize the functions in the methods provided by the embodiments of the present application, the electronic device may include a hardware structure and / or a software module, and the functions are realized in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the 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 counting scheme.
[0179] Based on the same concept, Fig.17 The electronic device 1700 provided by the present application is shown as follows, which is used to execute Fig.15 or Fig.16 The screen projection method shown. The electronic device 1700 can be a first electronic device or a second electronic device. For example, the electronic device 1700 includes a processing module 1701 and a storage module 1702. One or more computing programs are stored in the storage module 1702 and are configured to be executed by the one or more processing modules 1701 to implement the screen projection method provided in an embodiment of the present application. Optionally, the electronic device also includes a transceiver module 1703. For example, the transceiver module 1703 sends the first interface after adjusting the display style to the second electronic device.
[0180] Based on the same concept, Fig.18 The electronic device 1800 provided by the present application is shown. The electronic device 1800 includes at least one processor 1810, a memory 1820 and a transceiver 1830. The processor 1810 is coupled to the memory 1820 and the transceiver 1830. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The connection medium between the above-mentioned transceiver 1830, the processor 1810 and the memory 1820 is not limited in the embodiment of the present application. For example, in the embodiment of the present application, Fig.18 The memory 1820, the processor 1810 and the transceiver 1830 may be connected via a bus, which may be divided into an address bus, a data bus, a control bus, and the like.
[0181] Specifically, the memory 1820 is used to store program instructions.
[0182] The transceiver 1830 is used to send or receive the first interface after adjusting the display style, etc.
[0183] The processor 1810 is used to call the program instructions stored in the memory 1820 so that the device 1800 executes Fig.15 or Fig.16 The screen projection method shown.
[0184] In the embodiment of the present application, the processor 1810 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.
[0185] In the embodiment of the present application, the memory 1820 can be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and can also be a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0186] It should be understood that the electronic device 1800 can be used to implement the embodiment of the present application. Fig.15 or Fig.16 The related features of the method shown can be referred to above and will not be described again here.
[0187] An embodiment of the present application also provides a screen projection system, including a first electronic device that executes the above-mentioned screen projection method, and a second electronic device that executes the above-mentioned screen projection method.
[0188] The first electronic device and the second electronic device perform multi-screen collaboration.
[0189] It is clear to those skilled in the art that the embodiments of the present application can be implemented in hardware, firmware, or a combination thereof. When implemented using software, the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a computer can access. Taking this as an example but not limited to: a computer-readable medium can include RAM, ROM, electrically erasable programmable read only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition. Any connection can be appropriately a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fixation of the medium. As used in the embodiments of the present application, disk and disc include compact disc (CD), laser disc, optical disc, digital video disc (DVD), floppy disk, and Blu-ray disc, where disks usually copy data magnetically and discs use lasers to copy data optically. The above combinations should also be included in the scope of protection of computer-readable media.
[0190] In short, the above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present application shall be included in the protection scope of the present application.
Claims
1. A screen projection method, characterized in that: Applied to a first electronic device, the first electronic device includes a first display screen, and the method includes: The first electronic device displays a first interface on the first display screen; The first electronic device receives a first operation, where the first operation is used to instruct to project the first interface to a second electronic device for display; In response to the first operation, the first electronic device determines a first display mode of the second electronic device in full screen display according to size information and resolution information of the second display screen of the second electronic device and horizontal and vertical screen properties of the electronic device for audio and video acquisition; The first electronic device adjusts the first interface according to the first display style; The first electronic device sends the first interface after adjusting the display style to the second electronic device for display; The electronic device for collecting audio and video is the first electronic device or the second electronic device; The first electronic device adjusting the first interface according to the first display style includes: The first electronic device adjusts the resolution of the first interface according to the size information and resolution of the second display screen; or, The first electronic device rotates the display direction of the first interface, and adjusts the resolution of the first interface according to the size information and resolution of the second display screen; Wherein, when the electronic device performing audio and video sampling is the first electronic device: if the horizontal and vertical screen attributes of the first electronic device and the second electronic device are the same, the display direction of the first interface is kept unchanged; if the horizontal and vertical screen attributes of the first electronic device and the second electronic device are different, the display direction of the first interface is rotated clockwise by a preset angle; Among them, when the electronic device performing audio and video acquisition is the second electronic device, if the application performing audio and video acquisition in the second electronic device has the ability to rotate, the display direction of the first interface is kept unchanged; if the application performing audio and video acquisition in the second electronic device does not have the ability to rotate, the first interface is rotated clockwise by a preset angle.
2. The method according to claim 1, characterized in that The second electronic device is a horizontal screen, and the first electronic device determines a first display style of the second electronic device in full screen display according to display screen information of the second display screen and horizontal and vertical screen properties of the electronic device for audio and video acquisition, including: If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device is a vertical screen, the display direction of the first interface is rotated clockwise by a first angle, and the resolution of the first interface is adjusted according to the size and resolution of the second display screen; If the electronic device for audio and video acquisition is the first electronic device, and the first electronic device has a horizontal screen, adjusting the resolution of the first interface according to the size and resolution of the second display screen; If the electronic device for audio and video acquisition is the second electronic device, the resolution of the first interface is adjusted according to the size and resolution of the second display screen.
3. The method according to claim 1 or 2, characterized in that Also includes: The first electronic device determines, according to the horizontal and vertical screen properties of the electronic device for audio and video acquisition, a second display style of the first electronic device when displaying; The first electronic device adjusts the first interface according to the second display style.
4. The method according to claim 3, characterized in that The first electronic device determines, according to the horizontal or vertical screen property of the electronic device for audio and video acquisition, a second display mode of the first electronic device during display, including: If the electronic device performing the video capture is the second electronic device, the second electronic device has a horizontal screen and the first electronic device has a vertical screen, the display direction of the first interface is rotated counterclockwise by a second angle.
5. An electronic device, characterized in that: comprising a display screen, at least one processor, the at least one processor being coupled to at least one memory; The display screen is used to display the interface; The at least one processor is configured to execute a computer program or instruction stored in the at least one memory, so that the electronic device executes the method according to any one of claims 1 to 4.
6. An electronic device, characterized in that: including a processor and an interface circuit; The interface circuit is used to receive code instructions and transmit them to the processor; The processor is configured to run the code instructions to perform the method according to any one of claims 1 to 4.
7. A chip, characterized in that: The chip is coupled to a memory in an electronic device so that the chip calls a computer program stored in the memory when running to implement the method according to any one of claims 1 to 4.
8. A computer storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on the electronic device, the electronic device causes the method according to any one of claims 1 to 4 to be implemented.
9. A screen projection system, characterized in that: The method comprises a first electronic device for executing the method as claimed in any one of claims 1 to 4, and a second electronic device for interacting with the first electronic device.
