A screen projection application method and device, electronic equipment and storage medium

By creating a layer stack on the projection device to identify different virtual displays and filtering target application layers based on application identifiers, the problems of application-side adaptation and lifecycle reconstruction in existing technologies are solved, achieving seamless projection and good results.

CN114968158BActive Publication Date: 2025-12-19ECARX (HUBEI) TECHCO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210563856.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2025-12-19
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

Existing application casting solutions require application-side adaptation, cannot achieve seamless casting, and rebuilding the application lifecycle leads to the reset of business data.

Method used

By receiving the application casting command, a virtual display screen associated with the device to be cast is created, and its layer stack identifier is set to be different from that of the main screen. Based on the identifier of the target application, the application layer is selected from the display layer of the casting device, the casting data is synthesized and sent to the device to be cast.

Benefits of technology

It enables application casting without application-side adaptation and lifecycle reconstruction, ensuring excellent casting results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968158B_ABST
    Figure CN114968158B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an application screen projection method and device, electronic equipment and storage medium. The method comprises: receiving an application screen projection instruction, the application screen projection instruction containing an application identifier of a target application; creating a virtual display screen associated with the screen projection device and setting a layer stack identifier of the virtual display screen different from a layer stack identifier of a main screen of the screen projection device; for the virtual display screen, based on the application identifier of the target application, filtering an application layer belonging to the target application from a display layer of the screen projection device to obtain a layer queue; based on the layer queue, synthesizing screen projection data of the target application and sending the screen projection data to the screen projection device, so that the screen projection device displays a screen projection image of the target application according to the screen projection data. The application screen projection is realized without the need for application side participation in adaptation and reconstruction of application life cycle.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an application screen projection method and device, electronic equipment and storage medium. BACKGROUND

[0002] For multi-device interconnection scenarios, such as mobile phone and computer connection, mobile phone and car connection, or interconnection of multiple display devices in vehicles, it is often necessary to deliver the application interface to other devices connected.

[0003] In the current screen projection scheme, the Virtual Display method is usually used.

[0004] However, only when the layerStack identifier of the application is equal to the layerStack identifier of the virtual display screen, the application can be displayed on the screen projection device. Therefore, in the case of only grabbing application image data, a virtual screen that is not equal to the layerStack of the main screen needs to be created, and the layerStack of the application needs to be set to be equal to the layerStack of the virtual screen, which requires the application side to participate in adaptation, and cannot achieve application-unaware screen projection.

[0005] Alternatively, the system uses the moveStackToDisplay method of ActivityManager to forcibly set the application image to be displayed on the virtual screen, but this requires the application lifecycle to be rebuilt, that is, the current process of the application is ended, and a new process is created, resulting in the application business data being reset, and in this case the application cannot be displayed on the main screen. SUMMARY

[0006] The purpose of the embodiments of the present application is to provide an application screen projection method, device, electronic equipment and storage medium, which do not require the application side to participate in adaptation and do not require the application lifecycle to be rebuilt, and achieve application screen projection. The specific technical solutions are as follows:

[0007] To achieve the above purpose, the application embodiments provide an application screen projection method, which comprises:

[0008] receiving an application screen projection instruction, the application screen projection instruction containing an application identifier of a target application;

[0009] creating a virtual display screen associated with the screen projection device, and setting the layerStack identifier of the virtual display screen to be different from the layerStack identifier of the main screen of the screen projection device;

[0010] For the virtual display screen, based on the application identifier of the target application, an application layer belonging to the target application is selected from the display layer of the screen projection device to obtain a layer queue;

[0011] Based on the layer queue, the casting data of the target application is synthesized, and the casting data is sent to the casting device, so that the casting device displays the casting image of the target application according to the casting data.

[0012] Optionally, the step of filtering the application layer belonging to the target application from the display layer of the casting device based on the application identifier of the target application to obtain the layer queue comprises:

[0013] For each display layer of the casting device, it is judged whether the application identifier of the display layer is equal to the application identifier of the target application, if yes, the display layer is determined as the application layer belonging to the target application, and is added to the layer queue.

[0014] Optionally, the application casting instruction further comprises the screen width and height of the casting device.

