Screen mirroring method and apparatus, and electronic device

By using occlusion information for partial refresh during multi-window projection, the problem of high power consumption of multi-window projection is solved and the user experience and frame rate are improved.

WO2024222375A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084692
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-26
Filing Date
2024-03-29
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

During the multi-window screencasting process, the existing technology requires encoding and transmitting the display interfaces of multiple windows, resulting in high power consumption and affecting the user experience.

Method used

By sending occlusion information between the first electronic device and the second electronic device, the first electronic device only sends data of the non-occlusion area of ​​the screen projection window based on the occlusion information, thereby achieving partial refresh of the screen projection window and reducing power consumption.

Benefits of technology

It effectively reduces the power consumption during screencasting, improves user experience, and avoids the problem of black area residue that may occur during drag and drop operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084692_31102024_PF_FP_ABST
    Figure CN2024084692_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic devices, and discloses a screen mirroring method and apparatus, and an electronic device, for use in reducing power consumption of screen mirroring. The method comprises: after a second electronic device displays, in a screen mirroring window, a first interface mirrored by a first electronic device, when the screen mirroring window is shielded, shielding information of the screen mirroring window can be synchronized to the first electronic device. When a user interface of the first electronic device changes and the first interface is updated to be a second interface, the first electronic device can send screen mirroring data of a non-shielding area of the second interface to the second electronic device, so that the second electronic device displays the second interface in the non-shielding area of the screen mirroring window. Therefore, the method can reduce the amount of data transmitted between the electronic devices in a screen mirroring process, and can further reduce the power consumption of screen mirroring.
Need to check novelty before this filing date? Find Prior Art

Description

Screen projection method, device and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 26, 2023, with application number 202310478376.2 and application name “A screen projection method, device and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a screen projection method, device, and electronic device. Background Art

[0004] With the development of life and technology, the application of screen projection technology is becoming more and more widespread. Screen projection technology refers to the ability of an electronic device to project the display interface of its screen onto another electronic device for display. For example, a movie on a mobile phone can be projected to play on a computer, and pictures on a tablet can be projected to display on a TV.

[0005] However, when the first electronic device performs multi-window projection, it is necessary to transmit the display interface codes corresponding to the multiple windows to the second electronic device, which consumes high power and affects the user experience.

[0006] Summary of the Invention

[0007] Embodiments of the present application provide a screen projection method, device, and electronic device for reducing power consumption of multi-window screen projection.

[0008] In a first aspect, an embodiment of the present application provides a screen projection method, the method comprising: when a first electronic device displays a first interface, sending first screen projection data to a second electronic device, wherein the first screen projection data is used for the second electronic device to display the first interface in the projection window. The first electronic device receives occlusion information of the projection window from the second electronic device, and the occlusion information is used to indicate an occluded area or a non-occluded area in the projection window. When the first electronic device displays the second interface, the first electronic device sends second screen projection data to the second electronic device according to the occlusion information; wherein the second screen projection data is used to display the second interface in the non-occluded area of ​​the projection window.

[0009] In this method, during the screen projection process to the second electronic device, the first electronic device can receive the occlusion information of the projection window sent by the second electronic device and determine the occlusion area or non-occlusion area of ​​the projection window. This allows the first electronic device to send the projection data of the non-occlusion area of ​​the projection window to the second electronic device according to the occlusion information when displaying a new interface, thereby realizing a partial refresh of the projection window of the second electronic device and achieving the purpose of reducing the power consumption of the projection.

[0010] In an optional design, the first electronic device can determine the non-obstructed area of ​​the second interface based on the occlusion information; the first electronic device encodes the non-obstructed area of ​​the second interface, obtains the second projection data, and sends the second projection data to the second electronic device.

[0011] Through this design, the first electronic device can only encode and transmit the non-blocked area of ​​the second interface, thereby improving the frame rate of the screen projection, reducing power consumption, and thus improving the user experience.

[0012] In an optional design, when displaying the second interface, the first electronic device can receive status information of the projection window from the second electronic device, where the status information is used to indicate that the projection window is not obstructed. The first electronic device can encode the second interface based on the status information to obtain third projection data, and send the third projection data to the second electronic device. The third projection data is used to display the second interface in the projection window.

[0013] Through this design, the first electronic device can globally refresh the projection window based on the status information.

[0014] In an optional design, after receiving the status information of the projection window, the first electronic device can also receive updated occlusion information of the projection window from the second electronic device. The updated occlusion information is used to indicate the occlusion area or non-occlusion area of ​​the projection window. When the first electronic device displays the third interface, it can determine the non-occlusion area of ​​the third interface based on the updated occlusion information. The first electronic device can encode the non-occlusion area of ​​the third interface to obtain fourth projection data, and send the fourth projection data to the second electronic device; the fourth projection data is used to display the third interface in the non-occlusion area of ​​the projection data.

[0015] Through this design, the first electronic device can send the fourth projection data for updating the non-blocked area of ​​the projection window to the second electronic device based on the received updated occlusion information, thereby achieving local refresh of the projection window and reducing the projection power consumption.

[0016] In a second aspect, the present application provides a screen projection method, the method comprising:

[0017] The second electronic device receives the first projection data from the first electronic device, and displays the first interface in the projection window according to the first projection data. The second electronic device determines the occlusion information of the projection window and sends the occlusion information to the first electronic device, wherein the occlusion information is used to indicate the occlusion area or non-occlusion area in the projection window. The second electronic device receives the second projection data from the first electronic device, and displays the second interface in the non-occlusion area of ​​the projection window according to the second projection data.

[0018] In this method, when the second electronic device displays the interface of the projection of the first electronic device in the projection window, it sends the occlusion information of the projection window to the first electronic device, so that the first electronic device can generate second projection data for refreshing the unobstructed window of the projection window of the second electronic device based on the occlusion information, thereby realizing partial refresh of the projection window and achieving the purpose of reducing power consumption.

[0019] In an optional design, the second electronic device can determine the position information of other windows and the position information of the display window, and determine the occlusion information of the projection window based on the position information of other windows and the position information of the projection window; wherein, other windows are windows other than the projection window displayed on the second electronic device.

[0020] Through this design, the second electronic device can determine whether the projection window overlaps with other windows based on the position information of other windows and the position information of the projection window, and obtain the occlusion information of the projection window.

[0021] In an optional design, the second electronic device can determine whether the projection window is blocked by other windows based on the position information of other windows and the position information of the projection window. When it is determined that the projection window is blocked by other windows, the second electronic device can determine the blocking information of the projection window.

[0022] Through this design, the second electronic device can determine the occlusion information of the projection window.

[0023] In an optional design, the second electronic device can move other windows or the projection window in response to a drag operation. During the drag operation, the second electronic device can send status information of the projection window to the first electronic device. The status information is used to indicate that the projection window is in an unobstructed state. During the drag operation, the second electronic device can receive third projection data from the first electronic device and display the second interface in the projection window based on the third projection data. The third projection data is used to display the second interface in the projection window. After the drag operation ends, when it is determined that the projection window is obstructed by other windows, the second electronic device determines updated obstruction information of the projection window and sends the updated obstruction information to the first electronic device. The updated obstruction information is used to indicate the obstructed area or non-obstructed area of ​​the projection window. The second electronic device can also receive fourth projection data from the first electronic device and display the third interface in the non-obstructed area of ​​the projection window based on the fourth projection data. The fourth projection data is used to display the third interface in the non-obstructed area of ​​the projection window.

[0024] Through this design, during the execution of the drag operation, the second electronic device sends the status information that the projection window is in an unobstructed state to the first electronic device, so that the projection window can be globally refreshed based on the received third projection data. In this way, the problem of residual black areas due to the previous partial refresh of the projection window during the dragging process of the window can be avoided. Moreover, after the drag operation is completed, when the second electronic device determines that the projection window is obscured by other windows, it can send the updated obstruction information to the first electronic device, so that the non-obstructed area of ​​the projection window can be partially refreshed based on the received fourth projection data, thereby achieving the purpose of reducing power consumption.

[0025] In a third aspect, the present application provides a screen projection device, applied to a first electronic device, the screen projection device comprising:

[0026] a display screen, for displaying a user interface;

[0027] a communication unit for receiving and sending data;

[0028] A processing unit is used to send first projection data to the second electronic device through the communication unit when the display screen displays the first interface, and the first projection data is used for the second electronic device to display the first interface in the projection window; receive occlusion information of the projection window from the second electronic device through the communication unit; the occlusion information is used to indicate the occluded area or non-occluded area in the projection window; when the display screen displays the second interface, send second projection data to the second electronic device through the communication unit according to the occlusion information; the second projection data is used to display the second interface in the non-occluded area of ​​the projection window.

