WO2024067052A1 - Screen mirroring display method, electronic device, and system - Google Patents

Screen mirroring display method, electronic device, and system Download PDF

Info

Publication number
WO2024067052A1
WO2024067052A1 PCT/CN2023/118085 CN2023118085W WO2024067052A1 WO 2024067052 A1 WO2024067052 A1 WO 2024067052A1 CN 2023118085 W CN2023118085 W CN 2023118085W WO 2024067052 A1 WO2024067052 A1 WO 2024067052A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
vehicle
information
electronic device
mounted terminal
Prior art date
Application number
PCT/CN2023/118085
Other languages
French (fr)
Chinese (zh)
Inventor
饶刚
庄効谚
邢海峰
李自由
卢恒惠
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024067052A1 publication Critical patent/WO2024067052A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • the embodiments of the present application relate to the field of terminal technology, and in particular to a screen projection display method, electronic device and system.
  • in-vehicle terminals support screen projection technology.
  • Electronic devices such as mobile phones, tablets, etc.
  • a user enters a car while listening to music through a mobile phone music application.
  • the mobile phone establishes a connection with the vehicle terminal, and the user can continue to listen to the unfinished music previously played through the mobile phone through the vehicle terminal.
  • the application in the electronic device must first support screen projection to the vehicle terminal for display before screen projection can be realized.
  • the developer of the same application also needs to develop multiple types of applications that are suitable for different models of vehicle terminals, and the application development is difficult.
  • the number of screen projection applications is limited, and the vehicle terminal application ecosystem is not perfect, which cannot meet the user's demand for the use of vehicle terminals.
  • the embodiments of the present application provide a screen projection display method, electronic device and system.
  • the technical solution provided by the embodiments of the present application is that the electronic device adaptively adjusts the application screen projection content according to the vehicle terminal information, so that the application has better universality, while ensuring the screen projection effect, reducing the difficulty of application development.
  • a screen projection display method includes: an electronic device obtains first information sent by a vehicle-mounted terminal, and the first information includes vehicle-mounted terminal information.
  • the electronic device receives a screen projection request.
  • the electronic device determines the first interface information of the first application indicated by the screen projection request.
  • the electronic device determines the screen projection data based on the vehicle-mounted terminal information and the first interface information.
  • the screen projection data is sent to the vehicle-mounted terminal, and the screen projection data is used to enable the vehicle-mounted terminal to display the screen projection interface.
  • the first application is installed in the electronic device, and the first application is installed or not installed in the vehicle terminal.
  • the electronic device can display the first interface of the first application and determine the first interface information of the first interface.
  • the electronic device does not display the first application, and the electronic device determines the first interface information and the projection data in the background of the first application.
  • the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
  • the in-vehicle terminal information includes application layout information.
  • the application layout information includes desktop layout information of the vehicle-mounted terminal.
  • application layout information is used to represent the display of the vehicle terminal display screen.
  • the vehicle terminal displays a desktop
  • the display content on the desktop includes the function icons of the vehicle terminal (such as seat adjustment map icons, air conditioning control icons, etc.), and may also include icons of vehicle terminal applications.
  • the application layout information may include desktop layout information, such as information on multiple icons displayed, icon location information, etc.
  • the vehicle terminal displays an application interface
  • the application layout information includes the layout information of the displayed application interface.
  • the application layout information is used by subsequent electronic devices to re-layout the interface display content of the application to be projected and the display content of the vehicle terminal.
  • the electronic device can adaptively adjust the screen projection content of the application according to the content that the vehicle terminal needs to display fixedly (such as the content corresponding to the application layout information). This ensures that during the screen projection process, the vehicle terminal can still display the fixed content to meet the user's usage needs.
  • the vehicle-mounted terminal information also includes display screen size information
  • the method also includes: in response to a screen projection request, determining whether the display status of the electronic device and the vehicle-mounted terminal is the same or different based on the display screen size information, and the display status is used to indicate horizontal screen display or vertical screen display.
  • the display screen size information is used to indicate the size of the display area corresponding to the display screen of the vehicle terminal, such as length, width and other information, where the display area is used for display on the vehicle terminal.
  • the electronic device first determines the display status of the electronic device and the vehicle terminal to determine the method of obtaining the projection data. For example, if the electronic device display screen and the vehicle terminal display screen are both horizontal or vertical, the electronic device can directly scale the application display interface to meet the display requirements of the vehicle terminal display screen. If the electronic device display screen is vertical and the vehicle terminal display screen is horizontal, or the electronic device display screen is horizontal and the vehicle terminal display screen is vertical. Then, the electronic device needs to rearrange the display content on the application interface to achieve a better display effect on the vehicle terminal display screen.
  • determining whether the display states of the electronic device and the vehicle-mounted terminal are the same or different based on the display screen size information includes: determining a first aspect ratio of the display screen of the electronic device, and determining a second aspect ratio of the display screen of the vehicle-mounted terminal based on the display screen size information.
  • the absolute value of the difference between the first aspect ratio and the second aspect ratio is less than or equal to a first threshold
  • the display states of the electronic device and the vehicle-mounted terminal are the same.
  • the absolute value of the difference between the first aspect ratio and the second aspect ratio is greater than the first threshold, the display states of the electronic device and the vehicle-mounted terminal are different.
  • the display screen of the vehicle terminal can be rotated to switch between horizontal and vertical display. Then, in the process of determining the projection data, the electronic device needs to determine whether the current display state of the vehicle terminal is horizontal or vertical display. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle terminal.
  • the horizontal dimension and the vertical dimension indicated in the display screen size information sent by the vehicle terminal correspond to the horizontal dimension and the vertical dimension of the vehicle terminal in the current display state.
  • the vehicle terminal switches the original horizontal dimension and the original vertical dimension, determines the new horizontal dimension (ie, the original vertical dimension) and the vertical dimension (ie, the original horizontal dimension) to generate new display screen size information and send it to the electronic device.
  • the electronic device can also switch the display state by rotating the display screen. Then, when the electronic device starts the application to determine the projection data, it needs to determine whether the current display state of the electronic device is horizontal or vertical display. Similarly, the electronic device determines the horizontal and vertical dimensions of the display area during the current display process to determine the aspect ratio. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal. Alternatively, the electronic device determines whether the display state of the corresponding electronic device is horizontal or vertical display based on the application background data. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal.
  • the display states of the electronic device and the vehicle-mounted terminal are different, and in response to a screen projection request, determining the first interface information of the first application indicated by the screen projection request includes: determining the first interface of the first application to be projected in response to the screen projection request. Dividing the functional area of the first interface and determining the first interface information.
  • the electronic device when determining the projection data, determines that the display states of the electronic device and the vehicle-mounted terminal are different, and the application interface display content needs to be re-layouted. Therefore, the electronic device can also perform structural division on the layout of the projection interface.
  • the electronic device divides the functional areas on the screen to be projected, and divides each functional area into a waterfall structure.
  • the functional area identification process includes, for example, identifying a tabulator (TAB) page, a search bar, a banner page, a grid bar, a title bar, a player, etc. included in the screen to be projected.
  • TAB tabulator
  • the projection data is determined according to the vehicle terminal information and the first interface information, including: according to the first interface information, the display screen size information, and the application layout information, the first display content corresponding to the functional area after the division and the second display content corresponding to the application layout information are re-layouted to generate the second interface information.
  • the projection data is generated according to the second interface information.
  • the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
  • the first display content corresponding to the functional area and the second display content corresponding to the application layout information are re-layouted according to the first interface information, the display screen size information, and the application layout information to generate the second interface information, including: according to the functional area, the display screen size information, and the application layout information, the display area corresponding to the display screen of the vehicle terminal is divided into a first display area and a second display area, the first display area is used to display the first display content, and the second display area is used to display the second display content.
  • the first display area is re-layouted
  • the second display content is re-layouted.
  • the second interface information is determined.
  • the electronic device can divide the adaptation interface placement area (i.e., the first display area) on the screen to be projected and the in-vehicle application function placement area (i.e., the first display area) based on the in-vehicle terminal information (e.g., display screen size information, application layout information) and the application interface information of the electronic device.
  • the adapter interface placement area is used to display the application interface of the projection screen (i.e. the first display content), and the in-vehicle application function placement area is used to display the content that the in-vehicle terminal needs to display first, such as desktop icons (i.e. the second display content).
  • the screen to be projected may only include the adaptation interface placement area, and the vehicle-mounted terminal may subsequently display the projected application interface in full screen.
  • a division template of the screen to be projected interface of the vehicle terminal is pre-configured, and the second display content to be displayed on the vehicle terminal and the first display content of the screen to be projected are mixed and arranged and optimized to determine the adaptation interface placement area and the vehicle application function placement area.
  • the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
  • the display status of the electronic device and the vehicle-mounted terminal is the same, and the projection data is determined according to the vehicle-mounted terminal information and the first interface information, including: determining the first display area for projecting and displaying the first application according to the display screen size information and the application layout information, the first display area being the display area other than the second display content corresponding to the application layout information.
  • the first display area the first interface of the first application corresponding to the first interface information is enlarged or reduced to generate the third interface information.
  • the projection data is determined according to the third interface information and the application layout information.
  • the electronic device first determines the display status of the electronic device and the vehicle-mounted terminal.
  • the projection data can be directly determined by scaling the application interface to be projected, thereby effectively improving the projection efficiency under the same display status.
  • the vehicle-mounted terminal information also includes application information of the vehicle-mounted terminal
  • the second display content includes function icons corresponding to the application layout information and/or commonly used application icons of the vehicle-mounted terminal
  • the function icons are function icons displayed by the vehicle-mounted terminal before screen projection and/or function icons used to control electronic devices
  • the commonly used application icons are icons of commonly used applications of the vehicle-mounted terminal determined by the electronic device based on the application information.
  • application information is used to represent information about applications installed in the vehicle-mounted terminal, such as application usage information, and the electronic device can subsequently determine the commonly used applications of the vehicle-mounted terminal based on the application usage information.
  • the screen projection data determined by the electronic device may include icons of commonly used applications of the vehicle terminal.
  • the vehicle terminal can display icons of commonly used applications during the subsequent screen projection process, which is convenient for users to use.
  • the electronic device may also determine the electronic device function icon to be displayed on the vehicle terminal during the process of generating the projection data. Afterwards, the projection data sent by the electronic device to the vehicle terminal includes the electronic device function icon. Subsequently, the vehicle terminal includes the electronic device function icon in the projection interface displayed according to the projection data.
  • the user can control the electronic device through the electronic device function icon on the vehicle terminal, thereby improving the user experience.
  • the vehicle terminal information also includes a display screen control method and hardware information of the vehicle terminal, the display screen control method is used to indicate whether the vehicle terminal is a touch screen or a non-touch screen, and before sending the projection data to the vehicle terminal, the method also includes: determining the operation response mode corresponding to the first control in the projection data. A binding relationship is generated based on the first control, the operation response mode, the hardware information, and the display screen control method, and the binding relationship is used to indicate the first response of the vehicle terminal after detecting the user's operation on the first control displayed in the projection interface.
  • the control method of the display screen is used to indicate whether the display screen is a touch screen or non-touch screen, key or knob controlled information, etc.
  • Hardware information includes, for example, information of hardware devices such as microphones, speakers, loudspeakers, cameras, etc. installed in the vehicle terminal.
  • the method further includes: sending the binding relationship to the vehicle-mounted terminal.
  • the display content of the projected application interface is bound to the corresponding operation response, while ensuring the display effect, the interactive function of the application interface is retained to ensure the user experience.
  • the screen projection request is a screen projection request determined after the electronic device receives the user's screen projection operation, or the screen projection request is a screen projection request sent by the vehicle-mounted terminal.
  • the electronic device when the electronic device is displaying the first interface of the first application, if it detects that the user clicks the screen projection control, it can be determined that the user instructs to project the currently displayed first interface to the vehicle terminal for display. Before the application is projected, the vehicle terminal displays the desktop or other applications, which are vehicle terminal applications or projection applications.
  • the vehicle terminal can obtain information about applications installed in the electronic device, and display corresponding application icons based on the information.
  • the vehicle terminal detects the user's operation on an application icon, it can send a screen projection request to the electronic device to request the electronic device to project the first application corresponding to the application icon, thereby determining that the screen needs to be projected to the vehicle terminal for display.
  • the first application is shown.
  • the first application is, for example, a video application, a music application, a navigation application, or the like.
  • an embodiment of the present application provides a screen projection display method, which is applied to a vehicle-mounted terminal.
  • the method includes: sending first information to an electronic device, the first information including vehicle-mounted terminal information.
  • Receive projection data sent by the electronic device, the projection data is the electronic device responding to the received projection request, and the first interface information of the first application indicated by the projection request and the vehicle-mounted terminal information are determined.
  • display the projection interface According to the projection data, display the projection interface.
  • the in-vehicle terminal information includes application layout information.
  • the application layout information includes desktop layout information of the vehicle-mounted terminal.
  • the vehicle terminal information also includes display screen size information, and the display screen size information is used for the electronic device to determine the display status of the vehicle terminal, and the display status is used to indicate horizontal screen display or vertical screen display.
  • the method also includes: receiving a binding relationship sent by an electronic device, the binding relationship is used to indicate a first response of the vehicle-mounted terminal after detecting a user operation on a first control displayed on the projection interface;
  • the vehicle-mounted terminal information also includes a display screen control method and hardware information of the vehicle-mounted terminal, and the display screen control method and hardware information are used to enable the electronic device to generate a binding relationship.
  • the method before receiving the projection data sent by the electronic device, the method also includes: sending a projection request to the electronic device in response to the user's projection operation.
  • an embodiment of the present application provides an electronic device.
  • the electronic device includes: a processor and a memory, the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes: obtain the first information sent by the vehicle-mounted terminal, the first information includes the vehicle-mounted terminal information.
  • Receive a screen projection request In response to the screen projection request, determine the first interface information of the first application that the screen projection request indicates is projected. Determine the screen projection data based on the vehicle-mounted terminal information and the first interface information. Send the screen projection data to the vehicle-mounted terminal, and the screen projection data is used to enable the vehicle-mounted terminal to display the screen projection interface.
  • the in-vehicle terminal information includes application layout information.
  • the application layout information includes desktop layout information of the vehicle-mounted terminal.
  • the vehicle-mounted terminal information also includes display screen size information.
  • the processor reads computer-readable instructions from the memory, it also enables the electronic device to perform the following operations: in response to the screen projection request, determine whether the display status of the electronic device and the vehicle-mounted terminal is the same or different based on the display screen size information, and the display status is used to indicate horizontal screen display or vertical screen display.
  • determining whether the display states of the electronic device and the vehicle-mounted terminal are the same or different based on the display screen size information includes: determining a first aspect ratio of the display screen of the electronic device, and determining a second aspect ratio of the display screen of the vehicle-mounted terminal based on the display screen size information.
  • the absolute value of the difference between the first aspect ratio and the second aspect ratio is less than or equal to a first threshold
  • the display states of the electronic device and the vehicle-mounted terminal are the same.
  • the absolute value of the difference between the first aspect ratio and the second aspect ratio is greater than the first threshold, the display states of the electronic device and the vehicle-mounted terminal are different.
  • the display states of the electronic device and the vehicle-mounted terminal are different, and in response to a screen projection request, determining the first interface information of the first application indicated by the screen projection request includes: determining the first interface of the first application to be projected in response to the screen projection request. Dividing the functional area of the first interface and determining the first interface information.
  • the projection data is determined according to the vehicle terminal information and the first interface information, including: according to the first interface information, the display screen size information, and the application layout information, the first display content corresponding to the functional area after the division and the second display content corresponding to the application layout information are re-layouted to generate the second interface information.
  • the projection data is generated according to the second interface information.
  • the first display content corresponding to the functional area and the second display content corresponding to the application layout information are re-layouted.
  • the second interface information is generated by: dividing the display area corresponding to the display screen of the vehicle terminal into a first display area and a second display area according to the functional area, the display screen size information, and the application layout information, wherein the first display area is used to display the first display content and the second display area is used to display the second display content.
  • the first display content is re-layouted according to the first display area
  • the second display content is re-layouted according to the second display area.
  • the second interface information is determined according to the re-layouted first display content and the second display content.
  • the display status of the electronic device and the vehicle-mounted terminal is the same, and the projection data is determined according to the vehicle-mounted terminal information and the first interface information, including: determining the first display area for projecting and displaying the first application according to the display screen size information and the application layout information, the first display area being the display area other than the second display content corresponding to the application layout information. According to the first display area, the first interface of the first application corresponding to the first interface information is enlarged or reduced to generate the third interface information. The projection data is determined according to the third interface information and the application layout information.
  • the vehicle-mounted terminal information also includes application information of the vehicle-mounted terminal
  • the second display content includes function icons corresponding to the application layout information and/or commonly used application icons of the vehicle-mounted terminal
  • the function icons are function icons displayed by the vehicle-mounted terminal before screen projection and/or function icons used to control electronic devices
  • the commonly used application icons are icons of commonly used applications of the vehicle-mounted terminal determined by the electronic device based on the application information.
  • the vehicle terminal information also includes a display screen control method and hardware information of the vehicle terminal.
  • the display screen control method is used to indicate whether the vehicle terminal is a touch screen or a non-touch screen.
  • the processor reads computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: determine the operation response mode corresponding to the first control in the projection data.
  • a binding relationship is generated based on the first control, the operation response mode, the hardware information, and the display screen control method. The binding relationship is used to indicate the first response of the vehicle terminal after detecting the user's operation on the first control displayed in the projection interface.
  • the electronic device when the processor reads the computer-readable instructions from the memory, the electronic device is also caused to perform the following operation: sending the binding relationship to the vehicle-mounted terminal.
  • the screen projection request is a screen projection request determined after the electronic device receives the user's screen projection operation, or the screen projection request is a screen projection request sent by the vehicle-mounted terminal.
  • an embodiment of the present application provides a vehicle-mounted terminal.
  • the vehicle-mounted terminal includes: a processor, a memory, and a display screen, the memory and the display screen are coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the vehicle-mounted terminal executes: sending first information to the electronic device, the first information includes vehicle-mounted terminal information.
  • Receive the projection data sent by the electronic device the projection data is the electronic device responding to the received projection request, according to the first interface information of the first application indicated by the projection request and the vehicle-mounted terminal information. According to the projection data, display the projection interface.
  • the in-vehicle terminal information includes application layout information.
  • the application layout information includes desktop layout information of the vehicle-mounted terminal.
  • the vehicle-mounted terminal information also includes display screen size information, and the display screen size information is used to enable the electronic device to determine the display status of the vehicle-mounted terminal, and the display status is used to indicate horizontal screen display or vertical screen display.
  • the vehicle-mounted terminal when the processor reads computer-readable instructions from the memory, the vehicle-mounted terminal also performs the following operations: receiving a binding relationship sent by an electronic device, the binding relationship is used to indicate the first response of the vehicle-mounted terminal after detecting the user's operation on the first control displayed on the projection interface; the vehicle-mounted terminal information also includes the display screen control method and hardware information of the vehicle-mounted terminal, and the display screen control method and hardware information are used to enable the electronic device to generate a binding relationship.
  • the processor when the processor reads computer-readable instructions from the memory, it also enables the vehicle-mounted terminal to perform the following operations: in response to the user's screen projection operation, send a screen projection request to the electronic device.
  • an embodiment of the present application provides a screen projection display system, which includes an electronic device and a vehicle-mounted terminal.
  • the vehicle-mounted terminal is used to send a first information to the electronic device, and the first information includes vehicle-mounted terminal information.
  • the electronic device is used to receive a screen projection request.
  • the electronic device is also used to determine, in response to the screen projection request, the first interface information of the first application that the screen projection request indicates to be projected.
  • the electronic device is also used to determine the projection data based on the first interface information and the vehicle-mounted terminal information in the received first information.
  • the electronic device is also used to send the projection data to the vehicle-mounted terminal.
  • the vehicle-mounted terminal is also used to display the projection interface based on the received projection data.
  • the in-vehicle terminal information includes application layout information.
  • the application layout information includes desktop layout information of the vehicle-mounted terminal.
  • the vehicle terminal information also includes display screen size information.
  • the electronic device is also used to respond to the screen projection request and determine, based on the display screen size information, whether the display states of the electronic device and the vehicle terminal are the same or different, and the display state is used to indicate horizontal screen display or vertical screen display.
  • the electronic device when the display states of the electronic device and the vehicle-mounted terminal are different, the electronic device is further used to determine the first interface of the first application to be projected in response to the screen projection request. The electronic device is also used to divide the functional area of the first interface and determine the first interface information.
  • the electronic device is further used to re-layout the first display content corresponding to the divided functional area and the second display content corresponding to the application layout information according to the first interface information, the display screen size information, and the application layout information, and generate the second interface information.
  • the electronic device is also used to generate the projection data according to the second interface information.
  • the electronic device when the display status of the electronic device and the vehicle-mounted terminal are the same, the electronic device is also used to determine the first display area for projecting and displaying the first application based on the display screen size information and the application layout information, and the first display area is the display area other than the second display content corresponding to the application layout information.
  • the electronic device is also used to enlarge or reduce the first interface of the first application corresponding to the first interface information based on the first display area to generate third interface information.
  • the electronic device is also used to determine the projection data based on the third interface information and the application layout information.
  • an embodiment of the present application provides an electronic device having the function of implementing the screen projection display method described in the first aspect and any possible implementation thereof.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • an embodiment of the present application provides a vehicle-mounted terminal, which has the function of implementing the screen projection display method described in the second aspect and any possible implementation thereof.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • a computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.
  • a computer program also referred to as an instruction or code
  • a computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by a vehicle-mounted terminal, the vehicle-mounted terminal executes the method of the second aspect or any one of the implementations of the second aspect.
  • a computer program also referred to as an instruction or code
  • an embodiment of the present application provides a computer program product.
  • the computer program product When the computer program product is run on an electronic device, Enable the electronic device to execute the method of the first aspect or any one of the embodiments of the first aspect.
  • an embodiment of the present application provides a computer program product.
  • the computer program product When the computer program product is run on a vehicle-mounted terminal, the vehicle-mounted terminal executes the method of the second aspect or any one of the implementations of the second aspect.
  • an embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method of the first aspect or any one of the embodiments of the first aspect; or, the processing circuit is configured to execute the method of the second aspect or any one of the embodiments of the second aspect.
  • an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect; or, the at least one processor executes the method of the second aspect or any one of the embodiments of the second aspect.
  • FIG1 is a schematic diagram of a communication system to which a screen projection display method is applied according to an embodiment of the present application
  • FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG3A is a schematic diagram of an in-car scene provided in an embodiment of the present application.
  • FIG3B is a schematic diagram of a display screen of a vehicle terminal provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a flow chart of a screen projection display method provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a screen projection scenario provided in an embodiment of the present application.
  • FIG6 is a second schematic diagram of a screen projection scenario provided in an embodiment of the present application.
  • FIG. 7 is a second schematic flow chart of the screen projection display method provided in an embodiment of the present application.
  • FIG8 is a third schematic diagram of a screen projection scenario provided in an embodiment of the present application.
  • FIG9 is a fourth schematic diagram of a screen projection scenario provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the structure of the vehicle-mounted terminal provided in an embodiment of the present application.
  • references to "one embodiment” or “some embodiments” etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean “one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
  • the terms “including”, “comprising”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized in other ways.
  • connection includes direct connection and indirect connection, unless otherwise specified. "First” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
  • words such as “exemplarily” or “for example” are used to indicate examples, illustrations or descriptions. Any embodiment or design described as “exemplary” or “for example” in the embodiments should not be interpreted as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as “exemplary” or “for example” is intended to present the relevant concepts in a specific way.
  • electronic devices such as mobile phones, tablets, etc.
  • the mobile phone when a user is playing music on a mobile phone, he or she enters the car. In response to the user's operation, the mobile phone establishes a screen projection connection with the in-vehicle terminal, and the in-vehicle terminal can continue to play the music that the mobile phone has not finished playing.
  • the vehicle-mounted terminal receives the projection data sent by the mobile phone and displays the projected video based on the projection data, so that users can get a better video playback experience on the vehicle-mounted terminal.
  • a screen projection connection is established between the electronic device and the vehicle-mounted terminal.
  • the vehicle-mounted terminal can receive the screen projection data sent by the electronic device through the screen projection connection, and the screen projection data is the data of the application in the electronic device.
  • the vehicle-mounted terminal displays the corresponding application interface based on the screen projection data.
  • the screen projection process includes, for example, push screen projection and mirror screen projection.
  • the display content of the vehicle-mounted terminal and the electronic device may not be synchronized.
  • the mirror screen projection process the display content of the vehicle-mounted terminal and the electronic device is synchronized.
  • the application list information of the electronic device can be obtained. Then, the vehicle terminal can display the corresponding application icon according to the application list information. In response to the user's operation on the application icon, the vehicle terminal can request the electronic device to obtain the application data corresponding to the application icon. Then, the vehicle terminal displays the corresponding application interface according to the obtained application data.
  • the developer can create a display template based on a preset display template (such as Functions, etc.), develop application types adapted to different vehicle terminals according to the needs of different vehicle terminals, such as display screen size, system requirements, etc. In this way, subsequent users can project application content to the vehicle terminal display through electronic devices.
  • a preset display template such as Functions, etc.
  • in-vehicle terminals there are many types of in-vehicle terminals at present. During the development process of the same application, it is necessary to develop multiple types of applications to adapt to different types of in-vehicle terminals, which makes application development difficult. As a result, the number of screen-casting applications is limited, and the in-vehicle terminal application ecosystem is not perfect, which cannot meet the user's demand for in-vehicle terminals.
  • the embodiment of the present application provides a screen projection display method, during the screen projection process, the electronic device can adaptively adjust the application screen projection content according to the display information of the vehicle terminal, such as the size of the vehicle terminal display screen, the desktop display content, etc., to achieve screen projection.
  • the electronic device application has better universality, while ensuring the screen projection effect, reducing the difficulty of application development.
  • Fig. 1 is a schematic diagram of a communication system for the screen projection display method provided in an embodiment of the present application. As shown in Fig. 1, the communication system includes an electronic device 100 and a vehicle terminal 200.
  • the electronic device 100 may be, for example, a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, an artificial intelligence (AI) device, or other terminal device with a screen projection function.
  • the operating system installed in the electronic device 100 includes but is not limited to: Or other operating systems. This application does not limit the specific type of the electronic device 100 or the installed operating system.
  • the vehicle-mounted terminal 200 may be a vehicle, automobile, vehicle computer, or other terminal.
  • the operating system installed in the vehicle-mounted terminal 200 includes but is not limited to Or other operating systems.
  • the vehicle terminal 200 may not be installed with an operating system. This application does not limit the specific type of the vehicle terminal 200, whether an operating system is installed, and the installed operating system.
  • a communication connection is established between the electronic device 100 and the vehicle terminal 200, and the communication connection can be a wired connection or a wireless communication connection.
  • the electronic device and the vehicle terminal 200 can establish a wired connection through a universal serial bus (USB) interface.
  • the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: Bluetooth (BT) (for example, traditional Bluetooth or low energy (BLE) Bluetooth), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), ultra-wideband (UWB), etc.
  • screen projection data can be transmitted through the communication connection to achieve screen projection.
  • FIG. 2 is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM)
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple groups of I2C buses.
  • the processor 110 may be coupled to the touch sensor, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor through the I2C interface, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the electronic device 100.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it can also charge the battery 142 through the power management module 130.
  • Block 141 provides power to the electronic device.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device, or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display.
  • the display 194 may be a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-LED, a Micro-oled, a quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the internal memory 121 can be used to store computer executable program codes, which include instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
  • the electronic device 100 can use the audio module 170, such as music playing, recording, etc.
  • the audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
  • the sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • a touch sensor is also called a "touch control device”.
  • the touch sensor can be arranged on the display screen 194.
  • the touch sensor and the display screen 194 form a touch screen, also called a "touch control screen”.
  • the touch sensor is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the key 190 includes a power key, a volume key, etc.
  • the key 190 may be a mechanical key or a touch key.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • Motor 191 can generate vibration prompts.
  • Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or disconnected from the electronic device 100 by inserting or removing the SIM card interface 195.
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the electronic device 100 can communicate with the vehicle terminal 200 through the wireless communication module 160 or the USB interface 130. Establish a communication connection. After that, the electronic device 100 can obtain the display screen size information of the vehicle terminal 200. The processor 110 of the electronic device 100 can adaptively adjust the display of the screen interface to be projected according to the display screen size information of the vehicle terminal 200, determine the projection data, and send the projection data to the vehicle terminal 200 through the wireless communication module 160. After receiving the projection data, the vehicle terminal 200 can also display the corresponding application interface on the display screen according to the projection data.
  • the electronic device 100 and the vehicle terminal 200 in the embodiment of the present application can be implemented by different devices, and the different devices can have the same, similar or somewhat different hardware structures.
  • the vehicle terminal can also have the hardware structure shown in FIG.
  • vehicle terminal 200 may include more or fewer components than the hardware structure shown in Figure 2, or combine some components, or split some components, or arrange the components differently.
  • the hardware structure of the vehicle terminal may not include the mobile communication module 150, etc.
  • the vehicle terminal 200 may be configured with one or more display screens. As shown in FIG3A , the vehicle terminal 200 includes a central control screen 21, a display screen 22 in front of the driver, a display screen 23 in front of the co-pilot seat, or may also include a display screen in front of the rear passenger seat, etc.
  • the different display screens of the vehicle-mounted terminal 200 may be touch screens or non-touch screens.
  • the touch screen may receive a user's touch operation on the display screen.
  • the touch screen and non-touch screen may also receive a user's operation on a button in the vehicle-mounted terminal.
  • the steering wheel 23 of the vehicle terminal 200 is provided with a square control key 231, and the user can control the display of the display screen of the vehicle terminal 200 through the square control key 231.
  • the display screen can display the corresponding interface.
  • the display screen 24 is a non-touch screen.
  • the user can control the display on the display screen 24 through the knob 241 and the button 242 .
  • the electronic device 100 can obtain information such as the size of the display screen of the vehicle terminal 200 to be projected, whether it is a touch screen, button or knob control, etc.
  • the following takes the electronic device 100 as an electronic device and the vehicle-mounted terminal 200 as a vehicle-mounted terminal as an example to introduce the screen projection display method provided in the embodiment of the present application in detail.
  • Fig. 4 is a flow chart of a screen projection display method provided in an embodiment of the present application. As shown in Fig. 4, the method includes the following steps.
  • S401 The electronic device and the vehicle-mounted terminal establish a communication connection.
  • the communication connection may be a wired connection or a wireless connection, and the communication connection may be used for screen projection.
  • the electronic device and the vehicle-mounted terminal are configured with a screen projection function, and the screen projection function is turned on to allow screen projection.
  • electronic devices and vehicle-mounted terminals establish screen projection connections through Bluetooth, vehicle-mounted Wi-Fi networks, USB connections, etc.
  • the vehicle-mounted terminal sends vehicle-mounted terminal information to the electronic device.
  • the vehicle-mounted terminal information includes, for example, one or more of the display screen size information, display screen control method, application layout information, application information, and hardware information of the vehicle-mounted terminal.
  • the display screen size information is used to indicate the size of the display area corresponding to the display screen of the vehicle terminal, such as length, width and other information, wherein the display area is used for the display of the vehicle terminal.
  • the control method of the display screen is used to indicate whether the display screen is a touch screen or a non-touch screen, a button or a knob control information, etc.
  • the application layout information is used to indicate the display of the vehicle terminal display screen.
  • the vehicle terminal displays the desktop, and the display content on the desktop includes the function icons of the vehicle terminal (such as seat adjustment map icons, air conditioning control icons, etc.), and may also include icons of vehicle terminal applications.
  • the application layout information may include desktop layout information, such as information including multiple icons displayed, icon location information, etc.
  • the vehicle terminal displays the application interface
  • the application layout information includes the layout information of the displayed application interface.
  • the application layout information is used for subsequent electronic devices to re-layout the interface display content of the application to be projected and the display content of the vehicle terminal.
  • the application information is used to indicate the information of the applications installed in the vehicle terminal, such as application usage information, etc., and the subsequent electronic devices can determine the commonly used applications of the vehicle terminal based on the application usage information.
  • Hardware information for example, includes information on hardware devices such as microphones (mic), speakers, loudspeakers, cameras, etc. installed in the vehicle terminal.
  • the electronic device 100 and the vehicle terminal 200 establish a communication connection.
  • some icons are displayed on the desktop of the vehicle terminal display screen, and the application layout information includes the display information of these icons.
  • the icons may include icons that are fixedly displayed on the desktop, such as navigation icons, seat adjustment icons, air conditioning control icons and other functional icons.
  • the icons may also include icons of commonly used applications of the vehicle terminal.
  • the icons that are fixedly displayed on the desktop are used to indicate that these icons need to be displayed on the desktop to facilitate users to use the car.
  • the icon can be moved according to the user's operation or according to the projection data.
  • the vehicle terminal information may correspond to the display screen to be projected, or to all the display screens of the vehicle terminal. Subsequently, before projecting the screen, the electronic device may first determine the vehicle terminal information corresponding to the display screen to be projected, so as to generate corresponding projection data and realize the projection.
  • the determined vehicle-mounted terminal information may be sent to the electronic device.
  • the electronic device receives the vehicle-mounted terminal information sent by the vehicle-mounted terminal.
  • step S402 is an optional step. After the electronic device establishes a communication connection with the vehicle terminal for the first time and obtains the vehicle terminal information, the vehicle terminal information can be saved. After that, after the electronic device establishes a communication connection with the vehicle terminal and determines that screen projection is required, the corresponding screen projection data can be directly determined based on the saved vehicle terminal information without having to obtain the vehicle terminal information again.
  • the vehicle terminal information may change. After the vehicle terminal establishes a communication connection with the electronic device, the vehicle terminal may send the updated vehicle terminal information to the electronic device.
  • the vehicle terminal information includes the application layout information of the vehicle terminal.
  • the application layout information changes, such as adding an icon of a newly downloaded application. Then, the vehicle terminal may update the vehicle terminal information and send the updated vehicle terminal information to the electronic device.
  • S403 The electronic device receives a screen projection request.
  • the screen projection request may be a screen projection request determined by the electronic device after receiving the screen projection operation of the user.
  • the screen projection request may also be a screen projection request sent by the vehicle-mounted terminal and received by the electronic device.
  • the electronic device detects a screen projection operation, or receives a screen projection request sent by the vehicle terminal, and determines that the application needs to be projected to the vehicle terminal for display.
  • the electronic device has the application to be projected installed, and the vehicle terminal may or may not have the application to be projected installed.
  • the application to be projected is the first application installed in the electronic device, and the interface of the first application to be projected is the first interface of the first application.
  • the electronic device when it is displaying the application interface of the first application, if it detects that the user clicks the screen projection control, it can determine that the user instructs to project the currently displayed application interface to the vehicle terminal for display. Before the application is projected, the vehicle terminal displays the desktop or other applications, which are vehicle terminal applications or projection applications.
  • the vehicle terminal can obtain information about applications installed in the electronic device, and display the corresponding application icon based on the information.
  • the vehicle terminal can send a screen projection request to the electronic device to request the electronic device to project the first application corresponding to the application icon, and then determine that the first application needs to be projected and displayed on the vehicle terminal.
  • the first application is, for example, a video application, a music application, a navigation application, or the like.
  • step S403 is an optional step. After the electronic device and the vehicle terminal establish a communication connection, the electronic device is directly triggered to project the screen to the vehicle terminal, that is, the following step S404 is triggered. If the electronic device determines that a communication connection is established with the vehicle terminal, the running application can be directly projected to the vehicle terminal for display.
  • the present application does not limit the execution order of step S402 and step S403.
  • the electronic device may request the vehicle terminal to obtain the vehicle terminal information, that is, first execute step S403 and then execute step S402.
  • S404 The electronic device determines the projection data according to the vehicle terminal information and the application interface information.
  • the electronic device can determine the corresponding projection data based on the vehicle-mounted terminal information and the application interface information of the application to be projected.
  • the size, aspect ratio, and resolution of the electronic device and the vehicle terminal display screen are not uniform, so during the screen projection process, the electronic device needs to re-determine the projection data that matches the vehicle terminal display screen.
  • the electronic device can adjust the display size of the application interface to be projected based on the display size information of the vehicle terminal included in the vehicle terminal information to determine the corresponding projection data.
  • the display screen of the vehicle terminal can be horizontal or vertical.
  • the long side of the display screen of the vehicle terminal 200 is the bottom side, and the short side is the side side, and the display screen of the vehicle terminal 200 is displayed in horizontal mode.
  • the long side of the display screen of the vehicle terminal 200 is the side side, and the short side is the bottom side, and the display screen of the vehicle terminal 200 is displayed in vertical mode.
  • the display screen of the electronic device can also be divided into horizontal and vertical screens. If the display screen of the electronic device and the display screen of the vehicle terminal are both horizontal or both vertical, then the electronic device can directly scale the application display interface to meet the display requirements of the display screen of the vehicle terminal.
  • the display screen of the electronic device is vertical and the display screen of the vehicle terminal is horizontal, or the display screen of the electronic device is horizontal and the display screen of the vehicle terminal is vertical. Then, the electronic device The display content on the application interface needs to be rearranged to achieve better display effects on the vehicle terminal display screen.
  • the electronic device when determining the projection data, the electronic device needs to determine whether it is necessary to rearrange the application interface display content.
  • step S404 may include steps S701 to S705 .
  • step S701 The electronic device determines that the display states of the electronic device and the vehicle-mounted terminal are different. If yes, execute step S702; if not, execute step S705.
  • the electronic device can determine whether the electronic device and the vehicle-mounted terminal are in the same display state by the aspect ratio of the display screen (i.e., the ratio of the bottom edge to the side edge length), and the display state includes horizontal screen display and vertical screen display.
  • the aspect ratio of the display screen i.e., the ratio of the bottom edge to the side edge length
  • the electronic device determines the aspect ratio of the electronic device display screen, and determines the aspect ratio of the vehicle terminal display screen based on the acquired vehicle terminal information. Afterwards, the electronic device determines the absolute value of the difference between the two aspect ratios. If the absolute value of the difference is less than or equal to a preset threshold, then the electronic device can determine that the electronic device and the vehicle terminal are in the same display state, such as both are displayed in horizontal screens, or both are displayed in vertical screens. If the absolute value of the difference is greater than the preset threshold, then the electronic device can determine that the electronic device and the vehicle terminal are not in the same display state.
  • the display screen of the vehicle terminal can be rotated to switch between horizontal and vertical display. Then, in the process of determining the projection data, the electronic device needs to determine whether the current display state of the vehicle terminal is horizontal or vertical display. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle terminal.
  • the horizontal dimension and the vertical dimension indicated in the display screen size information sent by the vehicle terminal correspond to the horizontal dimension and the vertical dimension of the vehicle terminal in the current display state.
  • the vehicle terminal switches the original horizontal dimension and the original vertical dimension, determines the new horizontal dimension (ie, the original vertical dimension) and the vertical dimension (ie, the original horizontal dimension) to generate new display screen size information and send it to the electronic device.
  • the electronic device can also switch the display state by rotating the display screen. Then, when the electronic device starts the application to determine the projection data, it needs to determine whether the current display state of the electronic device is horizontal or vertical display. Similarly, the electronic device determines the horizontal and vertical dimensions of the display area during the current display process to determine the aspect ratio. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal. Alternatively, the electronic device determines whether the display state of the corresponding electronic device is horizontal or vertical display based on the application background data. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal.
  • the display screen size information in the vehicle-mounted terminal information includes information for indicating the display state of the vehicle-mounted terminal. Then, after acquiring the vehicle-mounted terminal information, the electronic device can directly determine the display state of the vehicle-mounted terminal. Afterwards, the electronic device can determine the display state of the electronic device according to the display screen size of the electronic device. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the display state of the vehicle-mounted terminal.
  • the electronic device determines that the display states of the electronic device and the vehicle terminal are different, and can re-layout the application interface display content according to the vehicle terminal information, and generate corresponding projection data, that is, execute the following steps S702-S704.
  • the electronic device determines that the display states of the electronic device and the vehicle terminal are the same, and can scale the application interface display content according to the vehicle terminal information, and generate corresponding projection data, that is, execute the following step S705.
  • S702 The electronic device obtains application interface information.
  • the electronic device can obtain interface information of the application's screen projection interface, such as layout data and control data, through control tree recognition or AI recognition.
  • the control data includes the position, size, color and other data of the control.
  • the electronic device draws the control according to the control data to display the control visible to the user.
  • the layout data is used to represent the layout format and layout strategy.
  • the layout data includes the control data of multiple controls and the layout information of the control data.
  • the electronic device can obtain a description file (such as an XML file, etc.) of the current screen to be projected, or a screenshot of the screen. Afterwards, the electronic device can identify controls such as text, images, and icons on the screen to be projected based on the description file or the screenshot, through control tree recognition or AI recognition, etc., and the control can be used as a human-computer interaction interface to receive user operations on the application.
  • a description file such as an XML file, etc.
  • controls such as text, images, and icons on the screen to be projected based on the description file or the screenshot, through control tree recognition or AI recognition, etc.
  • the electronic device can also structurally divide the layout of the screen to be projected. For example, the electronic device divides the functional areas on the screen to be projected, and divides each functional area into a waterfall structure.
  • the identification process of the functional area includes, for example, identifying the tabulator (TAB) page, search bar, banner page, grid bar, title bar, player, etc. included in the screen to be projected.
  • TAB tabulator
  • the electronic device 100 (such as a mobile phone) is in a vertical display mode, and the vehicle-mounted terminal 200 is in a horizontal display mode.
  • the electronic device 100 determines the application interface information of the application to be projected.
  • the functional area includes a top tab page 52, a search bar 53, a banner page 54, a grid bar 55, a grid bar 56, and a bottom function tab page 57.
  • Different functional areas may include one or more controls.
  • the interface shown in Figure 5 is used to illustrate the application interface information of the application to be projected.
  • the electronic device does not need to display the application interface, and the electronic device can determine the projection data in the application background.
  • the electronic device can display or not display the application.
  • the advertising information can be displayed floating on the application interface or embedded in the application interface.
  • the display position of the advertising information may cause abnormal recognition of control data and layout data, resulting in abnormal final projection display.
  • the electronic device removes non-essential information from the control tree and resource files during the process of obtaining the application interface information. If the application interface information finally obtained by the electronic device does not include non-essential information, then the corresponding subsequent application interface displayed on the vehicle terminal will not include non-essential information.
  • the electronic device rearranges the application interface according to the vehicle terminal information and the application interface information.
  • the electronic device after the electronic device obtains the application interface information, it can rearrange the application interface according to the vehicle terminal information.
  • the electronic device can divide the adaptation interface placement area and the vehicle-mounted application function placement area on the screen to be projected according to the vehicle-mounted terminal information (such as display screen size information) and the application interface information of the electronic device.
  • the adaptation interface placement area is used to display the application interface of the projection screen
  • the vehicle-mounted application function placement area is used to display the icons that the vehicle-mounted terminal needs to display on the desktop first.
  • the screen to be projected may also only include the adaptation interface placement area, and the subsequent vehicle-mounted terminal can display the projected application interface in full screen.
  • the vehicle-mounted application function placement area can be displayed in a floating manner on the adaptation interface placement area, such as the icon of the vehicle-mounted terminal can be displayed in a floating manner on the projection application interface.
  • the electronic device matches the display area required to be occupied by the application interface corresponding to the display application interface information on the vehicle terminal display screen according to the application interface information, divides the display area into the video interface placement area, and then divides the remaining display area into the vehicle-mounted application function placement area.
  • the electronic device 100 determines that the icons that need to be displayed on the desktop of the vehicle terminal include the fixed icons in the dotted box shown by the reference numeral 51, based on the application layout information in the vehicle terminal information of the vehicle terminal 200.
  • the electronic device can determine whether it is necessary to adjust the display area of these fixed icons based on the acquired application interface information and display screen size information. If no adjustment is required, as shown in Figure 5, the electronic device determines that the interface to be projected includes an adaptation interface placement area 58 and a vehicle application function placement area 51. If adjustment is required, the electronic device can adjust the display position of the fixed icons of the vehicle terminal to achieve a better application projection effect.
  • the electronic device determines the commonly used applications of the vehicle terminal based on the application information in the vehicle terminal information, and can display the icons of the commonly used applications on the desktop first.
  • the vehicle terminal can determine the fixed icons to be displayed based on the application layout information in the vehicle terminal information.
  • the electronic device can divide the display area according to the commonly used application icons, fixed icons, display screen size information, and application interface information, determine the adaptation interface placement area and the vehicle application function placement area, and re-layout the application interface.
  • a partition template of the screen to be projected of the vehicle terminal is pre-configured, and the fixed icons to be displayed on the vehicle terminal and the content of the screen to be projected are mixed and arranged to optimize, so as to determine the placement area of the adaptation interface and the placement area of the vehicle application function.
  • different numbers of fixed icons can correspond to different templates, so that the fixed icons can be displayed in the edge display area of the vehicle terminal, such as distributed display on both sides of the display screen, or distributed display on one side of the display, to ensure the application projection effect.
  • the vehicle terminal may display the desktop or application. Then, if the vehicle terminal displays the application, the application layout information in the vehicle terminal information includes the display information of the application. Then, when the electronic device is re-layouting the application interface according to the vehicle terminal information and the application interface information, the divided adaptation interface placement area is used to display the projection application interface, and the vehicle application function placement area is used to display the display content of the application displayed by the vehicle terminal before this projection. That is, the electronic device re-layouts the display content of the two applications, the projection application and the original display application of the vehicle terminal, to achieve the subsequent determination of the projection data.
  • different functional areas of the application interface are configured with different adaptation templates.
  • the electronic device rearranges the controls and layout according to the determined adaptation interface placement area, the information of the functional area in the application interface information, and the adaptation template.
  • the re-layout interface information includes new control data and layout data.
  • the new interface data and layout data can be saved and transmitted in a corresponding file format, such as a re-layout interface partition file and an adaptive adaptation layout description file.
  • the re-layout interface partition file includes, for example, adjusted functional area information, such as location coordinate information, etc.
  • the adaptive adaptation layout description file includes resource information of the functional area, such as control data and other information used for subsequent interface rendering.
  • the display state of the electronic device 100 is a vertical screen display
  • the display state of the vehicle-mounted terminal 200 is a horizontal screen display.
  • the top label tab bar 52 of the electronic device 100 it is necessary to rearrange the text of the label tab bar 52 according to the horizontal screen design concept of the display screen of the vehicle-mounted terminal 200, and wrap the line after the determined control data and layout data meet the width constraint.
  • the banner page 54 of the electronic device 100 it is adapted to a wider horizontal screen display, and the determined control data and layout data can display the banner page hidden on the electronic device 100 side.
  • the electronic device when the electronic device is playing a video in a video application, in response to the user's instruction to cast the screen, it determines that a screen casting request has been received. In addition, the electronic device determines that the display state of the electronic device is portrait display, and the display state of the vehicle terminal is landscape display. Then, in the process of re-layouting the application interface, the electronic device may determine that some playback control controls in the video application are not displayed due to the size of the electronic device's display screen, and the application interface information after re-layout may include information about these playback control controls. The vehicle terminal may then display these playback control controls. That is, the content of the screen casting application displayed by the vehicle terminal may be different from the content of the screen casting application displayed by the electronic device.
  • the electronic device generates screen projection data according to the rearranged application interface information.
  • the electronic device after the electronic device re-layouts the application interface and determines the application interface information after the re-layout, it can draw and render the corresponding control data and layout data according to the re-layout interface partition file and the adaptive adaptation layout description file to generate projection data, which is used for the subsequent vehicle-mounted terminal to display the projection interface.
  • the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
  • the electronic device matches the application interface to the display area size and generates corresponding screen projection data.
  • the electronic device determines that the display status of the electronic device and the vehicle-mounted terminal is the same. Then, the electronic device can directly divide the adaptation interface placement area and the vehicle-mounted application function placement area according to the display screen size information, application layout information and other information of the vehicle-mounted terminal in the vehicle-mounted terminal information. Afterwards, the electronic device scales the size of the interface to be projected according to the size information of the adaptation interface placement area so that the application interface matches the size of the adaptation interface placement area (ie, the display area). The electronic device draws and renders the corresponding interface based on the scaled projection interface information to generate projection data.
  • the electronic device can realize screen projection by determining that only the screen to be projected needs to be scaled. Then, the electronic device can divide the area of the original vehicle terminal used to display fixed icons into the vehicle application function placement area, and the area outside the area used to display fixed icons is the adaptation interface placement area.
  • the electronic device 100 determines that the display states of the electronic device 100 and the vehicle-mounted terminal 200 are both displayed in portrait mode. Based on the acquired vehicle-mounted terminal information, the electronic device 100 can determine that the display area of the display screen of the vehicle-mounted terminal 200 includes an adaptation interface placement area 62 and a vehicle-mounted application function placement area 61. Afterwards, the electronic device 100 can adaptively scale the application interface to be projected based on the size information of the adaptation interface placement area 62.
  • the electronic device can adjust the display position of the area used by the original vehicle terminal to display fixed icons, and divide the adjusted display position into the vehicle application function placement area.
  • the area outside the area used to display fixed icons is the adaptation interface placement area.
  • the electronic device since the electronic device does not recognize the controls in the interface to be projected and does not perform layout division, the electronic device will not perform mixed arrangement optimization on the fixed icons and the controls in the interface to be projected.
  • the vehicle application function placement area can be divided above or below, to the left or to the right of the adaptation interface placement area to meet display requirements.
  • the electronic device first determines the display status of the electronic device and the vehicle-mounted terminal.
  • the projection data can be directly determined by scaling the application interface to be projected, thereby effectively improving the projection efficiency under the same display status.
  • Step S702 That is, after determining that screen projection is required, the electronic device directly generates corresponding screen projection data according to the method for determining screen projection data when the display states of the electronic device and the vehicle-mounted terminal are different (such as steps S701 to S704).
  • the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
  • the electronic device can determine the projection data, and then through the following steps, the electronic device can instruct the vehicle terminal to display the projection interface according to the projection data.
  • the electronic device sends the screen projection data to the vehicle-mounted terminal.
  • the electronic device may send the projection data to the vehicle-mounted terminal.
  • the vehicle-mounted terminal receives the projection data sent by the electronic device.
  • the vehicle-mounted terminal displays the screen projection interface according to the screen projection data.
  • the vehicle-mounted terminal after receiving the projection data, can display the corresponding application projection interface according to the projection data.
  • the vehicle terminal 200 may display the interface shown in FIG8 after receiving the projection data.
  • the display content of the projection application interface displayed by the vehicle terminal 200 is different from the display content of the electronic device 100.
  • the display content indicated by reference numeral 81 is more compatible with the large-screen display of the vehicle terminal 200 display screen, and the display content is richer, which effectively improves the projection display effect.
  • the vehicle terminal 200 displays the fixed icon of the vehicle terminal at the lower edge display position of the display screen.
  • the electronic device 100 adaptively adjusts the position of the vehicle application function placement area for displaying fixed icons, such as displaying the fixed icons at the left edge display position and the lower edge display position of the display screen, respectively, to ensure the application screen projection effect in the adaptation interface placement area.
  • the vehicle-mounted terminal 200 may display the interface shown in Figure 9 after receiving the projection data.
  • the electronic device 100 has determined the adaptation interface placement area 62 and the vehicle-mounted application function placement area 61, and generated corresponding projection data.
  • the vehicle-mounted terminal 200 displays the application projection interface in the corresponding adaptation interface placement area.
  • the vehicle-mounted terminal 200 still displays the fixed icon at the display position on the left edge of the display screen, and displays the enlarged application interface at the display position on the right side of the display screen.
  • the electronic device can adaptively adjust the display of the application interface to be projected according to the vehicle terminal information to match the vehicle terminal display screen and improve the application projection display effect.
  • the electronic device can adaptively adjust the interface information of the screen projection application according to the content (such as icons, etc.) that the vehicle terminal needs to display fixedly, thereby ensuring that during the screen projection process, the vehicle terminal can still display the fixed content to meet the user's functional usage needs.
  • the content such as icons, etc.
  • the projection data may also include audio data and other data, so that the vehicle-mounted terminal can play corresponding audio while displaying the application projection interface.
  • the audio played by the music application in the electronic device is the local audio data of the electronic device.
  • the electronic device may also include audio data in the screen projection data sent to the vehicle terminal to ensure that the vehicle terminal can play the corresponding audio when displaying the screen projection interface of the music application.
  • the vehicle terminal may receive user operations on the projection application during the process of displaying the application projection interface. Therefore, the electronic device can bind the operation response mode of the control corresponding to the operation event on the electronic device interface with the operation event on the vehicle terminal to generate a binding relationship. In this way, the vehicle terminal can support interactive operations on the content displayed on the display screen, and after receiving the user's operation on the content displayed on the display screen, the corresponding operation response can be triggered.
  • the vehicle terminal encapsulates information such as the position information of the control operated by the user into an operation event and sends it to the electronic device to determine the operation to be performed. And/or, the vehicle terminal directly determines the operation response of the control to be performed based on the binding relationship.
  • the vehicle terminal may generate a corresponding operation event, which may include information such as the position information of the control operated by the user.
  • the vehicle terminal may send the operation event to the electronic device.
  • the electronic device determines the operation response mode of the control corresponding to the operation event based on the received operation event and the pre-generated binding relationship, so as to execute or instruct the vehicle terminal to execute the corresponding operation.
  • the electronic device sends the binding relationship to the vehicle-mounted terminal.
  • the vehicle-mounted terminal can determine the control operated by the user according to the binding relationship.
  • the display screen of the vehicle terminal is a touch screen.
  • the electronic device can bind the controls on the application interface with the corresponding functions to generate a binding relationship.
  • the display screen of the vehicle terminal is a non-touch screen, or the display screen of the vehicle terminal can be controlled by a button or a knob.
  • the electronic device can bind the virtual selection of the button or knob with the control selection on the application interface to generate a binding relationship.
  • the electronic device determines that the display screen of the vehicle terminal is a non-touch screen and supports knob control according to the vehicle terminal information obtained through the above step S402. Then, after the electronic device determines the projection data through the above step S704 or step S705, it can divide the application interface, number the controls therein according to the matrix grid, match the rotation of the knob to the forward, backward, selection and other operations, and correspond to the controls with the corresponding numbers to generate a binding relationship.
  • the vehicle terminal information obtained by the electronic device also includes the hardware information of the vehicle terminal.
  • the electronic device can virtualize the hardware resources of the vehicle terminal on the electronic device side, so that in the process of determining the binding relationship, the response mode of the control can also be adjusted to correspond to the corresponding virtual hardware resources, which is used to indicate the hardware operation of the vehicle terminal, such as turning on the speaker and camera of the vehicle terminal.
  • the display content of the projected application interface is bound to the corresponding operation response, while ensuring the display effect, the interactive function of the application interface is retained to ensure the user experience.
  • an application for screen projection and display of an electronic device may or may not be installed in the vehicle terminal. Then, in the case where the vehicle terminal is installed with an application for screen projection and display of an electronic device, the vehicle terminal may determine whether the display frame rate meets the frame rate threshold requirement when the application is started and displayed through the chip of the vehicle terminal in the process of displaying the application interface according to the received screen projection data. If satisfied, the vehicle terminal can start the application and instruct the electronic device not to project and display the application, that is, switch the application to the vehicle terminal, thereby improving the application operation efficiency. If not satisfied, the vehicle terminal can continue to display the screen projection application according to the received screen projection data, so that the screen projection application runs on the electronic device.
  • the electronic device may also determine the electronic device function icon to be displayed on the vehicle terminal during the process of generating the projection data. Afterwards, the projection data sent by the electronic device to the vehicle terminal includes the electronic device function icon. Subsequently, the vehicle terminal includes the electronic device function icon in the projection interface displayed according to the projection data, and the user can control the electronic device through the electronic device function icon on the vehicle terminal.
  • the vehicle terminal when it detects the user's operation on the electronic device function icon during the display of the projection interface, it can send an indication message to the electronic device, and the indication message can carry information about the electronic device function icon operated by the user. Afterwards, the electronic device can execute the function corresponding to the electronic device function icon operated by the user according to the indication message.
  • Figure 10 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • the electronic device 1000 may include: a transceiver unit 1001 and a processing unit 1002.
  • the electronic device 1000 may be used to implement the functions of the electronic device involved in the above method embodiment.
  • the transceiver unit 1001 is used to support the electronic device 1000 to execute S401, S402 and S405 in FIG. 4 .
  • the processing unit 1002 is used to support the electronic device 1000 to execute S403 and S404 in Figure 4; and/or to support the electronic device 1000 to execute S701-S705 in Figure 7.
  • the transceiver unit may include a receiving unit and a sending unit, which may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module.
  • the operations and/or functions of each unit in the electronic device 1000 are respectively to implement the corresponding process of the projection display method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, it will not be repeated here.
  • the electronic device 1000 shown in FIG10 may further include a storage unit (not shown in FIG10 ), in which a program or instruction is stored.
  • a storage unit not shown in FIG10
  • the electronic device 1000 shown in FIG10 may execute the screen projection display method described in the above method embodiment.
  • the technical effects of the electronic device 1000 shown in FIG. 10 may refer to the technical effects of the screen projection display method described in the above method embodiment, and will not be repeated here.
  • the technical solution provided by the present application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.
  • FIG11 is a schematic diagram of the structure of the vehicle terminal provided in an embodiment of the present application.
  • the vehicle terminal 1100 may include: a transceiver unit 1101, a processing unit 1102, and a display unit 1103.
  • the vehicle terminal 1100 may be used to implement the functions of the vehicle terminal involved in the above method embodiment.
  • the transceiver unit 1101 is used to support the vehicle terminal 1100 to execute S401, S402 and S405 in Figure 4.
  • processing unit 1102 is used to support the vehicle terminal 1100 to execute S406 in Figure 4.
  • the display unit 1103 is used to support the vehicle-mounted terminal 1100 to execute S406 in FIG. 4 .
  • the transceiver unit may include a receiving unit and a sending unit, which may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module.
  • the operations and/or functions of each unit in the vehicle terminal 1100 are respectively to implement the corresponding process of the projection display method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, it will not be repeated here.
  • the vehicle-mounted terminal 1100 shown in FIG11 may further include a storage unit (not shown in FIG11 ), in which a program or instruction is stored.
  • a storage unit not shown in FIG11
  • the vehicle-mounted terminal 1100 shown in FIG11 may execute the screen projection display method described in the above method embodiment.
  • the technical effects of the vehicle-mounted terminal 1100 shown in FIG. 11 can refer to the technical effects of the screen projection display method described in the above method embodiment, and will not be repeated here.
  • the technical solution provided by the present application may also be a functional unit or chip in the vehicle-mounted terminal, or a device used in conjunction with the vehicle-mounted terminal.
  • An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
  • the processor in the chip system may be one or more.
  • the processor may be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, etc.
  • the processor may be a general-purpose processor implemented by reading software code stored in a memory.
  • the memory in the chip system may also be one or more.
  • the memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application.
  • the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively.
  • the embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
  • the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit
  • NP network processor
  • DSP digital signal processor
  • MCU microcontroller unit
  • PLD programmable logic device
  • each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software.
  • the method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
  • An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored.
  • the computer program When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the screen projection display method in the above-mentioned embodiment.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the screen projection display method in the above-mentioned embodiment.
  • an embodiment of the present application further provides a device.
  • the device may be a component or a module, and the device may include one or more processors and a memory connected to each other.
  • the memory is used to store a computer program.
  • the computer program is executed by one or more processors, the device performs the screen projection display method in the above-mentioned method embodiments.
  • the apparatus, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute The corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
  • the steps of the method or algorithm described in conjunction with the disclosed content of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) 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 information from the storage medium and write information to the storage medium.
  • the storage medium can also be a component of the processor.
  • the processor and the storage medium can be located in an application specific integrated circuit (ASIC).
  • ASIC application specific integrated circuit
  • the disclosed method can be implemented in other ways.
  • the device embodiments described above are merely schematic.
  • the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • Computer-readable storage media include, but are not limited to, any of the following: USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of terminals, and provides a screen mirroring display method, an electronic system, and a system. In the present application, an electronic device adaptively adjusts screen mirroring content of an application according to vehicle-mounted terminal information, so that the application has better universality, and the application development difficulty is reduced while ensuring the screen mirroring effect. The method comprises: an electronic device acquires first information sent by a vehicle-mounted terminal, wherein the first information comprises vehicle-mounted terminal information; then, after receiving a screen mirroring request, the electronic device determines screen mirroring data according to first interface information of a first application indicated by the screen mirroring request and the vehicle-mounted terminal information; the electronic device sends the screen mirroring data to the vehicle-mounted terminal, so that the vehicle-mounted terminal displays a screen mirroring interface according to the screen mirroring data.