[0015] The step of creating the virtual display screen associated with the casting device comprises:

[0016] The virtual display screen is created based on the screen width and height of the casting device.

[0017] Optionally, the method further comprises: deleting the application layer belonging to the target application from the display layer of the casting device based on the application identifier of the target application.

[0018] Optionally, the casting device is a mobile terminal, and the casting device is a vehicle-mounted display device.

[0019] To achieve the above object, the embodiment of the present application further provides an application casting device applied to a casting device of a casting system, the casting system further comprising a casting device, the device comprising:

[0020] The receiving module is configured to receive an application casting instruction, the application casting instruction comprising an application identifier of a target application.

[0021] The creating module is configured to create a virtual display screen associated with the casting device, and set the layer stack identifier of the virtual display screen different from the layer stack identifier of the main screen of the casting device.

[0022] The filtering module is configured to filter the application layer belonging to the target application from the display layer of the casting device based on the application identifier of the target application for the virtual display screen to obtain a layer queue.

[0023] The synthesizing module is configured to synthesize the casting data of the target application based on the layer queue, and send the casting data to the casting device, so that the casting device displays the casting image of the target application according to the casting data.

[0024] To achieve the above object, the embodiment of the present application further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus.

[0025] The memory is used for storing a computer program.

[0026] The processor is used for executing the program stored on the memory, and realizing the steps of the application screen projection method.

[0027] To achieve the above object, the embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the steps of the application screen projection method.

[0028] To achieve the above object, the embodiment of the present application further provides a computer program product containing instructions, which, when running on a computer, causes the computer to execute the steps of the application screen projection method.

[0029] It can be seen that in the embodiment of the present application, the screen projection device receives an application screen projection instruction, the application screen projection instruction contains an application identifier of a target application; a virtual display screen associated with a screen projection device is created, and the layer stack identifier of the virtual display screen is set to be different from the layer stack identifier of the main screen of the screen projection device; for the virtual display screen, the application layer belonging to the target application is filtered out from the display layer of the screen projection device based on the application identifier of the target application, and a layer queue is obtained; the screen projection data of the target application is synthesized based on the layer queue, and the screen projection data is sent to the screen projection device, so that the screen projection device displays the screen projection image of the target application according to the screen projection data.

[0030] Thus, on the basis of the native mechanism, another way is provided for filtering the application layer of the target application, that is, the application layer belonging to the target application is captured through the application identifier of the target application, and the whole process does not need to change the layer stack identifier of the application layer, so the application side does not need to participate in the adaptation.

[0031] Moreover, the application layer of the target application is captured in this way, and the whole process is based on the virtual display screen, which is the native mechanism, and the application life cycle does not need to be reconstructed under this mechanism, so that good screen projection effect is ensured.

[0032] Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above. BRIEF DESCRIPTION OF DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and other embodiments can also be obtained by those skilled in the art based on these drawings.

[0034] Figure 1 A flowchart of an application screen projection method provided by an embodiment of the present application is shown in

[0035] Figure 2 A schematic diagram of an application screen projection data capturing principle provided by an embodiment of the present application is shown in

[0036] Figure 3 A structural schematic diagram of an application screen projection device provided by an embodiment of the present application is shown in

[0037] Figure 4 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments only constitute some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art based on the present application belong to the scope of protection of the present application.

[0039] In order to solve the technical problem that the existing application screen projection scheme needs to involve the application side in the adaptation and cannot achieve application screen projection without sensing, an application screen projection method, device, electronic device and storage medium are provided by an embodiment of the present application.

[0040] Referring to Figure 1 , Figure 1 A flowchart of an application screen projection method provided by an embodiment of the present application is shown in Figure 1 The method can include the following steps:

[0041] S101: receiving an application screen projection instruction, wherein the application screen projection instruction contains an application identifier of a target application.

[0042] The application screen projection method provided by the present application can be applied to a screen projection device of a screen projection system, and the screen projection system further includes a screen projected device. In the screen projection process, the screen projection device and the screen projected device maintain a communication connection.

[0043] As an example, the screen projection device can be a mobile terminal, and the screen projected device can be a projector, a television, a vehicle-mounted display device, etc.