[0029] In a fourth aspect, the present application provides a screen projection device, applied to a second electronic device, the device comprising:

[0030] a display screen, for displaying a user interface;

[0031] a communication unit for receiving and sending data;

[0032] A processing unit is used to receive first projection data from a first electronic device through a communication unit, and display a first interface in a projection window on a display screen according to the first projection data; determine occlusion information of the projection window, where the occlusion information is used to indicate an occluded area or a non-occluded area in the projection window; send the occlusion information to the first electronic device through the communication unit; receive second projection data from the first electronic device through the communication unit, and display a second interface in a non-occluded area in the projection window on the display screen according to the second projection data.

[0033] In a fifth aspect, the present application provides an electronic device comprising a display screen, one or more processors, and one or more memories. The display screen is configured to display a user interface; the one or more memories are configured to store one or more computer programs and data information; and the one or more processors are configured to execute the computer programs stored in the one or more memories, so that the electronic device performs the method described in any of the first and second aspects above. The electronic device may be the first electronic device described in the first aspect, or the second electronic device described in the second aspect.

[0034] In a sixth aspect, the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed by a computing device, the computing device executes the method of any one of the above-mentioned first to second aspects, and any possible implementation of any aspect.

[0035] In the seventh 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.

[0036] In an eighth aspect, the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a computing device, the computing device executes the method of any one of the above-mentioned first to second aspects, and any possible implementation of any aspect.

[0037] In the ninth aspect, the present application provides a screen projection system, including: a first electronic device and a second electronic device; the first electronic device is used to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect, and the second electronic device is used to execute the method in the above-mentioned second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] FIG1 is a schematic diagram of the architecture of a screen projection system;

[0039] FIG2 is a schematic diagram of an exemplary screen projection scenario provided by this application;

[0040] FIG3 is a schematic diagram of another screen projection scenario exemplarily provided in this application;

[0041] FIG4 is a schematic diagram of the hardware structure of a possible electronic device provided in an embodiment of the present application;

[0042] FIG5 is a flow chart of a screen projection method provided by the present application;

[0043] FIG6 is a schematic diagram of a display interface of a display screen of a second electronic device provided by the present application;

[0044] FIG7 is an interactive diagram of a screen projection method provided by the present application;

[0045] FIG8 is a schematic diagram of a specific use case for generating screen projection data provided by the present application;

[0046] FIG9 is a schematic diagram of executing a drag operation provided by the present application;

[0047] FIG10 is a flow chart of a method for determining occlusion information provided by the present application;

[0048] FIG11 is a schematic diagram of a screen projection use case provided by this application;

[0049] FIG12 is a schematic diagram of a complete process of a screen projection method provided by this application;

[0050] FIG13 is a schematic structural diagram of a screen projection device provided in this application. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the following embodiments of the present application.

[0052] First, the concepts related to the embodiments of the present application are explained.

[0053] 1) Multi-screen collaboration, also known as multi-device collaboration, is a distributed technology that enables cross-system and cross-device collaboration. Connecting a phone, tablet, or computer enables resource sharing and collaborative operations, greatly increasing convenience and productivity. Devices using multi-screen collaboration can be connected within the same local area network or via near-field communication (NFC).

[0054] For example, in multi-screen collaboration, the first electronic device can project its screen to the second electronic device, and the files and applications 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 projection window (or virtual interface, virtual window, projection interface).

[0055] 2) Projection 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.

[0056] A native window refers to a window on an electronic device that displays the application interface of a native application of the electronic device.

[0057] When the screen projection connection is successful, the user can view and operate the native window through the first electronic device, or view and operate the screen projection window through the second electronic device, and the operation results on one side will be displayed on the other side in real time.

[0058] 3) Application (app) is a software program that can realize one or more specific functions. Generally, multiple applications can be installed in an electronic device. For example, camera applications, text messaging applications, image applications, various email applications, instant messaging software or video applications. 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 while the user is using the electronic device (for example, applications sent by other electronic devices).

[0059] 4) Screen Zero refers to the screen currently being displayed on an electronic device. Typically, when an interface cannot be fully displayed on the display screen of an electronic device, the screen Zero can be expanded, and the entire interface can be fully rendered on the expanded screen Zero. The electronic device's display screen displays a portion of the interface on the expanded screen Zero.

[0060] In the embodiments of the present application, "at least one" refers to one or more, and "more" 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: the existence of A alone, the existence of A and B at the same time, and the existence of B 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, b and c, where a, b, c can be single or multiple.

[0061] Furthermore, unless otherwise indicated, ordinal numbers such as "first" and "second" in the embodiments of this application are used to distinguish between multiple objects and are not used to limit the size, content, order, timing, priority, or importance of the multiple objects. For example, "second file" and "second file" are only used to distinguish different files and do not indicate a difference in size, content, priority, or importance between the two files.

[0062] With the development of life and technology, the application of screen projection technology is becoming more and more widespread. Screen projection technology refers to the ability of an electronic device to project the display interface of its screen onto another electronic device for display. For example, a movie on a mobile phone can be projected to play on a computer, and pictures on a tablet can be projected to display on a TV.

[0063] However, when the first electronic device performs multi-window projection, it is necessary to transmit the display interface codes corresponding to the multiple windows to the second electronic device, which consumes high power and affects the user experience.

[0064] In view of this, the present application provides a screen projection method, device and electronic device, after the screen projection window of the second electronic device displays the first interface of the screen projection of the first electronic device, if the screen projection window is blocked, the second electronic device can synchronize the blocking information to the first electronic device. In this way, when the user interface of the first electronic device changes, the screen projection data of the non-blocked area in the new interface (i.e., the second interface) can be sent to the second electronic device, so that the second electronic device can display the second interface in the non-blocked area of ​​the screen projection window. In this way, when the screen projection window of the second electronic device is blocked, the first electronic device can partially refresh the screen projection window, thereby reducing the power consumption of the screen projection without affecting the user's perception.

[0065] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0066] Figure 1 is a schematic diagram of the architecture of a screen projection system applicable to the method provided in an embodiment of the present application. Specifically, the screen projection system includes a first electronic device 10 and a second electronic device 20. The first electronic device 10 and the second electronic device 20 can communicate with each other via a communication network.

[0067] The communication network may be a local area network or a wide area network relayed by a relay device. When the communication network is a local area network, illustratively, the communication network may be a short-range communication network such as a Wi-Fi hotspot network, a Wi-Fi direct network, a Bluetooth network, a ZigBee network, or a near field communication (NFC) network. When the communication network is a wide area network, illustratively, the communication network may be a third-generation wireless telephone technology (3G) network, a fourth-generation mobile communication technology (4G) network, a fifth-generation mobile communication technology (5G) network, a future-evolved public land mobile network (PLMN), or the Internet.

[0068] The first electronic device 10 is a device that actively shares the system interface or application interface, that is, the screen-casting electronic device. For example, the first electronic device 10 can be a mobile phone, a tablet computer, a laptop computer, etc. The second electronic device 20 is a device that passively receives the interface shared by the first electronic device 10, that is, the electronic device that displays the screen-casting window. For example, the second electronic device 20 can be a mobile phone, a tablet computer, a laptop computer, etc.

[0069] It should be noted that the electronic devices involved in the screen projection method provided in the embodiments of the present application may be mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR) devices, virtual reality (VR) devices, laptop computers, drones, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart TVs, and other display-supporting devices. The embodiments of the present application do not impose any particular restrictions on the specific form of the electronic devices. For example, the first electronic device may be a mobile phone, and the second electronic device may be a tablet computer.

[0070] Figure 2 is a schematic diagram of an exemplary screen projection scenario provided by the present application. Specifically, when the first electronic device 10 displays the first interface, in response to the screen projection operation, it encodes the first interface to obtain the first screen projection data. For example, the first interface can be a system interface or an application interface, which is not limited in the present application. The first electronic device 10 sends the first screen projection data to the second electronic device 20. After receiving the first screen projection data, the second electronic device 20 decodes the first screen projection data and displays the first interface in the screen projection window according to the decoded first screen projection data.

[0071] As shown in Figure 2, when the second electronic device 20 displays the first interface, it can also open other windows to display other interfaces. Among them, other windows are windows displayed on the second electronic device other than the projection window. Exemplarily, other windows can be projection windows or native windows that display local application interfaces.

[0072] In some embodiments, the second electronic device 20 determines and records the position information of other windows and the projection window, and determines whether other windows and the projection window block each other. Exemplarily, the position information obtained by the second electronic device 20 includes not only position information such as window coordinates, but also the upper and lower layer relationships of windows. When the second electronic device 20 determines that there is an intersection between the window coordinates of other windows and the projection window based on the position information of other windows and the projection window, it can also determine that other windows block the projection window based on the upper and lower layer relationships of windows in the position information. After the second electronic device 20 determines that the projection window is blocked, it determines the blocking information of the projection window. Among them, the blocking information is used to indicate the blocked area or non-blocked area of ​​the projection window.