Description

投屏显示方法、电子设备及系统Screen projection display method, electronic device and system
本申请要求于2022年09月30日提交国家知识产权局、申请号为202211214674.2、发明名称为“投屏显示方法、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on September 30, 2022, with application number 202211214674.2 and invention name “Screen projection display method, electronic device and system”, all contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请实施例涉及终端技术领域,尤其涉及一种投屏显示方法、电子设备及系统。The embodiments of the present application relate to the field of terminal technology, and in particular to a screen projection display method, electronic device and system.
背景技术Background technique
随着终端技术的发展,车载终端支持投屏技术,电子设备(如手机、平板等)可响应于用户操作,将电子设备中的应用投屏至车载终端显示。这样,用户可在车载终端上继续使用应用功能。With the development of terminal technology, in-vehicle terminals support screen projection technology. Electronic devices (such as mobile phones, tablets, etc.) can respond to user operations and project applications in electronic devices to the in-vehicle terminal for display. In this way, users can continue to use application functions on the in-vehicle terminal.
比如,用户通过手机音乐应用听歌的过程中进入车内。响应于用户操作,手机与车载终端建立连接,用户可通过车载终端继续听之前通过手机播放的未播放完的音乐。For example, a user enters a car while listening to music through a mobile phone music application. In response to the user's operation, the mobile phone establishes a connection with the vehicle terminal, and the user can continue to listen to the unfinished music previously played through the mobile phone through the vehicle terminal.
在上述车载终端投屏过程中,电子设备中的应用首先需要支持投屏到车载终端上显示,才能够实现投屏。但是,由于车载终端的厂商较多,不同厂商生产的车载终端型号不同,对于同一应用开发者也需要开发适配于不同型号车载终端的多种类型的应用,应用开发难度较高。导致可投屏应用数量有限,车载终端应用生态不够完善,不能满足用户对于车载终端的使用需求。In the above-mentioned process of screen projection on the vehicle terminal, the application in the electronic device must first support screen projection to the vehicle terminal for display before screen projection can be realized. However, since there are many manufacturers of vehicle terminals and different manufacturers produce different models of vehicle terminals, the developer of the same application also needs to develop multiple types of applications that are suitable for different models of vehicle terminals, and the application development is difficult. As a result, the number of screen projection applications is limited, and the vehicle terminal application ecosystem is not perfect, which cannot meet the user's demand for the use of vehicle terminals.
发明内容Summary of the invention
为了解决上述的技术问题,本申请实施例提供了一种投屏显示方法、电子设备及系统。本申请实施例提供的技术方案,电子设备根据车载终端信息,自适应的调整应用投屏内容,使得应用具有更好的普适性,在保证投屏效果的同时,降低应用开发难度。In order to solve the above technical problems, the embodiments of the present application provide a screen projection display method, electronic device and system. The technical solution provided by the embodiments of the present application is that the electronic device adaptively adjusts the application screen projection content according to the vehicle terminal information, so that the application has better universality, while ensuring the screen projection effect, reducing the difficulty of application development.
为了实现上述的技术目的,本申请实施例提供了如下技术方案:In order to achieve the above technical objectives, the embodiments of the present application provide the following technical solutions:
第一方面,提供一种投屏显示方法。该方法包括:电子设备获取车载终端发送的第一信息,第一信息包括车载终端信息。电子设备接收投屏请求。响应于投屏请求,电子设备确定投屏请求指示投屏的第一应用的第一界面信息。电子设备根据车载终端信息和第一界面信息,确定投屏数据。向车载终端发送投屏数据,投屏数据用于使车载终端显示投屏界面。In a first aspect, a screen projection display method is provided. The method includes: an electronic device obtains first information sent by a vehicle-mounted terminal, and the first information includes vehicle-mounted terminal information. The electronic device receives a screen projection request. In response to the screen projection request, the electronic device determines the first interface information of the first application indicated by the screen projection request. The electronic device determines the screen projection data based on the vehicle-mounted terminal information and the first interface information. The screen projection data is sent to the vehicle-mounted terminal, and the screen projection data is used to enable the vehicle-mounted terminal to display the screen projection interface.
一些示例中,电子设备中安装有第一应用,车载终端中安装或未安装第一应用。在投屏过程中,电子设备可显示第一应用的第一界面,确定第一界面的第一界面信息。或者,在投屏过程中,电子设备不显示第一应用,电子设备在第一应用后台确定第一界面信息以及确定投屏数据。In some examples, the first application is installed in the electronic device, and the first application is installed or not installed in the vehicle terminal. During the screen projection process, the electronic device can display the first interface of the first application and determine the first interface information of the first interface. Alternatively, during the screen projection process, the electronic device does not display the first application, and the electronic device determines the first interface information and the projection data in the background of the first application.
如此,电子设备能够基于车载终端信息,根据识别到的待投屏的应用界面显示信息,自适应的调整待投屏的应用界面的显示,以提升应用投屏显示效果,提升用户使用体验。In this way, the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
根据第一方面,车载终端信息包括应用布局信息。According to the first aspect, the in-vehicle terminal information includes application layout information.
根据第一方面,或者以上第一方面的任意一种实现方式,应用布局信息包括车载终端的桌面布局信息。According to the first aspect, or any implementation of the first aspect above, the application layout information includes desktop layout information of the vehicle-mounted terminal.
一些示例中,应用布局信息用于表示车载终端显示屏的显示。In some examples, application layout information is used to represent the display of the vehicle terminal display screen.
比如,车载终端显示桌面,桌面上的显示内容包括车载终端的功能图标(如座椅调节图图标、空调控制图标等),还可以包括车载终端应用的图标。那么,应用布局信息可包括桌面布局信息,如包括显示的多种图标信息、图标的位置信息等。For example, the vehicle terminal displays a desktop, and the display content on the desktop includes the function icons of the vehicle terminal (such as seat adjustment map icons, air conditioning control icons, etc.), and may also include icons of vehicle terminal applications. Then, the application layout information may include desktop layout information, such as information on multiple icons displayed, icon location information, etc.
又比如,车载终端显示应用界面,应用布局信息包括该显示的应用界面的布局信息。应用布局信息用于后续电子设备对待投屏应用的界面显示内容和车载终端的显示内容进行重布局。For another example, the vehicle terminal displays an application interface, and the application layout information includes the layout information of the displayed application interface. The application layout information is used by subsequent electronic devices to re-layout the interface display content of the application to be projected and the display content of the vehicle terminal.
如此,在投屏过程中,电子设备可根据车载终端需要固定显示的内容(如应用布局信息对应的内容),自适应的调整应用的投屏内容。从而保证在投屏过程中,车载终端还能够显示该固定的内容,满足用户的使用需求。In this way, during the screen projection process, the electronic device can adaptively adjust the screen projection content of the application according to the content that the vehicle terminal needs to display fixedly (such as the content corresponding to the application layout information). This ensures that during the screen projection process, the vehicle terminal can still display the fixed content to meet the user's usage needs.
根据第一方面,或者以上第一方面的任意一种实现方式,车载终端信息还包括显示屏尺寸信息,方法还包括:响应于投屏请求,根据显示屏尺寸信息,确定电子设备和车载终端的显示状态相同或不相同,显示状态用于表示横屏显示或竖屏显示。According to the first aspect, or any implementation method of the first aspect above, the vehicle-mounted terminal information also includes display screen size information, and the method also includes: in response to a screen projection request, determining whether the display status of the electronic device and the vehicle-mounted terminal is the same or different based on the display screen size information, and the display status is used to indicate horizontal screen display or vertical screen display.
一些示例中,显示屏尺寸信息用于表示车载终端的显示屏对应的显示区域的尺寸,如长度、 宽度等信息,其中显示区域用于车载终端的显示。In some examples, the display screen size information is used to indicate the size of the display area corresponding to the display screen of the vehicle terminal, such as length, width and other information, where the display area is used for display on the vehicle terminal.
一些示例中,电子设备先确定电子设备和车载终端的显示状态,以确定获取投屏数据的方式。比如,若电子设备显示屏和车载终端显示屏均为横屏或均为竖屏,那么电子设备可直接将应用显示界面进行缩放处理,以满足车载终端显示屏的显示需求。若电子设备显示屏为竖屏,车载终端显示屏为横屏,或者,电子设备显示屏为横屏,车载终端显示屏为竖屏。那么,电子设备需要对应用界面上的显示内容重新布局,以实现在车载终端显示屏上更好的显示效果。In some examples, the electronic device first determines the display status of the electronic device and the vehicle terminal to determine the method of obtaining the projection data. For example, if the electronic device display screen and the vehicle terminal display screen are both horizontal or vertical, the electronic device can directly scale the application display interface to meet the display requirements of the vehicle terminal display screen. If the electronic device display screen is vertical and the vehicle terminal display screen is horizontal, or the electronic device display screen is horizontal and the vehicle terminal display screen is vertical. Then, the electronic device needs to rearrange the display content on the application interface to achieve a better display effect on the vehicle terminal display screen.
根据第一方面,或者以上第一方面的任意一种实现方式,根据显示屏尺寸信息,确定电子设备和车载终端的显示状态相同或不相同,包括:确定电子设备的显示屏的第一横纵比,以及根据显示屏尺寸信息,确定车载终端的显示屏的第二横纵比。在第一横纵比和第二横纵比之间的差值绝对值小于或等于第一阈值的情况下,电子设备和车载终端的显示状态相同。在第一横纵比和第二横纵比之间的差值绝对值大于第一阈值的情况下,电子设备和车载终端的显示状态不相同。According to the first aspect, or any implementation of the first aspect above, determining whether the display states of the electronic device and the vehicle-mounted terminal are the same or different based on the display screen size information includes: determining a first aspect ratio of the display screen of the electronic device, and determining a second aspect ratio of the display screen of the vehicle-mounted terminal based on the display screen size information. When the absolute value of the difference between the first aspect ratio and the second aspect ratio is less than or equal to a first threshold, the display states of the electronic device and the vehicle-mounted terminal are the same. When the absolute value of the difference between the first aspect ratio and the second aspect ratio is greater than the first threshold, the display states of the electronic device and the vehicle-mounted terminal are different.
一些示例中,车载终端的显示屏可旋转,切换横屏显示或竖屏显示。那么,电子设备在确定投屏数据的过程中,需要确定车载终端当前的显示状态为横屏显示或竖屏显示。之后,电子设备可确定电子设备的显示状态与车载终端当前的显示状态是否相同。可选的,车载终端发送的显示屏尺寸信息中指示的横向尺寸和纵向尺寸对应于车载终端当前显示状态下的横向尺寸和纵向尺寸。如车载终端旋转显示屏后,车载终端将原横向尺寸和原纵向尺寸切换后,确定新的横向尺寸(即原纵向尺寸)和纵向尺寸(即原横向尺寸),以生成新的显示屏尺寸信息,并发送至电子设备。In some examples, the display screen of the vehicle terminal can be rotated to switch between horizontal and vertical display. Then, in the process of determining the projection data, the electronic device needs to determine whether the current display state of the vehicle terminal is horizontal or vertical display. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle terminal. Optionally, the horizontal dimension and the vertical dimension indicated in the display screen size information sent by the vehicle terminal correspond to the horizontal dimension and the vertical dimension of the vehicle terminal in the current display state. For example, after the vehicle terminal rotates the display screen, the vehicle terminal switches the original horizontal dimension and the original vertical dimension, determines the new horizontal dimension (ie, the original vertical dimension) and the vertical dimension (ie, the original horizontal dimension) to generate new display screen size information and send it to the electronic device.
一些示例中,电子设备也可通过旋转显示屏的方式,切换显示状态。那么,电子设备在启动应用确定投屏数据的过程中,需要确定电子设备当前的显示状态为横屏显示或竖屏显示。同样的,电子设备确定当前显示过程中显示区域的横向尺寸和纵向尺寸,以确定横纵比。之后,电子设备可确定电子设备的显示状态与车载终端当前的显示状态是否相同。或者,电子设备根据应用后台数据,确定对应的电子设备显示状态为横屏显示或竖屏显示。之后,电子设备可确定电子设备的显示状态与车载终端当前的显示状态是否相同。In some examples, the electronic device can also switch the display state by rotating the display screen. Then, when the electronic device starts the application to determine the projection data, it needs to determine whether the current display state of the electronic device is horizontal or vertical display. Similarly, the electronic device determines the horizontal and vertical dimensions of the display area during the current display process to determine the aspect ratio. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal. Alternatively, the electronic device determines whether the display state of the corresponding electronic device is horizontal or vertical display based on the application background data. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备和车载终端的显示状态不相同,响应于投屏请求,确定投屏请求指示投屏的第一应用的第一界面信息,包括:响应于投屏请求,确定待投屏的第一应用的第一界面。划分第一界面的功能区域,确定第一界面信息。According to the first aspect, or any implementation of the first aspect above, the display states of the electronic device and the vehicle-mounted terminal are different, and in response to a screen projection request, determining the first interface information of the first application indicated by the screen projection request includes: determining the first interface of the first application to be projected in response to the screen projection request. Dividing the functional area of the first interface and determining the first interface information.
一些示例中,电子设备在确定投屏数据的过程中,确定电子设备和车载终端的显示状态不相同,需要对应用界面显示内容进行重布局。因此,电子设备还可对待投屏界面的布局进行结构式划分。In some examples, when determining the projection data, the electronic device determines that the display states of the electronic device and the vehicle-mounted terminal are different, and the application interface display content needs to be re-layouted. Therefore, the electronic device can also perform structural division on the layout of the projection interface.
比如,电子设备划分待投屏界面上的功能区域,将各个功能区域进行瀑布式结构划分。可选的,功能区域的识别过程例如包括识别待投屏界面包括的制表机(tabulator,TAB)页、搜索栏、横幅(banner)页、网格(grid)栏、标题栏、播放器等。For example, the electronic device divides the functional areas on the screen to be projected, and divides each functional area into a waterfall structure. Optionally, the functional area identification process includes, for example, identifying a tabulator (TAB) page, a search bar, a banner page, a grid bar, a title bar, a player, etc. included in the screen to be projected.
根据第一方面,或者以上第一方面的任意一种实现方式,根据车载终端信息和第一界面信息,确定投屏数据,包括:根据第一界面信息、显示屏尺寸信息、以及应用布局信息,重布局划分后的功能区域对应的第一显示内容和应用布局信息对应的第二显示内容,生成第二界面信息。根据第二界面信息,生成投屏数据。According to the first aspect, or any one of the implementations of the first aspect above, the projection data is determined according to the vehicle terminal information and the first interface information, including: according to the first interface information, the display screen size information, and the application layout information, the first display content corresponding to the functional area after the division and the second display content corresponding to the application layout information are re-layouted to generate the second interface information. The projection data is generated according to the second interface information.
如此,电子设备能够基于车载终端信息,根据识别到的待投屏的应用界面显示信息,自适应的调整待投屏的应用界面的显示,以提升应用投屏显示效果,提升用户使用体验。In this way, the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,根据第一界面信息、显示屏尺寸信息、以及应用布局信息,重布局功能区域对应的第一显示内容和应用布局信息对应的第二显示内容,生成第二界面信息,包括:根据功能区域、显示屏尺寸信息、以及应用布局信息,将车载终端的显示屏对应的显示区域划分为第一显示区域和第二显示区域,第一显示区域用于显示第一显示内容,第二显示区域用于显示第二显示内容。根据第一显示区域,重布局第一显示内容,以及根据第二显示区域,重布局第二显示内容。根据重布局后的第一显示内容和第二显示内容,确定第二界面信息。According to the first aspect, or any implementation of the first aspect above, the first display content corresponding to the functional area and the second display content corresponding to the application layout information are re-layouted according to the first interface information, the display screen size information, and the application layout information to generate the second interface information, including: according to the functional area, the display screen size information, and the application layout information, the display area corresponding to the display screen of the vehicle terminal is divided into a first display area and a second display area, the first display area is used to display the first display content, and the second display area is used to display the second display content. According to the first display area, the first display content is re-layouted, and according to the second display area, the second display content is re-layouted. According to the re-layouted first display content and second display content, the second interface information is determined.
一些示例中,电子设备根据车载终端信息(如显示屏尺寸信息、应用布局信息)和电子设备的应用界面信息,可划分待投屏界面上的适配界面放置区(即第一显示区域)和车载应用功能放 置区(即第二显示区域)。其中,适配界面放置区用于显示投屏的应用界面(即第一显示内容),车载应用功能放置区用于显示车载终端需要优先显示的内容,如桌面图标等(即第二显示内容)。In some examples, the electronic device can divide the adaptation interface placement area (i.e., the first display area) on the screen to be projected and the in-vehicle application function placement area (i.e., the first display area) based on the in-vehicle terminal information (e.g., display screen size information, application layout information) and the application interface information of the electronic device. The adapter interface placement area is used to display the application interface of the projection screen (i.e. the first display content), and the in-vehicle application function placement area is used to display the content that the in-vehicle terminal needs to display first, such as desktop icons (i.e. the second display content).
可选的,待投屏界面上也可只包括适配界面放置区,后续车载终端可全屏显示投屏的应用界面。Optionally, the screen to be projected may only include the adaptation interface placement area, and the vehicle-mounted terminal may subsequently display the projected application interface in full screen.
可选的,预先配置车载终端待投屏界面的划分模板,将车载终端上需要显示的第二显示内容和待投屏界面的第一显示内容进行混合排列优化,以确定适配界面放置区和车载应用功能放置区。Optionally, a division template of the screen to be projected interface of the vehicle terminal is pre-configured, and the second display content to be displayed on the vehicle terminal and the first display content of the screen to be projected are mixed and arranged and optimized to determine the adaptation interface placement area and the vehicle application function placement area.
如此,电子设备能够基于车载终端信息,根据识别到的待投屏的应用界面显示信息,自适应的调整待投屏的应用界面的显示,以提升应用投屏显示效果,提升用户使用体验。In this way, the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备和车载终端的显示状态相同,根据车载终端信息和第一界面信息,确定投屏数据,包括:根据显示屏尺寸信息和应用布局信息,确定用于投屏显示第一应用的第一显示区域,第一显示区域为用于显示应用布局信息对应的第二显示内容以外的显示区域。根据第一显示区域,放大或缩小第一界面信息对应的第一应用的第一界面,生成第三界面信息。根据第三界面信息和应用布局信息,确定投屏数据。According to the first aspect, or any implementation of the first aspect above, the display status of the electronic device and the vehicle-mounted terminal is the same, and the projection data is determined according to the vehicle-mounted terminal information and the first interface information, including: determining the first display area for projecting and displaying the first application according to the display screen size information and the application layout information, the first display area being the display area other than the second display content corresponding to the application layout information. According to the first display area, the first interface of the first application corresponding to the first interface information is enlarged or reduced to generate the third interface information. The projection data is determined according to the third interface information and the application layout information.
如此,电子设备通过先确定电子设备和车载终端的显示状态,在确定显示状态相同的情况下,可直接通过缩放待投屏应用界面的方式,确定投屏数据,进而有效提高相同显示状态下的投屏效率。In this way, the electronic device first determines the display status of the electronic device and the vehicle-mounted terminal. When it is determined that the display status is the same, the projection data can be directly determined by scaling the application interface to be projected, thereby effectively improving the projection efficiency under the same display status.
根据第一方面,或者以上第一方面的任意一种实现方式,车载终端信息还包括车载终端的应用信息,第二显示内容包括应用布局信息对应的功能图标和/或车载终端的常用应用图标,功能图标为车载终端在投屏前显示的功能图标和/或用于控制电子设备的功能图标,常用应用图标为电子设备根据应用信息确定的车载终端的常用应用的图标。According to the first aspect, or any implementation method of the first aspect above, the vehicle-mounted terminal information also includes application information of the vehicle-mounted terminal, and the second display content includes function icons corresponding to the application layout information and/or commonly used application icons of the vehicle-mounted terminal, the function icons are function icons displayed by the vehicle-mounted terminal before screen projection and/or function icons used to control electronic devices, and the commonly used application icons are icons of commonly used applications of the vehicle-mounted terminal determined by the electronic device based on the application information.
一些示例中,应用信息用于表示车载终端中安装的应用的信息,如应用使用信息等,后续电子设备根据该应用使用信息,可确定车载终端的常用应用。In some examples, application information is used to represent information about applications installed in the vehicle-mounted terminal, such as application usage information, and the electronic device can subsequently determine the commonly used applications of the vehicle-mounted terminal based on the application usage information.
示例性的,电子设备确定的投屏数据中可包括车载终端常用应用的图标。这样,后续车载终端在投屏过程中,可显示常用应用的图标,便于用户使用。For example, the screen projection data determined by the electronic device may include icons of commonly used applications of the vehicle terminal. In this way, the vehicle terminal can display icons of commonly used applications during the subsequent screen projection process, which is convenient for users to use.
在一些实施例中,电子设备在生成投屏数据的过程中,也可确定向车载终端投屏显示的电子设备功能图标。之后,电子设备向车载终端发送的投屏数据中包括该电子设备功能图标。后续,车载终端根据投屏数据显示的投屏界面中包括电子设备功能图标。In some embodiments, the electronic device may also determine the electronic device function icon to be displayed on the vehicle terminal during the process of generating the projection data. Afterwards, the projection data sent by the electronic device to the vehicle terminal includes the electronic device function icon. Subsequently, the vehicle terminal includes the electronic device function icon in the projection interface displayed according to the projection data.
如此,用户可在车载终端上通过电子设备功能图标控制电子设备,从而提升用户的使用体验。In this way, the user can control the electronic device through the electronic device function icon on the vehicle terminal, thereby improving the user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,车载终端信息还包括车载终端的显示屏控制方法、硬件信息,显示屏控制方法用于表示车载终端是触控屏或非触控屏,在向车载终端发送投屏数据之前,方法还包括:确定投屏数据中的第一控件对应的操作响应方式。根据第一控件、操作响应方式、硬件信息、以及显示屏控制方法,生成绑定关系,绑定关系用于指示车载终端在检测到用户对投屏界面中显示的第一控件的操作后对应的第一响应。According to the first aspect, or any implementation of the first aspect above, the vehicle terminal information also includes a display screen control method and hardware information of the vehicle terminal, the display screen control method is used to indicate whether the vehicle terminal is a touch screen or a non-touch screen, and before sending the projection data to the vehicle terminal, the method also includes: determining the operation response mode corresponding to the first control in the projection data. A binding relationship is generated based on the first control, the operation response mode, the hardware information, and the display screen control method, and the binding relationship is used to indicate the first response of the vehicle terminal after detecting the user's operation on the first control displayed in the projection interface.
一些示例中,显示屏的控制方法用于表示显示屏为触摸屏或非触摸屏、按键或旋钮控制的信息等。硬件信息例如包括车载终端安装的麦克风、喇叭、扬声器、摄像头等硬件装置的信息。In some examples, the control method of the display screen is used to indicate whether the display screen is a touch screen or non-touch screen, key or knob controlled information, etc. Hardware information includes, for example, information of hardware devices such as microphones, speakers, loudspeakers, cameras, etc. installed in the vehicle terminal.
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:向车载终端发送绑定关系。According to the first aspect, or any implementation of the first aspect above, the method further includes: sending the binding relationship to the vehicle-mounted terminal.
如此,将投屏的应用界面显示内容与相应的操作响应进行绑定,在保证显示效果的同时,保留应用界面的交互功能,保证用户的使用体验。In this way, the display content of the projected application interface is bound to the corresponding operation response, while ensuring the display effect, the interactive function of the application interface is retained to ensure the user experience.
根据第一方面,或者以上第一方面的任意一种实现方式,投屏请求为电子设备接收到用户的投屏操作后确定的投屏请求,或者投屏请求为车载终端发送的投屏请求。According to the first aspect, or any implementation of the first aspect above, the screen projection request is a screen projection request determined after the electronic device receives the user's screen projection operation, or the screen projection request is a screen projection request sent by the vehicle-mounted terminal.
比如,电子设备在显示第一应用的第一界面的过程中,检测到用户点击投屏控件的操作,可确定用户指示将当前显示的第一界面投屏至车载终端显示。在应用投屏之前,车载终端显示桌面或者其他应用,该应用为车载终端应用或投屏应用。For example, when the electronic device is displaying the first interface of the first application, if it detects that the user clicks the screen projection control, it can be determined that the user instructs to project the currently displayed first interface to the vehicle terminal for display. Before the application is projected, the vehicle terminal displays the desktop or other applications, which are vehicle terminal applications or projection applications.
又比如,车载终端在与电子设备建立通信连接后,可获取到电子设备中安装的应用的信息,根据该信息可显示相应的应用图标。车载终端检测到用户对应用图标的操作,可向电子设备发送投屏请求,用于请求电子设备投屏该应用图标对应的第一应用,进而确定需要向车载终端投屏显 示第一应用。For another example, after establishing a communication connection with an electronic device, the vehicle terminal can obtain information about applications installed in the electronic device, and display corresponding application icons based on the information. When the vehicle terminal detects the user's operation on an application icon, it can send a screen projection request to the electronic device to request the electronic device to project the first application corresponding to the application icon, thereby determining that the screen needs to be projected to the vehicle terminal for display. The first application is shown.
可选的,第一应用例如为视频应用、音乐应用、导航应用等应用。Optionally, the first application is, for example, a video application, a music application, a navigation application, or the like.
第二方面,本申请实施例提供一种投屏显示方法,应用于车载终端。该方法包括:向电子设备发送第一信息,第一信息包括车载终端信息。接收电子设备发送的投屏数据,投屏数据为电子设备响应于接收到的投屏请求,根据投屏请求指示投屏的第一应用的第一界面信息和车载终端信息确定的数据。根据投屏数据,显示投屏界面。In the second aspect, an embodiment of the present application provides a screen projection display method, which is applied to a vehicle-mounted terminal. The method includes: sending first information to an electronic device, the first information including vehicle-mounted terminal information. Receive projection data sent by the electronic device, the projection data is the electronic device responding to the received projection request, and the first interface information of the first application indicated by the projection request and the vehicle-mounted terminal information are determined. According to the projection data, display the projection interface.
根据第二方面,车载终端信息包括应用布局信息。According to the second aspect, the in-vehicle terminal information includes application layout information.
根据第二方面,或者以上第二方面的任意一种实现方式,应用布局信息包括车载终端的桌面布局信息。According to the second aspect, or any implementation of the second aspect, the application layout information includes desktop layout information of the vehicle-mounted terminal.
根据第二方面,或者以上第二方面的任意一种实现方式,车载终端信息还包括显示屏尺寸信息,显示屏尺寸信息用于使电子设备确定车载终端的显示状态,显示状态用于表示横屏显示或竖屏显示。According to the second aspect, or any implementation of the second aspect above, the vehicle terminal information also includes display screen size information, and the display screen size information is used for the electronic device to determine the display status of the vehicle terminal, and the display status is used to indicate horizontal screen display or vertical screen display.
根据第二方面,或者以上第二方面的任意一种实现方式,方法还包括:接收电子设备发送的绑定关系,绑定关系用于指示车载终端在检测到用户对投屏界面上显示的第一控件的操作后对应的第一响应;车载终端信息还包括车载终端的显示屏控制方法、硬件信息,显示屏控制方法、硬件信息用于使电子设备生成绑定关系。According to the second aspect, or any implementation of the second aspect above, the method also includes: receiving a binding relationship sent by an electronic device, the binding relationship is used to indicate a first response of the vehicle-mounted terminal after detecting a user operation on a first control displayed on the projection interface; the vehicle-mounted terminal information also includes a display screen control method and hardware information of the vehicle-mounted terminal, and the display screen control method and hardware information are used to enable the electronic device to generate a binding relationship.
根据第二方面,或者以上第二方面的任意一种实现方式,接收电子设备发送的投屏数据之前,方法还包括:响应于用户的投屏操作,向电子设备发送投屏请求。According to the second aspect, or any implementation of the second aspect above, before receiving the projection data sent by the electronic device, the method also includes: sending a projection request to the electronic device in response to the user's projection operation.
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the second aspect and any implementation method of the second aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
第三方面,本申请实施例提供一种电子设备。该电子设备包括:处理器和存储器,存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得电子设备执行:获取车载终端发送的第一信息,第一信息包括车载终端信息。接收投屏请求。响应于投屏请求,确定投屏请求指示投屏的第一应用的第一界面信息。根据车载终端信息和第一界面信息,确定投屏数据。向车载终端发送投屏数据,投屏数据用于使车载终端显示投屏界面。In the third aspect, an embodiment of the present application provides an electronic device. The electronic device includes: a processor and a memory, the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes: obtain the first information sent by the vehicle-mounted terminal, the first information includes the vehicle-mounted terminal information. Receive a screen projection request. In response to the screen projection request, determine the first interface information of the first application that the screen projection request indicates is projected. Determine the screen projection data based on the vehicle-mounted terminal information and the first interface information. Send the screen projection data to the vehicle-mounted terminal, and the screen projection data is used to enable the vehicle-mounted terminal to display the screen projection interface.
根据第三方面,车载终端信息包括应用布局信息。According to the third aspect, the in-vehicle terminal information includes application layout information.
根据第三方面,或者以上第三方面的任意一种实现方式,应用布局信息包括车载终端的桌面布局信息。According to the third aspect, or any implementation of the third aspect, the application layout information includes desktop layout information of the vehicle-mounted terminal.
根据第三方面,或者以上第三方面的任意一种实现方式,车载终端信息还包括显示屏尺寸信息,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:响应于投屏请求,根据显示屏尺寸信息,确定电子设备和车载终端的显示状态相同或不相同,显示状态用于表示横屏显示或竖屏显示。According to the third aspect, or any implementation method of the third aspect above, the vehicle-mounted terminal information also includes display screen size information. When the processor reads computer-readable instructions from the memory, it also enables the electronic device to perform the following operations: in response to the screen projection request, determine whether the display status of the electronic device and the vehicle-mounted terminal is the same or different based on the display screen size information, and the display status is used to indicate horizontal screen display or vertical screen display.
根据第三方面,或者以上第三方面的任意一种实现方式,根据显示屏尺寸信息,确定电子设备和车载终端的显示状态相同或不相同,包括:确定电子设备的显示屏的第一横纵比,以及根据显示屏尺寸信息,确定车载终端的显示屏的第二横纵比。在第一横纵比和第二横纵比之间的差值绝对值小于或等于第一阈值的情况下,电子设备和车载终端的显示状态相同。在第一横纵比和第二横纵比之间的差值绝对值大于第一阈值的情况下,电子设备和车载终端的显示状态不相同。According to the third aspect, or any implementation of the third aspect above, determining whether the display states of the electronic device and the vehicle-mounted terminal are the same or different based on the display screen size information includes: determining a first aspect ratio of the display screen of the electronic device, and determining a second aspect ratio of the display screen of the vehicle-mounted terminal based on the display screen size information. When the absolute value of the difference between the first aspect ratio and the second aspect ratio is less than or equal to a first threshold, the display states of the electronic device and the vehicle-mounted terminal are the same. When the absolute value of the difference between the first aspect ratio and the second aspect ratio is greater than the first threshold, the display states of the electronic device and the vehicle-mounted terminal are different.
根据第三方面,或者以上第三方面的任意一种实现方式,电子设备和车载终端的显示状态不相同,响应于投屏请求,确定投屏请求指示投屏的第一应用的第一界面信息,包括:响应于投屏请求,确定待投屏的第一应用的第一界面。划分第一界面的功能区域,确定第一界面信息。According to the third aspect, or any implementation of the third aspect above, the display states of the electronic device and the vehicle-mounted terminal are different, and in response to a screen projection request, determining the first interface information of the first application indicated by the screen projection request includes: determining the first interface of the first application to be projected in response to the screen projection request. Dividing the functional area of the first interface and determining the first interface information.
根据第三方面,或者以上第三方面的任意一种实现方式,根据车载终端信息和第一界面信息,确定投屏数据,包括:根据第一界面信息、显示屏尺寸信息、以及应用布局信息,重布局划分后的功能区域对应的第一显示内容和应用布局信息对应的第二显示内容,生成第二界面信息。根据第二界面信息,生成投屏数据。According to the third aspect, or any one of the implementations of the third aspect, the projection data is determined according to the vehicle terminal information and the first interface information, including: according to the first interface information, the display screen size information, and the application layout information, the first display content corresponding to the functional area after the division and the second display content corresponding to the application layout information are re-layouted to generate the second interface information. The projection data is generated according to the second interface information.
根据第三方面,或者以上第三方面的任意一种实现方式,根据第一界面信息、显示屏尺寸信息、以及应用布局信息,重布局功能区域对应的第一显示内容和应用布局信息对应的第二显示内 容,生成第二界面信息,包括:根据功能区域、显示屏尺寸信息、以及应用布局信息,将车载终端的显示屏对应的显示区域划分为第一显示区域和第二显示区域,第一显示区域用于显示第一显示内容,第二显示区域用于显示第二显示内容。根据第一显示区域,重布局第一显示内容,以及根据第二显示区域,重布局第二显示内容。根据重布局后的第一显示内容和第二显示内容,确定第二界面信息。According to the third aspect, or any implementation of the third aspect, according to the first interface information, the display screen size information, and the application layout information, the first display content corresponding to the functional area and the second display content corresponding to the application layout information are re-layouted. The second interface information is generated by: dividing the display area corresponding to the display screen of the vehicle terminal into a first display area and a second display area according to the functional area, the display screen size information, and the application layout information, wherein the first display area is used to display the first display content and the second display area is used to display the second display content. The first display content is re-layouted according to the first display area, and the second display content is re-layouted according to the second display area. The second interface information is determined according to the re-layouted first display content and the second display content.
根据第三方面,或者以上第三方面的任意一种实现方式,电子设备和车载终端的显示状态相同,根据车载终端信息和第一界面信息,确定投屏数据,包括:根据显示屏尺寸信息和应用布局信息,确定用于投屏显示第一应用的第一显示区域,第一显示区域为用于显示应用布局信息对应的第二显示内容以外的显示区域。根据第一显示区域,放大或缩小第一界面信息对应的第一应用的第一界面,生成第三界面信息。根据第三界面信息和应用布局信息,确定投屏数据。According to the third aspect, or any implementation of the third aspect above, the display status of the electronic device and the vehicle-mounted terminal is the same, and the projection data is determined according to the vehicle-mounted terminal information and the first interface information, including: determining the first display area for projecting and displaying the first application according to the display screen size information and the application layout information, the first display area being the display area other than the second display content corresponding to the application layout information. According to the first display area, the first interface of the first application corresponding to the first interface information is enlarged or reduced to generate the third interface information. The projection data is determined according to the third interface information and the application layout information.
根据第三方面,或者以上第三方面的任意一种实现方式,车载终端信息还包括车载终端的应用信息,第二显示内容包括应用布局信息对应的功能图标和/或车载终端的常用应用图标,功能图标为车载终端在投屏前显示的功能图标和/或用于控制电子设备的功能图标,常用应用图标为电子设备根据应用信息确定的车载终端的常用应用的图标。According to the third aspect, or any implementation method of the third aspect above, the vehicle-mounted terminal information also includes application information of the vehicle-mounted terminal, and the second display content includes function icons corresponding to the application layout information and/or commonly used application icons of the vehicle-mounted terminal, the function icons are function icons displayed by the vehicle-mounted terminal before screen projection and/or function icons used to control electronic devices, and the commonly used application icons are icons of commonly used applications of the vehicle-mounted terminal determined by the electronic device based on the application information.
根据第三方面,或者以上第三方面的任意一种实现方式,车载终端信息还包括车载终端的显示屏控制方法、硬件信息,显示屏控制方法用于表示车载终端是触控屏或非触控屏,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:确定投屏数据中的第一控件对应的操作响应方式。根据第一控件、操作响应方式、硬件信息、以及显示屏控制方法,生成绑定关系,绑定关系用于指示车载终端在检测到用户对投屏界面中显示的第一控件的操作后对应的第一响应。According to the third aspect, or any implementation of the third aspect above, the vehicle terminal information also includes a display screen control method and hardware information of the vehicle terminal. The display screen control method is used to indicate whether the vehicle terminal is a touch screen or a non-touch screen. When the processor reads computer-readable instructions from the memory, it also causes the electronic device to perform the following operations: determine the operation response mode corresponding to the first control in the projection data. A binding relationship is generated based on the first control, the operation response mode, the hardware information, and the display screen control method. The binding relationship is used to indicate the first response of the vehicle terminal after detecting the user's operation on the first control displayed in the projection interface.
根据第三方面,或者以上第三方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得电子设备执行如下操作:向车载终端发送绑定关系。According to the third aspect, or any implementation of the third aspect above, when the processor reads the computer-readable instructions from the memory, the electronic device is also caused to perform the following operation: sending the binding relationship to the vehicle-mounted terminal.
根据第三方面,或者以上第三方面的任意一种实现方式,投屏请求为电子设备接收到用户的投屏操作后确定的投屏请求,或者投屏请求为车载终端发送的投屏请求。According to the third aspect, or any implementation of the third aspect above, the screen projection request is a screen projection request determined after the electronic device receives the user's screen projection operation, or the screen projection request is a screen projection request sent by the vehicle-mounted terminal.
第三方面以及第三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the third aspect and any one of the implementation methods of the third aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第四方面,本申请实施例提供一种车载终端。该车载终端包括:处理器、存储器和显示屏,存储器和显示屏与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当处理器从存储器中读取计算机指令,使得车载终端执行:向电子设备发送第一信息,第一信息包括车载终端信息。接收电子设备发送的投屏数据,投屏数据为电子设备响应于接收到的投屏请求,根据投屏请求指示投屏的第一应用的第一界面信息和车载终端信息确定的数据。根据投屏数据,显示投屏界面。In a fourth aspect, an embodiment of the present application provides a vehicle-mounted terminal. The vehicle-mounted terminal includes: a processor, a memory, and a display screen, the memory and the display screen are coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the vehicle-mounted terminal executes: sending first information to the electronic device, the first information includes vehicle-mounted terminal information. Receive the projection data sent by the electronic device, the projection data is the electronic device responding to the received projection request, according to the first interface information of the first application indicated by the projection request and the vehicle-mounted terminal information. According to the projection data, display the projection interface.
根据第四方面,车载终端信息包括应用布局信息。According to a fourth aspect, the in-vehicle terminal information includes application layout information.
根据第四方面,或者以上第四方面的任意一种实现方式,应用布局信息包括车载终端的桌面布局信息。According to the fourth aspect, or any implementation of the fourth aspect, the application layout information includes desktop layout information of the vehicle-mounted terminal.
根据第四方面,或者以上第四方面的任意一种实现方式,车载终端信息还包括显示屏尺寸信息,显示屏尺寸信息用于使电子设备确定车载终端的显示状态,显示状态用于表示横屏显示或竖屏显示。According to the fourth aspect, or any implementation of the fourth aspect above, the vehicle-mounted terminal information also includes display screen size information, and the display screen size information is used to enable the electronic device to determine the display status of the vehicle-mounted terminal, and the display status is used to indicate horizontal screen display or vertical screen display.
根据第四方面,或者以上第四方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得车载终端执行如下操作:接收电子设备发送的绑定关系,绑定关系用于指示车载终端在检测到用户对投屏界面上显示的第一控件的操作后对应的第一响应;车载终端信息还包括车载终端的显示屏控制方法、硬件信息,显示屏控制方法、硬件信息用于使电子设备生成绑定关系。According to the fourth aspect, or any implementation method of the fourth aspect above, when the processor reads computer-readable instructions from the memory, the vehicle-mounted terminal also performs the following operations: receiving a binding relationship sent by an electronic device, the binding relationship is used to indicate the first response of the vehicle-mounted terminal after detecting the user's operation on the first control displayed on the projection interface; the vehicle-mounted terminal information also includes the display screen control method and hardware information of the vehicle-mounted terminal, and the display screen control method and hardware information are used to enable the electronic device to generate a binding relationship.
根据第四方面,或者以上第四方面的任意一种实现方式,当处理器从存储器中读取计算机可读指令,还使得车载终端执行如下操作:响应于用户的投屏操作,向电子设备发送投屏请求。According to the fourth aspect, or any implementation of the fourth aspect above, when the processor reads computer-readable instructions from the memory, it also enables the vehicle-mounted terminal to perform the following operations: in response to the user's screen projection operation, send a screen projection request to the electronic device.
第四方面以及第四方面中任意一种实现方式所对应的技术效果,可参见上述第二方面及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。 The technical effects corresponding to the fourth aspect and any one of the implementation methods of the fourth aspect can be found in the technical effects corresponding to the above-mentioned second aspect and any one of the implementation methods of the second aspect, and will not be repeated here.
第五方面,本申请实施例提供一种投屏显示系统,该系统包括电子设备和车载终端。其中,车载终端,用于向电子设备发送第一信息,第一信息包括车载终端信息。电子设备,用于接收投屏请求。电子设备,还用于响应于投屏请求,确定投屏请求指示投屏的第一应用的第一界面信息。电子设备,还用于根据第一界面信息和接收到的第一信息中的车载终端信息,确定投屏数据。电子设备,还用于向车载终端发送投屏数据。车载终端,还用于根据接收到的投屏数据,显示投屏界面。In a fifth aspect, an embodiment of the present application provides a screen projection display system, which includes an electronic device and a vehicle-mounted terminal. The vehicle-mounted terminal is used to send a first information to the electronic device, and the first information includes vehicle-mounted terminal information. The electronic device is used to receive a screen projection request. The electronic device is also used to determine, in response to the screen projection request, the first interface information of the first application that the screen projection request indicates to be projected. The electronic device is also used to determine the projection data based on the first interface information and the vehicle-mounted terminal information in the received first information. The electronic device is also used to send the projection data to the vehicle-mounted terminal. The vehicle-mounted terminal is also used to display the projection interface based on the received projection data.
根据第五方面,车载终端信息包括应用布局信息。According to the fifth aspect, the in-vehicle terminal information includes application layout information.
根据第五方面,或者以上第五方面的任意一种实现方式,应用布局信息包括车载终端的桌面布局信息。According to the fifth aspect, or any implementation of the fifth aspect, the application layout information includes desktop layout information of the vehicle-mounted terminal.
根据第五方面,或者以上第五方面的任意一种实现方式,车载终端信息还包括显示屏尺寸信息。电子设备,还用于响应于投屏请求,根据显示屏尺寸信息,确定电子设备和车载终端的显示状态相同或不相同,显示状态用于表示横屏显示或竖屏显示。According to the fifth aspect, or any implementation of the fifth aspect above, the vehicle terminal information also includes display screen size information. The electronic device is also used to respond to the screen projection request and determine, based on the display screen size information, whether the display states of the electronic device and the vehicle terminal are the same or different, and the display state is used to indicate horizontal screen display or vertical screen display.
根据第五方面,或者以上第五方面的任意一种实现方式,在电子设备和车载终端的显示状态不相同的情况下,电子设备,还用于响应于投屏请求,确定待投屏的第一应用的第一界面。电子设备,还用于划分第一界面的功能区域,确定第一界面信息。According to the fifth aspect, or any implementation of the fifth aspect above, when the display states of the electronic device and the vehicle-mounted terminal are different, the electronic device is further used to determine the first interface of the first application to be projected in response to the screen projection request. The electronic device is also used to divide the functional area of the first interface and determine the first interface information.
根据第五方面,或者以上第五方面的任意一种实现方式,电子设备,还用于根据第一界面信息、显示屏尺寸信息、以及应用布局信息,重布局划分后的功能区域对应的第一显示内容和应用布局信息对应的第二显示内容,生成第二界面信息。电子设备,还用于根据第二界面信息,生成投屏数据。According to the fifth aspect, or any implementation of the fifth aspect above, the electronic device is further used to re-layout the first display content corresponding to the divided functional area and the second display content corresponding to the application layout information according to the first interface information, the display screen size information, and the application layout information, and generate the second interface information. The electronic device is also used to generate the projection data according to the second interface information.
根据第五方面,或者以上第五方面的任意一种实现方式,在电子设备和车载终端的显示状态相同的情况下,电子设备,还用于根据显示屏尺寸信息和应用布局信息,确定用于投屏显示第一应用的第一显示区域,第一显示区域为用于显示应用布局信息对应的第二显示内容以外的显示区域。电子设备,还用于根据第一显示区域,放大或缩小第一界面信息对应的第一应用的第一界面,生成第三界面信息。电子设备,还用于根据第三界面信息和应用布局信息,确定投屏数据。According to the fifth aspect, or any implementation of the fifth aspect above, when the display status of the electronic device and the vehicle-mounted terminal are the same, the electronic device is also used to determine the first display area for projecting and displaying the first application based on the display screen size information and the application layout information, and the first display area is the display area other than the second display content corresponding to the application layout information. The electronic device is also used to enlarge or reduce the first interface of the first application corresponding to the first interface information based on the first display area to generate third interface information. The electronic device is also used to determine the projection data based on the third interface information and the application layout information.
第五方面以及第五方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the fifth aspect and any one of the implementation methods of the fifth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第六方面,本申请实施例提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的投屏显示方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, an embodiment of the present application provides an electronic device having the function of implementing the screen projection display method described in the first aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第六方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the sixth aspect and any one of the implementation methods of the sixth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第七方面,本申请实施例提供一种车载终端,该车载终端具有实现如上述第二方面及其中任一种可能的实现方式中所述的投屏显示方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a seventh aspect, an embodiment of the present application provides a vehicle-mounted terminal, which has the function of implementing the screen projection display method described in the second aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第七方面以及第七方面中任意一种实现方式所对应的技术效果,可参见上述第二方面及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the seventh aspect and any one of the implementation methods of the seventh aspect can be found in the technical effects corresponding to the above-mentioned second aspect and any one of the implementation methods of the second aspect, and will not be repeated here.
第八方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被电子设备执行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法。In an eighth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.
第八方面以及第八方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the eighth aspect and any one of the implementation methods of the eighth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第九方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被车载终端执行时,使得车载终端执行第二方面或第二方面中任意一种实施方式的方法。In a ninth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by a vehicle-mounted terminal, the vehicle-mounted terminal executes the method of the second aspect or any one of the implementations of the second aspect.
第九方面以及第九方面中任意一种实现方式所对应的技术效果,可参见上述第二方面及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the ninth aspect and any one of the implementation methods of the ninth aspect can be found in the technical effects corresponding to the above-mentioned second aspect and any one of the implementation methods of the second aspect, and will not be repeated here.
第十方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时, 使得电子设备执行第一方面或第一方面中任意一种实施方式的方法。In a tenth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, Enable the electronic device to execute the method of the first aspect or any one of the embodiments of the first aspect.
第十方面以及第十方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the tenth aspect and any one of the implementation methods in the tenth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods in the first aspect, and will not be repeated here.
第十一方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在车载终端上运行时,使得车载终端执行第二方面或第二方面中任意一种实施方式的方法。In the eleventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a vehicle-mounted terminal, the vehicle-mounted terminal executes the method of the second aspect or any one of the implementations of the second aspect.
第十一方面以及第十一方面中任意一种实现方式所对应的技术效果,可参见上述第二方面及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the eleventh aspect and any one of the implementation methods in the eleventh aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any one of the implementation methods in the second aspect, and will not be repeated here.
第十二方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法;或者,理电路被配置为执行第二方面或第二方面中任意一种实施方式的方法。In the twelfth aspect, an embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method of the first aspect or any one of the embodiments of the first aspect; or, the processing circuit is configured to execute the method of the second aspect or any one of the embodiments of the second aspect.
第十二方面以及第十二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the twelfth aspect and any one of the implementation methods of the twelfth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
第十三方面,本申请实施例提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法;或者,至少一个处理器执行第二方面或第二方面中任意一种实施方式的方法。In the thirteenth aspect, an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect; or, the at least one processor executes the method of the second aspect or any one of the embodiments of the second aspect.
第十三方面以及第十三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。The technical effects corresponding to the thirteenth aspect and any one of the implementation methods of the thirteenth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种投屏显示方法应用的通信系统的示意图;FIG1 is a schematic diagram of a communication system to which a screen projection display method is applied according to an embodiment of the present application;
图2为本申请实施例提供的电子设备的硬件结构示意图;FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
图3A为本申请实施例提供的车内场景示意图;FIG3A is a schematic diagram of an in-car scene provided in an embodiment of the present application;
图3B为本申请实施例提供的车载终端显示屏示意图;FIG3B is a schematic diagram of a display screen of a vehicle terminal provided in an embodiment of the present application;
图4为本申请实施例提供的投屏显示方法流程图示意图一;FIG4 is a schematic diagram of a flow chart of a screen projection display method provided in an embodiment of the present application;
图5为本申请实施例提供的投屏场景示意图一;FIG5 is a schematic diagram of a screen projection scenario provided in an embodiment of the present application;
图6为本申请实施例提供的投屏场景示意图二;FIG6 is a second schematic diagram of a screen projection scenario provided in an embodiment of the present application;
图7为本申请实施例提供的投屏显示方法流程图示意图二;FIG. 7 is a second schematic flow chart of the screen projection display method provided in an embodiment of the present application;
图8为本申请实施例提供的投屏场景示意图三;FIG8 is a third schematic diagram of a screen projection scenario provided in an embodiment of the present application;
图9为本申请实施例提供的投屏场景示意图四;FIG9 is a fourth schematic diagram of a screen projection scenario provided in an embodiment of the present application;
图10为本申请实施例提供的电子设备的结构示意图;FIG10 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
图11为本申请实施例提供的车载终端的结构示意图。FIG. 11 is a schematic diagram of the structure of the vehicle-mounted terminal provided in an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。The technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请 实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments should not be interpreted as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific way.
在一些场景中,电子设备(如手机、平板等)可与车载终端建立投屏连接,将应用投屏至车载终端显示,以丰富车载终端的功能,满足用户的使用需求。In some scenarios, electronic devices (such as mobile phones, tablets, etc.) can establish a screen projection connection with the vehicle-mounted terminal and project the application to the vehicle-mounted terminal display to enrich the functions of the vehicle-mounted terminal and meet the user's usage needs.
比如,用户通过手机播放音乐的过程中,进入车内。响应于用户操作,手机与车载终端建立投屏连接,车载终端可继续播放手机未播放完的音乐。For example, when a user is playing music on a mobile phone, he or she enters the car. In response to the user's operation, the mobile phone establishes a screen projection connection with the in-vehicle terminal, and the in-vehicle terminal can continue to play the music that the mobile phone has not finished playing.
又比如,在停车间隙,车载终端接收到手机发送的投屏数据,根据投屏数据,显示手机投屏的视频,这样用户能够在车载终端上获得更好的视频播放体验。For example, during parking breaks, the vehicle-mounted terminal receives the projection data sent by the mobile phone and displays the projected video based on the projection data, so that users can get a better video playback experience on the vehicle-mounted terminal.
一些示例中,电子设备和车载终端之间建立投屏连接。车载终端可通过投屏连接,接收电子设备发送的投屏数据,该投屏数据为电子设备中的应用的数据。车载终端根据投屏数据,显示相应的应用界面。这样,用户可通过车载终端操作电子设备和车载终端,满足用户的使用需求。其中,投屏过程例如包括推送投屏和镜像投屏。推送投屏过程中,车载终端和电子设备的显示内容可不同步。镜像投屏过程中,车载终端和电子设备的显示内容同步。In some examples, a screen projection connection is established between the electronic device and the vehicle-mounted terminal. The vehicle-mounted terminal can receive the screen projection data sent by the electronic device through the screen projection connection, and the screen projection data is the data of the application in the electronic device. The vehicle-mounted terminal displays the corresponding application interface based on the screen projection data. In this way, the user can operate the electronic device and the vehicle-mounted terminal through the vehicle-mounted terminal to meet the user's usage needs. Among them, the screen projection process includes, for example, push screen projection and mirror screen projection. During the push screen projection process, the display content of the vehicle-mounted terminal and the electronic device may not be synchronized. During the mirror screen projection process, the display content of the vehicle-mounted terminal and the electronic device is synchronized.
另一些示例中,车载终端与电子设备建立连接后,可获取到电子设备的应用列表信息。之后,车载终端可根据应用列表信息,显示相应的应用图标。响应于用户对应用图标的操作,车载终端可向电子设备请求获取该应用图标对应的应用数据。之后,车载终端根据获取到的应用数据,显示相应的应用界面。In other examples, after the vehicle terminal establishes a connection with the electronic device, the application list information of the electronic device can be obtained. Then, the vehicle terminal can display the corresponding application icon according to the application list information. In response to the user's operation on the application icon, the vehicle terminal can request the electronic device to obtain the application data corresponding to the application icon. Then, the vehicle terminal displays the corresponding application interface according to the obtained application data.
在上述示例的投屏场景中,应用开发者需要开发适配于车载终端的应用。否则,无法实现投屏。或者,投屏效果较差,只能实现小窗投屏,无法充分体现车载终端显示屏的大屏显示效果。In the above example screen projection scenario, application developers need to develop applications that are suitable for vehicle terminals. Otherwise, screen projection cannot be achieved. Or, the screen projection effect is poor, and only small window projection can be achieved, which cannot fully reflect the large-screen display effect of the vehicle terminal display.
可选的,在应用开发过程中,开发者基于预设显示模板(如功能提供的应用显示模板等),根据不同型号车载终端的需求,如显示屏尺寸、系统要求等,开发适配于不同车载终端的应用类型。这样,后续用户才能够通过电子设备将应用内容投屏至车载终端显示。Optionally, during the application development process, the developer can create a display template based on a preset display template (such as Functions, etc.), develop application types adapted to different vehicle terminals according to the needs of different vehicle terminals, such as display screen size, system requirements, etc. In this way, subsequent users can project application content to the vehicle terminal display through electronic devices.
但是,目前车载终端型号较多,同一应用在开发过程中,就需要开发多种类型的应用,以适配不同型号的车载终端,应用开发难度较高。导致可投屏应用数量有限,车载终端应用生态不够完善,不能满足用户对于车载终端的使用需求。However, there are many types of in-vehicle terminals at present. During the development process of the same application, it is necessary to develop multiple types of applications to adapt to different types of in-vehicle terminals, which makes application development difficult. As a result, the number of screen-casting applications is limited, and the in-vehicle terminal application ecosystem is not perfect, which cannot meet the user's demand for in-vehicle terminals.
由此,本申请实施例提供一种投屏显示方法,电子设备在投屏过程中,能够根据车载终端的显示信息,如车载终端显示屏尺寸、桌面显示内容等,自适应的调整应用投屏内容,以实现投屏。这样,使得电子设备应用具有更好的普适性,在保证投屏效果的同时,降低应用开发难度。Therefore, the embodiment of the present application provides a screen projection display method, during the screen projection process, the electronic device can adaptively adjust the application screen projection content according to the display information of the vehicle terminal, such as the size of the vehicle terminal display screen, the desktop display content, etc., to achieve screen projection. In this way, the electronic device application has better universality, while ensuring the screen projection effect, reducing the difficulty of application development.
图1为本申请实施例提供的投屏显示方法应用的通信系统的示意图。如图1所示,该通信系统包括电子设备100和车载终端200。Fig. 1 is a schematic diagram of a communication system for the screen projection display method provided in an embodiment of the present application. As shown in Fig. 1, the communication system includes an electronic device 100 and a vehicle terminal 200.
可选的,电子设备100例如可以为手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴设备、人工智能(artificial intelligence,AI)设备等具有投屏功能的终端设备,电子设备100安装的操作系统包括但不限于或者其它操作系统。本申请对电子设备100的具体类型、所安装的操作系统均不作限制。Optionally, the electronic device 100 may be, for example, a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, an artificial intelligence (AI) device, or other terminal device with a screen projection function. The operating system installed in the electronic device 100 includes but is not limited to: Or other operating systems. This application does not limit the specific type of the electronic device 100 or the installed operating system.
可选的,车载终端200可以为车辆、汽车、车机等终端。车载终端200安装的操作系统包括但不限于或者其它操作系统。车载终端200也可不安装操作系统。本申请对车载终端200的具体类型、是否安装操作系统、所安装的操作系统均不作限制。Optionally, the vehicle-mounted terminal 200 may be a vehicle, automobile, vehicle computer, or other terminal. The operating system installed in the vehicle-mounted terminal 200 includes but is not limited to Or other operating systems. The vehicle terminal 200 may not be installed with an operating system. This application does not limit the specific type of the vehicle terminal 200, whether an operating system is installed, and the installed operating system.
在一些实施例中,电子设备100和车载终端200之间建立有通信连接,该通信连接可以为有线连接,也可以为无线通信连接。可选的,电子设备和车载终端200可通过通用串行总线(universal serial bus,USB)接口建立有线连接。建立无线通信连接的无线通信技术包括但不限于以下的至少一种:蓝牙(bluetooth,BT)(例如,传统蓝牙或者低功耗(bluetooth low energy,BLE)蓝牙),无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),近距离无线通信(near field communication,NFC),紫蜂(Zigbee),调频(frequency modulation,FM),红外(infrared,IR),超宽带(ultra-wideband,UWB)等。 In some embodiments, a communication connection is established between the electronic device 100 and the vehicle terminal 200, and the communication connection can be a wired connection or a wireless communication connection. Optionally, the electronic device and the vehicle terminal 200 can establish a wired connection through a universal serial bus (USB) interface. The wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: Bluetooth (BT) (for example, traditional Bluetooth or low energy (BLE) Bluetooth), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), ultra-wideband (UWB), etc.
一些示例中,电子设备100和车载终端200建立通信连接后,可通过该通信连接传输投屏数据,以实现投屏。In some examples, after the electronic device 100 and the vehicle-mounted terminal 200 establish a communication connection, screen projection data can be transmitted through the communication connection to achieve screen projection.
图2为本申请实施例提供的电子设备100的硬件结构示意图。FIG. 2 is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.
如图2所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。As shown in Figure 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器,使处理器110与触摸传感器通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor through the I2C interface, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the electronic device 100.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模 块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it can also charge the battery 142 through the power management module 130. Block 141 provides power to the electronic device.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示 屏(liquid crystal display,LCD),例如采用有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-led,Micro-led,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等生产制造。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display. The display 194 may be a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-LED, a Micro-oled, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。电子设备100可以通过音频模块170,例如音乐播放,录音等。音频模块170可以包括扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The electronic device 100 can use the audio module 170, such as music playing, recording, etc. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备100的表面,与显示屏194所处的位置不同。A touch sensor is also called a "touch control device". The touch sensor can be arranged on the display screen 194. The touch sensor and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting or removing the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
在一些实施例中,电子设备100可通过无线通信模块160或者USB接口130与车载终端200 建立通信连接。之后,电子设备100可获取到车载终端200的显示屏尺寸信息。电子设备100的处理器110可根据车载终端200的显示屏尺寸信息,自适应的调整待投屏界面的显示,确定投屏数据,将投屏数据通过无线通信模块160发送到车载终端200。车载终端200在接收到投屏数据后,也可根据投屏数据,在显示屏上显示相应的应用界面。In some embodiments, the electronic device 100 can communicate with the vehicle terminal 200 through the wireless communication module 160 or the USB interface 130. Establish a communication connection. After that, the electronic device 100 can obtain the display screen size information of the vehicle terminal 200. The processor 110 of the electronic device 100 can adaptively adjust the display of the screen interface to be projected according to the display screen size information of the vehicle terminal 200, determine the projection data, and send the projection data to the vehicle terminal 200 through the wireless communication module 160. After receiving the projection data, the vehicle terminal 200 can also display the corresponding application interface on the display screen according to the projection data.
可选的,本申请实施例中的电子设备100和车载终端200可以通过不同的设备实现,不同的设备可以具有相同、相似或具有一定差异性的硬件结构。比如,车载终端也可具有如图2所示的硬件结构。Optionally, the electronic device 100 and the vehicle terminal 200 in the embodiment of the present application can be implemented by different devices, and the different devices can have the same, similar or somewhat different hardware structures. For example, the vehicle terminal can also have the hardware structure shown in FIG.
可以理解的是,车载终端200可以包括比图2所示的硬件结构更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。比如,车载终端的硬件结构可以不包括移动通信模块150等。It is understandable that the vehicle terminal 200 may include more or fewer components than the hardware structure shown in Figure 2, or combine some components, or split some components, or arrange the components differently. For example, the hardware structure of the vehicle terminal may not include the mobile communication module 150, etc.
可选的,车载终端200中可以配置有一个或多个显示屏,如图3A所示,车载终端200包括中控屏21,位于驾驶员前面的显示屏22,位于副驾驶座位前面的显示屏23,或者还可以包括位于后排乘客位置前面的显示屏等。Optionally, the vehicle terminal 200 may be configured with one or more display screens. As shown in FIG3A , the vehicle terminal 200 includes a central control screen 21, a display screen 22 in front of the driver, a display screen 23 in front of the co-pilot seat, or may also include a display screen in front of the rear passenger seat, etc.
一些示例中,车载终端200的不同显示屏可以为触摸屏或者非触摸屏。其中,触摸屏可以接收用户在显示屏上的触摸操作。此外,触摸屏和非触摸屏还可接收用户对车载终端中按键的操作。In some examples, the different display screens of the vehicle-mounted terminal 200 may be touch screens or non-touch screens. The touch screen may receive a user's touch operation on the display screen. In addition, the touch screen and non-touch screen may also receive a user's operation on a button in the vehicle-mounted terminal.
比如,如图3A所示,车载终端200方向盘23上配置有方控键231,用户可通过方控键231控制车载终端200的显示屏的显示。如切换播放下一首音乐等,显示屏可显示相应的界面。For example, as shown in FIG3A , the steering wheel 23 of the vehicle terminal 200 is provided with a square control key 231, and the user can control the display of the display screen of the vehicle terminal 200 through the square control key 231. For example, to switch to play the next music, the display screen can display the corresponding interface.
又比如,如图3B所示,显示屏24为非触控屏。用户可通过旋钮241、按键242,控制显示屏24上的显示。For another example, as shown in FIG3B , the display screen 24 is a non-touch screen. The user can control the display on the display screen 24 through the knob 241 and the button 242 .
一些示例中,电子设备100可获取到车载终端200待投屏显示的显示屏的尺寸、是否为触控屏、按键或旋钮控制等的信息。In some examples, the electronic device 100 can obtain information such as the size of the display screen of the vehicle terminal 200 to be projected, whether it is a touch screen, button or knob control, etc.
以下以电子设备100为电子设备、车载终端200为车载终端为例,对本申请实施例提供的投屏显示方法进行详细介绍。The following takes the electronic device 100 as an electronic device and the vehicle-mounted terminal 200 as a vehicle-mounted terminal as an example to introduce the screen projection display method provided in the embodiment of the present application in detail.
示例性的,图4为本申请实施例提供的一种投屏显示方法的流程示意图。如图4所示,该方法包括如下步骤。Exemplarily, Fig. 4 is a flow chart of a screen projection display method provided in an embodiment of the present application. As shown in Fig. 4, the method includes the following steps.
S401、电子设备和车载终端建立通信连接。S401: The electronic device and the vehicle-mounted terminal establish a communication connection.
其中,通信连接可以为有线连接或无线连接,该通信连接可用于投屏。其中,电子设备和车载终端配置有投屏功能,且已开启投屏功能,允许投屏。The communication connection may be a wired connection or a wireless connection, and the communication connection may be used for screen projection. The electronic device and the vehicle-mounted terminal are configured with a screen projection function, and the screen projection function is turned on to allow screen projection.
比如,电子设备和车载终端通过蓝牙、车载Wi-Fi网络、USB连线等方式,建立投屏连接。For example, electronic devices and vehicle-mounted terminals establish screen projection connections through Bluetooth, vehicle-mounted Wi-Fi networks, USB connections, etc.
S402、车载终端向电子设备发送车载终端信息。S402: The vehicle-mounted terminal sends vehicle-mounted terminal information to the electronic device.
其中,车载终端信息例如包括车载终端的显示屏尺寸信息、显示屏控制方法、应用布局信息、应用信息、硬件信息中的一项或几项。The vehicle-mounted terminal information includes, for example, one or more of the display screen size information, display screen control method, application layout information, application information, and hardware information of the vehicle-mounted terminal.
其中,显示屏尺寸信息用于表示车载终端的显示屏对应的显示区域的尺寸,如长度、宽度等信息,其中显示区域用于车载终端的显示。显示屏的控制方法用于表示显示屏为触摸屏或非触摸屏、按键或旋钮控制的信息等。应用布局信息用于表示车载终端显示屏的显示。比如,车载终端显示桌面,桌面上的显示内容包括车载终端的功能图标(如座椅调节图图标、空调控制图标等),还可以包括车载终端应用的图标。那么,应用布局信息可包括桌面布局信息,如包括显示的多种图标信息、图标的位置信息等。又比如,车载终端显示应用界面,应用布局信息包括该显示的应用界面的布局信息。应用布局信息用于后续电子设备对待投屏应用的界面显示内容和车载终端的显示内容进行重布局。应用信息用于表示车载终端中安装的应用的信息,如应用使用信息等,后续电子设备根据该应用使用信息,可确定车载终端的常用应用。硬件信息例如包括车载终端安装的麦克风(mic)、喇叭、扬声器、摄像头等硬件装置的信息。Among them, the display screen size information is used to indicate the size of the display area corresponding to the display screen of the vehicle terminal, such as length, width and other information, wherein the display area is used for the display of the vehicle terminal. The control method of the display screen is used to indicate whether the display screen is a touch screen or a non-touch screen, a button or a knob control information, etc. The application layout information is used to indicate the display of the vehicle terminal display screen. For example, the vehicle terminal displays the desktop, and the display content on the desktop includes the function icons of the vehicle terminal (such as seat adjustment map icons, air conditioning control icons, etc.), and may also include icons of vehicle terminal applications. Then, the application layout information may include desktop layout information, such as information including multiple icons displayed, icon location information, etc. For another example, the vehicle terminal displays the application interface, and the application layout information includes the layout information of the displayed application interface. The application layout information is used for subsequent electronic devices to re-layout the interface display content of the application to be projected and the display content of the vehicle terminal. The application information is used to indicate the information of the applications installed in the vehicle terminal, such as application usage information, etc., and the subsequent electronic devices can determine the commonly used applications of the vehicle terminal based on the application usage information. Hardware information, for example, includes information on hardware devices such as microphones (mic), speakers, loudspeakers, cameras, etc. installed in the vehicle terminal.
示例性的,如图5所示,电子设备100和车载终端200建立通信连接。其中,如附图标记51所示,车载终端显示屏桌面上显示有部分图标,应用布局信息包括这部分图标的显示信息。其中,该图标可以包括固定显示于桌面的图标,如导航图标、座椅调节图标、空调控制图标等功能图标。或者,该图标也可包括车载终端常用应用的图标。Exemplarily, as shown in FIG5 , the electronic device 100 and the vehicle terminal 200 establish a communication connection. As shown in the reference numeral 51 , some icons are displayed on the desktop of the vehicle terminal display screen, and the application layout information includes the display information of these icons. The icons may include icons that are fixedly displayed on the desktop, such as navigation icons, seat adjustment icons, air conditioning control icons and other functional icons. Alternatively, the icons may also include icons of commonly used applications of the vehicle terminal.
应理解,固定显示于桌面上的图标用于表示这部分图标需要显示在桌面上,便于用户使用车 载终端的部分功能,但并不限制图标在桌面上的显示位置。固定图标可根据用户操作移动显示位置、或者根据投屏数据移动显示位置。It should be understood that the icons that are fixedly displayed on the desktop are used to indicate that these icons need to be displayed on the desktop to facilitate users to use the car. The icon can be moved according to the user's operation or according to the projection data.
在一些实施例中,在车载终端配置有多个显示屏的情况下,车载终端信息可对应于待投屏的显示屏,或者对应于车载终端的全部显示屏。后续,电子设备在投屏前,可先确定待投屏的显示屏对应的车载终端信息,以生成相应的投屏数据,实现投屏。In some embodiments, when the vehicle terminal is equipped with multiple display screens, the vehicle terminal information may correspond to the display screen to be projected, or to all the display screens of the vehicle terminal. Subsequently, before projecting the screen, the electronic device may first determine the vehicle terminal information corresponding to the display screen to be projected, so as to generate corresponding projection data and realize the projection.
在一些实施例中,车载终端和电子设备建立通信连接后,可将确定的车载终端信息发送至电子设备。相应的,电子设备接收车载终端发送的车载终端信息。In some embodiments, after the vehicle-mounted terminal and the electronic device establish a communication connection, the determined vehicle-mounted terminal information may be sent to the electronic device. Correspondingly, the electronic device receives the vehicle-mounted terminal information sent by the vehicle-mounted terminal.
在一些实施例中,步骤S402为可选步骤,电子设备在与车载终端首次建立通信连接,并获取到车载终端信息后,可保存该车载终端信息。之后,电子设备在与车载终端建立通信连接确定需要投屏后,可直接根据保存的车载终端信息,确定相应的投屏数据,而不必再重新获取车载终端信息。In some embodiments, step S402 is an optional step. After the electronic device establishes a communication connection with the vehicle terminal for the first time and obtains the vehicle terminal information, the vehicle terminal information can be saved. After that, after the electronic device establishes a communication connection with the vehicle terminal and determines that screen projection is required, the corresponding screen projection data can be directly determined based on the saved vehicle terminal information without having to obtain the vehicle terminal information again.
一些示例中,车载终端信息可能发生变化,车载终端在与电子设备建立通信连接后,可向电子设备发送更新后的车载终端信息。比如,车载终端信息中包括车载终端的应用布局信息,响应于用户操作,应用布局信息发生变化,如新增新下载应用的图标等。那么,车载终端可更新车载终端信息,将更新后的车载终端信息发送到电子设备。In some examples, the vehicle terminal information may change. After the vehicle terminal establishes a communication connection with the electronic device, the vehicle terminal may send the updated vehicle terminal information to the electronic device. For example, the vehicle terminal information includes the application layout information of the vehicle terminal. In response to user operations, the application layout information changes, such as adding an icon of a newly downloaded application. Then, the vehicle terminal may update the vehicle terminal information and send the updated vehicle terminal information to the electronic device.
S403、电子设备接收投屏请求。S403: The electronic device receives a screen projection request.
其中,该投屏请求可以为电子设备接收到用户的投屏操作后,确定的投屏请求。或者,该投屏请求也可以为电子设备接收到的车载终端发送的投屏请求。The screen projection request may be a screen projection request determined by the electronic device after receiving the screen projection operation of the user. Alternatively, the screen projection request may also be a screen projection request sent by the vehicle-mounted terminal and received by the electronic device.
在一些实施例中,电子设备检测到投屏操作,或者接收到车载终端发送的投屏请求,确定需要将应用投屏至车载终端显示。可选的,电子设备中安装有待投屏的应用,车载终端中可安装或未安装待投屏的应用。其中,待投屏的应用为电子设备中安装的第一应用,待投屏的第一应用的界面为第一应用的第一界面。In some embodiments, the electronic device detects a screen projection operation, or receives a screen projection request sent by the vehicle terminal, and determines that the application needs to be projected to the vehicle terminal for display. Optionally, the electronic device has the application to be projected installed, and the vehicle terminal may or may not have the application to be projected installed. The application to be projected is the first application installed in the electronic device, and the interface of the first application to be projected is the first interface of the first application.
比如,电子设备在显示第一应用的应用界面的过程中,检测到用户点击投屏控件的操作,可确定用户指示将当前显示的应用界面投屏至车载终端显示。在应用投屏之前,车载终端显示桌面或者其他应用,该应用为车载终端应用或投屏应用。For example, when the electronic device is displaying the application interface of the first application, if it detects that the user clicks the screen projection control, it can determine that the user instructs to project the currently displayed application interface to the vehicle terminal for display. Before the application is projected, the vehicle terminal displays the desktop or other applications, which are vehicle terminal applications or projection applications.
又比如,车载终端在与电子设备建立通信连接后,可获取到电子设备中安装的应用的信息,根据该信息可显示相应的应用图标。车载终端检测到用户对应用图标的操作,可向电子设备发送投屏请求,用于请求电子设备投屏该应用图标对应的第一应用,进而确定需要向车载终端投屏显示第一应用。For another example, after establishing a communication connection with an electronic device, the vehicle terminal can obtain information about applications installed in the electronic device, and display the corresponding application icon based on the information. When the vehicle terminal detects the user's operation on the application icon, it can send a screen projection request to the electronic device to request the electronic device to project the first application corresponding to the application icon, and then determine that the first application needs to be projected and displayed on the vehicle terminal.
可选的,第一应用例如为视频应用、音乐应用、导航应用等应用。Optionally, the first application is, for example, a video application, a music application, a navigation application, or the like.
在一些实施例中,步骤S403为可选步骤,电子设备和车载终端建立通信连接后,直接触发电子设备向车载终端投屏,即触发执行下述步骤S404。如电子设备确定与车载终端建立通信连接后,可直接将正在运行的应用投屏直车载终端显示。In some embodiments, step S403 is an optional step. After the electronic device and the vehicle terminal establish a communication connection, the electronic device is directly triggered to project the screen to the vehicle terminal, that is, the following step S404 is triggered. If the electronic device determines that a communication connection is established with the vehicle terminal, the running application can be directly projected to the vehicle terminal for display.
在一些实施例中,本申请不限制步骤S402和步骤S403的执行顺序。比如,电子设备也可在确定用户指示投屏后,再向车载终端请求获取车载终端信息,即先执行步骤S403,再执行步骤S402。In some embodiments, the present application does not limit the execution order of step S402 and step S403. For example, after determining that the user instructs to project the screen, the electronic device may request the vehicle terminal to obtain the vehicle terminal information, that is, first execute step S403 and then execute step S402.
S404、电子设备根据车载终端信息和应用界面信息,确定投屏数据。S404: The electronic device determines the projection data according to the vehicle terminal information and the application interface information.
在一些实施例中,电子设备在确定待向车载终端投屏应用后,可根据车载终端信息和待投屏应用的应用界面信息,确定相应的投屏数据。In some embodiments, after determining the application to be projected to the vehicle-mounted terminal, the electronic device can determine the corresponding projection data based on the vehicle-mounted terminal information and the application interface information of the application to be projected.
比如,电子设备和车载终端显示屏的大小、横纵比、分辨率等不统一,因此在投屏过程中,电子设备需要重新确定匹配车载终端显示屏的投屏数据。比如,电子设备可根据车载终端信息中包括的车载终端的显示尺寸信息,调整待投屏应用界面的显示尺寸,以确定相应的投屏数据。For example, the size, aspect ratio, and resolution of the electronic device and the vehicle terminal display screen are not uniform, so during the screen projection process, the electronic device needs to re-determine the projection data that matches the vehicle terminal display screen. For example, the electronic device can adjust the display size of the application interface to be projected based on the display size information of the vehicle terminal included in the vehicle terminal information to determine the corresponding projection data.
在一些实施例中,车载终端显示屏可以为横屏或竖屏。如图5所示,车载终端200显示屏的长边为底边,短边为侧边,车载终端200显示屏横屏显示。如图6所示,车载终端200的显示屏的长边为侧边,短边为底边,车载终端200显示屏竖屏显示。同样的,电子设备显示屏也可分为横屏和竖屏。若电子设备显示屏和车载终端显示屏均为横屏或均为竖屏,那么电子设备可直接将应用显示界面进行缩放处理,以满足车载终端显示屏的显示需求。若电子设备显示屏为竖屏,车载终端显示屏为横屏,或者,电子设备显示屏为横屏,车载终端显示屏为竖屏。那么,电子设备 需要对应用界面上的显示内容重新布局,以实现在车载终端显示屏上更好的显示效果。In some embodiments, the display screen of the vehicle terminal can be horizontal or vertical. As shown in Figure 5, the long side of the display screen of the vehicle terminal 200 is the bottom side, and the short side is the side side, and the display screen of the vehicle terminal 200 is displayed in horizontal mode. As shown in Figure 6, the long side of the display screen of the vehicle terminal 200 is the side side, and the short side is the bottom side, and the display screen of the vehicle terminal 200 is displayed in vertical mode. Similarly, the display screen of the electronic device can also be divided into horizontal and vertical screens. If the display screen of the electronic device and the display screen of the vehicle terminal are both horizontal or both vertical, then the electronic device can directly scale the application display interface to meet the display requirements of the display screen of the vehicle terminal. If the display screen of the electronic device is vertical and the display screen of the vehicle terminal is horizontal, or the display screen of the electronic device is horizontal and the display screen of the vehicle terminal is vertical. Then, the electronic device The display content on the application interface needs to be rearranged to achieve better display effects on the vehicle terminal display screen.
因此,电子设备在确定投屏数据的过程中,需要确定是否需要对应用界面显示内容进行重布局。Therefore, when determining the projection data, the electronic device needs to determine whether it is necessary to rearrange the application interface display content.
可选的,如图7所示,步骤S404可包括步骤S701-步骤S705。Optionally, as shown in FIG. 7 , step S404 may include steps S701 to S705 .
S701、电子设备确定电子设备和车载终端的显示状态不相同。若是,执行步骤S702;若否,执行步骤S705。S701: The electronic device determines that the display states of the electronic device and the vehicle-mounted terminal are different. If yes, execute step S702; if not, execute step S705.
在一些实施例中,电子设备可通过显示屏的横纵比(即底边与侧边长度的比值),确定电子设备和车载终端是否为同一显示状态,该显示状态包括横屏显示、竖屏显示。In some embodiments, the electronic device can determine whether the electronic device and the vehicle-mounted terminal are in the same display state by the aspect ratio of the display screen (i.e., the ratio of the bottom edge to the side edge length), and the display state includes horizontal screen display and vertical screen display.
比如,电子设备确定电子设备显示屏的横纵比,以及根据获取到的车载终端信息确定车载终端显示屏的横纵比。之后,电子设备确定两个横纵比之间的差值绝对值。若该差值绝对值小于或等于预设阈值,那么,电子设备可确定电子设备和车载终端为同一显示状态,如均为横屏显示,或均为竖屏显示。若该差值绝对值大于预设阈值,那么,电子设备可确定电子设备和车载终端不是同一显示状态。For example, the electronic device determines the aspect ratio of the electronic device display screen, and determines the aspect ratio of the vehicle terminal display screen based on the acquired vehicle terminal information. Afterwards, the electronic device determines the absolute value of the difference between the two aspect ratios. If the absolute value of the difference is less than or equal to a preset threshold, then the electronic device can determine that the electronic device and the vehicle terminal are in the same display state, such as both are displayed in horizontal screens, or both are displayed in vertical screens. If the absolute value of the difference is greater than the preset threshold, then the electronic device can determine that the electronic device and the vehicle terminal are not in the same display state.
一些示例中,车载终端的显示屏可旋转,切换横屏显示或竖屏显示。那么,电子设备在确定投屏数据的过程中,需要确定车载终端当前的显示状态为横屏显示或竖屏显示。之后,电子设备可确定电子设备的显示状态与车载终端当前的显示状态是否相同。可选的,车载终端发送的显示屏尺寸信息中指示的横向尺寸和纵向尺寸对应于车载终端当前显示状态下的横向尺寸和纵向尺寸。如车载终端旋转显示屏后,车载终端将原横向尺寸和原纵向尺寸切换后,确定新的横向尺寸(即原纵向尺寸)和纵向尺寸(即原横向尺寸),以生成新的显示屏尺寸信息,并发送至电子设备。In some examples, the display screen of the vehicle terminal can be rotated to switch between horizontal and vertical display. Then, in the process of determining the projection data, the electronic device needs to determine whether the current display state of the vehicle terminal is horizontal or vertical display. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle terminal. Optionally, the horizontal dimension and the vertical dimension indicated in the display screen size information sent by the vehicle terminal correspond to the horizontal dimension and the vertical dimension of the vehicle terminal in the current display state. For example, after the vehicle terminal rotates the display screen, the vehicle terminal switches the original horizontal dimension and the original vertical dimension, determines the new horizontal dimension (ie, the original vertical dimension) and the vertical dimension (ie, the original horizontal dimension) to generate new display screen size information and send it to the electronic device.
一些示例中,电子设备也可通过旋转显示屏的方式,切换显示状态。那么,电子设备在启动应用确定投屏数据的过程中,需要确定电子设备当前的显示状态为横屏显示或竖屏显示。同样的,电子设备确定当前显示过程中显示区域的横向尺寸和纵向尺寸,以确定横纵比。之后,电子设备可确定电子设备的显示状态与车载终端当前的显示状态是否相同。或者,电子设备根据应用后台数据,确定对应的电子设备显示状态为横屏显示或竖屏显示。之后,电子设备可确定电子设备的显示状态与车载终端当前的显示状态是否相同。In some examples, the electronic device can also switch the display state by rotating the display screen. Then, when the electronic device starts the application to determine the projection data, it needs to determine whether the current display state of the electronic device is horizontal or vertical display. Similarly, the electronic device determines the horizontal and vertical dimensions of the display area during the current display process to determine the aspect ratio. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal. Alternatively, the electronic device determines whether the display state of the corresponding electronic device is horizontal or vertical display based on the application background data. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the current display state of the vehicle-mounted terminal.
又比如,车载终端信息中的显示屏尺寸信息包括用于指示车载终端显示状态的信息。那么,电子设备在获取到车载终端信息后,可直接确定车载终端的显示状态。之后,电子设备可根据电子设备的显示屏尺寸,确定电子设备的显示状态。之后,电子设备可确定电子设备的显示状态与车载终端的显示状态是否相同。For another example, the display screen size information in the vehicle-mounted terminal information includes information for indicating the display state of the vehicle-mounted terminal. Then, after acquiring the vehicle-mounted terminal information, the electronic device can directly determine the display state of the vehicle-mounted terminal. Afterwards, the electronic device can determine the display state of the electronic device according to the display screen size of the electronic device. Afterwards, the electronic device can determine whether the display state of the electronic device is the same as the display state of the vehicle-mounted terminal.
在一些实施例中,电子设备确定电子设备和车载终端的显示状态不相同,可根据车载终端信息,将应用界面显示内容重布局后,生成相应的投屏数据,即执行下述步骤S702-步骤S704。或者,电子设备确定电子设备和车载终端的显示状态相同,可根据车载终端信息,将应用界面显示内容缩放后,生成相应的投屏数据,即执行下述步骤S705。In some embodiments, the electronic device determines that the display states of the electronic device and the vehicle terminal are different, and can re-layout the application interface display content according to the vehicle terminal information, and generate corresponding projection data, that is, execute the following steps S702-S704. Alternatively, the electronic device determines that the display states of the electronic device and the vehicle terminal are the same, and can scale the application interface display content according to the vehicle terminal information, and generate corresponding projection data, that is, execute the following step S705.
S702、电子设备获取应用界面信息。S702: The electronic device obtains application interface information.
在一些实施例中,电子设备可通过控件树识别或AI识别等方式,获取应用待投屏界面的界面信息,如包括布局数据和控件数据。In some embodiments, the electronic device can obtain interface information of the application's screen projection interface, such as layout data and control data, through control tree recognition or AI recognition.
其中,控件数据,包括控件的位置、大小、颜色等数据,电子设备根据控件数据的进行控件的绘制,以显示用户可见的控件。布局数据,用于表示布局格式和布局策略,布局数据中包含多个控件的控件数据以及控件数据的布局信息。The control data includes the position, size, color and other data of the control. The electronic device draws the control according to the control data to display the control visible to the user. The layout data is used to represent the layout format and layout strategy. The layout data includes the control data of multiple controls and the layout information of the control data.
一些示例中,电子设备可获取到当前待投屏界面的描述文件(如XML文件等),或界面截图。之后,电子设备根据描述文件或界面截图,通过控件树识别或AI识别等方式,可识别待投屏界面上的文本、图片、图标等控件,该控件可作为人机交互接口,接收用户对应用的操作。In some examples, the electronic device can obtain a description file (such as an XML file, etc.) of the current screen to be projected, or a screenshot of the screen. Afterwards, the electronic device can identify controls such as text, images, and icons on the screen to be projected based on the description file or the screenshot, through control tree recognition or AI recognition, etc., and the control can be used as a human-computer interaction interface to receive user operations on the application.
此外,电子设备还可对待投屏界面的布局进行结构式划分。比如,电子设备划分待投屏界面上的功能区域,将各个功能区域进行瀑布式结构划分。可选的,功能区域的识别过程例如包括识别待投屏界面包括的制表机(tabulator,TAB)页、搜索栏、横幅(banner)页、网格(grid)栏、标题栏、播放器等。In addition, the electronic device can also structurally divide the layout of the screen to be projected. For example, the electronic device divides the functional areas on the screen to be projected, and divides each functional area into a waterfall structure. Optionally, the identification process of the functional area includes, for example, identifying the tabulator (TAB) page, search bar, banner page, grid bar, title bar, player, etc. included in the screen to be projected.
示例性的,如图5所示,电子设备100(如手机)为竖屏显示,确定车载终端200为横屏显 示。电子设备100确定待投屏应用的应用界面信息。其中,功能区域如包括顶部标签tab页52、搜索栏53、banner页54、grid栏55、grid栏56、底部功能tab页57。不同功能区域中可包括一个或多个控件。For example, as shown in FIG5 , the electronic device 100 (such as a mobile phone) is in a vertical display mode, and the vehicle-mounted terminal 200 is in a horizontal display mode. The electronic device 100 determines the application interface information of the application to be projected. Among them, the functional area includes a top tab page 52, a search bar 53, a banner page 54, a grid bar 55, a grid bar 56, and a bottom function tab page 57. Different functional areas may include one or more controls.
应理解,图5所示界面用于说明待投屏应用的应用界面信息,在投屏过程中,电子设备可不必显示应用界面,电子设备可在应用后台确定投屏数据。可选的,在投屏过程中,电子设备可显示或不显示应用。It should be understood that the interface shown in Figure 5 is used to illustrate the application interface information of the application to be projected. During the projection process, the electronic device does not need to display the application interface, and the electronic device can determine the projection data in the application background. Optionally, during the projection process, the electronic device can display or not display the application.
在一些实施例中,待投屏界面上存在一些非必要信息,如广告信息、非必要标记等,这些非必要信息会对应用界面信息的识别造成干扰。因此,电子设备在获取应用界面信息的过程中,可先剔除非必要信息。In some embodiments, there is some unnecessary information on the screen to be projected, such as advertising information, unnecessary tags, etc., which may interfere with the recognition of the application interface information. Therefore, when the electronic device obtains the application interface information, it can first remove the unnecessary information.
比如,应用界面上显示有广告信息,该广告信息可悬浮在应用界面上显示,也可嵌入在应用界面中显示。电子设备通过控件树识别或AI识别的方式识别应用界面信息的过程中,可能会由于该广告信息的显示位置,造成控件数据、布局数据的识别出现异常,导致最终投屏显示出现异常。For example, if an application interface displays advertising information, the advertising information can be displayed floating on the application interface or embedded in the application interface. When the electronic device identifies the application interface information through control tree recognition or AI recognition, the display position of the advertising information may cause abnormal recognition of control data and layout data, resulting in abnormal final projection display.
可选的,电子设备在获取应用界面信息的过程中,将非必要信息从控件树以及资源文件中剔除。如电子设备最后获取到的应用界面信息不包括非必要信息,那么相应的后续车载终端显示投屏的应用界面上也不包括非必要信息。Optionally, the electronic device removes non-essential information from the control tree and resource files during the process of obtaining the application interface information. If the application interface information finally obtained by the electronic device does not include non-essential information, then the corresponding subsequent application interface displayed on the vehicle terminal will not include non-essential information.
S703、电子设备根据车载终端信息和应用界面信息,重布局应用界面。S703. The electronic device rearranges the application interface according to the vehicle terminal information and the application interface information.
在一些实施例中,电子设备获取到应用界面信息后,可根据车载终端信息重新布局应用界面。In some embodiments, after the electronic device obtains the application interface information, it can rearrange the application interface according to the vehicle terminal information.
一些示例中,电子设备根据车载终端信息(如显示屏尺寸信息)和电子设备的应用界面信息,可划分待投屏界面上的适配界面放置区和车载应用功能放置区。其中,适配界面放置区用于显示投屏的应用界面,车载应用功能放置区用于显示车载终端需要优先显示在桌面上的图标。可选的,待投屏界面上也可只包括适配界面放置区,后续车载终端可全屏显示投屏的应用界面。可选的,车载应用功能放置区可悬浮显示在适配界面放置区上,如车载终端的图标可悬浮显示在投屏应用界面上。如,电子设备根据应用界面信息,匹配显示应用界面信息对应的应用界面在车载终端显示屏上所需占用的显示区域,将该显示区域划分为视频界面放置区,之后将剩余的显示区域划分为车载应用功能放置区。In some examples, the electronic device can divide the adaptation interface placement area and the vehicle-mounted application function placement area on the screen to be projected according to the vehicle-mounted terminal information (such as display screen size information) and the application interface information of the electronic device. Among them, the adaptation interface placement area is used to display the application interface of the projection screen, and the vehicle-mounted application function placement area is used to display the icons that the vehicle-mounted terminal needs to display on the desktop first. Optionally, the screen to be projected may also only include the adaptation interface placement area, and the subsequent vehicle-mounted terminal can display the projected application interface in full screen. Optionally, the vehicle-mounted application function placement area can be displayed in a floating manner on the adaptation interface placement area, such as the icon of the vehicle-mounted terminal can be displayed in a floating manner on the projection application interface. For example, the electronic device matches the display area required to be occupied by the application interface corresponding to the display application interface information on the vehicle terminal display screen according to the application interface information, divides the display area into the video interface placement area, and then divides the remaining display area into the vehicle-mounted application function placement area.
比如,如图5所示,电子设备100根据车载终端200的车载终端信息中的应用布局信息,确定车载终端需要优先显示在桌面上的图标包括如附图标记51所示的虚线框内的固定图标。电子设备可根据获取到的应用界面信息和显示屏尺寸信息,确定是否需要调整这些固定图标的显示区域。如不需要调整,如图5所示,电子设备确定待投屏界面包括适配界面放置区58和车载应用功能放置区51。如需要调整,电子设备可调整车载终端的固定图标的显示位置,以实现更好的应用投屏效果。For example, as shown in Figure 5, the electronic device 100 determines that the icons that need to be displayed on the desktop of the vehicle terminal include the fixed icons in the dotted box shown by the reference numeral 51, based on the application layout information in the vehicle terminal information of the vehicle terminal 200. The electronic device can determine whether it is necessary to adjust the display area of these fixed icons based on the acquired application interface information and display screen size information. If no adjustment is required, as shown in Figure 5, the electronic device determines that the interface to be projected includes an adaptation interface placement area 58 and a vehicle application function placement area 51. If adjustment is required, the electronic device can adjust the display position of the fixed icons of the vehicle terminal to achieve a better application projection effect.
又比如,电子设备根据车载终端信息中的应用信息,确定车载终端的常用应用,可将常用应用的图标优先显示在桌面上。并且,车载终端可根据车载终端信息中的应用布局信息,确定待显示的固定图标。之后,电子设备可根据常用应用图标、固定图标、显示屏尺寸信息、以及应用界面信息,划分显示区域,确定适配界面放置区和车载应用功能放置区,以重布局应用界面。For another example, the electronic device determines the commonly used applications of the vehicle terminal based on the application information in the vehicle terminal information, and can display the icons of the commonly used applications on the desktop first. In addition, the vehicle terminal can determine the fixed icons to be displayed based on the application layout information in the vehicle terminal information. Afterwards, the electronic device can divide the display area according to the commonly used application icons, fixed icons, display screen size information, and application interface information, determine the adaptation interface placement area and the vehicle application function placement area, and re-layout the application interface.
可选的,预先配置车载终端待投屏界面的划分模板,将车载终端上需要显示的固定图标和待投屏界面的内容进行混合排列优化,以确定适配界面放置区和车载应用功能放置区。可选的,不同数量的固定图标可对应于不同的模板,使得固定图标可在车载终端的边缘显示区域显示,如在显示屏两边分布显示、或在显示一侧分布显示,以保证应用投屏效果。Optionally, a partition template of the screen to be projected of the vehicle terminal is pre-configured, and the fixed icons to be displayed on the vehicle terminal and the content of the screen to be projected are mixed and arranged to optimize, so as to determine the placement area of the adaptation interface and the placement area of the vehicle application function. Optionally, different numbers of fixed icons can correspond to different templates, so that the fixed icons can be displayed in the edge display area of the vehicle terminal, such as distributed display on both sides of the display screen, or distributed display on one side of the display, to ensure the application projection effect.
在一些实施例中,电子设备在确定投屏数据的过程中,车载终端可显示桌面或应用。那么,若车载终端显示应用,车载终端信息中的应用布局信息包括该应用的显示信息。那么电子设备在根据车载终端信息和应用界面信息,重布局应用界面的过程中,划分的适配界面放置区用于显示投屏的应用界面,车载应用功能放置区用于显示车载终端在此次投屏前显示的应用的显示内容。即,电子设备将投屏应用和车载终端原显示应用这两个应用的显示内容进行重布局,以实现后续投屏数据的确定。In some embodiments, when the electronic device is determining the projection data, the vehicle terminal may display the desktop or application. Then, if the vehicle terminal displays the application, the application layout information in the vehicle terminal information includes the display information of the application. Then, when the electronic device is re-layouting the application interface according to the vehicle terminal information and the application interface information, the divided adaptation interface placement area is used to display the projection application interface, and the vehicle application function placement area is used to display the display content of the application displayed by the vehicle terminal before this projection. That is, the electronic device re-layouts the display content of the two applications, the projection application and the original display application of the vehicle terminal, to achieve the subsequent determination of the projection data.
在一些实施例中,应用界面的不同功能区域配置有不同的适配模板。电子设备根据确定的适配界面放置区、应用界面信息中的功能区域的信息、适配模板,对控件、布局进行重新排布,以 重新布局应用界面,生成相应的重布局后的界面信息。重布局后的界面信息包括新的控件数据和布局数据。可选的,新的界面数据和布局数据可以以相应的文件格式进行保存、传输,例如包括重布局界面分区文件和自适应适配布局描述文件。其中,重布局界面分区文件例如包括调整后的功能区域信息,如位置坐标信息等。自适应适配布局描述文件包括功能区域的资源信息,如包括控件数据等用于后续进行界面渲染的信息。In some embodiments, different functional areas of the application interface are configured with different adaptation templates. The electronic device rearranges the controls and layout according to the determined adaptation interface placement area, the information of the functional area in the application interface information, and the adaptation template. Re-layout the application interface and generate corresponding re-layout interface information. The re-layout interface information includes new control data and layout data. Optionally, the new interface data and layout data can be saved and transmitted in a corresponding file format, such as a re-layout interface partition file and an adaptive adaptation layout description file. Among them, the re-layout interface partition file includes, for example, adjusted functional area information, such as location coordinate information, etc. The adaptive adaptation layout description file includes resource information of the functional area, such as control data and other information used for subsequent interface rendering.
比如,如图5所示,电子设备100的显示状态为竖屏显示,车载终端200的显示状态为横屏显示。电子设备100在对顶部标签tab栏52进行适配的过程中,需要按照车载终端200显示屏的横屏的设计思路,对标签tab栏52的文字进行重排,确定的控件数据和布局数据满足宽度约束后再换行。电子设备100在对banner页54进行适配的过程中,适配于宽度更宽的横屏显示,确定的控件数据和布局数据可将电子设备100侧隐藏的bannner页进行显示。For example, as shown in FIG5 , the display state of the electronic device 100 is a vertical screen display, and the display state of the vehicle-mounted terminal 200 is a horizontal screen display. In the process of adapting the top label tab bar 52 of the electronic device 100, it is necessary to rearrange the text of the label tab bar 52 according to the horizontal screen design concept of the display screen of the vehicle-mounted terminal 200, and wrap the line after the determined control data and layout data meet the width constraint. In the process of adapting the banner page 54 of the electronic device 100, it is adapted to a wider horizontal screen display, and the determined control data and layout data can display the banner page hidden on the electronic device 100 side.
又比如,电子设备在视频应用播放视频的过程中,响应于用户指示投屏的操作,确定接收到投屏请求。并且,电子设备确定电子设备的显示状态为竖屏显示,车载终端的显示状态为横屏显示。那么,电子设备在重布局应用界面的过程中,可确定受限于电子设备显示屏尺寸,未显示的视频应用中的部分播放控制控件,那么重布局后的应用界面信息可包括这部分播放控制控件的信息。进而后续车载终端可显示这部分播放控制控件。即,车载终端显示的投屏应用内容可与电子设备显示投屏应用的内容不同。For another example, when the electronic device is playing a video in a video application, in response to the user's instruction to cast the screen, it determines that a screen casting request has been received. In addition, the electronic device determines that the display state of the electronic device is portrait display, and the display state of the vehicle terminal is landscape display. Then, in the process of re-layouting the application interface, the electronic device may determine that some playback control controls in the video application are not displayed due to the size of the electronic device's display screen, and the application interface information after re-layout may include information about these playback control controls. The vehicle terminal may then display these playback control controls. That is, the content of the screen casting application displayed by the vehicle terminal may be different from the content of the screen casting application displayed by the electronic device.
S704、电子设备根据重布局后的应用界面信息,生成投屏数据。S704. The electronic device generates screen projection data according to the rearranged application interface information.
在一些实施例中,电子设备在重布局应用界面,确定重布局后的应用界面信息后,可根据重布局界面分区文件和自适应适配布局描述文件,绘制、渲染相应的控件数据和布局数据,以生成投屏数据,该投屏数据用于后续车载终端显示投屏界面。In some embodiments, after the electronic device re-layouts the application interface and determines the application interface information after the re-layout, it can draw and render the corresponding control data and layout data according to the re-layout interface partition file and the adaptive adaptation layout description file to generate projection data, which is used for the subsequent vehicle-mounted terminal to display the projection interface.
如此,电子设备能够基于车载终端信息,根据识别到的待投屏的应用界面显示信息,自适应的调整待投屏的应用界面的显示,以提升应用投屏显示效果,提升用户使用体验。In this way, the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
以上介绍了在投屏过程中,需要重布局界面的场景。如下介绍在投屏过程中,不需要重新布局界面的场景。The above describes the scenarios where the interface needs to be re-layouted during screen projection. The following describes the scenarios where the interface does not need to be re-layouted during screen projection.
S705、电子设备将应用界面匹配显示区域尺寸,生成相应的投屏数据。S705. The electronic device matches the application interface to the display area size and generates corresponding screen projection data.
在一些实施例中,电子设备确定电子设备和车载终端的显示状态相同。那么,电子设备可直接根据车载终端信息中车载终端的显示屏尺寸信息、应用布局信息等信息,划分适配界面放置区和车载应用功能放置区。之后,电子设备根据适配界面放置区的尺寸信息,缩放待投屏界面的尺寸,以使得应用界面匹配适配界面放置区(即显示区域)的尺寸。电子设备根据缩放后的投屏界面信息,绘制、渲染相应的界面,生成投屏数据。In some embodiments, the electronic device determines that the display status of the electronic device and the vehicle-mounted terminal is the same. Then, the electronic device can directly divide the adaptation interface placement area and the vehicle-mounted application function placement area according to the display screen size information, application layout information and other information of the vehicle-mounted terminal in the vehicle-mounted terminal information. Afterwards, the electronic device scales the size of the interface to be projected according to the size information of the adaptation interface placement area so that the application interface matches the size of the adaptation interface placement area (ie, the display area). The electronic device draws and renders the corresponding interface based on the scaled projection interface information to generate projection data.
可选的,电子设备在确定只需缩放待投屏界面,即可实现投屏。那么,电子设备可划分原车载终端用于显示固定图标的区域为车载应用功能放置区,该用于显示固定图标的区域以外的区域为适配界面放置区。Optionally, the electronic device can realize screen projection by determining that only the screen to be projected needs to be scaled. Then, the electronic device can divide the area of the original vehicle terminal used to display fixed icons into the vehicle application function placement area, and the area outside the area used to display fixed icons is the adaptation interface placement area.
示例性的,如图6所示,电子设备100确定电子设备100和车载终端200的显示状态均为竖屏显示。电子设备100根据获取到的车载终端信息,可确定车载终端200显示屏的显示区域包括适配界面放置区62和车载应用功能放置区61。之后,电子设备100可根据适配界面放置区62的尺寸信息,自适应的缩放待投屏的应用界面。Exemplarily, as shown in FIG6 , the electronic device 100 determines that the display states of the electronic device 100 and the vehicle-mounted terminal 200 are both displayed in portrait mode. Based on the acquired vehicle-mounted terminal information, the electronic device 100 can determine that the display area of the display screen of the vehicle-mounted terminal 200 includes an adaptation interface placement area 62 and a vehicle-mounted application function placement area 61. Afterwards, the electronic device 100 can adaptively scale the application interface to be projected based on the size information of the adaptation interface placement area 62.
或者,电子设备可调整原车载终端用于显示固定图标的区域的显示位置,将调整后的显示位置划分为车载应用功能放置区,同样该用于显示固定图标的区域以外的区域为适配界面放置区。其中,由于电子设备未识别待投屏界面中的控件以及进行布局划分,那么电子设备不会对固定图标和待投屏界面中的控件进行混合排列优化。在划分车载应用功能放置区和适配界面放置区的过程中,可将车载应用功能放置区划分到适配界面放置区的上方或下方、左侧或右侧,以满足显示需求。Alternatively, the electronic device can adjust the display position of the area used by the original vehicle terminal to display fixed icons, and divide the adjusted display position into the vehicle application function placement area. Similarly, the area outside the area used to display fixed icons is the adaptation interface placement area. Among them, since the electronic device does not recognize the controls in the interface to be projected and does not perform layout division, the electronic device will not perform mixed arrangement optimization on the fixed icons and the controls in the interface to be projected. In the process of dividing the vehicle application function placement area and the adaptation interface placement area, the vehicle application function placement area can be divided above or below, to the left or to the right of the adaptation interface placement area to meet display requirements.
如此,电子设备通过先确定电子设备和车载终端的显示状态,在确定显示状态相同的情况下,可直接通过缩放待投屏应用界面的方式,确定投屏数据,进而有效提高相同显示状态下的投屏效率。In this way, the electronic device first determines the display status of the electronic device and the vehicle-mounted terminal. When it is determined that the display status is the same, the projection data can be directly determined by scaling the application interface to be projected, thereby effectively improving the projection efficiency under the same display status.
在一些实施例中,电子设备在确定需要投屏后,也可不必执行上述步骤S701,而是直接执行 步骤S702。即,电子设备在确定需要投屏后,直接按照上述电子设备和车载终端显示状态不同的情况下,确定投屏数据的方法(如步骤S701-步骤S704),生成相应的投屏数据。In some embodiments, after the electronic device determines that screen projection is required, it is not necessary to execute the above step S701, but directly execute Step S702: That is, after determining that screen projection is required, the electronic device directly generates corresponding screen projection data according to the method for determining screen projection data when the display states of the electronic device and the vehicle-mounted terminal are different (such as steps S701 to S704).
如此,电子设备能够基于车载终端信息,根据识别到的待投屏的应用界面显示信息,自适应的调整待投屏的应用界面的显示,以提升应用投屏显示效果,提升用户使用体验。In this way, the electronic device can adaptively adjust the display of the application interface to be projected based on the vehicle terminal information and the identified display information of the application interface to be projected, so as to improve the application projection display effect and enhance the user experience.
通过上述方法,电子设备可确定投屏数据,之后通过下述步骤,电子设备可根据投屏数据,指示车载终端显示投屏界面。Through the above method, the electronic device can determine the projection data, and then through the following steps, the electronic device can instruct the vehicle terminal to display the projection interface according to the projection data.
S405、电子设备向车载终端发送投屏数据。S405. The electronic device sends the screen projection data to the vehicle-mounted terminal.
在一些实施例中,电子设备在确定投屏数据后,可向车载终端发送投屏数据。相应的,车载终端接收电子设备发送的投屏数据。In some embodiments, after determining the projection data, the electronic device may send the projection data to the vehicle-mounted terminal. Correspondingly, the vehicle-mounted terminal receives the projection data sent by the electronic device.
S406、车载终端根据投屏数据,显示投屏界面。S406. The vehicle-mounted terminal displays the screen projection interface according to the screen projection data.
在一些实施例中,车载终端在接收到投屏数据后,可根据投屏数据,显示相应的应用投屏界面。In some embodiments, after receiving the projection data, the vehicle-mounted terminal can display the corresponding application projection interface according to the projection data.
示例性的,对应于如图5所示的电子设备和车载终端显示状态不同的场景,车载终端200在接收到投屏数据后,可显示如图8所示界面。其中,如附图标记81所示,车载终端200投屏显示的投屏应用界面的显示内容与电子设备100的显示内容不同。如附图标记81指示的显示内容更加匹配车载终端200显示屏的大屏显示,显示内容更加丰富,有效提升了投屏显示效果。Exemplarily, corresponding to the scene in which the electronic device and the vehicle terminal display states are different as shown in FIG5, the vehicle terminal 200 may display the interface shown in FIG8 after receiving the projection data. Among them, as shown by reference numeral 81, the display content of the projection application interface displayed by the vehicle terminal 200 is different from the display content of the electronic device 100. The display content indicated by reference numeral 81 is more compatible with the large-screen display of the vehicle terminal 200 display screen, and the display content is richer, which effectively improves the projection display effect.
此外,如图5所示,车载终端200在显示屏下侧边缘显示位置显示车载终端的固定图标。在应用投屏过程中,如图8所示,电子设备100自适应调整用于显示固定图标的车载应用功能放置区的位置,如将固定图标分别显示在显示屏左侧边缘显示位置以及下侧边缘显示位置,以保证适配界面放置区中应用投屏效果。In addition, as shown in FIG5 , the vehicle terminal 200 displays the fixed icon of the vehicle terminal at the lower edge display position of the display screen. During the application screen projection process, as shown in FIG8 , the electronic device 100 adaptively adjusts the position of the vehicle application function placement area for displaying fixed icons, such as displaying the fixed icons at the left edge display position and the lower edge display position of the display screen, respectively, to ensure the application screen projection effect in the adaptation interface placement area.
又示例性的,对应于如图6所示的电子设备和车载终端显示状态相同的场景,车载终端200在接收到投屏数据后,可显示如图9所示界面。其中,如图6所示,电子设备100已确定适配界面放置区62和车载应用功能放置区61,并生成相应的投屏数据。那么,如图9所示,车载终端200在相应的适配界面放置区显示应用投屏界面。如车载终端200仍在显示屏左侧边缘显示位置显示固定图标,在显示屏右侧显示位置显示放大后的应用界面。As another example, corresponding to the scenario in which the electronic device and the vehicle-mounted terminal have the same display status as shown in Figure 6, the vehicle-mounted terminal 200 may display the interface shown in Figure 9 after receiving the projection data. Among them, as shown in Figure 6, the electronic device 100 has determined the adaptation interface placement area 62 and the vehicle-mounted application function placement area 61, and generated corresponding projection data. Then, as shown in Figure 9, the vehicle-mounted terminal 200 displays the application projection interface in the corresponding adaptation interface placement area. For example, the vehicle-mounted terminal 200 still displays the fixed icon at the display position on the left edge of the display screen, and displays the enlarged application interface at the display position on the right side of the display screen.
如此,电子设备能够根据车载终端信息自适应的调整待投屏的应用界面的显示,以匹配车载终端显示屏,提升应用投屏显示效果。In this way, the electronic device can adaptively adjust the display of the application interface to be projected according to the vehicle terminal information to match the vehicle terminal display screen and improve the application projection display effect.
此外,在投屏过程中,电子设备可根据车载终端需要固定显示的内容(如图标等),自适应的调整投屏应用的界面信息。从而保证在投屏过程中,车载终端还能够显示该固定的内容,满足用户的功能使用需求。In addition, during the screen projection process, the electronic device can adaptively adjust the interface information of the screen projection application according to the content (such as icons, etc.) that the vehicle terminal needs to display fixedly, thereby ensuring that during the screen projection process, the vehicle terminal can still display the fixed content to meet the user's functional usage needs.
并且,通过电子设备自适应的投屏显示,开发者不必再根据车载终端型号,开发同一应用的不同类型,有效降低应用开发难度。Moreover, through the adaptive screen projection display of electronic devices, developers no longer have to develop different types of the same application based on the vehicle terminal model, effectively reducing the difficulty of application development.
在一些实施例中,投屏数据还可以包括音频数据等数据,以实现车载终端在显示应用投屏界面的过程中,播放相应的音频。In some embodiments, the projection data may also include audio data and other data, so that the vehicle-mounted terminal can play corresponding audio while displaying the application projection interface.
比如,投屏应用为音乐应用,电子设备中音乐应用播放的音频为电子设备的本地音频数据。那么,电子设备在向车载终端发送的投屏数据中还可包括音频数据,以保证车载终端在显示音乐应用的投屏界面的过程中,可播放相应的音频。For example, if the screen projection application is a music application, the audio played by the music application in the electronic device is the local audio data of the electronic device. Then, the electronic device may also include audio data in the screen projection data sent to the vehicle terminal to ensure that the vehicle terminal can play the corresponding audio when displaying the screen projection interface of the music application.
在一些实施例中,车载终端在显示应用投屏界面的过程中,可能会接收到用户对投屏应用的操作。因此,电子设备可将电子设备界面上的操作事件对应的控件的操作响应方式与车载终端上的操作事件进行绑定,生成绑定关系。这样,车载终端可支持对显示屏显示内容的交互操作,在接收到用户对显示屏显示内容的操作后,可触发相应的操作响应。In some embodiments, the vehicle terminal may receive user operations on the projection application during the process of displaying the application projection interface. Therefore, the electronic device can bind the operation response mode of the control corresponding to the operation event on the electronic device interface with the operation event on the vehicle terminal to generate a binding relationship. In this way, the vehicle terminal can support interactive operations on the content displayed on the display screen, and after receiving the user's operation on the content displayed on the display screen, the corresponding operation response can be triggered.
一些示例中,车载终端将用户操作的控件的位置信息等信息封装成操作事件,发送至电子设备确定待执行的操作。和/或,车载终端直接根据绑定关系,确定待执行的控件的操作响应。In some examples, the vehicle terminal encapsulates information such as the position information of the control operated by the user into an operation event and sends it to the electronic device to determine the operation to be performed. And/or, the vehicle terminal directly determines the operation response of the control to be performed based on the binding relationship.
可选的,车载终端在检测到用户操作后,可生成相应的操作事件,该操作事件可包括用户操作的控件位置信息等信息。并且,车载终端可将该操作事件发送到电子设备。之后,电子设备根据接收到的操作事件,以及预先生成的绑定关系,确定该操作事件对应的控件的操作响应方式,以执行或指示车载终端执行相应的操作。 Optionally, after detecting a user operation, the vehicle terminal may generate a corresponding operation event, which may include information such as the position information of the control operated by the user. In addition, the vehicle terminal may send the operation event to the electronic device. Afterwards, the electronic device determines the operation response mode of the control corresponding to the operation event based on the received operation event and the pre-generated binding relationship, so as to execute or instruct the vehicle terminal to execute the corresponding operation.
可选的,电子设备将绑定关系发送至车载终端。这样,车载终端在检测到用户操作后,可根据绑定关系,确定用户操作的控件。Optionally, the electronic device sends the binding relationship to the vehicle-mounted terminal. In this way, after detecting the user operation, the vehicle-mounted terminal can determine the control operated by the user according to the binding relationship.
比如,车载终端的显示屏为触控屏。电子设备可在生成投屏数据(如上述步骤S704或步骤S705)后,将应用界面上的控件与相应的功能进行绑定,生成绑定关系。For example, the display screen of the vehicle terminal is a touch screen. After generating the projection data (such as the above step S704 or step S705), the electronic device can bind the controls on the application interface with the corresponding functions to generate a binding relationship.
又比如,车载终端的显示屏为非触控屏,或者车载终端的显示屏可通过按键或旋钮控制。电子设备可在生成投屏数据后,将按键或旋钮的虚拟选择与应用界面上的控件选择进行绑定,生成绑定关系。For another example, the display screen of the vehicle terminal is a non-touch screen, or the display screen of the vehicle terminal can be controlled by a button or a knob. After generating the projection data, the electronic device can bind the virtual selection of the button or knob with the control selection on the application interface to generate a binding relationship.
示例性的,电子设备通过上述步骤S402,根据获取到的车载终端信息,确定车载终端的显示屏为非触控屏,支持旋钮控制。那么,电子设备在通过上述步骤S704或步骤S705,确定投屏数据后,可将应用界面进行划分,将其中的控件按照矩阵格进行编号,将旋钮的旋转匹配到前进、后退、选择等操作,并对应到相应编号的控件,以生成绑定关系。For example, the electronic device determines that the display screen of the vehicle terminal is a non-touch screen and supports knob control according to the vehicle terminal information obtained through the above step S402. Then, after the electronic device determines the projection data through the above step S704 or step S705, it can divide the application interface, number the controls therein according to the matrix grid, match the rotation of the knob to the forward, backward, selection and other operations, and correspond to the controls with the corresponding numbers to generate a binding relationship.
可选的,电子设备在上述步骤S402中,获取到的车载终端信息还包括车载终端的硬件信息。那么,电子设备可在电子设备侧虚拟车载终端的硬件资源,这样在确定绑定关系的过程中,也可将控件的响应方式调整为对应于相应的虚拟硬件资源,用于指示车载终端的硬件操作,如开启车载终端的喇叭、摄像头等。Optionally, in the above step S402, the vehicle terminal information obtained by the electronic device also includes the hardware information of the vehicle terminal. Then, the electronic device can virtualize the hardware resources of the vehicle terminal on the electronic device side, so that in the process of determining the binding relationship, the response mode of the control can also be adjusted to correspond to the corresponding virtual hardware resources, which is used to indicate the hardware operation of the vehicle terminal, such as turning on the speaker and camera of the vehicle terminal.
如此,将投屏的应用界面显示内容与相应的操作响应进行绑定,在保证显示效果的同时,保留应用界面的交互功能,保证用户的使用体验。In this way, the display content of the projected application interface is bound to the corresponding operation response, while ensuring the display effect, the interactive function of the application interface is retained to ensure the user experience.
在一些实施例中,车载终端中可安装或未安装电子设备投屏显示的应用。那么,在车载终端安装有电子设备投屏显示的应用的情况下,车载终端可在根据接收到的投屏数据显示应用界面的过程中,确定通过车载终端的芯片启动显示该应用的情况下,显示帧率是否满足帧率阈值要求。若满足,车载终端可启动该应用,并指示电子设备不必再投屏显示该应用,即将该应用切换运行至车载终端,从而提升应用运行效率。若不满足,车载终端可继续根据接收到的投屏数据,显示投屏应用,即使得投屏应用运行于电子设备。In some embodiments, an application for screen projection and display of an electronic device may or may not be installed in the vehicle terminal. Then, in the case where the vehicle terminal is installed with an application for screen projection and display of an electronic device, the vehicle terminal may determine whether the display frame rate meets the frame rate threshold requirement when the application is started and displayed through the chip of the vehicle terminal in the process of displaying the application interface according to the received screen projection data. If satisfied, the vehicle terminal can start the application and instruct the electronic device not to project and display the application, that is, switch the application to the vehicle terminal, thereby improving the application operation efficiency. If not satisfied, the vehicle terminal can continue to display the screen projection application according to the received screen projection data, so that the screen projection application runs on the electronic device.
在一些实施例中,电子设备在生成投屏数据的过程中,也可确定向车载终端投屏显示的电子设备功能图标。之后,电子设备向车载终端发送的投屏数据中包括该电子设备功能图标。后续,车载终端根据投屏数据显示的投屏界面中包括电子设备功能图标,用户可在车载终端上通过该电子设备功能图标控制电子设备。In some embodiments, the electronic device may also determine the electronic device function icon to be displayed on the vehicle terminal during the process of generating the projection data. Afterwards, the projection data sent by the electronic device to the vehicle terminal includes the electronic device function icon. Subsequently, the vehicle terminal includes the electronic device function icon in the projection interface displayed according to the projection data, and the user can control the electronic device through the electronic device function icon on the vehicle terminal.
示例性的,车载终端在显示投屏界面的过程中,检测到用户对电子设备功能图标的操作,可向电子设备发送指示信息,该指示信息中可携带有被用户操作的电子设备功能图标的信息。之后,电子设备可根据指示信息,执行被用户操作电子设备功能图标对应的功能。For example, when the vehicle terminal detects the user's operation on the electronic device function icon during the display of the projection interface, it can send an indication message to the electronic device, and the indication message can carry information about the electronic device function icon operated by the user. Afterwards, the electronic device can execute the function corresponding to the electronic device function icon operated by the user according to the indication message.
以上结合图4-图9详细说明了本申请实施例提供的投屏显示方法。以下结合图10详细说明本申请实施例提供的电子设备,以及结合图11详细说明本申请实施例提供的车载终端。The above is a detailed description of the screen projection display method provided by the embodiment of the present application in combination with Figures 4 to 9. The following is a detailed description of the electronic device provided by the embodiment of the present application in combination with Figure 10, and a detailed description of the vehicle-mounted terminal provided by the embodiment of the present application in combination with Figure 11.
在一种可能的设计中,图10为本申请实施例提供的电子设备的结构示意图。如图10所示,电子设备1000可以包括:收发单元1001和处理单元1002。电子设备1000可用于实现上述方法实施例中涉及的电子设备的功能。In a possible design, Figure 10 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 10, the electronic device 1000 may include: a transceiver unit 1001 and a processing unit 1002. The electronic device 1000 may be used to implement the functions of the electronic device involved in the above method embodiment.
可选地,收发单元1001,用于支持电子设备1000执行图4中的S401、S402以及S405。Optionally, the transceiver unit 1001 is used to support the electronic device 1000 to execute S401, S402 and S405 in FIG. 4 .
可选地,处理单元1002,用于支持电子设备1000执行图4中的S403和S404;和/或,用于支持电子设备1000执行图7中的S701-S705。Optionally, the processing unit 1002 is used to support the electronic device 1000 to execute S403 and S404 in Figure 4; and/or to support the electronic device 1000 to execute S701-S705 in Figure 7.
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。电子设备1000中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的投屏显示方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。Among them, the transceiver unit may include a receiving unit and a sending unit, which may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and/or functions of each unit in the electronic device 1000 are respectively to implement the corresponding process of the projection display method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, it will not be repeated here.
可选地,图10所示的电子设备1000还可以包括存储单元(图10中未示出),该存储单元中存储有程序或指令。当收发单元1001和处理单元1002执行该程序或指令时,使得图10所示的电子设备1000可以执行上述方法实施例中所述的投屏显示方法。Optionally, the electronic device 1000 shown in FIG10 may further include a storage unit (not shown in FIG10 ), in which a program or instruction is stored. When the transceiver unit 1001 and the processing unit 1002 execute the program or instruction, the electronic device 1000 shown in FIG10 may execute the screen projection display method described in the above method embodiment.
图10所示的电子设备1000的技术效果可以参考上述方法实施例中所述的投屏显示方法的技术效果,此处不再赘述。 The technical effects of the electronic device 1000 shown in FIG. 10 may refer to the technical effects of the screen projection display method described in the above method embodiment, and will not be repeated here.
除了以电子设备1000的形式以外,本申请提供的技术方案也可以为电子设备中的功能单元或者芯片,或者与电子设备匹配使用的装置。In addition to being in the form of electronic device 1000, the technical solution provided by the present application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.
在一种可能的设计中,图11为本申请实施例提供的车载终端的结构示意图。如图11所示,车载终端1100可以包括:收发单元1101、处理单元1102以及显示单元1103。车载终端1100可用于实现上述方法实施例中涉及的车载终端的功能。In a possible design, FIG11 is a schematic diagram of the structure of the vehicle terminal provided in an embodiment of the present application. As shown in FIG11, the vehicle terminal 1100 may include: a transceiver unit 1101, a processing unit 1102, and a display unit 1103. The vehicle terminal 1100 may be used to implement the functions of the vehicle terminal involved in the above method embodiment.
可选地,收发单元1101,用于支持车载终端1100执行图4中的S401、S402以及S405。Optionally, the transceiver unit 1101 is used to support the vehicle terminal 1100 to execute S401, S402 and S405 in Figure 4.
可选地,处理单元1102,用于支持车载终端1100执行图4中的S406。Optionally, the processing unit 1102 is used to support the vehicle terminal 1100 to execute S406 in Figure 4.
可选地,显示单元1103,用于支持车载终端1100执行图4中的S406。Optionally, the display unit 1103 is used to support the vehicle-mounted terminal 1100 to execute S406 in FIG. 4 .
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。车载终端1100中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的投屏显示方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。Among them, the transceiver unit may include a receiving unit and a sending unit, which may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and/or functions of each unit in the vehicle terminal 1100 are respectively to implement the corresponding process of the projection display method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, it will not be repeated here.
可选地,图11所示的车载终端1100还可以包括存储单元(图11中未示出),该存储单元中存储有程序或指令。当收发单元1101、处理单元1102以及显示单元1103执行该程序或指令时,使得图11所示的车载终端1100可以执行上述方法实施例中所述的投屏显示方法。Optionally, the vehicle-mounted terminal 1100 shown in FIG11 may further include a storage unit (not shown in FIG11 ), in which a program or instruction is stored. When the transceiver unit 1101, the processing unit 1102, and the display unit 1103 execute the program or instruction, the vehicle-mounted terminal 1100 shown in FIG11 may execute the screen projection display method described in the above method embodiment.
图11所示的车载终端1100的技术效果可以参考上述方法实施例中所述的投屏显示方法的技术效果,此处不再赘述。The technical effects of the vehicle-mounted terminal 1100 shown in FIG. 11 can refer to the technical effects of the screen projection display method described in the above method embodiment, and will not be repeated here.
除了以车载终端1100的形式以外,本申请提供的技术方案也可以为车载终端中的功能单元或者芯片,或者与车载终端匹配使用的装置。In addition to being in the form of the vehicle-mounted terminal 1100, the technical solution provided by the present application may also be a functional unit or chip in the vehicle-mounted terminal, or a device used in conjunction with the vehicle-mounted terminal.
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(AP设备plication specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的投屏显示方法。An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the screen projection display method in the above-mentioned embodiment.
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的投屏显示方法。An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the screen projection display method in the above-mentioned embodiment.
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的投屏显示方法。In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device performs the screen projection display method in the above-mentioned method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行 上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The apparatus, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute The corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(AP设备plication specific integrated circuit,ASIC)中。The steps of the method or algorithm described in conjunction with the disclosed content of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) 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 information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Computer-readable storage media include, but are not limited to, any of the following: USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims (32)

  1. 一种投屏显示方法,其特征在于,应用于电子设备,所述方法包括:A screen projection display method, characterized in that it is applied to an electronic device, and the method comprises:
    获取车载终端发送的第一信息,所述第一信息包括车载终端信息;Acquire first information sent by the vehicle-mounted terminal, where the first information includes vehicle-mounted terminal information;
    接收投屏请求;Receive screen projection request;
    响应于所述投屏请求,确定所述投屏请求指示投屏的第一应用的第一界面信息;In response to the screen projection request, determining first interface information of a first application indicated by the screen projection request for screen projection;
    根据所述车载终端信息和所述第一界面信息,确定投屏数据;Determining screen projection data according to the in-vehicle terminal information and the first interface information;
    向所述车载终端发送所述投屏数据,所述投屏数据用于使所述车载终端显示投屏界面。The screen projection data is sent to the vehicle-mounted terminal, and the screen projection data is used to enable the vehicle-mounted terminal to display a screen projection interface.
  2. 根据权利要求1所述的方法,其特征在于,所述车载终端信息包括应用布局信息。The method according to claim 1 is characterized in that the vehicle-mounted terminal information includes application layout information.
  3. 根据权利要求2所述的方法,其特征在于,所述应用布局信息包括所述车载终端的桌面布局信息。The method according to claim 2 is characterized in that the application layout information includes desktop layout information of the vehicle-mounted terminal.
  4. 根据权利要求2或3所述的方法,其特征在于,所述车载终端信息还包括显示屏尺寸信息,所述方法还包括:The method according to claim 2 or 3, characterized in that the vehicle-mounted terminal information also includes display screen size information, and the method further includes:
    响应于所述投屏请求,根据所述显示屏尺寸信息,确定所述电子设备和所述车载终端的显示状态相同或不相同,所述显示状态用于表示横屏显示或竖屏显示。In response to the screen projection request, it is determined based on the display screen size information whether the display status of the electronic device and the vehicle-mounted terminal is the same or different, and the display status is used to indicate horizontal screen display or vertical screen display.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述显示屏尺寸信息,确定所述电子设备和所述车载终端的显示状态相同或不相同,包括:The method according to claim 4, characterized in that the determining, based on the display screen size information, whether the display states of the electronic device and the vehicle-mounted terminal are the same or different comprises:
    确定所述电子设备的显示屏的第一横纵比,以及根据所述显示屏尺寸信息,确定所述车载终端的显示屏的第二横纵比;Determine a first aspect ratio of a display screen of the electronic device, and determine a second aspect ratio of a display screen of the vehicle-mounted terminal according to the display screen size information;
    在所述第一横纵比和所述第二横纵比之间的差值绝对值小于或等于第一阈值的情况下,所述电子设备和所述车载终端的显示状态相同;When the absolute value of the difference between the first aspect ratio and the second aspect ratio is less than or equal to a first threshold, the display states of the electronic device and the vehicle-mounted terminal are the same;
    在所述第一横纵比和所述第二横纵比之间的差值绝对值大于所述第一阈值的情况下,所述电子设备和所述车载终端的显示状态不相同。When the absolute value of the difference between the first aspect ratio and the second aspect ratio is greater than the first threshold, the display states of the electronic device and the vehicle-mounted terminal are different.
  6. 根据权利要求4或5所述的方法,其特征在于,所述电子设备和所述车载终端的显示状态不相同,所述响应于所述投屏请求,确定所述投屏请求指示投屏的第一应用的第一界面信息,包括:The method according to claim 4 or 5, characterized in that the display states of the electronic device and the vehicle-mounted terminal are different, and the determining, in response to the screen projection request, the first interface information of the first application indicated by the screen projection request for projection comprises:
    响应于所述投屏请求,确定待投屏的所述第一应用的第一界面;In response to the screen projection request, determining a first interface of the first application to be projected;
    划分所述第一界面的功能区域,确定所述第一界面信息。The first interface is divided into functional areas, and the first interface information is determined.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述车载终端信息和所述第一界面信息,确定投屏数据,包括:The method according to claim 6, characterized in that the step of determining the projection data according to the vehicle terminal information and the first interface information comprises:
    根据所述第一界面信息、所述显示屏尺寸信息、以及所述应用布局信息,重布局划分后的功能区域对应的第一显示内容和所述应用布局信息对应的第二显示内容,生成第二界面信息;Generate second interface information by re-layouting the first display content corresponding to the divided functional area and the second display content corresponding to the application layout information according to the first interface information, the display screen size information, and the application layout information;
    根据所述第二界面信息,生成所述投屏数据。Generate the screen projection data according to the second interface information.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述第一界面信息、所述显示屏尺寸信息、以及所述应用布局信息,重布局所述功能区域对应的第一显示内容和所述应用布局信息对应的第二显示内容,生成第二界面信息,包括:The method according to claim 7, characterized in that the step of re-layouting the first display content corresponding to the functional area and the second display content corresponding to the application layout information according to the first interface information, the display screen size information, and the application layout information to generate the second interface information comprises:
    根据所述功能区域、所述显示屏尺寸信息、以及所述应用布局信息,将所述车载终端的显示屏对应的显示区域划分为第一显示区域和第二显示区域,所述第一显示区域用于显示所述第一显示内容,所述第二显示区域用于显示所述第二显示内容;According to the functional area, the display screen size information, and the application layout information, the display area corresponding to the display screen of the vehicle terminal is divided into a first display area and a second display area, the first display area is used to display the first display content, and the second display area is used to display the second display content;
    根据所述第一显示区域,重布局所述第一显示内容,以及根据所述第二显示区域,重布局所述第二显示内容;Rearranging the first display content according to the first display area, and rearranging the second display content according to the second display area;
    根据重布局后的所述第一显示内容和所述第二显示内容,确定所述第二界面信息。The second interface information is determined according to the first display content and the second display content after the rearrangement.
  9. 根据权利要求4或5所述的方法,其特征在于,所述电子设备和所述车载终端的显示状态相同,所述根据所述车载终端信息和所述第一界面信息,确定投屏数据,包括:The method according to claim 4 or 5, characterized in that the display status of the electronic device and the vehicle-mounted terminal are the same, and the determining of the screen projection data according to the vehicle-mounted terminal information and the first interface information comprises:
    根据所述显示屏尺寸信息和所述应用布局信息,确定用于投屏显示所述第一应用的第一显示区域,所述第一显示区域为用于显示所述应用布局信息对应的第二显示内容以外的显示区域;Determine, according to the display screen size information and the application layout information, a first display area for projecting and displaying the first application, wherein the first display area is a display area other than a second display content corresponding to the application layout information;
    根据所述第一显示区域,放大或缩小所述第一界面信息对应的所述第一应用的第一界面,生成第三界面信息; According to the first display area, enlarging or reducing the first interface of the first application corresponding to the first interface information to generate third interface information;
    根据所述第三界面信息和所述应用布局信息,确定所述投屏数据。The screen projection data is determined according to the third interface information and the application layout information.
  10. 根据权利要求8或9所述的方法,其特征在于,所述车载终端信息还包括所述车载终端的应用信息,所述第二显示内容包括所述应用布局信息对应的功能图标和/或所述车载终端的常用应用图标,所述功能图标为所述车载终端在投屏前显示的功能图标和/或用于控制所述电子设备的功能图标,所述常用应用图标为所述电子设备根据所述应用信息确定的所述车载终端的常用应用的图标。The method according to claim 8 or 9 is characterized in that the vehicle-mounted terminal information also includes application information of the vehicle-mounted terminal, the second display content includes function icons corresponding to the application layout information and/or commonly used application icons of the vehicle-mounted terminal, the function icons are function icons displayed by the vehicle-mounted terminal before screen projection and/or function icons used to control the electronic device, and the commonly used application icons are icons of commonly used applications of the vehicle-mounted terminal determined by the electronic device based on the application information.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述车载终端信息还包括所述车载终端的显示屏控制方法、硬件信息,所述显示屏控制方法用于表示所述车载终端是触控屏或非触控屏,在所述向所述车载终端发送投屏数据之前,所述方法还包括:The method according to any one of claims 1 to 10 is characterized in that the vehicle-mounted terminal information also includes a display screen control method and hardware information of the vehicle-mounted terminal, the display screen control method is used to indicate whether the vehicle-mounted terminal is a touch screen or a non-touch screen, and before sending the projection data to the vehicle-mounted terminal, the method further includes:
    确定所述投屏数据中的第一控件对应的操作响应方式;Determine an operation response mode corresponding to a first control in the projection data;
    根据所述第一控件、所述操作响应方式、所述硬件信息、以及所述显示屏控制方法,生成绑定关系,所述绑定关系用于指示所述车载终端在检测到用户对所述投屏界面中显示的所述第一控件的操作后对应的第一响应。A binding relationship is generated based on the first control, the operation response mode, the hardware information, and the display screen control method, and the binding relationship is used to indicate the first response of the vehicle-mounted terminal after detecting the user's operation on the first control displayed in the projection interface.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that the method further comprises:
    向所述车载终端发送所述绑定关系。The binding relationship is sent to the vehicle-mounted terminal.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述投屏请求为所述电子设备接收到用户的投屏操作后确定的投屏请求,或者所述投屏请求为所述车载终端发送的投屏请求。The method according to any one of claims 1-12 is characterized in that the screen projection request is a screen projection request determined after the electronic device receives the user's screen projection operation, or the screen projection request is a screen projection request sent by the vehicle-mounted terminal.
  14. 一种投屏显示方法,其特征在于,应用于车载终端,所述方法包括:A screen projection display method, characterized in that it is applied to a vehicle-mounted terminal, and the method comprises:
    向电子设备发送第一信息,所述第一信息包括车载终端信息;Sending first information to the electronic device, wherein the first information includes vehicle-mounted terminal information;
    接收所述电子设备发送的投屏数据,所述投屏数据为所述电子设备响应于接收到的投屏请求,根据所述投屏请求指示投屏的第一应用的第一界面信息和所述车载终端信息确定的数据;Receiving screen projection data sent by the electronic device, the screen projection data being data determined by the electronic device in response to the received screen projection request, according to first interface information of the first application indicated by the screen projection request and the in-vehicle terminal information;
    根据所述投屏数据,显示投屏界面。The screen projection interface is displayed according to the screen projection data.
  15. 根据权利要求14所述的方法,其特征在于,所述车载终端信息包括应用布局信息。The method according to claim 14 is characterized in that the vehicle-mounted terminal information includes application layout information.
  16. 根据权利要求15所述的方法,其特征在于,所述应用布局信息包括所述车载终端的桌面布局信息。The method according to claim 15 is characterized in that the application layout information includes desktop layout information of the vehicle-mounted terminal.
  17. 根据权利要求14-16任一项所述的方法,其特征在于,所述车载终端信息还包括显示屏尺寸信息,所述显示屏尺寸信息用于使所述电子设备确定所述车载终端的显示状态,所述显示状态用于表示横屏显示或竖屏显示。According to the method described in any one of claims 14-16, it is characterized in that the vehicle-mounted terminal information also includes display screen size information, and the display screen size information is used to enable the electronic device to determine the display status of the vehicle-mounted terminal, and the display status is used to indicate horizontal screen display or vertical screen display.
  18. 根据权利要求14-17任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 14 to 17, characterized in that the method further comprises:
    接收所述电子设备发送的绑定关系,所述绑定关系用于指示所述车载终端在检测到用户对所述投屏界面上显示的第一控件的操作后对应的第一响应;所述车载终端信息还包括所述车载终端的显示屏控制方法、硬件信息,所述显示屏控制方法、所述硬件信息用于使所述电子设备生成所述绑定关系。Receive the binding relationship sent by the electronic device, wherein the binding relationship is used to indicate the first response of the vehicle-mounted terminal after detecting the user's operation on the first control displayed on the projection interface; the vehicle-mounted terminal information also includes the display screen control method and hardware information of the vehicle-mounted terminal, and the display screen control method and the hardware information are used to enable the electronic device to generate the binding relationship.
  19. 根据权利要求14-18任一项所述的方法,其特征在于,在所述接收所述电子设备发送的投屏数据之前,所述方法还包括:The method according to any one of claims 14 to 18, characterized in that before receiving the screen projection data sent by the electronic device, the method further comprises:
    响应于用户的投屏操作,向所述电子设备发送所述投屏请求。In response to the user's screen projection operation, the screen projection request is sent to the electronic device.
  20. 一种投屏显示系统,其特征在于,所述系统包括电子设备和车载终端;A screen projection display system, characterized in that the system includes an electronic device and a vehicle-mounted terminal;
    所述车载终端,用于向所述电子设备发送第一信息,所述第一信息包括车载终端信息;The vehicle-mounted terminal is used to send first information to the electronic device, wherein the first information includes vehicle-mounted terminal information;
    所述电子设备,用于接收投屏请求;The electronic device is used to receive a screen projection request;
    所述电子设备,还用于响应于所述投屏请求,确定所述投屏请求指示投屏的第一应用的第一界面信息;The electronic device is further configured to determine, in response to the screen projection request, first interface information of a first application that the screen projection request indicates is to be projected;
    所述电子设备,还用于根据所述第一界面信息和接收到的所述第一信息中的所述车载终端信息,确定投屏数据;The electronic device is further used to determine the screen projection data according to the first interface information and the vehicle terminal information in the received first information;
    所述电子设备,还用于向所述车载终端发送所述投屏数据;The electronic device is further used to send the screen projection data to the vehicle-mounted terminal;
    所述车载终端,还用于根据接收到的所述投屏数据,显示投屏界面。The vehicle-mounted terminal is also used to display a screen projection interface based on the received screen projection data.
  21. 根据权利要求20所述的系统,其特征在于,所述车载终端信息包括应用布局信息。The system according to claim 20 is characterized in that the vehicle-mounted terminal information includes application layout information.
  22. 根据权利要求21所述的系统,其特征在于,所述应用布局信息包括所述车载终端的桌面 布局信息。The system according to claim 21, characterized in that the application layout information includes the desktop of the vehicle terminal Layout information.
  23. 根据权利要求21或22所述的系统,其特征在于,所述车载终端信息还包括显示屏尺寸信息;The system according to claim 21 or 22, characterized in that the vehicle terminal information also includes display screen size information;
    所述电子设备,还用于响应于所述投屏请求,根据所述显示屏尺寸信息,确定所述电子设备和所述车载终端的显示状态相同或不相同,所述显示状态用于表示横屏显示或竖屏显示。The electronic device is also used to respond to the screen projection request and determine whether the display status of the electronic device and the vehicle-mounted terminal is the same or different according to the display screen size information, and the display status is used to indicate horizontal screen display or vertical screen display.
  24. 根据权利要求23所述的系统,其特征在于,在所述电子设备和所述车载终端的显示状态不相同的情况下,The system according to claim 23, characterized in that, when the display states of the electronic device and the vehicle-mounted terminal are different,
    所述电子设备,还用于响应于所述投屏请求,确定待投屏的所述第一应用的第一界面;The electronic device is further configured to determine, in response to the screen projection request, a first interface of the first application to be projected;
    所述电子设备,还用于划分所述第一界面的功能区域,确定所述第一界面信息。The electronic device is further used to divide the functional areas of the first interface and determine the first interface information.
  25. 根据权利要求24所述的系统,其特征在于,The system according to claim 24, characterized in that
    所述电子设备,还用于根据所述第一界面信息、所述显示屏尺寸信息、以及所述应用布局信息,重布局划分后的功能区域对应的第一显示内容和所述应用布局信息对应的第二显示内容,生成第二界面信息;The electronic device is further configured to re-layout the first display content corresponding to the divided functional area and the second display content corresponding to the application layout information according to the first interface information, the display screen size information, and the application layout information, to generate the second interface information;
    所述电子设备,还用于根据所述第二界面信息,生成所述投屏数据。The electronic device is also used to generate the screen projection data according to the second interface information.
  26. 根据权利要求23所述的系统,其特征在于,在所述电子设备和所述车载终端的显示状态相同的情况下,The system according to claim 23, characterized in that, when the display states of the electronic device and the vehicle-mounted terminal are the same,
    所述电子设备,还用于根据所述显示屏尺寸信息和所述应用布局信息,确定用于投屏显示所述第一应用的第一显示区域,所述第一显示区域为用于显示所述应用布局信息对应的第二显示内容以外的显示区域;The electronic device is further used to determine, based on the display screen size information and the application layout information, a first display area for projecting and displaying the first application, wherein the first display area is a display area other than a second display content corresponding to the application layout information;
    所述电子设备,还用于根据所述第一显示区域,放大或缩小所述第一界面信息对应的所述第一应用的第一界面,生成第三界面信息;The electronic device is further configured to enlarge or reduce the first interface of the first application corresponding to the first interface information according to the first display area to generate third interface information;
    所述电子设备,还用于根据所述第三界面信息和所述应用布局信息,确定所述投屏数据。The electronic device is also used to determine the screen projection data based on the third interface information and the application layout information.
  27. 一种电子设备,其特征在于,包括:处理器和存储器,所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述电子设备执行如权利要求1-13中任意一项所述的方法。An electronic device, characterized in that it includes: a processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the method as described in any one of claims 1 to 13.
  28. 一种车载终端,其特征在于,包括:处理器、存储器和显示屏,所述存储器和所述显示屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述车载终端执行如权利要求14-19中任意一项所述的方法。A vehicle-mounted terminal, characterized in that it includes: a processor, a memory and a display screen, wherein the memory and the display screen are coupled to the processor, the memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor reads the computer instructions from the memory, the vehicle-mounted terminal executes the method described in any one of claims 14 to 19.
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a computer program, and when the computer program is run on an electronic device, the electronic device executes the method as described in any one of claims 1 to 13.
  30. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在车载终端上运行时,使得所述车载终端执行如权利要求14-19中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a computer program, and when the computer program is run on a vehicle-mounted terminal, the vehicle-mounted terminal executes the method as described in any one of claims 14-19.
  31. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-13中任意一项所述的方法。A computer program product, characterized in that when the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
  32. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求14-19中任意一项所述的方法。 A computer program product, characterized in that when the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 14 to 19.
