Screen projection method and device
By receiving and processing the target screen information and determining the adaptive typesetting script for content adaptation, it solves the problem that the existing technology cannot adapt to the screen sizes and resolutions of different vehicles, achieves complete display on different vehicles, and improves user experience. experience.
Patent Information
- Application Number
- CN201910891274.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-09-20
AI Technical Summary
Existing screen projection technology cannot effectively adapt to the sizes and resolutions of various car and machine screens, resulting in the inability to fully display the page content on the cloud and mobile phones, affecting the user experience.
By receiving the screen information of the target screen, determine the adaptive typesetting script, perform content layout adaptation, and transmit the adapted content to the target screen for display. The target adaptation script in XML format is used, and the backup of the local database and cloud server is used. Adapt the typesetting script to ensure normal display on different vehicles and machines.
It achieves complete and clear display of content on different car and machine screens, improving user experience. The use of adaptation scripts ensures the optimization of display effects.
Smart Images

Figure CN112540736B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of screen projection technology, and in particular to a screen projection method for projecting content onto a target screen, a screen projection device for projecting content onto a target screen, and a computer-readable medium. Background Art
[0002] As a common means of transportation, cars have been widely used in people's daily lives, bringing great convenience to users' daily travel.
[0003] As urban roads become increasingly congested and complex, in-vehicle central control displays with multiple functions such as human-computer interaction, audio-visual entertainment, and route navigation can bring fun to the user's journey and guide the user to find the most suitable driving route in the complex road network, thereby improving the user's driving experience. Therefore, in-vehicle central control displays have been widely used in various models of major automobile brands and have become an indispensable part of modern automobiles.
[0004] With the rapid development of Internet of vehicles technology and Bluetooth communication technology, the vehicle's central console has gradually freed itself from the limitations of local information and started to obtain information from the cloud server of the Internet of vehicles or the user's mobile phone, and projected it onto the vehicle's central control display for display.
[0005] Generally, the vehicle's central control display screen can be located between the main driver's seat and the co-driver's seat for easy use by the users in the main driver's seat and the co-driver's seat. Various models of major car brands are usually equipped with in-vehicle central control displays with different resolutions. In particular, some models that feature ultra-large screens often have ultra-large resolutions and special aspect ratios that are significantly different from ordinary in-vehicle central control displays.
[0006] Existing screen projection technology requires designers to design and arrange different display contents according to the specific resolution of the in-vehicle central control display. Therefore, the existing screen projection technology has great limitations and often cannot fully display all page contents on the cloud and mobile phone, and cannot guarantee the display effect of the in-vehicle central control display, thus affecting the user experience.
[0007] Therefore, there is an urgent need in the art for a screen projection technology that can project display content to a target screen, which can be used to adapt to various different car screen sizes and screen resolutions, so that various projected content can be normally displayed on different car computers to improve the user experience. Summary of the invention
[0008] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or critical elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.
[0009] In order to adapt to various car screen sizes and screen resolutions, the present invention provides a screen projection method, a screen projection device, and a computer-readable medium for projecting display content to a target screen, so that various projection contents can be normally displayed on different car computers to enhance user experience.
[0010] According to one aspect of the present invention, a screen projection method is provided for projecting display content to a target screen.
[0011] In the above-mentioned screen projection method provided by the present invention, the steps may be included: in response to connecting to the target screen, receiving screen information of the target screen; determining a target adaptation script adapted to the layout of the target screen based on the screen information; using the target adaptation script to adapt the layout of the content; and transmitting the content adapted to the layout to the target screen for display.
[0012] Preferably, in the above-mentioned screen projection method provided by the present invention, the screen information may include resolution, and determining the target adaptation script may further include the steps of: searching from the local database whether there is an adaptation script of the alternative layout corresponding to the resolution of the target screen; if so, using the adaptation script of the alternative layout corresponding to the resolution as the target adaptation script.
[0013] Preferably, in the above-mentioned screen projection method provided by the present invention, the determining of the target adaptation script may also include the steps of: if the adaptation script of the alternative layout corresponding to the resolution is not found, sending an adaptation request including the resolution to the cloud server, and in response to receiving the adaptation script of the alternative layout corresponding to the resolution from the cloud server, using the adaptation script received from the cloud server as the target adaptation script.
[0014] Preferably, in the above-mentioned screen projection method provided by the present invention, the determining of the target adaptation script may also include the step of: in response to failing to receive the adaptation script of the alternative layout corresponding to the resolution from the cloud server, selecting an adaptation script of the alternative layout corresponding to the resolution whose aspect ratio is smaller than and closest to the aspect ratio of the resolution from the local as the target adaptation script.
[0015] Optionally, the above-mentioned screen projection method provided by the present invention may also include the step of regularly or irregularly receiving an adaptation script of a new backup layout from the cloud server to store it in a local database, wherein the adaptation script of the new backup layout is generated based on the resolution in the adaptation request received by the cloud server.
[0016] Optionally, in the above-mentioned screen projection method provided by the present invention, the using the target adaptation script to adapt the layout of the content may further include the steps of: using the target adaptation script to render the content to obtain rendered layout content,
[0017] The transmitting of the layout-adapted content to the target screen for display may further include the step of transmitting the rendered layout content to the target screen for display.
[0018] Optionally, in the above-mentioned screen projection method provided by the present invention, the target adaptation script can be in XML format.
[0019] Optionally, in the above-mentioned screen projection method provided by the present invention, the content may be page content within an application.
[0020] Optionally, in the above-mentioned screen projection method provided by the present invention, the target screen may include a vehicle screen installed on a vehicle, and transmitting the content adapted by the layout to the target screen for display may further include the step of transmitting the content adapted by the layout to the vehicle screen for display by wire or wirelessly.
[0021] According to another aspect of the present invention, a screen projection device is also provided for projecting display content to a target screen.
[0022] The above-mentioned screen projection device provided by the present invention may include: a memory and a processor, the processor may be coupled to the memory, and configured to: receive screen information of the target screen in response to being connected to the target screen; determine a target adaptation script adapted to the layout of the target screen based on the screen information; use the target adaptation script to adapt the layout of the content; and transmit the content adapted to the layout to the target screen for display.
[0023] Preferably, in the above-mentioned screen projection device provided by the present invention, the screen information may include resolution, and the processor may be further configured to: search from the local database whether there is an adaptation script of the alternative layout corresponding to the resolution of the target screen; if so, use the adaptation script of the alternative layout corresponding to the resolution as the target adaptation script.
[0024] Preferably, in the above-mentioned screen projection device provided by the present invention, the processor can be further configured to: if the adaptation script of the alternative layout corresponding to the resolution is not found, then send an adaptation request including the resolution to the cloud server, and in response to receiving the adaptation script of the alternative layout corresponding to the resolution from the cloud server, use the adaptation script received from the cloud server as the target adaptation script.
[0025] Preferably, in the above-mentioned screen projection device provided by the present invention, the processor can be further configured to: in response to failing to receive an adaptation script of the alternative layout corresponding to the resolution from the cloud server, select locally an adaptation script of the alternative layout corresponding to a resolution whose aspect ratio is smaller than and closest to the aspect ratio of the resolution as the target adaptation script.
[0026] Optionally, in the above-mentioned screen projection device provided by the present invention, the processor can also be configured to: regularly or irregularly receive an adaptation script of a new backup layout from the cloud server to store it in a local database, and the adaptation script of the new backup layout is generated based on the resolution in the adaptation request received by the cloud server.
[0027] Optionally, in the above-mentioned screen projection device provided by the present invention, the processor can be further configured to: use the target adaptation script to render the content to obtain rendered layout content; and transmit the rendered layout content to the target screen for display.
[0028] Optionally, in the above-mentioned screen projection device provided by the present invention, the target adaptation script can be in XML format.
[0029] Optionally, in the above-mentioned screen projection device provided by the present invention, the content may be page content within an application.
[0030] Optionally, in the above-mentioned screen projection device provided by the present invention, the target screen may include a vehicle screen installed in a vehicle, and the processor may be further configured to: transmit the layout-adapted content to the vehicle screen by wire or wirelessly for display.
[0031] According to another aspect of the present invention, a computer readable medium is also provided herein.
[0032] The computer-readable medium provided by the present invention may store computer-readable instructions. When the computer-readable instructions are executed by a processor, any of the above-mentioned screen projection methods may be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily drawn to scale, and components with similar related properties or features may have the same or similar reference numerals.
[0034] Figure 1 A schematic diagram of the composition of a vehicle network provided according to an embodiment of the present invention is shown.
[0035] Figure 2 A schematic flow chart of a screen projection method provided according to one aspect of the present invention is shown.
[0036] Figure 3 A schematic structural diagram of a screen projection device provided according to another aspect of the present invention is shown.
[0037] Reference numerals:
[0038] 101 Cloud Server;
[0039] 102 Car center console;
[0040] 1021 In-car central control display screen;
[0041] 103 user terminal;
[0042] 201-204 Steps of screen projection method;
[0043] 30 Screen projection device;
[0044] 31 Memory;
[0045] 32 processors. DETAILED DESCRIPTION
[0046] The following specific embodiments illustrate the implementation of the present invention, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation. On the contrary, the purpose of introducing the invention in conjunction with the implementation is to cover other options or modifications that may be extended based on the claims of the present invention. In order to provide a deep understanding of the present invention, the following description will include many specific details. The present invention can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present invention, some specific details will be omitted in the description.
[0047] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0048] In addition, the terms "upper", "lower", "left", "right", "top", "bottom", "horizontal" and "vertical" used in the following description should be understood as the directions shown in the paragraph and the related drawings. Such relative terms are only used for the convenience of description and do not mean that the device described therein must be manufactured or operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0049] It is understood that although the terms "first", "second", "third", etc. may be used herein to describe various components, regions, layers and / or parts, these components, regions, layers and / or parts should not be limited by these terms, and these terms are only used to distinguish different components, regions, layers and / or parts. Therefore, the first component, region, layer and / or part discussed below may be referred to as a second component, region, layer and / or part without departing from some embodiments of the present invention.
[0050] As mentioned above, the existing screen projection technology requires designers to design and arrange different display contents according to the specific resolution of the vehicle's central control display. Therefore, the existing screen projection technology has great limitations and often cannot fully display all page contents on the cloud and mobile phone, and cannot guarantee the display effect of the vehicle's central control display, thus affecting the user experience.
[0051] In order to adapt to various different car screen sizes and screen resolutions, the present invention provides an embodiment of a screen projection method, an embodiment of a screen projection device, and an embodiment of a computer-readable medium, which are used to project display content to a target screen, so that various projection contents can be normally displayed on different car computers to enhance the user experience.
[0052] In one embodiment, the screen projection method can be performed in combination with Internet of vehicles technology and Bluetooth communication technology.
[0053] Please refer to Figure 1 , Figure 1 A schematic diagram of the composition of a vehicle network provided according to an embodiment of the present invention is shown.
[0054] like Figure 1As shown, the Internet of Vehicles may include a cloud server 101 , a vehicle-mounted central console 102 and a user terminal 103 .
[0055] The cloud server 101 includes but is not limited to a telematics service provider (TSP) cloud platform. The cloud server 101 can communicate remotely with the vehicle console 102 and the user terminal 103 in the Internet of Vehicles through a mobile network.
[0056] The vehicle-mounted central console 102 can be a vehicle-side device in the vehicle network. The vehicle-mounted central console 102 can communicate remotely with the cloud server 101 in the vehicle network through the mobile network, and can also communicate near-field with the user terminal 103 in the vehicle network through the Bluetooth protocol, so as to obtain the content that needs to be projected, and transmit the content that needs to be projected to the vehicle-mounted central control display screen 1021 provided on the vehicle-mounted central console 102 for display.
[0057] The user terminal 103 includes but is not limited to smart electronic terminals such as user mobile phones and tablet computers. The user terminal 103 can communicate remotely with the cloud server 101 in the Internet of Vehicles through a mobile network, or can communicate near-field with the vehicle console 102 in the Internet of Vehicles through the Bluetooth protocol.
[0058] Those skilled in the art can understand that the above-mentioned Internet of Vehicles structure is only a specific example provided in this embodiment, which is mainly used to clearly demonstrate the concept of the present invention and provide a specific application scenario that is convenient for the public to implement, rather than to limit the scope of protection of the present invention. In other embodiments, those skilled in the art can also use the screen projection method provided by the present invention in other application scenarios based on the concept of the present invention, so as to normally display various projection contents on various other target screens.
[0059] Please refer to further Figure 2 , Figure 2 A schematic flow chart of a screen projection method provided according to one aspect of the present invention is shown.
[0060] like Figure 2 As shown, in the above screen projection method provided in this embodiment, the steps may include:
[0061] 101 : In response to connecting to a target screen, receiving screen information of the target screen.
[0062] In the above embodiment, the target screen may be a vehicle screen installed in the vehicle (for example, the vehicle-mounted central control display screen 1021 of the vehicle-mounted central console 102). The above screen projection method may be executed in the user terminal 103 connected to the vehicle-mounted central control display screen 1021, so that the content to be displayed in the user terminal 103 is completely and clearly projected to the vehicle-mounted central control display screen 1021 for display. The above screen information may include the resolution of the vehicle-mounted central control display screen 1021. The above content to be displayed may specifically be the page content of the application of the user terminal 103.
[0063] Those skilled in the art can understand that the above-mentioned screen projection method executed in the user terminal 103 connected to the vehicle-mounted central control display screen 1021 is only a specific case provided in this embodiment, which is mainly used to clearly demonstrate the concept of the present invention and provide a specific solution that is convenient for the public to implement, rather than to limit the scope of protection of the present invention. In another embodiment, the above-mentioned screen projection method can also be executed in the cloud server 101 connected to the vehicle-mounted central control display screen 1021, so that the content to be displayed in the cloud server 101 is completely and clearly projected to the vehicle-mounted central control display screen 1021 for display.
[0064] like Figure 2 As shown, in the above screen projection method provided in this embodiment, the steps may also be included:
[0065] 102: Determine a target adaptation script for typesetting adapted to the target screen based on the screen information.
[0066] In one embodiment, the user terminal 103 can search the local database for an adaptation script of a backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021. The adaptation script can be XML format data written in advance and stored in the local database of the user terminal 103. The user terminal 103 can render the layout of the content to be projected in real time according to the specific adaptation script based on the layout principle of the Android system.
[0067] If the local database of the user terminal 103 stores an adaptation script of a backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021, the user terminal 103 can use the adaptation script of the backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 as the target adaptation script for screen projection display, so as to clearly and completely display the page content of the application of the user terminal 103 on the vehicle-mounted central control display screen 1021. The above target adaptation script can be in XML format.
[0068] In a preferred embodiment, if an adaptation script for an alternative layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 is not found from the local database of the user terminal 103, the user terminal 103 may also send an adaptation request indicating the resolution information to the cloud server 101, thereby performing further search in the database of the cloud server 101 (not shown).
[0069] If the database (not shown) of the cloud server 101 stores an adaptation script for an alternative layout corresponding to the resolution of the vehicle-mounted central control display screen 1021, the cloud server 101 can send the adaptation script for the alternative layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 to the user terminal 103.
[0070] In response to receiving an adaptation script with an alternative layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 from the cloud server 101, the user terminal 103 can use the received adaptation script as the target adaptation script for screen projection display, thereby clearly and completely displaying the page content of the application of the user terminal 103 on the vehicle-mounted central control display screen 1021.
[0071] In a more preferred embodiment, if the adaptation script for the backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 is not found from the database (not shown) of the cloud server 101, the cloud server 101 can send corresponding feedback information to the user terminal 103.
[0072] In response to receiving the feedback information, the user terminal 103 may determine that the adaptation script of the backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 has not been received from the cloud server 101. At this time, the user terminal 103 may select an adaptation script of the backup layout corresponding to a resolution with an aspect ratio smaller than and closest to the resolution aspect ratio of the vehicle-mounted central control display screen 1021 from its local database as the target adaptation script, so as to display the page content of the application of the user terminal 103 on the vehicle-mounted central control display screen 1021 as clearly and completely as possible.
[0073] For example: the user terminal 103 may determine that it has not received the adaptation script of the backup layout corresponding to the resolution (1500*900) of the vehicle-mounted central control display screen 1021 from the cloud server 101 in response to receiving the feedback information sent by the cloud server 101. At this time, the user terminal 103 may select from its local database the adaptation script of the backup layout corresponding to the resolution (1200*900) whose aspect ratio is smaller than and closest to the resolution aspect ratio (5:3) of the vehicle-mounted central control display screen 1021 as the target adaptation script, so as to display the content of the page width of the application on the user terminal 103 as clearly and completely as possible on the vehicle-mounted central control display screen 1021, while omitting a small amount of the content at the two edge positions on the page length of the application.
[0074] Those skilled in the art will understand that the above-mentioned scheme of selecting the adaptation script of the backup layout corresponding to the resolution with an aspect ratio smaller than and closest to the resolution aspect ratio of the vehicle-mounted central control display screen 1021 from the local database of the user terminal 103 as the target adaptation script is only a specific case provided in this embodiment, which is mainly used to clearly demonstrate the concept of the present invention and provide an alternative solution when the optimal adaptation script cannot be found, rather than to limit the scope of protection of the present invention. In other embodiments, those skilled in the art may also, based on the concept of the present invention and according to the actual page content of the application, select the adaptation script of the backup layout corresponding to the resolution that does not affect the display effect of the page content as the target adaptation script as much as possible.
[0075] In one embodiment, the cloud server 101 can search for an adaptation script of a backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 in a cloud database (not shown) according to the received adaptation request. If the adaptation script of the backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 is not found from the database (not shown) of the cloud server 101, the cloud server 101 can further generate an adaptation script of the corresponding backup layout based on the resolution information indicated by the received adaptation request while sending feedback information to the user terminal 103.
[0076] Specifically, in response to the resolution information indicated by the received adaptation request, the cloud server 101 can notify the designer to adjust the page content in the application that needs to be projected according to the current screen resolution to achieve the best display effect. After that, the developer is notified to write a typesetting script based on the above adjustment and upload it to the cloud database (not shown).
[0077] Accordingly, the user terminal 103 may receive the adaptation script of the new backup layout from the cloud server 101 regularly or irregularly according to the user settings to store it in the local database.
[0078] That is to say, in the above embodiment, if an adaptation script for an alternative layout corresponding to the resolution of the vehicle-mounted central control display screen 1021 is not found from the database of the cloud server 101 (not shown), the user terminal 103 can select an adaptation script for an alternative layout corresponding to a resolution whose aspect ratio is smaller than and closest to the aspect ratio of the resolution of the vehicle-mounted central control display screen 1021 from its local database as a target adaptation script, thereby displaying the page content of the application of the user terminal 103 in real time on the vehicle-mounted central control display screen 1021.
[0079] At the same time, the cloud server 101 may further generate an adaptation script of a corresponding backup layout based on the resolution information indicated by the received adaptation request, so that the user terminal 103 may receive it regularly or irregularly.
[0080] In response to receiving an adaptation script with a backup layout corresponding to the resolution of the vehicle-mounted central control display screen 1021, the user terminal 103 can use the newly received adaptation script as the target adaptation script for screen projection display, thereby clearly and completely displaying the page content of the application of the user terminal 103 on the vehicle-mounted central control display screen 1021.
[0081] like Figure 2 As shown, in the above screen projection method provided in this embodiment, the steps may also be included:
[0082] 103: Use the target adaptation script to adapt the content to the layout.
[0083] In one embodiment, the user terminal 103 can use the target adaptation script to render the content to be projected and displayed, thereby obtaining the rendered layout content. The rendered layout content can correspond to the resolution of the vehicle-mounted central control display screen 1021, so that it can be clearly and completely displayed on the vehicle-mounted central control display screen 1021.
[0084] Specifically, the application of the user terminal 103 can generate a page layout in real time according to the target adaptation script determined in step 102, and render the generated page layout and the content to be projected. Afterwards, the user terminal 103 can project the rendered layout content to the vehicle-mounted central control display screen 1021 in real time for display, thereby achieving a clear and complete display effect in the shortest time.
[0085] Those skilled in the art can understand that the above-mentioned layout adaptation scheme on the user terminal 103 is only a specific case provided in this embodiment, which is mainly used to clearly demonstrate the concept of the present invention and provide a specific scheme that is convenient for the public to implement, rather than to limit the scope of protection of the present invention. In other embodiments, those skilled in the art can also configure the above-mentioned layout adaptation steps to be performed on the cloud server 101 or the vehicle terminal 102 according to actual use requirements, thereby achieving the same technical effect.
[0086] like Figure 2 As shown, in the above screen projection method provided in this embodiment, the steps may also be included:
[0087] 104: Transmit the layout-adapted content to the target screen for display.
[0088] As described above, after the above-mentioned layout adaptation steps, the user terminal 103 can directly transmit the layout content that has been adapted after layout rendering to the vehicle-mounted central control display screen 1021 of the vehicle-mounted central control station 102 for display via a data cable, Bluetooth or other wired or wireless methods.
[0089] In another embodiment, the user terminal 103 may first upload the layout content that has been adapted through layout rendering to the cloud server 101 of the Internet of Vehicles via a mobile network, and then the cloud server 101 transmits it to the vehicle-mounted central control display screen 1021 of the vehicle-mounted central console 102 for display.
[0090] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.
[0091] According to another aspect of the present invention, this document also provides an embodiment of a screen projection device for projecting display content to a target screen.
[0092] Please refer to Figure 3 , Figure 3 A schematic structural diagram of a screen projection device provided according to another aspect of the present invention is shown.
[0093] like Figure 3 As shown, the screen projection device 30 provided in this embodiment may include a memory 31 and a processor 32.
[0094] The processor 32 can be coupled to the memory 31 and configured to implement the screen projection method provided by any of the above embodiments, so as to normally display various screen projection contents on different vehicle computers to enhance the user experience.
[0095] Those skilled in the art can understand that the solution of the above-mentioned screen projection method implemented by the processor 32 in software is only a specific case provided in this embodiment, which is mainly used to clearly demonstrate the concept of the present invention and provide a specific solution that is convenient for the public to implement, rather than to limit the scope of protection of the present invention. In other embodiments, those skilled in the art can also use the processor 32 to implement the above-mentioned screen projection method in hardware or a combination of software and hardware according to actual use requirements.
[0096] For hardware implementation, the processor 32 can implement the above-mentioned screen projection method through a selection combination of one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processing modules, control modules, microcontrol modules, microprocessing modules, and other electronic devices for performing the above-mentioned functions.
[0097] For software implementation, the processor 32 may be implemented by independent software modules such as procedures and functions running on a general purpose chip, wherein each module performs one or more functions and operations described herein.
[0098] According to another aspect of the present invention, an embodiment of a computer-readable medium is also provided herein for projecting display content to a target screen.
[0099] The computer-readable medium provided in this embodiment may store computer-readable instructions. When the computer-readable instructions are executed by the processor 32, the screen projection method provided in any of the above embodiments may be implemented, so that various screen projection contents can be normally displayed on different vehicle computers to improve the user experience.
[0100] Those skilled in the art will appreciate that information, signals, and data may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips cited throughout the above description may be represented by voltage, current, electromagnetic waves, magnetic fields or magnetic particles, optical fields or optical particles, or any combination thereof.
[0101] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. The technician may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.
[0102] The various illustrative logic modules and circuits described in conjunction with the embodiments disclosed herein may be implemented or executed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.
[0103] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.
[0104] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, wherein disk often reproduces data magnetically, while disc reproduces data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0105] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A screen projection method for projecting content to a target screen. It is characterized in that The screen projection method is applied to a user terminal, and the screen projection method includes: In response to connecting to the target screen, receiving screen information of the target screen; Determine a target adaptation script for typesetting adapted to the target screen based on the screen information; Using the target adaptation script to adapt the content to the layout; as well as Transmitting the layout-adapted content to the target screen for display; The screen information includes resolution, and determining the target adaptation script includes: Searching a local database for an adaptation script of a backup layout corresponding to the resolution of the target screen; If yes, then use the adaptation script of the backup typesetting corresponding to the resolution as the target adaptation script; If no adaptation script of the alternate typesetting corresponding to the resolution is found, an adaptation request including the resolution is sent to the cloud server, and in response to receiving the adaptation script of the alternate typesetting corresponding to the resolution from the cloud server, the adaptation script received from the cloud server is used as the target adaptation script; In response to failure to receive an adaptation script of a backup layout corresponding to the resolution from the cloud server, selecting an adaptation script of a backup layout corresponding to a resolution having an aspect ratio smaller than and closest to the aspect ratio of the resolution as the target adaptation script from the local computer; An adaptation script of a new backup layout is received regularly or irregularly from the cloud server and stored in a local database, wherein the adaptation script of the new backup layout is generated based on the resolution in the adaptation request received by the cloud server; in response to receiving an adaptation script of the backup layout corresponding to the resolution of the target screen, the newly received adaptation script is used as the target adaptation script for screen projection display.
2. The screen projection method according to claim 1, It is characterized in that The using the target adaptation script to adapt the content to the layout comprises: Rendering the content using the target adaptation script to obtain rendered layout content, The transmitting of the layout-adapted content to the target screen for display comprises: The rendered layout content is transmitted to the target screen for display.
3. The screen projection method according to claim 1, It is characterized in that The target adaptation script is in XML format.
4. The screen projection method according to claim 1, It is characterized in that The content described is the page content within the application.
5. The screen projection method according to claim 1, It is characterized in that The target screen includes a vehicle screen installed in the vehicle, and transmitting the layout-adapted content to the target screen for display includes: The layout-adapted content is transmitted to the vehicle screen by wire or wirelessly for display.
6. A screen projection device for projecting content onto a target screen. It is characterized in that The screen projection device is located in the user terminal, and the screen projection device includes: Memory; as well as A processor, coupled to the memory, configured to: In response to connecting to the target screen, receiving screen information of the target screen; Determine a target adaptation script for typesetting adapted to the target screen based on the screen information; Using the target adaptation script to adapt the content to the layout; as well as Transmitting the layout-adapted content to the target screen for display; The screen information includes resolution, and the processor is further configured to: Searching a local database for an adaptation script of a backup layout corresponding to the resolution of the target screen; If yes, then use the adaptation script of the backup typesetting corresponding to the resolution as the target adaptation script; The processor is further configured to: If no adaptation script of the alternate typesetting corresponding to the resolution is found, an adaptation request including the resolution is sent to the cloud server, and in response to receiving the adaptation script of the alternate typesetting corresponding to the resolution from the cloud server, the adaptation script received from the cloud server is used as the target adaptation script; The processor is further configured to: In response to failure to receive an adaptation script of a backup layout corresponding to the resolution from the cloud server, selecting an adaptation script of a backup layout corresponding to a resolution having an aspect ratio smaller than and closest to the aspect ratio of the resolution as the target adaptation script from the local computer; The processor is further configured to: An adaptation script of a new backup layout is received regularly or irregularly from the cloud server and stored in a local database, wherein the adaptation script of the new backup layout is generated based on the resolution in the adaptation request received by the cloud server; in response to receiving an adaptation script of the backup layout corresponding to the resolution of the target screen, the newly received adaptation script is used as the target adaptation script for screen projection display.
7. The screen projection device according to claim 6, It is characterized in that The processor is further configured to: Rendering the content using the target adaptation script to obtain rendered layout content, The transmitting of the layout-adapted content to the target screen for display comprises: The rendered layout content is transmitted to the target screen for display.
8. The screen projection device according to claim 6, It is characterized in that The target adaptation script is in XML format.
9. The screen projection device according to claim 6, It is characterized in that The content described is the page content within the application.
10. The screen projection device according to claim 6, It is characterized in that The target screen includes a vehicle screen installed in the vehicle, and the processor is further configured to: The layout-adapted content is transmitted to the vehicle screen by wire or wirelessly for display.
11. A computer-readable medium having computer-readable instructions stored thereon, It is characterized in that The computer readable instructions, when executed by a processor, implement the method of any one of claims 1-5.