[0073] In some examples, the second electronic device 20 sends the determined occlusion information to the first electronic device 10. The first electronic device 10 receives and records the occlusion information of the projection window. As shown in Figure 2, when the first electronic device displays the second interface, it generates second projection data based on the occlusion information of the projection window to synchronously update the non-occluded area of ​​the projection window.

[0074] In some embodiments, the application scenario shown in FIG2 may be a multi-screen collaboration scenario.

[0075] Figure 3 is a schematic diagram of another screen projection scenario provided by this application. Specifically, the first electronic device 10 projects the application interfaces of Application 1, Application 2, and Application 3 to the second electronic device 20. The application interface of Application 1, the application interface of Application 2, and the application interface of Application 3 are displayed in Window A, Window B, and Window C on the second electronic device 20, respectively. Among them, Window A, Window B, and Window C are projection windows.

[0076] The second electronic device determines and records the position information of windows A, B, and C. The second electronic device 20 determines that window A blocks window B and window C blocks window B based on the position information of windows A, B, and C. The second electronic device 20 determines the blocking information of window A and window B, and sends the determined blocking information of window A and window B to the first electronic device.

[0077] The first electronic device 10 receives the occlusion information of window A and the occlusion information of window B, and records the occlusion areas or non-occlusion areas of window A and window B. As shown in Figure 3, the first electronic device 10 displays the application interface of application 2. When the application interface of application 2 is updated, the first electronic device 10 generates screen projection data for updating the non-occlusion area of ​​window B based on the occlusion information of window B. The first electronic device 10 sends the generated screen projection data to the second electronic device 20. The second electronic device 20 updates the non-occlusion area of ​​window B based on the received screen projection data.

[0078] Figure 4 shows a schematic diagram of the hardware structure of a possible electronic device. As shown in Figure 4, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. 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, a bone conduction sensor 180M, etc.

[0079] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a microcontroller unit (MCU), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device 100. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. This memory may store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0080] In an embodiment of the present application, the processor 110 can save one or more applications and generate projection data based on the obtained projection window occlusion information to ensure that when multiple windows are projected, the frame drop problem caused by mutual occlusion between display windows can be optimized and power consumption can be reduced. Among them, the display window includes the native window and the projection window. In addition, the processor 110 can also obtain the occlusion information of the projection window and control the display screen 194 to display the projection window based on the projection data.

[0081] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0082] The wireless communication functionality of electronic device 100 can be implemented using antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, and a baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0083] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0084] The wireless communication module 160 can provide wireless communication solutions including wireless local area network (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the electronic device 100. The wireless communication module 160 can 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 signal, and sends the processed signal 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 for radiation through the antenna 2.

[0085] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include 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-CDMA), long term evolution (LTE), the fifth generation (5G) mobile communication system, future communication systems such as the sixth generation (6G) system, BT, GNSS, WLAN, NFC, FM and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0086] The display screen 194 is used to display images, videos, etc. 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 (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 194, where N is a positive integer greater than 1. In an embodiment of the present application, the display screen 194 can be used to display the main interface, application interface, granularity adjustment controls, etc.

[0087] The camera 193 is used to capture still images or videos. The camera 193 may include a front camera and a rear camera.

[0088] 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 100 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 can store an operating system, and software code of at least one application (such as Huawei Video, Changlian, etc.). The data storage area can store data (such as images, videos, etc.) generated during the use of the electronic device 100. 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.

[0089] 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 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as pictures and videos can be stored on the external memory card.

[0090] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0091] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be provided on display screen 194. Gyroscope sensor 180B can be used to determine the motion posture of electronic device 100. In some embodiments, gyroscope sensor 180B can be used to determine the angular velocity of electronic device 100 around three axes (i.e., x, y, and z axes).

[0092] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0093] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 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 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip, features such as automatic unlocking of the flip can be set. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0094] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0095] The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking photos. The ambient light sensor 180L can also work with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0096] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature handling strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is below yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0097] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be located on the display screen 194. 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 touch operations applied to or near it. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be located on the surface of the electronic device 100, at a location different from that of the display screen 194. In some embodiments of the present application, the touch sensor 180K can detect user gestures on the display screen, such as a user clicking the "+" granularity adjustment control. In response to this click, the electronic device 100 can send a topic granularity adjustment request message to the server. In response, the server can provide feedback to the electronic device 100 on the topic content after the topic granularity is increased, and the electronic device 100 can display the topic content after the topic granularity is increased.

[0098] Bone conduction sensor 180M can acquire vibration signals. In some embodiments, bone conduction sensor 180M can acquire vibration signals from vibrating bones in the human body. Bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals.

[0099] The buttons 190 include a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive button input and generate key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0100] It is understood that the components shown in FIG4 do not constitute a specific limitation on the electronic device. The electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. In the following embodiments, the electronic device 100 shown in FIG4 is used as an example for description.

[0101] The following describes in detail a screen projection method used in a screen projection system composed of a first electronic device and a second electronic device according to a specific embodiment.

[0102] In order to facilitate understanding of a screen projection method provided by the present application, the following describes the implementation process of the method provided by the present application in combination with the contents shown in Figures 5 to 12. In the embodiment of the present application, the screen projection of a first electronic device to a second electronic device is used as an example for explanation, that is, the first electronic device is a screen projection device or a source device, and the second electronic device is a screen projection device or a target device. The first electronic device and / or the second electronic device can be the electronic device 100 shown in Figure 4.

[0103] In some embodiments, the screen projection method provided by the embodiment of the present application can be applied to the multi-screen collaboration scenario, and can also be applied to other screen projection scenarios, such as the overloaded scenario of multi-window screen projection. Exemplarily, the overloaded scenario refers to the number of screen projection windows projected from the first electronic device to the second electronic device being greater than or equal to 3. The following describes the screen projection method by taking the application of the screen projection method provided by the embodiment of the present application to the multi-screen collaboration scenario as an example.

[0104] First, a possible screen projection method applicable to the embodiment of the present application is introduced. Figure 5 is a flow chart of a screen projection method provided by the embodiment of the present application. The process includes:

[0105] Step 501: While displaying a first interface, a first electronic device sends first projection data to a second electronic device. The second electronic device receives the first projection data sent by the first electronic device. The first projection data is used by the second electronic device to display the first interface in a projection window.

[0106] In some embodiments, when the first electronic device displays the first interface, in response to a screen projection operation on the first interface, the first interface is encoded to obtain first projection data. Exemplarily, the first interface can be a main interface of the first electronic device or an application interface of the first electronic device.

[0107] Step 502: The second electronic device displays the first interface in the projection window according to the first projection data.

[0108] The second electronic device decodes the first projection data and displays the first interface in the projection window according to the decoded first projection data.

[0109] Step 503: The second electronic device determines the occlusion information of the projection window, wherein the occlusion information is used to indicate the occlusion area or the non-occlusion area in the projection window.

[0110] In some embodiments, the second electronic device determines the position information of other windows and the position information of the projection window. In addition, the second electronic device may also determine the occlusion information of the projection window based on the position information of other windows and the position information of the projection window. Among them, other windows are windows other than the projection window displayed on the second electronic device. Exemplarily, the projection window can be a projection window or a window that displays the application interface of the second electronic device.

[0111] In this application, the position information includes not only the position information such as the window coordinates, but also the upper and lower layer relationships of the windows.

[0112] In some examples, the second electronic device can determine whether the projection window is blocked based on the location information of other windows and the location information of the projection window.

[0113] The second electronic device can determine whether the other windows and the projection window are mutually obstructed by determining whether there is an intersection between the position information of the other windows and the position information of the projection window. When the position information of the other windows and the position information of the projection window intersect, the second electronic device determines that the other windows and the projection window are mutually obstructed. The second electronic device can determine whether the projection window is obstructed by other windows based on the upper and lower layer relationship between the other windows and the projection window. For example, when the other windows are on the upper layer of the projection window, the second electronic device determines that the projection window is obstructed by the other windows.

[0114] When the second electronic device determines that the projection window is blocked by other windows, it determines the blocking information of the projection window. For example, when the second electronic device determines that the projection window is blocked by other windows, it uses the overlapping area of ​​the projection window and the other windows as the blocking area. The second electronic device generates the blocking information of the projection window based on the determined blocking area.

