Content display method and device, electronic equipment and storage medium
By creating a virtual screen in the first electronic device and performing preset processing, the problem of incomplete display of the application interface caused by the mismatch in resolution between the terminal device and other devices is solved, and a complete interface on the second electronic device is realized. display, improving user experience.
Patent Information
- Application Number
- CN202310172552.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-08-27
AI Technical Summary
When mirroring the screen between the terminal device and other devices, the application interface display is incomplete due to resolution mismatch.
By creating a virtual screen in the first electronic device, generating a target interface according to the received resolution of the second electronic device, and performing preset processing to adapt to the resolution difference between the two, ensuring that the interface is displayed on the second electronic device Shown in full.
It realizes the complete screen projection of the application interface between devices with different resolutions, avoids the problem of incomplete interface display, and improves the user experience.
Smart Images

Figure CN118550488A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a content display method, device, electronic device, and storage medium. Background Art
[0002] With the development of technology, various types of applications (Application, APP) have emerged, such as video APP, news APP, navigation APP, etc. These applications provide great convenience for users' work and life.
[0003] In some scenarios, users may need to project the application interface on the terminal to the screen of another device for display. For example, project the application interface on the terminal to a TV with a larger screen, or project the application interface on the terminal to a car device for display. However, since the resolution of the terminal screen is often inconsistent with the resolution of the screen of the projected device, during actual projection, the screen of the projected device can only display part of the application interface, that is, there will be a problem of incomplete display of the application interface. Summary of the invention
[0004] The present disclosure provides a content display method, device, electronic device and storage medium to at least solve the problem of incomplete display of the application interface during actual screen projection in the above-mentioned related technologies.
[0005] According to a first aspect of an embodiment of the present disclosure, a content display method is provided, including: projecting a first virtual screen created in a first electronic device onto a screen of a second electronic device for display; generating a first target interface of the target application through a second virtual screen based on a start command for the target application received on the second electronic device; performing preset processing on the first target interface to obtain a second target interface; superimposing the second target interface on the first virtual screen, and projecting the second target interface onto the screen of the second electronic device for display.
[0006] Optionally, the first virtual screen is created based on a resolution of a screen of the second electronic device.
[0007] Optionally, the second virtual screen is created based on the resolution of the screen of the first electronic device.
[0008] Optionally, the pre-setting the first target interface to obtain the second target interface includes: scaling the first target interface based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain the second target interface.
[0009] Optionally, the resolution is determined based on the horizontal number of pixels and the vertical number of pixels, and the first target interface is scaled based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device, including: obtaining the ratio of the horizontal number of pixels and the vertical number of pixels between the second electronic device and the first electronic device; and scaling the first target interface based on the horizontal number of pixels and the vertical number of pixels.
[0010] Optionally, scaling the first target interface based on the horizontal pixel number ratio and the vertical pixel number ratio includes: scaling the first target interface based on a smaller ratio between the horizontal pixel number ratio and the vertical pixel number ratio.
[0011] Optionally, after superimposing the second target interface on the first virtual screen and projecting it onto the screen of the second electronic device for display, it also includes: based on a close command for the target application received on the second electronic device, removing the first target interface from the second virtual screen and retaining the second virtual screen.
[0012] According to a second aspect of an embodiment of the present disclosure, a content display device is provided, including: a first screen projection module, configured to project a first virtual screen created in a first electronic device to a screen of a second electronic device for display; an interface generation module, configured to generate a first target interface of the target application through a second virtual screen based on an opening command for the target application received on the second electronic device; a preset processing module, configured to perform preset processing on the first target interface to obtain a second target interface; and a second screen projection module, configured to superimpose the second target interface on the first virtual screen, and project the second target interface to the screen of the second electronic device for display.
[0013] Optionally, the first virtual screen is created based on a resolution of a screen of the second electronic device.
[0014] Optionally, the second virtual screen is created based on the resolution of the screen of the first electronic device.
[0015] Optionally, the preset processing module is configured to: perform scaling processing on the first target interface based on a resolution of a screen of the first electronic device and a resolution of a screen of the second electronic device to obtain the second target interface.
[0016] Optionally, the resolution is determined based on the horizontal pixel number and the vertical pixel number, and the preset processing module is configured to: obtain the horizontal pixel number ratio and the vertical pixel number ratio of the second electronic device to the first electronic device; and perform scaling processing on the first target interface based on the horizontal pixel number ratio and the vertical pixel number ratio.
[0017] Optionally, the preset processing module is configured to: perform scaling processing on the first target interface based on a smaller ratio between the horizontal pixel number ratio and the vertical pixel number ratio.
[0018] Optionally, the content display device further includes: a virtual screen control module configured to remove the first target interface from the second virtual screen and retain the second virtual screen based on a close command for the target application received on the second electronic device.
[0019] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a content display method according to the present disclosure.
[0020] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the content display method according to the present disclosure.
[0021] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0022] A first electronic device, such as a mobile phone, can launch a target application on a second virtual screen to generate a first target interface. In addition, the first electronic device will perform appropriate preset processing on the first target interface, and superimpose the second target interface obtained after the preset processing on the first virtual screen and project it onto the second electronic device. For example, the second target interface is displayed on a vehicle-mounted terminal to ensure that the second electronic device can display a complete application interface, thereby avoiding the phenomenon of incomplete display of the application interface.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0025] Figure 1is a schematic diagram showing a process of starting a news application through a vehicle computer in a related art;
[0026] Figure 2 is a schematic diagram showing a news application interface displayed on a vehicle computer in the related art;
[0027] Figure 3 is a flowchart illustrating a content display method according to an exemplary embodiment of the present disclosure;
[0028] Figure 4 is a schematic diagram showing a method of starting a screen projection application through a first electronic device and displaying a screen projection application interface on a second electronic device according to an exemplary embodiment of the present disclosure;
[0029] Figure 5 is a schematic diagram showing a second virtual screen created according to an exemplary embodiment of the present disclosure;
[0030] Figure 6 is a schematic diagram showing a comparison between the size of a second virtual screen and the size of a second electronic device according to an exemplary embodiment of the present disclosure;
[0031] Figure 7 is a schematic diagram showing a method of launching a third-party application through a second electronic device according to an exemplary embodiment of the present disclosure;
[0032] Figure 8 is a schematic diagram showing a method of launching a third-party application to a second virtual screen and scaling an application interface displayed on the second virtual screen according to an exemplary embodiment of the present disclosure;
[0033] Fig. 9 is a flowchart illustrating another content display method according to an exemplary embodiment of the present disclosure;
[0034] Fig.10 is an interactive flow chart illustrating a content display method according to an exemplary embodiment of the present disclosure;
[0035] Fig.11 is a block diagram illustrating a content display device according to an exemplary embodiment of the present disclosure;
[0036] Fig.12 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0039] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0040] With the popularization of smart terminals, there are more and more APPs on the terminals. When using the APP on the terminal, the user can switch it to other devices for display, that is, the application interface on the terminal can be projected to other devices to realize the flow of applications from the terminal to other devices.
[0041] Generally speaking, the resolution of the terminal screen is inconsistent with the resolution of other device screens. When projecting the application interface on the terminal to other devices, if the resolution of the terminal screen is different from that of the projected device, that is, if the size of the terminal is different from that of the projected device, there will be problems such as the layout of elements in the application interface displayed on the projected device being too bloated, and the application interface displayed on the projected device being incomplete as the application interface displayed on the terminal.
[0042] In the related technology, you only need to install the projection application on both the projected device and the terminal to project the application interface of a certain application from the terminal to the projected device. Among them, the "projection application" is mainly used to project the application interface of a certain application on the terminal to another device for display. For example, you only need to install the projection application on the car machine and the terminal to project the application interface of a certain application on the terminal from the terminal to the car machine.
[0043] When the user is in the car and not in driving state, if the user wants to use the screen on the car computer to view the news, the user can first connect the terminal to the car computer. Then, the user can start the screen projection application on the terminal to the car computer, that is, the interface of the screen projection application on the terminal can be projected to the car computer screen. Next, the user can select the news application that he wants to use for projection in the experience area contained in the screen projection application interface displayed on the car computer, and then he can start the news application to browse the news.
[0044] Figure 1 The present invention is a schematic diagram showing a process of starting a news application through a vehicle computer in the related art.
[0045] Reference Figure 1 In step 101, the vehicle computer transmits its own resolution and other screen size parameters to the terminal through a transmission channel. The "transmission channel" can be a wired transmission channel or a wireless transmission channel. The "wired transmission channel" can be transmitted using a universal serial bus (USB) or other methods; the "wireless transmission channel" can be transmitted using wireless network communication technology (WIFI), Bluetooth (BT) or other wireless transmission methods.
[0046] In step 102, the terminal creates a virtual screen according to the received screen size parameters. The "virtual screen" may be a carrier that can be used to display the application interface of the screen projection application.
[0047] In step 103, the terminal starts the screen projection application to the virtual screen, that is, the application interface of the screen projection application can be displayed on the virtual screen.
[0048] In step 104, the terminal compresses and encodes the content displayed on the virtual screen, that is, it can compress and encode the application interface of the projection application displayed on the virtual screen, and transmit the encoded data to the vehicle computer.
[0049] In step 105, after the vehicle computer receives the encoded data, it can decode the received data and display the application interface of the screen projection application obtained by decoding.
[0050] In step 106, the user clicks to start the news application on the application interface of the screen projection application displayed on the vehicle terminal.
[0051] In step 107 , the terminal displays the application interface of the news application on the virtual screen, and projects the application interface of the news application displayed on the virtual screen to the vehicle computer for display.
[0052] Figure 21 is a schematic diagram showing a news application interface displayed on a vehicle computer in the related art. Figure 2 , which contains two graphs, namely Figure 2 (a) and Figure 2 (b). Figure 2 (a) shows the experience area contained in the screen projection application interface, and the "experience area" displays pre-configured icons of third-party applications that can be used for screen projection. For example, these third-party applications can be "news applications", "video applications", "audio applications", "food applications", etc.
[0053] It should be noted that multiple third-party applications can be pre-configured for the screen projection application, that is, multiple third-party applications that need to be used for screen projection can be pre-configured for the screen projection application according to actual needs. For example, some third-party applications can be added to the screen projection application or some third-party applications can be deleted in advance according to actual needs.
[0054] If the user is Figure 2 If you click the "News Application" icon in the "Experience Zone" in (a), the application interface of the "News Application" can be displayed on the car computer. Figure 2 (b) It can be seen that the images contained in the application interface of the "News Application" are not fully displayed at this time, and the user cannot view the complete news application interface. That is, in the related art, when displaying the application interface of a third-party application on a car computer, the following problems may exist:
[0055] Less content can be viewed. For example, the entire car screen can only display a few lines of text, and some pictures may not be fully displayed, that is, a whole picture cannot be fully displayed and viewed. This is because the resolution of the virtual screen created according to the size of the car screen does not match the resolution of the terminal screen. The application interface of the news application can adapt to the resolution on the terminal, so it can be displayed normally on the terminal; however, the application interface of the news application is not suitable for the resolution of the car, so when the application interface of the news application on the terminal is projected to the car, the content displayed is relatively small. For example, some pictures may not be displayed completely, and the user experience is not good.
[0056] In order to solve the above-mentioned problems in the related art, the content display method, device, electronic device and storage medium provided by the present disclosure, a first electronic device, such as a mobile phone, can start the target application on the second virtual screen to generate a first target interface, and the first electronic device will also perform appropriate preset processing on the first target interface, and superimpose the second target interface obtained after the preset processing on the first virtual screen and project it to the second electronic device, for example, display the second target interface on the vehicle-mounted terminal, to ensure that the second electronic device can display the complete application interface, thereby avoiding the phenomenon of incomplete display of the application interface.
[0057] Figure 3 is a flowchart illustrating a content display method according to an exemplary embodiment of the present disclosure, which is applied to a first electronic device.
[0058] Reference Figure 3 In step 301, the first virtual screen created in the first electronic device can be projected onto the screen of the second electronic device for display.
[0059] When the first electronic device is connected to the second electronic device, information about the resolution of the second electronic device screen can be received from the second electronic device. The first electronic device and the second electronic device can be connected via a wired method such as USB, or can be connected via a wireless method such as WIFI, BT, etc., so as to achieve data communication between the first electronic device and the second electronic device. The "first electronic device" can be, but not limited to, a mobile phone, a tablet computer, and other devices; the "second electronic device" can be, but not limited to, a vehicle-mounted terminal, a television, and other devices.
[0060] According to an exemplary embodiment of the present disclosure, the above-mentioned first virtual screen can be created based on the resolution of the screen of the second electronic device, that is, the resolution of the first virtual screen is consistent with the resolution of the screen of the second electronic device, that is, the first electronic device can create a first virtual screen suitable for display on the screen of the second electronic device based on the received resolution of the screen of the second electronic device.
[0061] When the first electronic device is connected to the second electronic device, the screen projection application on the first electronic device can also be started. Among them, if the first electronic device is connected to the second electronic device by wire, the first electronic device can automatically start the screen projection application. If the first electronic device is connected to the second electronic device by wireless means, when the two establish a wireless connection for the first time, the user needs to manually start the screen projection application on the first electronic device; when the two establish a wireless connection again later, the user does not need to manually start the screen projection application, but can automatically start the screen projection application through the first electronic device.
[0062] After the screen projection application on the first electronic device is started, the screen projection application interface of the screen projection application can be displayed on the first virtual screen. The screen projection application can be used to project the application interface of the target application from the first electronic device to the second electronic device, and the "target application" can be a third-party application that is pre-configured for the screen projection application and needs to be used for screen projection.
[0063] The projection application interface can be sent to the second electronic device so that the projection application interface is displayed on the second electronic device. For example, the first electronic device can compress and encode the projection application interface displayed on the first virtual screen, and send the compressed and encoded data to the second electronic device. After the second electronic device receives the compressed and encoded data, it can decode the compressed and encoded data, and then obtain and display the projection application interface.
[0064] Figure 4 It is a schematic diagram showing a method of launching a screen projection application through a first electronic device and displaying a screen projection application interface on a second electronic device according to an exemplary embodiment of the present disclosure.
[0065] Reference Figure 4 , a total of two figures are shown, namely Figure 4 (a) and Figure 4 (b). Figure 4 (a) shows the screen projection application interface displayed on the screen of the second electronic device. Four function entrances are displayed on the left side of the screen projection application interface, which are: "Voice Assistant Function Entrance", "Map Function Entrance", "Call Function Entrance", and "Management Function Entrance" in order from top to bottom.
[0066] The middle part of the screen casting application interface displays a map interface; the right side of the screen casting application interface displays the "Go Home" option and the "Go to Company" option. When the user chooses to click the "Go Home" option, the middle part of the screen casting application interface can display a route map from the current location to the user's residence; when the user chooses to click the "Go to Company" option, the middle part of the screen casting application interface can display a route map from the current location to the user's company.
[0067] A music card is also displayed on the right side of the screen projection application interface. When playing music, relevant information of the song being played can be displayed on the music card. For example, the name, lyrics and other information of the song being played can be displayed on the music card. In addition, users can also control the music playback on the music card. For example, pause the playback of the current song, switch to the previous song, switch to the next song, and so on.
[0068] Figure 4 (b) shows the main screen content of the first electronic device, that is, the desktop content. At this time, the use of the first electronic device and the use of the second electronic device are independent of each other and are not affected by each other. For example, the user can browse news through the second electronic device, that is, the vehicle terminal; at the same time, the user can also use the video APP on the first electronic device to play videos.
[0069] According to an exemplary embodiment of the present disclosure, the second virtual screen can be created based on the resolution of the screen of the first electronic device, that is, the resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, that is, the first electronic device can create a second virtual screen according to the resolution of the screen of the first electronic device. Since the resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, the effect of the application interface of the third-party application displayed on the second virtual screen is the same as that displayed on the first electronic device.
[0070] It should be noted that the first electronic device may create the second virtual screen while creating the first virtual screen, or may create the first virtual screen first and then the second virtual screen. The present disclosure does not specifically limit the order of creating the first virtual screen and the second virtual screen.
[0071] Figure 5 is a schematic diagram showing a second virtual screen created according to an exemplary embodiment of the present disclosure. Figure 5 , a total of two figures are shown, namely Figure 5 (a) and Figure 5 (b). Figure 5 (a) shows the resolution of the screen of the first electronic device, specifically 1080×1920. Figure 5 (b) shows a second virtual screen created according to the resolution of the screen of the first electronic device. The resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, which is also 1080×1920.
[0072] Figure 6 FIG. 1 is a schematic diagram showing a comparison between the size of a second virtual screen and the size of a second electronic device according to an exemplary embodiment of the present disclosure. Figure 6 , a total of two figures are shown, namely Figure 6 (a) and Figure 6 (b). Figure 6 (a) shows a second virtual screen created based on the resolution of the screen of the first electronic device, where the resolution of the second virtual screen is: 1080×1920; Figure 6 (b) shows the comparison effect between the second virtual screen and the screen of the second electronic device, where the resolution of the screen of the second electronic device is 1280 × 720. It can be seen that the screen of the second electronic device is flatter and wider than the second virtual screen.
[0073] In step 302, based on the start command for the target application received on the second electronic device, a first target interface of the target application may be generated through the second virtual screen.
[0074] Return to reference Figure 4 , Figure 4 In Figure 4(a) The screen projection application interface is displayed, and a "management function entry" is displayed in the lower left corner of the screen projection application interface. If the user clicks on the "management function entry" contained in the screen projection application interface displayed by the second electronic device, an "experience zone" page can be displayed, and the "experience zone" page can display pre-configured icons of third-party applications that can be used for screen projection. For example, these third-party applications can be "news applications", "video applications", "audio applications", "food applications", etc.
[0075] Figure 7 is a schematic diagram showing a method of launching a third-party application through a second electronic device according to an exemplary embodiment of the present disclosure. Figure 7 , a total of two figures are shown, namely Figure 7 (a) and Figure 7 (b). Figure 7 (a) shows the “Experience Zone” page, which contains icons of multiple third-party applications that can be used for screen projection, including an icon for “news application”, an icon for “video application”, an icon for “audio application”, an icon for “food application”, and the like.
[0076] If the user clicks Figure 7 (a) shows the icon of "News Application" included in the "Experience Zone" page, the second electronic device will receive the opening command for the "News Application", at which time the first electronic device can obtain the application interface of the "News Application" and display the application interface of the "News Application" on the second virtual screen. The opening command for the target application may not be limited to the aforementioned click operation, but may also be other touch operations, such as double-clicking, pressing hard, long pressing, etc.; or may also be a voice input instruction, and the present disclosure does not specifically limit the form of the opening command.
[0077] It should be noted that, in response to the opening command for the "news application" received on the second electronic device, if the first electronic device finds that the "news application" is not installed on the first electronic device, the first electronic device may pop up a prompt message, which is used to prompt the user to download and install the "news application". Only after the user downloads and installs the "news application" on the first electronic device can the application interface of the "news application" be projected from the first electronic device to the second electronic device for display.
[0078] In step 303, the first target interface may be subjected to preset processing to obtain a second target interface.
[0079] According to an exemplary embodiment of the present disclosure, the first target interface can be scaled based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain the second target interface. That is, the first electronic device can scale the application interface of the "news application" displayed on the second virtual screen based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain the scaled application interface.
[0080] It should be noted that due to the large difference between the size of the second virtual screen and the size of the vehicle screen, the application interface displayed on the second virtual screen needs to be appropriately scaled to fit the vehicle screen. The specific scaling method may be: the first electronic device scales the screen component (View) of the second virtual screen according to the size of the vehicle screen, so that the size of the scaled View matches the size of the vehicle screen. "Screen View" is a screen component, that is, a screen carrier, which is mainly used to display specific screen content, for example, it is mainly used to display the content of a specific application interface. In addition, the scaling of the View can be achieved by setting the same scaling ratio for the width and height.
[0081] According to an exemplary embodiment of the present disclosure, the above-mentioned "resolution" can be determined based on the horizontal number of pixels and the vertical number of pixels. For example, for the first electronic device, its resolution can be 1080×1920; for the second electronic device, its resolution can be 1280×720. The horizontal pixel ratio and the vertical pixel ratio of the second electronic device to the first electronic device can be obtained. For example, the horizontal pixel ratio of the second electronic device to the first electronic device can be obtained: 1280 / 1080, and the vertical pixel ratio of the second electronic device to the first electronic device can be obtained: 720 / 1920. Next, the first target interface can be scaled based on the horizontal pixel ratio and the vertical pixel ratio, that is, the application interface of the "News Application" displayed on the second virtual screen can be scaled based on the horizontal pixel ratio: 1280 / 1080, and the vertical pixel ratio: 720 / 1920.
[0082] According to an exemplary embodiment of the present disclosure, the first target interface can be scaled based on the smaller ratio of the horizontal pixel number ratio and the vertical pixel number ratio. For example, the application interface of the "News Application" displayed on the second virtual screen can be scaled based on the smaller ratio of the horizontal pixel number ratio: 1280 / 1080 and the vertical pixel number ratio: 720 / 1920. That is, based on the smaller ratio: 720 / 1920, the height and width of the screen View of the second virtual screen can be reduced at the same time according to the scaling ratio (720 / 1920). The content contained in the scaled application interface is consistent with the content contained in the application interface before scaling, except that the size of the screen View has changed.
[0083] Figure 8 1 is a schematic diagram showing a method of launching a third-party application to a second virtual screen and scaling the application interface displayed on the second virtual screen according to an exemplary embodiment of the present disclosure. Figure 8 , a total of two figures are shown, namely Figure 8 (a) and Figure 8 (b). Figure 8 (a) shows the effect of displaying the application interface of the news application on the second virtual screen. It can be seen that since the resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, the effect of displaying the application interface of the news application on the second virtual screen is the same as the effect of displaying it on the screen of the first electronic device.
[0084] And, as mentioned above, the horizontal pixel ratio is: 1280 / 1080, the vertical pixel ratio is: 720 / 1920, and the smaller ratio between the two is: 720 / 1920. Therefore, the application interface of the "News Application" displayed on the second virtual screen can be scaled based on the smaller ratio: 720 / 1920. At this time, the height of the application interface of the "News Application" on the second virtual screen is compressed to: 1920×(720 / 1920)=720; the width of the application interface of the "News Application" on the second virtual screen is compressed to: 1080×(720 / 1920)=405.
[0085] Figure 8 (b) shows the effect of displaying the scaled "News Application" application interface on the second electronic device screen. It can be seen that the scaled "News Application" application interface is displayed on the second electronic device screen in the height direction, but the scaled "News Application" application interface is not displayed on the second electronic device screen in the width direction, that is, it does not cover the entire second electronic device screen in the width direction.
[0086] Return to reference Figure 7 , Figure 7(b) shows the effect of displaying the zoomed "news application" application interface on the second electronic device screen. It can be seen that the complete picture is displayed on the second electronic device screen, that is, the complete "news application" application interface is displayed on the second electronic device screen.
[0087] It should be noted that if the first target interface is scaled based on the larger ratio between the horizontal pixel ratio and the vertical pixel ratio, the screen of the second electronic device may not be able to fully display the scaled application interface.
[0088] For example, as mentioned above, the horizontal pixel ratio is: 1280 / 1080, the vertical pixel ratio is: 720 / 1920, and the larger ratio between the two is: 1280 / 1080. At this time, if the application interface of the "News Application" displayed on the second virtual screen is scaled based on the larger ratio: 1280 / 1080, the width of the application interface of the "News Application" on the second virtual screen will be enlarged to: 1080×(1280 / 1080)=1280; the height of the application interface of the "News Application" on the second virtual screen will be enlarged to: 1920×(1280 / 1080)≈2275.6. Since 2275.6>720, that is, since the height of the scaled application interface is greater than the height of the second electronic device screen, the second electronic device screen cannot fully display the scaled application interface. Therefore, the present application needs to scale the application interface according to the smaller ratio of the horizontal pixel number ratio and the vertical pixel number ratio, so as to ensure that the scaled application interface can be fully displayed on the screen of the second electronic device, that is, it can ensure that the user can see the complete application interface on the second electronic device.
[0089] In step 304, the second target interface can be superimposed on the first virtual screen and projected onto the screen of the second electronic device for display, that is, the zoomed application interface can be superimposed on the first virtual screen and projected onto the screen of the second electronic device for display.
[0090] According to an exemplary embodiment of the present disclosure, the first target interface may be removed from the second virtual screen based on a closing command for the target application received on the second electronic device, and the second virtual screen may be retained.
[0091] Specifically, if the user closes the target application on the second electronic device, the first electronic device can remove the first target interface of the target application from the second virtual screen in response to the close command for the target application received on the second electronic device, and can retain the second virtual screen, that is, it can prohibit the destruction of the second virtual screen, that is, it can maintain the second virtual screen in the background of the first electronic device. At this time, the screen of the second electronic device will resume displaying the projection application interface, that is, it can resume displaying the second virtual screen. Figure 4 (a) shows the screen projection application interface.
[0092] In this way, since the second virtual screen is not destroyed but exists in the background of the first electronic device, when the user starts the third-party application again on the vehicle terminal, the current second virtual screen can be directly used without creating a new virtual screen, which saves creation time and resources.
[0093] Fig. 9 is a flowchart illustrating another content display method according to an exemplary embodiment of the present disclosure, which is applied to a second electronic device.
[0094] Reference Fig. 9 In step 901, when the second electronic device is connected to the first electronic device, information about the resolution of the screen of the second electronic device may be sent to the first electronic device. The first electronic device and the second electronic device may be connected via a wired method such as USB, or may be connected via a wireless method such as WIFI, BT, etc., so as to achieve data communication between the first electronic device and the second electronic device.
[0095] After the first electronic device receives the information of the resolution of the second electronic device screen sent by the second electronic device, it can also create a first virtual screen. The resolution of the first virtual screen is consistent with the resolution of the second electronic device screen. That is, the first electronic device can create a first virtual screen suitable for display on the screen of the second electronic device according to the resolution of the received second electronic device screen.
[0096] In response to the start instruction for the projection application, the first electronic device can display the projection application interface of the projection application on the first virtual screen. The projection application can be used to project the application interface of the target application from the first electronic device to the second electronic device, and the "target application" can be a third-party application that is pre-configured for the projection application and needs to be used for projection.
[0097] The first electronic device can send a projection application interface to the second electronic device, so that the projection application interface is displayed on the second electronic device. For example, the first electronic device can compress and encode the projection application interface displayed on the first virtual screen, and send the compressed and encoded data to the second electronic device. After the second electronic device receives the compressed and encoded data, it can decode the compressed and encoded data, and then obtain and display the projection application interface.
[0098] Return to reference Figure 4 (a) Figure 4(a) shows the screen projection application interface displayed on the screen of the second electronic device. Four function entrances are displayed on the left side of the screen projection application interface, which are: "Voice Assistant Function Entrance", "Map Function Entrance", "Call Function Entrance", and "Management Function Entrance" in order from top to bottom.
[0099] The middle part of the screen casting application interface displays a map interface; the right side of the screen casting application interface displays the "Go Home" option and the "Go to Company" option. When the user chooses to click the "Go Home" option, the middle part of the screen casting application interface can display a route map from the current location to the user's residence; when the user chooses to click the "Go to Company" option, the middle part of the screen casting application interface can display a route map from the current location to the user's company.
[0100] A music card is also displayed on the right side of the screen projection application interface. When playing music, relevant information of the song being played can be displayed on the music card. For example, the name, lyrics and other information of the song being played can be displayed on the music card. In addition, users can also control the music playback on the music card. For example, pause the playback of the current song, switch to the previous song, switch to the next song, and so on.
[0101] The first electronic device can also create a second virtual screen. The resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device. That is, the first electronic device can create a second virtual screen according to the resolution of the screen of the first electronic device. Since the resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, the effect of the application interface of the third-party application displayed on the second virtual screen is the same as that displayed on the first electronic device.
[0102] It should be noted that the first electronic device may create the second virtual screen while creating the first virtual screen, or may create the first virtual screen first and then the second virtual screen. The present disclosure does not specifically limit the order of creating the first virtual screen and the second virtual screen.
[0103] In step 902, a second target interface sent by the first electronic device may be received and displayed. The second target interface may be a second target interface obtained by scaling the first target interface based on the resolution of the first electronic device screen and the resolution of the second electronic device screen after the first electronic device displays the first target interface of the target application on the acquired second virtual screen in response to the start command for the target application received on the second electronic device, and the resolution of the second virtual screen is consistent with the resolution of the first electronic device screen.
[0104] For example, a zoomed application interface sent by the first electronic device may be received and displayed. The zoomed application interface may be obtained by the first electronic device scaling the original application interface of the news application based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device after the first electronic device displays the original application interface of the news application on the acquired second virtual screen in response to the opening command for the news application received on the second electronic device.
[0105] According to an exemplary embodiment of the present disclosure, in response to a close command for a target application received on the second electronic device, the first electronic device can remove the first target interface from the second virtual screen and retain the second virtual screen, that is, the destruction of the second virtual screen can be prohibited, that is, the second virtual screen can be maintained in the background of the first electronic device. At this time, the screen of the second electronic device will resume displaying the projection application interface, that is, the display can be resumed. Figure 4 (a) shows the screen projection application interface.
[0106] In this way, since the second virtual screen is not destroyed but exists in the background of the first electronic device, when the user starts the third-party application again on the vehicle terminal, the current second virtual screen can be directly used without creating a new virtual screen, which saves creation time and resources.
[0107] According to an exemplary embodiment of the present disclosure, a screen projection application interface sent by the first electronic device can also be received and displayed. The screen projection application interface can be a screen projection application interface of the screen projection application displayed on the first virtual screen created by the first electronic device in response to a startup instruction for the screen projection application. As mentioned above, the screen projection application is used to project the application interface of the target application from the first electronic device to the second electronic device, and the resolution of the first virtual screen is consistent with the resolution of the screen of the second electronic device.
[0108] Return to reference Figure 4 (a) Figure 4 (a) shows the screen projection application interface of the screen projection application. Four function entrances are displayed on the left side of the screen projection application interface, which are: "Voice Assistant Function Entrance", "Map Function Entrance", "Call Function Entrance", and "Management Function Entrance" in order from top to bottom.
[0109] Based on a click operation on the icon of the target application in the projection application interface displayed on the second electronic device, the first electronic device can generate a first target interface of the target application through the second virtual screen. Figure 4 (a) Figure 4(a) The screen projection application interface is displayed, and a "management function entry" is displayed in the lower left corner of the screen projection application interface. If the user clicks on the "management function entry" contained in the screen projection application interface displayed by the second electronic device, an "experience zone" page can be displayed, and the "experience zone" page can display pre-configured icons of third-party applications that can be used for screen projection. For example, these third-party applications can be "news applications", "video applications", "audio applications", "food applications", etc.
[0110] Return to reference Figure 7 (a) Figure 7 (a) shows the “Experience Zone” page, which contains icons of multiple third-party applications that can be used for screen projection, including an icon for “news application”, an icon for “video application”, an icon for “audio application”, an icon for “food application”, and the like.
[0111] If the user clicks Figure 7 (a) If the icon of the "News Application" is included in the "Experience Zone" page shown, the second electronic device will receive an opening command for the "News Application". At this time, the first electronic device can obtain the application interface of the "News Application" and can display the application interface of the "News Application" on the second virtual screen.
[0112] Furthermore, the first electronic device can also scale the first target interface based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain the second target interface. That is, the first electronic device can scale the application interface of the "News Application" displayed on the second virtual screen based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain a scaled application interface. Among them, the specific process of scaling the first target interface has been described in detail in the previous embodiment and will not be repeated here. Next, the first electronic device can superimpose the second target interface on the first virtual screen, and project the screen to the screen of the second electronic device for display.
[0113] Fig.10 is an interactive flow chart illustrating a content display method according to an exemplary embodiment of the present disclosure.
[0114] Reference Fig.10 In step 1001, after the mobile phone establishes a connection with the vehicle-mounted terminal, the vehicle-mounted terminal transmits the resolution of the vehicle-mounted terminal screen to the mobile phone.
[0115] In step 1002, the mobile phone creates a virtual screen m according to the received resolution of the vehicle terminal screen, wherein the resolution of the virtual screen m is consistent with the resolution of the vehicle terminal screen.
[0116] In step 1003, the mobile phone responds to the user's start instruction for the screen projection application and displays the screen projection application interface of the screen projection application on the virtual screen m.
[0117] It should be noted that since the projection application interface is displayed in horizontal mode by default, the projection application interface can be directly displayed on the virtual screen m whose resolution is consistent with the resolution of the vehicle terminal screen. At this time, the projection application interface on the virtual screen m can be fully displayed, that is, there will be no incomplete display phenomenon.
[0118] In step 1004, the mobile phone may create a virtual screen having a resolution consistent with the resolution of the mobile phone screen.
[0119] In step 1005, the mobile phone can compress and encode the screen projection application interface displayed on the virtual screen m, and can send the data obtained through compression and encoding to the vehicle terminal.
[0120] In step 1006, after the vehicle-mounted terminal receives the compressed and encoded data sent by the mobile phone, it decodes the data and displays the screen projection application interface obtained by decoding.
[0121] In step 1007, the user clicks to start a third-party application on the vehicle terminal. The third-party application is an application that is pre-configured for the projection application and can be used for projection. The projection application is mainly used to project the application interface of the third-party application from the mobile phone to the vehicle terminal.
[0122] In step 1008, the mobile phone displays the application interface of the third-party application on the virtual screen n, and performs scaling processing on the application interface of the third-party application displayed on the virtual screen n to obtain a scaled application interface.
[0123] In step 1009, the mobile phone overlays the zoomed application interface onto the virtual screen m, and projects the screen onto the screen of the vehicle terminal for display.
[0124] In step 10010, the user exits the third-party application on the vehicle terminal.
[0125] In step 10011, the mobile phone removes the application interface of the third-party application displayed on the virtual screen n and retains the virtual screen n.
[0126] Fig.11 is a block diagram illustrating a content display device according to an exemplary embodiment of the present disclosure, which is applied to a first electronic device.
[0127] Reference Fig.11 The device 1100 may include a first screen projection module 1101, an interface generation module 1102, a preset processing module 1103 and a second screen projection module 1104.
[0128] The first screen projection module 1101 can project the first virtual screen created in the first electronic device to the screen of the second electronic device for display.
[0129] When the first electronic device is connected to the second electronic device, information about the resolution of the second electronic device screen can be received from the second electronic device. The first electronic device and the second electronic device can be connected via a wired method such as USB, or can be connected via a wireless method such as WIFI, BT, etc., so as to achieve data communication between the first electronic device and the second electronic device. The "first electronic device" can be, but not limited to, a mobile phone, a tablet computer, and other devices; the "second electronic device" can be, but not limited to, a vehicle-mounted terminal, a television, and other devices.
[0130] According to an exemplary embodiment of the present disclosure, the above-mentioned first virtual screen can be created based on the resolution of the screen of the second electronic device, that is, the resolution of the first virtual screen is consistent with the resolution of the screen of the second electronic device, that is, the first electronic device can create a first virtual screen suitable for display on the screen of the second electronic device based on the received resolution of the screen of the second electronic device.
[0131] According to an exemplary embodiment of the present disclosure, the second virtual screen can be created based on the resolution of the screen of the first electronic device, that is, the resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, that is, the first electronic device can create a second virtual screen according to the resolution of the screen of the first electronic device. Since the resolution of the second virtual screen is consistent with the resolution of the screen of the first electronic device, the effect of the application interface of the third-party application displayed on the second virtual screen is the same as that displayed on the first electronic device.
[0132] It should be noted that the first electronic device may create the second virtual screen while creating the first virtual screen, or may create the first virtual screen first and then the second virtual screen. The present disclosure does not specifically limit the order of creating the first virtual screen and the second virtual screen.
[0133] The interface generating module 1102 may generate a first target interface of the target application through the second virtual screen based on the start command for the target application received on the second electronic device.
[0134] Return to reference Figure 4 , Figure 4 In Figure 4(a) The screen projection application interface is displayed, and a "management function entry" is displayed in the lower left corner of the screen projection application interface. If the user clicks on the "management function entry" contained in the screen projection application interface displayed by the second electronic device, an "experience zone" page can be displayed, and the "experience zone" page can display pre-configured icons of third-party applications that can be used for screen projection. For example, these third-party applications can be "news applications", "video applications", "audio applications", "food applications", etc.
[0135] Return to reference Figure 7 , a total of two figures are shown, namely Figure 7 (a) and Figure 7 (b). Figure 7 (a) shows the “Experience Zone” page, which contains icons of multiple third-party applications that can be used for screen projection, including an icon for “news application”, an icon for “video application”, an icon for “audio application”, an icon for “food application”, and the like.
[0136] If the user clicks Figure 7 (a) shows the icon of "News Application" included in the "Experience Zone" page, the second electronic device will receive the opening command for the "News Application", at which time the first electronic device can obtain the application interface of the "News Application" and display the application interface of the "News Application" on the second virtual screen. The opening command for the target application may not be limited to the aforementioned click operation, but may also be other touch operations, such as double-clicking, pressing hard, long pressing, etc.; or may also be a voice input instruction, and the present disclosure does not specifically limit the form of the opening command.
[0137] The preset processing module 1103 may perform preset processing on the first target interface to obtain a second target interface.
[0138] According to an exemplary embodiment of the present disclosure, the preset processing module 1103 can scale the first target interface based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain the second target interface. That is, the first electronic device can scale the application interface of the "news application" displayed on the second virtual screen based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device to obtain the scaled application interface.
[0139] It should be noted that due to the large difference between the size of the second virtual screen and the size of the vehicle screen, the application interface displayed on the second virtual screen needs to be appropriately scaled to fit the vehicle screen. The specific scaling method may be: the first electronic device scales the screen component (View) of the second virtual screen according to the size of the vehicle screen, so that the size of the scaled View matches the size of the vehicle screen. "Screen View" is a screen component, that is, a screen carrier, which is mainly used to display specific screen content, for example, it is mainly used to display the content of a specific application interface. In addition, the scaling of the View can be achieved by setting the same scaling ratio for the width and height.
[0140] According to an exemplary embodiment of the present disclosure, the above-mentioned "resolution" can be determined based on the horizontal number of pixels and the vertical number of pixels. For example, for the first electronic device, its resolution can be 1080×1920; for the second electronic device, its resolution can be 1280×720. The preset processing module 1103 can obtain the horizontal pixel ratio and the vertical pixel ratio of the second electronic device to the first electronic device. For example, the horizontal pixel ratio of the second electronic device to the first electronic device can be obtained: 1280 / 1080, and the vertical pixel ratio of the second electronic device to the first electronic device can be obtained: 720 / 1920. Next, the preset processing module 1103 can scale the first target interface based on the horizontal pixel ratio and the vertical pixel ratio, that is, the application interface of the "News Application" displayed on the second virtual screen can be scaled based on the horizontal pixel ratio: 1280 / 1080, and the vertical pixel ratio: 720 / 1920.
[0141] According to an exemplary embodiment of the present disclosure, the preset processing module 1103 can scale the first target interface based on the smaller ratio of the horizontal pixel number ratio and the vertical pixel number ratio. For example, the application interface of the "News Application" displayed on the second virtual screen can be scaled based on the smaller ratio of the horizontal pixel number ratio: 1280 / 1080 and the vertical pixel number ratio: 720 / 1920. That is, based on the smaller ratio: 720 / 1920, the height and width of the screen View of the second virtual screen can be reduced at the same time according to the scaling ratio (720 / 1920). The content contained in the scaled application interface is consistent with the content contained in the application interface before scaling, except that the size of the screen View has changed.
[0142] The second screen projection module 1104 can superimpose the second target interface on the first virtual screen, and project it onto the screen of the second electronic device for display, that is, it can superimpose the zoomed application interface on the first virtual screen, and project it onto the screen of the second electronic device for display.
[0143] According to an exemplary embodiment of the present disclosure, the content display device 1100 may further include a virtual screen control module, which may further remove the first target interface from the second virtual screen and retain the second virtual screen based on a close command for the target application received on the second electronic device.
[0144] Specifically, if the user closes the target application on the second electronic device, the first electronic device can remove the first target interface of the target application from the second virtual screen in response to the close command for the target application received on the second electronic device, and can retain the second virtual screen, that is, it can prohibit the destruction of the second virtual screen, that is, it can maintain the second virtual screen in the background of the first electronic device. At this time, the screen of the second electronic device will resume displaying the projection application interface, that is, it can resume displaying the second virtual screen. Figure 4 (a) shows the screen projection application interface.
[0145] In this way, since the second virtual screen is not destroyed but exists in the background of the first electronic device, when the user starts the third-party application again on the vehicle terminal, the current second virtual screen can be directly used without creating a new virtual screen, which saves creation time and resources.
[0146] Fig.12 is a block diagram illustrating an electronic device 1200 according to an exemplary embodiment of the present disclosure.
[0147] Reference Fig.12 The electronic device 1200 includes at least one memory 1201 and at least one processor 1202. The at least one memory 1201 stores instructions. When the instructions are executed by the at least one processor 1202, the content display method according to the exemplary embodiment of the present disclosure is executed.
[0148] As an example, the electronic device 1200 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instructions. Here, the electronic device 1200 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above instructions (or instruction sets) individually or in combination. The electronic device 1200 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0149] In the electronic device 1200, the processor 1202 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0150] The processor 1202 may execute instructions or codes stored in the memory 1201, wherein the memory 1201 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.
[0151] The memory 1201 may be integrated with the processor 1202, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 1201 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 1201 and the processor 1202 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 1202 can read files stored in the memory.
[0152] In addition, the electronic device 1200 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 1200 may be connected to each other via a bus and / or a network.
[0153] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium may also be provided, and when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the above-mentioned content display method. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0154] According to the content display method, device, electronic device and storage medium disclosed in the present invention, a first electronic device, such as a mobile phone, can launch a target application on a second virtual screen to generate a first target interface. In addition, the first electronic device will perform appropriate preset processing on the first target interface, and superimpose the second target interface obtained after the preset processing on the first virtual screen and project it onto the second electronic device. For example, the second target interface is displayed on a vehicle-mounted terminal to ensure that the second electronic device can display a complete application interface, thereby avoiding the phenomenon of incomplete display of the application interface.
[0155] Furthermore, the present application needs to scale the application interface according to the smaller ratio of the horizontal pixel number ratio and the vertical pixel number ratio, so as to ensure that the scaled application interface can be fully displayed on the screen of the second electronic device, that is, it can ensure that the user can see the complete application interface on the second electronic device.
[0156] Furthermore, since the second virtual screen is not destroyed but exists in the background of the first electronic device, when the user starts the third-party application again on the vehicle, the current second virtual screen can be used directly without creating a new virtual screen, which saves creation time and resources.
[0157] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0158] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A content display method, It is characterized in that include: Projecting the first virtual screen created in the first electronic device to the screen of the second electronic device for display; Based on the start command for the target application received on the second electronic device, generating a first target interface of the target application through the second virtual screen; Performing preset processing on the first target interface to obtain a second target interface; The second target interface is superimposed on the first virtual screen and projected onto the screen of the second electronic device for display.
2. The content display method according to claim 1, It is characterized in that The first virtual screen is created based on a resolution of a screen of the second electronic device.
3. The content display method according to claim 1, It is characterized in that The second virtual screen is created based on a resolution of a screen of the first electronic device.
4. The content display method according to claim 1, It is characterized in that The performing preset processing on the first target interface to obtain the second target interface includes: Based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device, the first target interface is scaled to obtain the second target interface.
5. The content display method according to claim 4, It is characterized in that The resolution is determined based on the number of horizontal pixels and the number of vertical pixels, and the scaling process is performed on the first target interface based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device, including: Acquire a horizontal pixel ratio and a vertical pixel ratio between the second electronic device and the first electronic device; The first target interface is scaled based on the horizontal pixel ratio and the vertical pixel ratio.
6. The content display method according to claim 5, It is characterized in that The scaling process of the first target interface based on the horizontal pixel number ratio and the vertical pixel number ratio includes: The first target interface is scaled based on a smaller ratio between the horizontal pixel number ratio and the vertical pixel number ratio.
7. The content display method according to claim 1, It is characterized in that After superimposing the second target interface on the first virtual screen and projecting the screen onto the screen of the second electronic device for display, the method further includes: Based on a closing command for the target application received on the second electronic device, the first target interface is removed from the second virtual screen, and the second virtual screen is retained.
8. A content display device, It is characterized in that include: A first screen projection module is configured to project a first virtual screen created in the first electronic device onto a screen of a second electronic device for display; an interface generation module, configured to generate a first target interface of the target application through a second virtual screen based on a start command for the target application received on the second electronic device; A preset processing module, configured to perform preset processing on the first target interface to obtain a second target interface; The second screen projection module is configured to superimpose the second target interface on the first virtual screen and project the screen onto the screen of the second electronic device for display.
9. The content display device according to claim 8, It is characterized in that The first virtual screen is created based on a resolution of a screen of the second electronic device.
10. The content display device according to claim 8, It is characterized in that The second virtual screen is created based on a resolution of a screen of the first electronic device.
11. The content display device according to claim 8, It is characterized in that The preset processing module is configured as follows: Based on the resolution of the screen of the first electronic device and the resolution of the screen of the second electronic device, the first target interface is scaled to obtain the second target interface.
12. The content display device according to claim 11, It is characterized in that The resolution is determined based on the number of horizontal pixels and the number of vertical pixels, and the preset processing module is configured as follows: Acquire a horizontal pixel ratio and a vertical pixel ratio between the second electronic device and the first electronic device; The first target interface is scaled based on the horizontal pixel ratio and the vertical pixel ratio.
13. The content display device according to claim 12, It is characterized in that The preset processing module is configured as follows: The first target interface is scaled based on a smaller ratio between the horizontal pixel number ratio and the vertical pixel number ratio.
14. The content display device according to claim 8, It is characterized in that The content display device further includes: The virtual screen control module is configured to remove the first target interface from the second virtual screen and retain the second virtual screen based on a close command for the target application received on the second electronic device.
15. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the content display method according to any one of claims 1 to 7.
16. A computer-readable storage medium, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the content display method according to any one of claims 1 to 7.
Citation Information
Cited By
Display method and device, vehicle, storage medium and program product
CN121300895A