[0044] In the embodiments of the present application, instead of mirroring the image of the screen projection device to the screen projection target device, only the image related to the target application is captured and displayed to the screen projection target device. The target application can be a navigation application, a video and audio application, etc.

[0045] In this step, the screen projection device receives an application screen projection instruction. The application screen projection instruction can be in various forms. For example, the user can trigger the application screen projection by language, gesture or clicking the application button.

[0046] In the embodiments of the present application, the application screen projection instruction needs to include the application identifier of the target application. As an example, the identifier of the application can be the name of the application.

[0047] S102: Create a virtual display screen associated with the screen projection target device, and set the layer stack identifier of the virtual display screen to be different from the layer stack identifier of the main screen of the screen projection device.

[0048] In the embodiments of the present application, the layer stack identifier (the attribute value of layerStack) of the main screen of the screen projection device is 0 by default. In this step, a virtual display screen can be created, and the layer stack identifier of the virtual display screen is set to be different from the default value.

[0049] Specifically, if the layer stack identifier of the virtual display screen is set to be the same as the above default value, the display layer of the screen projection device will be captured, and the image screen of the screen projection device will be finally displayed on the screen projection target device, that is, the screen mirroring. This is not only for the target application for screen projection. Therefore, in the embodiments of the present application, for the newly created virtual display screen, the layer stack identifier of the virtual display screen needs to be set to be different from the default value.

[0050] As an example, the attribute value of layerStack of the created virtual display screen is set to 0xFF, which is different from the layer stack identifier of the main screen of the screen projection device.

[0051] In addition, the application screen projection instruction also includes the screen width and height of the screen projection target device. Correspondingly, creating a virtual display screen associated with the screen projection target device can include: creating a virtual display screen based on the screen width and height of the screen projection target device.

[0052] S103: For the virtual display screen, based on the application identifier of the target application, the application layer belonging to the target application is screened out from the display layer of the screen projection device to obtain a layer queue.

[0053] In the embodiment of the present application, the layerStack of the application layer is 0 by default, that is, the application layer is displayed on the main screen of the screen mirroring device by default. Since the attribute value of the layerStack of the created virtual display screen is not 0, the application layer cannot be captured by using the native mechanism.

[0054] In the embodiment of the present application, on the basis of the native mechanism, another way of screening the application layer of the target application is provided, that is, based on the application identifier of the target application, the application layer belonging to the target application is screened from the display layers of the screen mirroring device.

[0055] Specifically, each layer displayed on the main screen of the screen mirroring device has application identifier information, that is, it can be determined which application each layer belongs to.

[0056] Therefore, in the embodiment of the present application, for the created virtual screen, the application layer belonging to the target application can be screened from the display layers of the screen mirroring device based on the application identifier of the target application, and the screened application layer is added to the layer queue.

[0057] S104: Based on the layer queue, the screen mirroring data of the target application is synthesized, and the screen mirroring data is sent to the screened device, so that the screened device displays the screen mirroring image of the target application according to the screen mirroring data.

[0058] In the embodiment of the present application, the screen mirroring data of the target application can be synthesized according to the layer queue, which can be referred to related technologies and will not be described here.

[0059] Further, the screen mirroring data is sent to the screened device, and the screened device can display the screen mirroring layer of the target application according to the screen mirroring data.

[0060] It can be seen that in the embodiment of the present application, the screen mirroring device receives the application screen mirroring instruction, the application screen mirroring instruction contains the application identifier of the target application; a virtual display screen associated with the screened device is created, and the layer stack identifier of the virtual display screen is set to be different from the layer stack identifier of the main screen of the screen mirroring device; for the virtual display screen, the application layer belonging to the target application is screened from the display layers of the screen mirroring device based on the application identifier of the target application, and a layer queue is obtained; based on the layer queue, the screen mirroring data of the target application is synthesized, and the screen mirroring data is sent to the screened device, so that the screened device displays the screen mirroring image of the target application according to the screen mirroring data.

[0061] Thus, on the basis of the native mechanism, another way of screening the application layer of the target application is provided, that is, by using the application identifier of the target application, the application layer belonging to the target application is captured, and the whole process does not need to change the layer stack identifier of the application layer, so the application side does not need to participate in the adaptation.