[0115] For example, as shown in Figure 6, three windows are displayed on the display screen of the second electronic device. Among them, the windows on the display screen are: projection window A, projection window B and native window. Projection window A and projection window B can display the interface of the first electronic device projected to the second electronic device. The second electronic device obtains the position information of projection window A, projection window B and native window. Among them, the position information includes but is not limited to window coordinates and upper and lower layer relationships. When the second electronic device determines the occlusion information of projection window A, the second electronic device uses projection window B and native window as other windows. When the second electronic device determines the occlusion information of projection window B, the second electronic device uses projection window A and native window as other windows.

[0116] As shown in Figure 6, when the second electronic device determines that the position information of projection window A and projection window B in other windows intersect, and determines that projection window B is located above projection window A, it determines that projection window A is blocked by projection window B. The second electronic device determines the blocked area of ​​projection window A. Exemplarily, the blocked area of ​​projection window A is the black area in Figure 6. The second electronic device can generate the blocking information of projection window A based on the blocked area of ​​projection window A.

[0117] Step 504: The second electronic device sends the blocking information of the projection window to the first electronic device. The first electronic device receives the blocking information of the projection window sent by the second electronic device.

[0118] In some embodiments, when the second electronic device sends the occlusion information of the projection window, it can also synchronously send the size information of the projection window.

[0119] After receiving the occlusion information of the projection window, the first electronic device marks and manages the projection window. For example, the first electronic device can mark the occlusion area of ​​the projection window in the graphics synthesis system Surface Flinger so that the occlusion area will be subsequently used to synthesize the projection data of the projection window.

[0120] In some examples, after receiving the occlusion information, the first electronic device determines a non-dirty area (occlusion area) of the projection window based on the occlusion information, wherein the non-dirty area does not participate in the subsequent image synthesis process.

[0121] In some embodiments, when the second electronic device determines that the projection window is not blocked, it can also send the size information of the projection window to the second electronic device to synchronize the size information of the projection window.

[0122] Step 505: When displaying the second interface, the first electronic device sends second projection data to the second electronic device based on the occlusion information. The second electronic device receives the second projection data. The second projection data is used to display the second interface in the non-occluded area of ​​the projection window.

[0123] In some embodiments, the first electronic device updates the first interface to the second interface in response to a user operation, wherein the first electronic device generates the second projection data based on the occlusion information of the projection window.

[0124] In an embodiment of the present application, the first electronic device can generate screen projection data in the following manner.

[0125] A1: The first electronic device updates the first interface to the second interface in response to a user operation.

[0126] In some embodiments, the first electronic device may draw the second interface through the view manager. For example, the first electronic device may determine whether hardware acceleration needs to be enabled through the view manager to draw the second interface.

[0127] In one scenario, when the first electronic device enables hardware acceleration, the first electronic device can draw the layer of the second interface through a hardware renderer and OpenGL.

[0128] In another scenario, when the first electronic device does not enable hardware acceleration, the first electronic device may also draw the layer of the second interface through drawing software.

[0129] After the first electronic device generates the layer of the second interface, it can display the second interface on the display screen. The second interface also needs to be synchronized to the projection window of the second electronic device and displayed in the projection window.

[0130] A2: The first electronic device determines the blocking information of the projection window.

[0131] In some embodiments, when the first interface is an application interface of a first application of the first electronic device, the first application can determine the occlusion information of the projection window.

[0132] For example, after receiving the occlusion information, the first application of the first electronic device may also send the occlusion information and size information of the projection window to the view manager of the first electronic device, and the view manager may mark the occlusion area of ​​the projection window. After the view manager marks the occlusion area of ​​the projection window, the occlusion area will not be included in the subsequent synthesis process of the projection data of the projection window and the update of the projection window.

[0133] A3: The first electronic device determines a non-blocking area of ​​the second interface according to the blocking information.

[0134] In some embodiments, the first electronic device may determine the non-obstructed area of ​​the second interface based on the occlusion information of the projection window. For example, the first electronic device may determine the non-obstructed area of ​​the projection window based on the occlusion information of the projection window. The first electronic device may also determine the non-obstructed area of ​​the second interface corresponding to the non-obstructed area of ​​the projection window based on the mapping relationship between the projection window and the second interface.

[0135] For example, as shown in Figure 7, the window displayed by the second electronic device includes projection window 1 and projection window 2. The first electronic device can expand the zeroth screen and render the interfaces of application 1 and application 2 on the expanded zeroth screen. The first electronic device divides the interface on the expanded zeroth screen into the interface of application 1 and the interface of application 2, and projects it to the second electronic device. Among them, projection window 1 is used to display the interface of application 1 projected by the first electronic device to the second electronic device, and projection window 2 is used to display the interface of application 2 projected by the first electronic device to the second electronic device. As shown in Figure 7, after the second electronic device determines that application 1 blocks application 2, it sends the blocking information of application 2 to the first electronic device. The first electronic device receives the blocking information of application 2. The first electronic device determines the blocked area of ​​the interface of application 2 on the expanded zeroth screen and marks the blocked area so that the non-blocked area can be encoded and transmitted later. As shown in Figure 7, the black area is the marked blocked area, and the white area is the non-blocked area.

[0136] In some examples, the first electronic device may synthesize the drawn layers through Surface Flinger to obtain layer information corresponding to the non-blocked area and the blocked area of ​​the second interface.

[0137] The Surface Flinger of the first electronic device can divide the layer of the second interface into regions based on the occlusion information of the projection window, and synthesize each region to obtain multiple image data. The Surface Flinger of the first electronic device can divide the layer into at least one occlusion region and at least one non-occlusion region. The Surface Flinger of the first electronic device can synthesize the layers of at least one occlusion region respectively to obtain image data corresponding to at least one occlusion region. And, the Surface Flinger of the first electronic device can synthesize the layers of at least one non-occlusion region respectively to obtain image data corresponding to at least one non-occlusion region. Exemplarily, the Surface Flinger of the first electronic device can perform matrix segmentation on the layer and divide the layer into multiple matrices. Each matrix only contains occlusion regions or non-occlusion regions in the layer. For example, as shown in the projection window 2 in Figure 7, Surface Flinger can perform matrix segmentation on the layer of application 2 to obtain 3 matrices.

[0138] In an embodiment of the present application, the first electronic device may perform matrix segmentation on the layer through Surface Flinger to divide the layer into occluded areas or non-occluded areas, and may also perform occluded area segmentation on the layer through other methods, which are not limited here.

[0139] After dividing the layer into regions and synthesizing the regions, the first electronic device can synthesize and render the image data corresponding to the non-blocked region through the hardware composition abstraction layer (hwcomposer, HWC) to obtain the non-blocked region of the second interface.

[0140] A4: The first electronic device encodes the non-blocked area of ​​the second interface to obtain second projection data.

[0141] After determining the non-blocking area of ​​the second interface, the first electronic device encodes the non-blocking area to obtain second projection data.

[0142] In some embodiments, after obtaining the second projection data, the first electronic device sends the second projection data to the second electronic device. The second projection data transmitted by the first electronic device to the second electronic device is the second projection data displaying the second interface in the non-blocked area of ​​the projection window, which can reduce the power consumption of data transmission.

[0143] As shown in Figure 8, an embodiment of the present application provides a specific use case for generating screen projection data. In which, a first electronic device projects an application screen to a second electronic device, and the first electronic device displays the first interface of the application. This use case may include the following steps:

[0144] Step 801: When an application of the first electronic device determines that the first interface is updated to the second interface, the application sends interface update information to the view manager of the first electronic device.

[0145] Among them, the interface update information is used to instruct the view manager to generate a second interface, and the interface update information includes the occlusion information of the projection window corresponding to the application.

[0146] Step 802 : The view manager of the first electronic device determines whether hardware acceleration is enabled; if so, execute step 803 ; if not, execute step 804 .

[0147] Step 803: The view manager of the first electronic device draws the layer of the second interface through the hardware renderer and OpenGL, and sends the layer of the second interface to the queue buffer.

[0148] Step 804: The view manager of the first electronic device draws the layer of the second interface through drawing software, and sends the layer of the second interface to the queue buffer.

[0149] Step 805: The queue buffer of the first electronic device sends the layer and occlusion information of the second interface to the graphics synthesis system.

[0150] Step 806: The graphics synthesis system of the first electronic device divides the layer of the second interface into at least one occlusion area and at least one non-occlusion area according to the occlusion information.

[0151] In some embodiments, the occlusion information may be sent to the graphics composition system via a queue buffer. The graphics composition system may mark the occlusion area of ​​the interface corresponding to the application according to the occlusion information.

[0152] In some embodiments, the graphics synthesis system may use a matrix segmentation method to segment the layers of the second interface, or may use other methods to segment the layers of the second interface, which is not limited here.