PCT/CN2023/118085 2022-09-30 2023-09-11 Screen mirroring display method, electronic device, and system WO2024067052A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211214674.2A CN117850715A (en) 2022-09-30 2022-09-30 Screen-throwing display method, electronic equipment and system
CN202211214674.2 2022-09-30

Publications (1)

Publication Number Publication Date
WO2024067052A1 true WO2024067052A1 (en) 2024-04-04

Family

ID=90476038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/118085 WO2024067052A1 (en) 2022-09-30 2023-09-11 Screen mirroring display method, electronic device, and system

Country Status (2)

Country Link
CN (1) CN117850715A (en)
WO (1) WO2024067052A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399789A (en) * 2020-02-20 2020-07-10 华为技术有限公司 Interface layout method, device and system
CN111443884A (en) * 2020-04-23 2020-07-24 华为技术有限公司 Screen projection method and device and electronic equipment
CN113542839A (en) * 2021-06-09 2021-10-22 荣耀终端有限公司 Screen projection method of electronic equipment and electronic equipment
CN113741840A (en) * 2020-09-10 2021-12-03 华为技术有限公司 Application interface display method under multi-window screen projection scene and electronic equipment
CN114356258A (en) * 2020-09-30 2022-04-15 华为技术有限公司 Electronic device, screen projection method thereof and medium
CN114442972A (en) * 2020-10-31 2022-05-06 华为技术有限公司 Screen projection method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399789A (en) * 2020-02-20 2020-07-10 华为技术有限公司 Interface layout method, device and system
CN111443884A (en) * 2020-04-23 2020-07-24 华为技术有限公司 Screen projection method and device and electronic equipment
CN113741840A (en) * 2020-09-10 2021-12-03 华为技术有限公司 Application interface display method under multi-window screen projection scene and electronic equipment
CN114356258A (en) * 2020-09-30 2022-04-15 华为技术有限公司 Electronic device, screen projection method thereof and medium
CN114442972A (en) * 2020-10-31 2022-05-06 华为技术有限公司 Screen projection method and electronic equipment
CN113542839A (en) * 2021-06-09 2021-10-22 荣耀终端有限公司 Screen projection method of electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN117850715A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
WO2020244495A1 (en) Screen projection display method and electronic device
WO2020244492A1 (en) Screen projection display method and electronic device
EP4030276B1 (en) Content continuation method and electronic device
US11934352B2 (en) Card rendering method and electronic device
WO2022100305A1 (en) Cross-device picture display method and apparatus, and electronic device
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
CN114115769B (en) Display method and electronic equipment
US10347221B2 (en) Electronic device and method for controlling display thereof
WO2021104114A1 (en) Method for providing wireless fidelity (wifi) network access service, and electronic device
US20230410809A1 (en) Method for interaction between mobile terminal and in-vehicle terminal, terminal, and system
CN114489529A (en) Screen projection method of electronic device, medium thereof and electronic device
WO2021121036A1 (en) Key customization method and device for folding device, and storage medium
WO2021042881A1 (en) Message notification method and electronic device
US20230350631A1 (en) Projection display method and electronic device
US20230350629A1 (en) Double-Channel Screen Mirroring Method and Electronic Device
WO2024067052A1 (en) Screen mirroring display method, electronic device, and system
EP4354270A1 (en) Service recommendation method and electronic device
WO2022188632A1 (en) Theme display method and apparatus, terminal, and computer storage medium
US20230297309A1 (en) Screen display method and apparatus, electronic device, and computer storage medium
WO2023179435A1 (en) Adaptive configuration method for vehicle-mounted application, and vehicle-mounted terminal
US20230336654A1 (en) Display method and electronic device
CN215268564U (en) Novel vehicle-mounted interconnected screen projection box
US20230376264A1 (en) Display Method and Electronic Device
WO2024027238A1 (en) Multi-device cooperation method, electronic device and related product
WO2024037332A1 (en) Screen mirroring method, electronic device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23870291

Country of ref document: EP

Kind code of ref document: A1