[0062] And, in this way, the application layer of the target application is captured, the whole process is based on the native mechanism of the virtual display screen, and the application lifecycle does not need to be rebuilt under this mechanism, thereby ensuring good screen projection effect.

[0063] In an embodiment of the present application, based on the application identifier of the target application, the application layer belonging to the target application is filtered from the display layer of the screen projection device, and a layer queue is obtained. The step can include:

[0064] For each display layer of the screen projection device, it is judged whether the application identifier of the display layer is identical to the application identifier of the target application. If yes, the display layer is determined as the application layer belonging to the target application and is added to the layer queue.

[0065] Specifically, the display layer has an application identifier, and it is judged whether the application identifier of the display layer is identical to the application identifier of the target application. If yes, it is determined as the application layer belonging to the target application.

[0066] It can be seen that by judging whether the application identifier of each display layer is identical to the application identifier of the target application, the application layer belonging to the target application can be efficiently filtered. By filtering the application layer of the target application in this way, the layer stack identifier of the application layer does not need to be changed, so the application side does not need to participate in the adaptation, thereby realizing application-unaware application screen projection.

[0067] In an embodiment of the present application, it can also include: based on the application identifier of the target application, the application layer belonging to the target application is deleted from the display layer of the screen projection device.

[0068] Specifically, in the process of capturing the application layer of the target application and displaying it on the screen projection device, the application layer of the screen projection device is not affected, so the application image is displayed on the screen projection device and the screen projection device at the same time.

[0069] For some scenarios, the application image needs to be displayed only on the screen projection device, so for the screen projection device, the application layer belonging to the target application is deleted from the display layer of the screen projection device based on the application identifier of the target application. That is, the layer containing the application identifier of the target application is removed, so that the target application is not displayed on the screen projection device.

[0070] It can be seen that by using the application screen projection method provided in the embodiments of the present application, for the screen projection device, the application layer belonging to the target application can be deleted from the display layer of the screen projection device based on the application identifier of the target application, so that the application image is displayed only on the screen projection device. It can meet the needs of the two different scenarios that the application image is displayed on the screen projection device and the screen projection device at the same time and the application image is displayed only on the screen projection device.

[0071] In one embodiment of the present application, the screen projection device is a mobile terminal, and the screen projection target device is a vehicle-mounted display device.

[0072] Therefore, by using the application screen projection method provided in the embodiments of the present application, the application interface can be displayed in the vehicle-mounted display device without sensing and without rebuilding the application life cycle, which is very important for enriching the experience of the vehicle-mounted multi-display system.

[0073] In order to facilitate understanding, the application screen projection data capturing principle involved in the application screen projection method provided in the embodiments of the present application is introduced below in combination with the accompanying drawings.

[0074] Referring to Figure 2 , Figure 2 is a schematic diagram of the application screen projection data capturing principle provided in the embodiments of the present application.

[0075] As Figure 2 indicated, after triggering screen projection, a virtual display screen is created, and a data callback interface is set. Therefore, the display management system will create a display device with independent display memory, and the shared application image data will be synthesized on the new device.

[0076] Subsequently, the layer stack identifier of the virtual display device is set to be different from the layer stack identifier of the main screen of the screen projection device, and the application identifier of the target application, denoted as appName, is set, which is used for subsequent layer capturing and synthesis in the application screen projection scenario.

[0077] Figure 2 The displayAdd, rebuildLaterStack, and displayLayers shown in the above formula respectively represent the calling functions for adding a virtual screen, adding a layer stack identifier, and determining a captured layer in the native mechanism, and details can be referred to related technologies, which are not described herein.

[0078] Figure 2 In the embodiment shown in the above formula, since the layer stack identifier of the application and the main screen does not change, the content displayed on the main screen will not change. For the newly created virtual display screen, the layer stack identifier is different from that of the main screen, so all current display layers cannot be added to the virtual screen, but the application layer of the target application can be captured by identifying the appName. As Figure 2 As shown in the above formula, it is determined whether the layer name contains the screen capture appName, and if yes, the application layer is captured.