[0153] Step 807: The graphics synthesis system of the first electronic device synthesizes the layers corresponding to the at least one occluded area to obtain image data corresponding to the at least one occluded area. The graphics synthesis system of the first electronic device synthesizes the layers corresponding to the at least one non-occluded area to obtain image data corresponding to the at least one non-occluded area.

[0154] Step 808: The graphics synthesis system of the first electronic device sends the image data corresponding to at least one non-occluded area and the image data corresponding to at least one occluded area to the HWC of the first electronic device.

[0155] Step 809: The HWC of the first electronic device synthesizes the image data corresponding to the at least one non-blocking area to obtain the non-blocking area of ​​the second interface.

[0156] Step 810: The first electronic device encodes the non-blocked area of ​​the second interface to obtain second projection data, wherein the second projection interface is used to display the second interface in the non-blocked area of ​​the projection interface.

[0157] Step 506: The second electronic device displays the second interface in the non-blocked area of ​​the projection window according to the second projection data.

[0158] The second electronic device receives the second screen projection data sent by the first electronic device, decodes the second screen projection data, and updates the non-blocked area of ​​the screen projection window according to the decoded second screen projection data.

[0159] The second electronic device fills the non-blocked area of ​​the projection window with the second projection data after decoding according to the occlusion information of the projection window, and does not fill the occluded area, thereby optimizing the frame drop problem when the windows occlude each other.

[0160] In some embodiments, the second electronic device can also move other windows or the projection window in response to a drag operation while displaying the projection window. For example, as shown in FIG9 , the second electronic device moves the projection window in response to a drag operation on the projection window.

[0161] During the execution of the drag operation, the second electronic device may send status information of the projection window to the first electronic device. The first electronic device may receive status information of the projection window when displaying the second interface. The status information is used to indicate that the projection window is in an unobstructed state. For example, during the execution of the drag operation, the second electronic device determines that the projection window is not obstructed by other windows, and sends status information indicating that the projection window is in an unobstructed state to the first electronic device.

[0162] After receiving the status information of the projection window, the first electronic device can encode the second interface according to the status information to obtain third projection data. The third projection data is used to display the second interface in the projection window. In addition, after receiving the status information of the projection window, the first electronic device can also clear the previously recorded occlusion information of the projection window.

[0163] The first electronic device may send third projection data to the second electronic device. The second electronic device may display the second interface in the projection window based on the received third projection data, completing a global refresh of the projection window, thereby avoiding the problem of residual black areas due to partial refresh of the projection window during the drag operation.

[0164] In some embodiments, the first electronic device may also receive status information of the projection window when displaying the first interface. After receiving the status information, the first electronic device does not need to resend the first projection data to the second electronic device.

[0165] When the drag operation ends and it is determined that the projection window is blocked by other windows, the second electronic device determines updated blocking information of the projection window and sends the updated blocking information to the first electronic device, wherein the updated blocking information is used to indicate the blocked area or the non-blocked area of ​​the projection window.

[0166] In some embodiments, when the dragging operation ends and the movement of other windows or the projection window ends, the second electronic device can determine whether the projection window is blocked by other windows. For example, after the dragging ends, the second electronic device can determine the position information of other windows or the projection window, and determine whether the projection window is blocked by other windows based on the determined position information of other windows and the position information of the projection window. When the projection window is blocked by other windows, the second electronic device determines the updated blocking information of the projection window. The process of the second electronic device determining the updated blocking information is the same as the process of determining the blocking information of the projection window, which will not be repeated here.

[0167] The second electronic device can synchronize the updated occlusion information to the first electronic device. After receiving the updated occlusion information, the first electronic device can re-record the occlusion area or non-occlusion area of ​​the projection window according to the updated occlusion information.

[0168] When the first electronic device displays the third interface, it can determine the non-blocked area of ​​the third interface based on the updated occlusion information. The first electronic device can encode the third interface to obtain fourth projection data, and send the fourth projection data to the second electronic device. The fourth projection data is used to display the third interface in the non-blocked area of ​​the projection window. In this embodiment of the present application, the process by which the first electronic device obtains the fourth projection data is the same as the process by which the first electronic device obtains the second projection data in step 505 above, and will not be repeated here.

[0169] The second electronic device can display the third interface in the non-blocked area of ​​the projection window based on the received fourth projection data.

[0170] As shown in Figure 10, this application provides a use case for determining occlusion information. As shown in Figure 10, this use case may include the following steps:

[0171] Step 1001: The second electronic device moves other windows or the projection window in response to the drag operation.

[0172] Step 1002: The second electronic device determines whether the drag operation is ended; if so, execute step 1003; if not, execute step 1006.

[0173] Step 1003: The second electronic device determines whether the projection window is blocked by other windows; if so, execute step 1004; if not, execute step 1006.

[0174] Step 1004: The second electronic device determines the updated occlusion information of the projection window.

[0175] The process of determining the updated shielding information in step 1004 is the same as the process of the second electronic device determining the shielding information in step 503 , and will not be described in detail here.

[0176] Step 1005: The second electronic device synchronizes the updated occlusion information of the projection window to the first electronic device.

[0177] In some embodiments, after receiving the updated occlusion information of the projection window, the first electronic device can re-record the occlusion area or non-occlusion area of ​​the projection window. In addition, when the first electronic device updates the subsequent interface, such as when displaying the third interface, it can send fourth projection data for updating the non-occlusion area of ​​the projection window to the second electronic device based on the updated occlusion information. The second electronic device can display the third interface in the non-occlusion area of ​​the projection window based on the received fourth projection data, thereby completing a partial refresh of the projection window.

[0178] Step 1006: The second electronic device synchronizes the status information of the projection window to the first electronic device, wherein the status information is used to indicate that the projection window is in an unobstructed state.

[0179] In some embodiments, the first electronic device may receive status information of the projection window when displaying the second interface. The first electronic device may also clear previously recorded occlusion information of the projection window after receiving the status information.

[0180] After receiving the status information of the projection window, the first electronic device needs to re-project the second interface to the projection window of the second electronic device. For example, after receiving the status information, the first electronic device can encode the second interface according to the status information to obtain the third projection data. The first electronic device sends the third projection data to the second electronic device. After receiving the third projection data, the second electronic device displays the second interface on the projection window, completing the global refresh of the projection window.

[0181] When determining a subsequent interface update, the first electronic device can send projection data for display in the projection window to the second electronic device based on the status information, and globally refresh the projection window.

[0182] Based on the content shown in Figure 10, when the first electronic device displays the second interface, after receiving the status information of the projection window, it sends the third projection data for displaying the second interface in the projection window to the second electronic device according to the status information. In addition, when the first electronic device updates the interface subsequently, it can send projection data for globally refreshing the projection window to the second electronic device. In this way, the second electronic device can globally refresh the projection window according to the received projection data during the window movement process, thereby avoiding the problem of residual black areas during the movement of the window. In addition, after the window movement is completed, when the second electronic device determines that the projection window is blocked by other windows, it sends the updated occlusion information to the first electronic device. In this way, when the first electronic device updates the interface subsequently, it can generate projection data for updating the non-blocked area of ​​the projection window according to the updated occlusion information, complete the local refresh of the projection window, and thus reduce the projection power consumption.

[0183] In an embodiment of the present application, when the first electronic device displays the first interface, it projects the first interface to the second electronic device, and the second electronic device sends occlusion information of the projection window displaying the first interface to the first electronic device. The occlusion information is used to indicate the occlusion area or non-occlusion area of ​​the projection window. When the display interface of the first electronic device is updated from the first interface to the second interface, the non-occlusion area of ​​the second interface is determined according to the occlusion information, and the second projection data is generated according to the non-occlusion area of ​​the second interface, which can achieve the purpose of reducing power consumption. Then, the first electronic device sends the second projection data to the second electronic device for decoding and display, which can reduce the power consumption of network transmission and improve the frame rate.

[0184] As shown in Figure 11, an embodiment of the present application provides a screen projection use case. A first electronic device projects application 1, application 2, and application 3 to a second electronic device. The second electronic device displays the interfaces of application 1, application 2, and application 3 on its display screen. The windows displaying application 1, application 2, and application 3 are the projection windows.

[0185] The second electronic device determines that the projection windows corresponding to Application 1, Application 2, and Application 3 obstruct each other, and separately determines obstruction information for the projection window corresponding to Application 1, the projection window corresponding to Application 2, and the projection window corresponding to Application 3. Furthermore, the second electronic device synchronizes the obstruction information of the projection windows to the first electronic device.

[0186] After receiving the occlusion information of the projection window of the second electronic device, the first electronic device can mark the occlusion areas of the interfaces corresponding to Application 1, Application 2, and Application 3 on the zeroth screen. As shown in Figure 11, the interface of Application 1, the interface of Application 2, and the interface of Application 3 are displayed on the zeroth screen. For example, when the interface of Application 3 is displayed on the first electronic device, the interface area corresponding to Application 1 and Application 2 is the extended area of ​​the zeroth screen and is not displayed on the display screen of the first electronic device. Among them, the black area is the occlusion area marked in the interface, and the white area is the non-occlusion area that is not marked.

[0187] When the interface of application 1, application 2, or application 3 on the first electronic device is updated to the second interface and displayed on the first electronic device, the first electronic device can determine the non-obstructed area of ​​the second interface based on the occlusion information of the projection window corresponding to the application, and encode the non-obstructed area of ​​the second interface to obtain the second projection data. The first electronic device transmits the second projection data to the second electronic device. The second electronic device displays the second interface in the non-obstructed area of ​​the projection window corresponding to the application based on the second projection data. For example, when the interface of application 1 is updated to the second interface, the first electronic device generates the second interface of application 1 and encodes the non-obstructed area corresponding to the second interface to obtain the second projection data of application 1. The first electronic device transmits the second projection data of application 1 to the second electronic device. The second electronic device decodes the received second projection data of application 1, and updates the non-obstructed area of ​​the projection window corresponding to application 1 according to the decoded second projection data, thereby achieving a partial refresh of the projection window of the second electronic device.

[0188] Based on the content shown in Figure 11, the first electronic device can determine the non-blocked area of ​​the second interface that needs to be transmitted based on the occlusion information of the projection window, and encode and transmit the non-blocked area of ​​the second interface, which can reduce the power consumption of the first electronic device. In addition, the second electronic device can partially update the projection window based on the received projection data, thereby reducing and improving the frame rate in the overloaded scenario of multi-window projection.

[0189] FIG12 is a schematic diagram of a complete process of a screen projection method provided by the present application. As shown in FIG12 , the method includes the following steps:

[0190] Step 1201: The first electronic device displays a first interface.

[0191] In some embodiments, the first interface may be an application interface or a system interface.

[0192] Step 1202: In response to the screen projection operation, the first electronic device sends first projection data to the second electronic device. The second electronic device receives the first projection data. The first projection data is used by the second electronic device to display the first interface in the projection window.

[0193] Step 1203: The second electronic device displays the first interface in the projection window according to the first projection data.

[0194] Step 1204: The second electronic device determines the position information of other windows and the position information of the screen projection window, wherein the other windows are windows displayed on the second electronic device other than the screen projection window.

[0195] In some embodiments, the position information includes not only position information such as window coordinates, but also the upper and lower layer relationships of the windows.

[0196] Step 1205: The second electronic device determines the occlusion information of the projection window based on the position information of the other windows and the position information of the projection window, wherein the occlusion information is used to indicate the occlusion area or non-occlusion area in the projection window.

[0197] In some embodiments, the second electronic device can determine whether the projection window is blocked by other windows based on the position information of other windows and the position information of the projection window.

[0198] When the second electronic device determines that the projection window is blocked by other windows, it determines the blocking information of the projection window.

[0199] Step 1206: The second electronic device sends the blocking information of the projection window to the first electronic device. The first electronic device receives the blocking information of the projection window.

[0200] Step 1207: The first electronic device displays the second interface.

[0201] In some examples, the first electronic device can update the first interface to the second interface in response to a user operation.

[0202] Step 1208: The first electronic device determines a non-blocking area of ​​the second interface according to the blocking information.

[0203] Step 1209: The first electronic device encodes the non-blocked area of ​​the second interface to obtain second projection data, wherein the second projection data is used to display the second interface in the non-blocked area of ​​the projection window.

[0204] Step 1210: The first electronic device sends the second screen projection data to the second electronic device. The second electronic device receives the second screen projection data.

[0205] Step 1211: The second electronic device decodes the second projection data to obtain decoded second projection data.

[0206] Step 1212: The second electronic device displays the second interface in the non-blocked area of ​​the projection window according to the decoded second projection data.

[0207] Step 1213: The second electronic device moves other windows or the projection window in response to the drag operation.

[0208] Step 1214: During the drag operation, the second electronic device sends status information of the projection window to the first electronic device. When the first electronic device displays the second interface, it receives the status information sent by the second electronic device.

[0209] Among them, the status information is used to indicate that the projection window is in an unobstructed state.

[0210] In some embodiments, after receiving the status information of the projection window, the first electronic device can clear the occlusion information of the projection window.

[0211] When the first electronic device determines that the projection window is in an unobstructed state, it can delete the recorded obstruction information of the projection window and clear the mark of the obstructed area.

[0212] Step 1215: The first electronic device encodes the second interface according to the state information to obtain third projection data, wherein the third projection data is used to display the second interface in the projection window.

[0213] Step 1216: The first electronic device sends the third screen projection data to the second electronic device. The second electronic device receives the third screen projection data.

[0214] Step 1217: The second electronic device decodes the third projection data to obtain decoded third projection data.

[0215] Step 1218: The second electronic device displays the second interface in the projection window according to the decoded third projection data.

[0216] Step 1219: After the dragging operation is completed, if the second electronic device determines that the projection window is blocked by other windows, it determines the updated blocking information of the projection window.

[0217] Step 1220: The second electronic device sends the updated shielding information to the first electronic device. The first electronic device receives the updated shielding information sent by the second electronic device.

[0218] Step 1221: The first electronic device displays a third interface.

[0219] In some examples, the first electronic device can update the second interface to the third interface in response to a user operation.

[0220] Step 1222: The first electronic device determines a non-blocking area of ​​the third interface according to the updated blocking information.

[0221] Step 1223: The first electronic device encodes the non-blocked area of ​​the third interface to obtain fourth projection data, wherein the fourth projection data is used to display the third interface in the non-blocked area of ​​the projection window.

[0222] Step 1224: The first electronic device sends the fourth projection data to the second electronic device. The second electronic device receives the fourth projection data.

[0223] Step 1225: The second electronic device decodes the fourth projection data to obtain decoded fourth projection data.

[0224] Step 1226: The second electronic device displays the third interface in the non-blocked area of ​​the projection window according to the decoded fourth projection data.

[0225] Based on the content shown in Figure 12, when the second electronic device determines that the projection window is blocked, it sends blocking information to the first electronic device. The first electronic device can send projection data generated based on the non-blocked area of ​​the projection window to the second electronic device based on the blocking information, thereby achieving the purpose of reducing power consumption. In addition, during the process of moving the window, the second electronic device sends the status information of the projection window to the first electronic device, informing the first electronic device that the projection window is in an unblocked state. This allows the first electronic device to re-update the displayed interface to the entire area of ​​the projection window, and to update the entire area of ​​the projection window during subsequent interface updates, thereby avoiding the problem of black residual areas appearing during window movement.

[0226] An embodiment of the present application also provides a screen projection system, which includes a first electronic device and a second electronic device. When the first electronic device displays a first interface, it can project the first interface to the projection window of the second electronic device. During the process of the first electronic device projecting the screen of the second electronic device, the second electronic device determines the occlusion information of the projection window and synchronizes the occlusion information of the projection window to the first electronic device. The occlusion information is used to indicate the occlusion area or non-occlusion area of ​​the projection window.

[0227] For example, the second electronic device may obtain the position information of other windows or the position information of the projection window, and determine whether the projection window is obscured by other windows based on the position information of other windows or the position information of the projection window. When the projection window is obscured by other windows, the second electronic device determines the obstruction information of the projection window. The second electronic device synchronizes the obstruction information with the first electronic device.

[0228] After receiving the occlusion information of the projection window, the first electronic device determines the occlusion area or non-occlusion area of ​​the projection window based on the occlusion information of the projection window. When the first electronic device updates the display interface from the first interface to the second interface in response to the user's operation, the first electronic device determines the non-occlusion area of ​​the second interface based on the occlusion area or non-occlusion area of ​​the projection window. The first electronic device encodes the non-occlusion area of ​​the second interface to obtain the second projection data. The second projection data is used to display the second interface in the non-occlusion area of ​​the projection window.

[0229] The first electronic device sends the second screen projection data to the second electronic device. The second electronic device decodes the second screen projection data and displays the second interface in the non-blocked area of ​​the screen projection window.

[0230] In some embodiments, the second electronic device can also move other windows or projection windows on the display screen in response to the drag operation. Among them, other windows are windows other than the projection window displayed on the second electronic device. During the movement of other windows or projection windows, that is, during the execution of the drag operation, the second electronic device determines that the projection window is not blocked by other windows, and synchronizes the status information of the projection window to the first electronic device, so that the first electronic device refreshes the displayed interface to the entire area of ​​the projection window, and cancels the mark of the blocked area. Among them, the status information is used to indicate that the projection window is in an unobstructed state.