[0079] Subsequently, the application layer belonging to the target application is captured according to the captured application layer, and the screen projection data of the target application is synthesized, and when an image refresh signal arrives, the screen projection data is sent to the screen projection device. The image refresh signal can be a Vsync signal, which is a signal triggering image refresh in a native mechanism. For details, refer to related technologies.

[0080] It can be seen that in the embodiments of the present application, the application identifier of the target application is set, and then the application layer belonging to the target application is captured through the application identifier of the target application. The entire process does not need to change the layer stack identifier of the application layer, and therefore does not need to participate in the adaptation on the application side. Moreover, the application layer of the target application is captured in this way, and the application lifecycle does not need to be reconstructed.

[0081] Figure 3 A structural schematic diagram of an application screen projection device provided by the embodiments of the present application is shown in FIG. 1. Figure 3 The device can include:

[0082] The receiving module 301 is configured to receive an application screen projection instruction, wherein the application screen projection instruction contains an application identifier of a target application.

[0083] The creating module 302 is configured to create a virtual display screen associated with the screen projection device, and set the layer stack identifier of the virtual display screen to be different from the layer stack identifier of the main screen of the screen projection device.

[0084] The screening module 303 is configured to screen, for the virtual display screen, the application layer belonging to the target application from the display layers of the screen projection device based on the application identifier of the target application, to obtain a layer queue.

[0085] The synthesizing module 304 is configured to synthesize the screen projection data of the target application based on the layer queue, and send the screen projection data to the screen projection device, so that the screen projection device displays the screen projection image of the target application according to the screen projection data.

[0086] It can be seen that in the embodiments of the present application, the screen projection device receives an application screen projection instruction, wherein the application screen projection instruction contains an application identifier of a target application. A virtual display screen associated with the screen projection device is created, and the layer stack identifier of the virtual display screen is set to be different from the layer stack identifier of the main screen of the screen projection device. For the virtual display screen, the application layer belonging to the target application is screened from the display layers of the screen projection device based on the application identifier of the target application, to obtain a layer queue. The screen projection data of the target application is synthesized based on the layer queue, and the screen projection data is sent to the screen projection device, so that the screen projection device displays the screen projection image of the target application according to the screen projection data.

[0087] Therefore, on the basis of the native mechanism, another way is provided for screening the application layer of the target application, that is, the application layer belonging to the target application is captured through the application identifier of the target application, and the whole process does not need to change the layer stack identifier of the application layer, and therefore the application side does not need to participate in the adaptation.

[0088] In addition, the application layer of the target application is captured in this way, and the whole process is based on the native mechanism of the virtual display screen, and the application lifecycle does not need to be reconstructed under this mechanism, thereby ensuring good screen projection effect.

[0089] The embodiment of the application further provides an electronic device, such as Figure 4 As shown in the figure, the electronic device comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404,

[0090] The memory 403 is used for storing a computer program.

[0091] The processor 401 is used for executing the program stored in the memory 403, and the following steps are realized:

[0092] An application screen projection instruction is received, and the application screen projection instruction contains an application identifier of a target application.

[0093] A virtual display screen associated with the screen projection device is created, and the layer stack identifier of the virtual display screen is set to be different from the layer stack identifier of the main screen of the screen projection device.

[0094] For the virtual display screen, an application layer belonging to the target application is screened from the display layer of the screen projection device based on the application identifier of the target application, and a layer queue is obtained.

[0095] Based on the layer queue, screen projection data of the target application is synthesized, and the screen projection data is sent to the screen projection device, so that the screen projection device displays a screen projection image of the target application according to the screen projection data.

[0096] It can be seen that the electronic device provided by the embodiment of the application is used for receiving an application screen projection instruction by the screen projection device, the application screen projection instruction contains an application identifier of a target application, a virtual display screen associated with the screen projection device is created, and the layer stack identifier of the virtual display screen is set to be different from the layer stack identifier of the main screen of the screen projection device, for the virtual display screen, an application layer belonging to the target application is screened from the display layer of the screen projection device based on the application identifier of the target application, and a layer queue is obtained, based on the layer queue, screen projection data of the target application is synthesized, and the screen projection data is sent to the screen projection device, so that the screen projection device displays a screen projection image of the target application according to the screen projection data.