[0231] Exemplarily, the first electronic device can receive the status information of the projection window sent by the second electronic device when displaying the second interface. The first electronic device can encode the second interface based on the status information to obtain the third projection data. The third projection data is used to display the second interface in the projection window. The second electronic device can display the second interface on the projection window based on the received third projection data, and complete the global refresh of the projection window, thereby avoiding the problem of black areas appearing in the projection window during the window movement. Moreover, when the second interface of the first electronic device is updated during the movement of other windows or projection windows, the first electronic device can encode the updated interface to obtain projection data for displaying the updated interface in the projection window, and send the obtained projection data to the second electronic device. So that the second electronic device can display the updated interface in the projection window according to the received projection data during the window movement, thereby avoiding the appearance of black areas caused by the interface update of the projection window during the window movement.

[0232] After the drag operation is completed, the second electronic device can also re-determine the updated occlusion information of the projection window and synchronize the updated occlusion information to the first electronic device. After the first electronic device receives the updated occlusion information, it re-marks the occlusion area or non-occlusion area of ​​the projection interface. When the projection interface of the first electronic device is updated and the third interface is displayed, the first electronic device can send the fourth projection data for displaying the third interface in the non-occlusion area of ​​the projection window to the second electronic device according to the updated occlusion information. So that the second electronic device can display the third interface in the non-occlusion area of ​​the projection window according to the received fourth projection data, thereby achieving the purpose of reducing the projection power consumption.

[0233] Based on the above content, the second electronic device can send the occlusion information of the projection window to the first electronic device, so that when the first electronic device subsequently updates the projection window of the second electronic device, it can update the non-occluded area of ​​the projection window based on the occlusion information, thereby reducing power consumption, and improving the frame rate in overload scenarios, thereby enhancing the user experience. In addition, when the second electronic device starts to move the window, it can send the status information of the projection window to the first electronic device to inform the first electronic device that the projection window is in an unobstructed state. So that the first electronic device can re-project the displayed interface to the projection window of the second electronic device, thereby avoiding the appearance of black areas during the window movement. In addition, after the window movement is completed, the second electronic device can also determine the updated occlusion information of the projection window and synchronize the updated occlusion information to the first electronic device. So that the first electronic device can generate projection data for refreshing the non-occluded area of ​​the projection window when the interface is subsequently updated, thereby reducing power consumption.

[0234] Based on the above content and the same concept, Figure 13 is a structural schematic diagram of a possible screen projection device 1300 provided in this application. The screen projection device 1300 is applied to a screen projection system consisting of a first electronic device and a second electronic device.

[0235] In some embodiments, the first electronic device includes the screen projection device 1300, or the first electronic device is the screen projection device 1300. The screen projection device 1300 can be used to implement the functions of the first electronic device in the above method embodiment, and thus can also achieve the beneficial effects of the above method embodiment.

[0236] Display screen 1301, used to display a user interface;

[0237] Communication unit 1302, used to receive and send data;

[0238] The processing unit 1303 is used to send first projection data to the second electronic device through the communication unit 1302 when the display screen displays the first interface, and the first projection data is used for the second electronic device to display the first interface in the projection window; receive occlusion information of the projection window from the second electronic device through the communication unit 1302; the occlusion information is used to indicate the occluded area or non-occluded area in the projection window; when the display screen 1301 displays the second interface, send second projection data to the second electronic device through the communication unit 1302 according to the occlusion information; the second projection data is used to display the second interface in the non-occluded area of ​​the projection window.

[0239] In an optional design, the processing unit 1303 is specifically configured to:

[0240] Determining a non-blocking area of ​​the second interface according to the blocking information;

[0241] Encode the non-blocked area of ​​the second interface to obtain second projection data;

[0242] The second screen projection data is sent to the second electronic device through the communication unit 1302.

[0243] In an optional design, the processing unit 1303 is further configured to:

[0244] When the display screen 1301 displays the second interface, the communication unit 1302 receives status information of the screen projection window from the second electronic device, where the status information indicates that the screen projection window is in an unobstructed state;

[0245] According to the status information, the second interface is encoded to obtain third projection data; the third projection data is used to display the second interface in the projection window;

[0246] The third screen projection data is sent to the second electronic device through the communication unit 1302.

[0247] In an optional design, after the processing unit 1303 receives the status information of the projection window from the second electronic device through the communication unit 1302, the processing unit 1303 is further configured to:

[0248] Receive updated occlusion information of the projection window from the second electronic device through the communication unit 1302, where the updated occlusion information is used to indicate an occlusion area or a non-occlusion area of ​​the projection window;

[0249] When the third interface is displayed on the display screen 1301, a non-blocking area of ​​the third interface is determined according to the updated blocking information;

[0250] Encoding the non-blocked area of ​​the third interface to obtain fourth projection data; the fourth projection data is used to display the third interface in the non-blocked area of ​​the projection window;

[0251] The fourth projection data is sent to the second electronic device through the communication unit 1302.

[0252] In some embodiments, the second electronic device includes the screen projection device 1300, or the second electronic device is the screen projection device 1300. The screen projection device 1300 can be used to implement the functions of the second electronic device in the above method embodiment, and thus can also achieve the beneficial effects of the above method embodiment.

[0253] Display screen 1301, used to display a user interface;

[0254] Communication unit 1302, used to receive and send data;

[0255] The processing unit 1303 is used to receive the first projection data from the first electronic device through the communication unit 1302, and display the first interface in the projection window on the display screen 1301 according to the first projection data; determine the occlusion information of the projection window, the occlusion information is used to indicate the occlusion area or non-occlusion area in the projection window; send the occlusion information to the first electronic device through the communication unit 1302; receive the second projection data from the first electronic device through the communication unit 1302, and display the second interface in the non-occlusion area of ​​the projection window on the display screen 1301 according to the second projection data.

[0256] In an optional design, the processing unit 1303 is specifically configured to:

[0257] Determine position information of other windows and position information of the screen projection window, where the other windows are windows other than the screen projection window displayed on the display screen 1301;

[0258] Determine the occlusion information of the projection window based on the position information of other windows and the position information of the projection window.

[0259] In an optional design, the processing unit 1303 is specifically configured to:

[0260] Determine whether the projection window is blocked by other windows based on the position information of other windows and the position information of the projection window;

[0261] When it is determined that the projection window is blocked by other windows, the blocking information of the projection window is determined.

[0262] In an optional design, the processing unit 1303 is further configured to:

[0263] In response to a drag operation, move other windows or the projection window;

[0264] During the drag operation, the status information of the projection window is sent to the first electronic device through the communication unit 1302; the status information is used to indicate that the projection window is in an unobstructed state; the third projection data is received from the first electronic device through the communication unit 1302, and the second interface is displayed in the projection window on the display screen 1301 according to the third projection data; the third projection data is used to display the second interface in the projection window;

[0265] After the dragging operation is completed, when it is determined that the projection window is blocked by other windows, the updated blocking information of the projection window is determined, and the updated blocking information is sent to the first electronic device through the communication unit 1302; the updated blocking information is used to indicate the blocked area or non-blocked area of ​​the projection window; the fourth projection data is received from the first electronic device through the communication unit 1302, and the third interface is displayed in the non-blocked area of ​​the projection window on the display screen 1301 according to the fourth projection data; the fourth projection data is used to display the third interface in the non-blocked area of ​​the projection window.

[0266] Based on the above content and the same concept, the present application provides an electronic device, including a display screen, a processor and a memory, the display screen is used to display a user interface, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the steps performed by the first electronic device in the above method embodiment, or the electronic device performs the steps performed by the second electronic device in the above method embodiment.

[0267] Based on the above content and the same concept, the present application provides a computer-readable storage medium, which stores a computer program or instructions. When the computer program or instructions are executed by a computing device, the computing device executes the steps performed by the first electronic device or the second electronic device in the above method embodiment.

[0268] Based on the above content and the same concept, the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a computing device, the computing device executes the steps performed by the first electronic device or the second electronic device in the above method embodiment.

[0269] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0270] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.

[0271] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0272] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0273] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A screen projection method, characterized in that: The method comprises: When displaying the first interface, the first electronic device sends first screen projection data to the second electronic device, where the first screen projection data is used by the second electronic device to display the first interface in the screen projection window; The first electronic device receives the blocking information of the screen projection window from the second electronic device; the blocking information is used to indicate the blocking area or the non-blocking area in the screen projection window; When displaying the second interface, the first electronic device sends second screen projection data to the second electronic device according to the blocking information; the second screen projection data is used to display the second interface in the non-blocked area of ​​the screen projection window.

2. The method according to claim 1, characterized in that The sending the second screen projection data to the second electronic device according to the shielding information includes: The first electronic device determines a non-blocking area of ​​the second interface according to the blocking information; The first electronic device encodes the non-blocked area of ​​the second interface to obtain the second screen projection data; The first electronic device sends the second screen projection data to the second electronic device.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: When displaying the second interface, the first electronic device receives status information of the screen projection window from the second electronic device, where the status information is used to indicate that the screen projection window is in an unobstructed state; The first electronic device encodes the second interface according to the state information to obtain third screen projection data; the third screen projection data is used to display the second interface in the screen projection window; The first electronic device sends the third screen projection data to the second electronic device.

4. The method according to claim 3, characterized in that After the first electronic device receives the status information of the screen projection window from the second electronic device, the method further includes: The first electronic device receives updated occlusion information of the screen projection window from the second electronic device, where the updated occlusion information is used to indicate an occlusion area or a non-occlusion area of ​​the screen projection window; When the first electronic device displays the third interface, determining a non-blocking area of ​​the third interface according to the updated blocking information; The first electronic device encodes the non-blocked area of ​​the third interface to obtain fourth projection data; the fourth projection data is used to display the third interface in the non-blocked area of ​​the projection window; The first electronic device sends the fourth screen projection data to the second electronic device.

5. A screen projection method, characterized in that: The method comprises: The second electronic device receives the first screen projection data from the first electronic device, and displays the first interface in the screen projection window according to the first screen projection data; The second electronic device determines the occlusion information of the screen projection window, where the occlusion information is used to indicate an occlusion area or a non-occlusion area in the screen projection window; The second electronic device sends the shielding information to the first electronic device; The second electronic device receives the second screen projection data from the first electronic device, and displays a second interface in the non-blocked area of ​​the screen projection window according to the second screen projection data.

6. The method according to claim 5, characterized in that The second electronic device determines the shielding information of the screen projection window, including: The second electronic device determines position information of other windows and position information of the screen projection window, wherein the other windows are windows other than the screen projection window displayed on the second electronic device; The second electronic device determines the shielding information of the projection window according to the position information of the other windows and the position information of the projection window.

7. The method according to claim 6, characterized in that The second electronic device determines, according to the position information of the other windows and the position information of the screen projection window, the shielding information of the screen projection window, including: The second electronic device determines, according to the position information of the other windows and the position information of the screen projection window, whether the screen projection window is blocked by the other windows; When it is determined that the projection window is blocked by the other windows, the second electronic device determines the blocking information of the projection window.

8. The method according to claim 5 or 6, characterized in that: The method further comprises: The second electronic device moves other windows or the projection window in response to the drag operation; During the execution of the drag operation, the second electronic device sends the status information of the projection window to the first electronic device; the status information is used to indicate that the projection window is in an unblocked state; the second electronic device receives the third projection data from the first electronic device, and displays the second interface in the projection window according to the third projection data; the third projection data is used to display the second interface in the projection window; After the dragging operation is completed, when it is determined that the projection window is blocked by the other windows, the second electronic device determines the updated blocking information of the projection window and sends the updated blocking information to the first electronic device; the updated blocking information is used to indicate the blocked area or non-blocked area of ​​the projection window; the second electronic device receives the fourth projection data from the first electronic device, and displays the third interface in the non-blocked area of ​​the projection window according to the fourth projection data; the fourth projection data is used to display the third interface in the non-blocked area of ​​the projection window.

9. A screen projection device, characterized in that: Applied to a first electronic device, the device comprises: A display screen, used for displaying a user interface; A communication unit for receiving and sending data; A processing unit, configured to send first projection data to a second electronic device through the communication unit when the display screen displays a first interface, the first projection data being used for the second electronic device to display the first interface in a projection window; receive occlusion information of the projection window from the second electronic device through the communication unit; the occlusion information is used to indicate an occluded area or a non-occluded area in the projection window; and when the display screen displays a second interface, send second projection data to the second electronic device through the communication unit according to the occlusion information; the second projection data is used to display the second interface in a non-occluded area of ​​the projection window.

10. The device according to claim 9, characterized in that The processing unit is specifically used for: Determining a non-blocking area of ​​the second interface according to the blocking information; Encoding the non-blocked area of ​​the second interface to obtain the second screen projection data; The second screen projection data is sent to the second electronic device through the communication unit.

11. The device according to claim 9 or 10, characterized in that The processing unit is also used for: When the display screen displays the second interface, receiving status information of the screen projection window from the second electronic device through the communication unit, wherein the status information is used to indicate that the screen projection window is in an unblocked state; According to the state information, the second interface is encoded to obtain third screen projection data; the third screen projection data is used to display the second interface in the screen projection window; The third screen projection data is sent to the second electronic device through the communication unit.

12. The device according to claim 11, characterized in that After the processing unit receives the status information of the screen projection window from the second electronic device through the communication unit, the processing unit is further configured to: Receiving updated occlusion information of the screen projection window from the second electronic device through the communication unit, wherein the updated occlusion information is used to indicate an occlusion area or a non-occlusion area of ​​the screen projection window; When displaying the third interface on the display screen, determining a non-blocking area of ​​the third interface according to the updated blocking information; Encoding the non-blocked area of ​​the third interface to obtain fourth screen projection data; the fourth screen projection data is used to display the third interface in the non-blocked area of ​​the screen projection window; The fourth screen projection data is sent to the second electronic device through the communication unit.

13. A screen projection device, characterized in that: Applied to a second electronic device, the device comprises: A display screen, used for displaying a user interface; A communication unit for receiving and sending data; A processing unit, used to receive first projection data from a first electronic device through the communication unit, and display a first interface in the projection window on the display screen according to the first projection data; determine occlusion information of the projection window, wherein the occlusion information is used to indicate an occluded area or a non-occluded area in the projection window; send the occlusion information to the first electronic device through the communication unit; receive second projection data from the first electronic device through the communication unit, and display a second interface in the non-occluded area of ​​the projection window on the display screen according to the second projection data.

14. The device according to claim 13, characterized in that The processing unit is specifically used for: Determine position information of other windows and position information of the projection window, wherein the other windows are windows displayed on the display screen other than the projection window; The shielding information of the projection window is determined according to the position information of the other windows and the position information of the projection window.

15. The device according to claim 14, characterized in that The processing unit is specifically used for: Determining whether the screen projection window is blocked by the other windows according to the position information of the other windows and the position information of the screen projection window; When it is determined that the projection window is blocked by the other windows, the blocking information of the projection window is determined.

16. The device according to claim 13 or 14, characterized in that The processing unit is also used for: In response to the drag operation, move other windows or the projection window; During the execution of the drag operation, sending the state information of the screen projection window to the first electronic device through the communication unit; The state information is used to indicate that the projection window is in an unblocked state; receiving third projection data from the first electronic device through the communication unit, and displaying a second interface in the projection window on the display screen according to the third projection data; the third projection data is used to display the second interface in the projection window; After the dragging operation is completed, when it is determined that the projection window is blocked by the other windows, the updated blocking information of the projection window is determined, and the updated blocking information is sent to the first electronic device through the communication unit; the updated blocking information is used to indicate the blocked area or non-blocked area of ​​the projection window; the fourth projection data from the first electronic device is received through the communication unit, and a third interface is displayed in the non-blocked area of ​​the projection window on the display screen according to the fourth projection data; The fourth screen projection data is used to display the third interface in the non-blocked area of ​​the screen projection window.

17. An electronic device, characterized in that: include: Display screen; one or more processors; one or more memories; The display screen is used to display a user interface; The one or more memories are used to store one or more computer programs and data information; wherein the one or more computer programs include instructions; When the instructions are executed by the one or more processors, the electronic device is caused to perform the method as claimed in any one of claims 1 to 4, or the electronic device is caused to perform the method as claimed in any one of claims 5 to 8.

18. 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, or implements the method according to any one of claims 5 to 8.

19. A computer storage medium, characterized in that: The computer-readable storage medium includes a computer program, and when the computer program runs on the electronic device, the electronic device executes the method according to any one of claims 1 to 4, or the electronic device executes the method according to any one of claims 5 to 8.

20. 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 executing the method as claimed in any one of claims 5 to 8.

21. A computer program product, characterized in that The method comprises computer instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 4, or enable the computer to execute the method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Projection screen display method and device, terminal equipment and storage medium

    CN111813302A

  • Display processing method and electronic equipment

    CN112328130A

  • Display processing method and electronic equipment

    CN113791706A

  • Screen projection control method, system, terminal equipment, screen projection equipment and storage medium

    CN113824831A

  • Screen projection display method and electronic equipment

    CN115543163A