[0097] Therefore, on the basis of the native mechanism, another way is provided for screening the application layer of the target application, that is, the application layer belonging to the target application is captured through the application identifier of the target application, and the whole process does not need to change the layer stack identifier of the application layer, and therefore the application side does not need to participate in the adaptation.

[0098] In addition, the application layer of the target application is captured in this way, and the whole process is based on the virtual display screen, a native mechanism, and the application life cycle does not need to be reconstructed under this mechanism, thereby ensuring good screen projection effect.

[0099] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0100] The communication interface is used for communication between the above electronic device and other devices.

[0101] The memory can include a Random Access Memory (RAM) and can also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.

[0102] The processor mentioned above can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0103] In yet another embodiment of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of any of the application screen projection methods described above.

[0104] In yet another embodiment of the present application, a computer program product containing instructions which, when executed on a computer, cause the computer to perform any of the application screen projection methods described above.

[0105] In the embodiments described above, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium, or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk, magnetic tape), optical media (such as DVD), or semiconductor media (such as solid state disk (SSD)), etc.

[0106] It should be noted that, in this document, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0107] The various embodiments in the specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, for the application screen projection device, electronic device, computer readable storage medium, and computer program product embodiments, since they are basically similar to the application screen projection method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the application screen projection method embodiments.

[0108] The above only describes the preferred embodiments of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An application screen projection method, characterized by, A screen projection device used in a screen projection system, wherein the screen projection system further includes a device to which the screen is projected, and the method includes: Receive an application casting command, wherein the application casting command contains the application identifier of the target application; Create a virtual display screen associated with the device being projected onto, and set the layer stack identifier of the virtual display screen to be different from the layer stack identifier of the main screen of the projection device, so that the device being projected onto will not synchronously display the main screen of the projection device; For the virtual display screen, for each display layer of the projection device, it is determined whether the application identifier of the display layer is equal to the application identifier of the target application. If so, the display layer is determined to be an application layer belonging to the target application and added to the layer queue; wherein, each layer displayed on the main screen of the projection device has application identifier information. Based on the layer queue, the projection data of the target application is synthesized and sent to the projected device so that the projected device can display the projection image of the target application according to the projection data.

2. The method of claim 1, wherein, The application's screen mirroring command also includes the screen width and height of the device to which the screen is being mirrored; The creation of a virtual display screen associated with the projected device includes: A virtual display screen is created based on the screen width and height of the device being projected.

3. The method of claim 1, wherein, The method further includes: Based on the application identifier of the target application, the application layer belonging to the target application is deleted from the display layer of the projection device.

4. The method according to claim 1, characterized in that, The projection device is a mobile terminal, and the device on which the projection is made is an in-vehicle display device.

5. An application screen projection device, characterized by comprising: A screen projection device for use in a screen projection system, wherein the screen projection system further includes a device to which the screen is projected, and the device includes: A receiving module is used to receive an application casting command, wherein the application casting command contains the application identifier of the target application; A creation module is used to create a virtual display screen associated with the projected device, and to set the layer stack identifier of the virtual display screen to be different from the layer stack identifier of the main screen of the projected device, so that the projected device will not synchronously display the main screen of the projected device; The filtering module is used to determine, for each display layer of the projection device, whether the application identifier of the display layer is equal to the application identifier of the target application. If so, the display layer is determined to be an application layer belonging to the target application and added to the layer queue. Each layer displayed on the main screen of the projection device has application identifier information. The synthesis module is used to synthesize the projection data of the target application based on the layer queue, and send the projection data to the projected device so that the projected device displays the projection image of the target application according to the projection data.

6. An electronic device, comprising: It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the method described in any one of claims 1-4.

7. A computer readable storage medium characterized by The computer readable storage medium stores a computer program, which, when executed by a processor, implements the method steps of any one of claims 1-4.

8. A computer program product comprising instructions, characterized in that, When it is run on a computer, it causes the computer to perform the method steps of any one of claims 1-4.

Citation Information

Patent Citations

  • Layer-based display method and device

    CN114296847A

  • Screen projection method and equipment

    CN114363678A